UNPKG

wfw-ngx-adal-observable

Version:
2 lines 306 kB
"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 b.call(c,c,a("@angular/core"))})}(0,function(a,b){"use strict";function c(a,b){function c(){this.constructor=a}wa(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){"string"!=typeof b&&(c=b,b=a[0]),b=b.toLowerCase().replace(/_/g,"-"),Ha[b]=a,c&&(Ha[b][18]=c)}function g(a){return A(a)[0]}function h(a,b,c){var d=A(a);return y(y([d[1],d[2]],b),c)}function i(a,b,c){var d=A(a);return y(y([d[3],d[4]],b),c)}function j(a,b,c){var d=A(a);return y(y([d[5],d[6]],b),c)}function k(a,b){return y(A(a)[7],b)}function l(a){return A(a)[8]}function m(a){return A(a)[9]}function n(a,b){return A(a)[10][b]}function o(a,b){return A(a)[11][b]}function p(a,b){return y(A(a)[12],b)}function q(a,b){var c=A(a),d=c[13][b];if(void 0===d){if(b===Na.CurrencyDecimal)return c[13][Na.Decimal];if(b===Na.CurrencyGroup)return c[13][Na.Group]}return d}function r(a,b){return A(a)[14][b]}function s(a){return A(a)[15]||null}function t(a){return A(a)[16]||null}function u(a){return A(a)[17]}function v(a){if(!a[18])throw new Error('Missing extra locale data for the locale "'+a[0]+'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.')}function w(a){var b=A(a);return v(b),(b[18][2]||[]).map(function(a){return"string"==typeof a?z(a):[z(a[0]),z(a[1])]})}function x(a,b,c){var d=A(a);return v(d),y(y([d[18][0],d[18][1]],b)||[],c)||[]}function y(a,b){for(var c=b;c>-1;c--)if(void 0!==a[c])return a[c];throw new Error("Locale data API: locale data undefined")}function z(a){var b=a.split(":");return{hours:+b[0],minutes:+b[1]}}function A(a){var b=a.toLowerCase().replace(/_/g,"-"),c=Ha[b];if(c)return c;var d=b.split("-")[0];if(c=Ha[d])return c;if("en"===d)return Ga;throw new Error('Missing locale data for the locale "'+a+'".')}function B(a,b){var c=Fa[a]||{},d=c[0]||a;return"wide"===b?d:c[1]||d}function C(a,b,c,d){var e="="+a;if(b.indexOf(e)>-1)return e;if(e=c.getPluralCategory(a,d),b.indexOf(e)>-1)return e;if(b.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+a+'"')}function D(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?Ja.One:Ja.Other;case"ak":case"ln":case"mg":case"pa":case"ti":return c===Math.floor(c)&&c>=0&&c<=1?Ja.One:Ja.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===e||1===c?Ja.One:Ja.Other;case"ar":return 0===c?Ja.Zero:1===c?Ja.One:2===c?Ja.Two:c%100===Math.floor(c%100)&&c%100>=3&&c%100<=10?Ja.Few:c%100===Math.floor(c%100)&&c%100>=11&&c%100<=99?Ja.Many:Ja.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?Ja.One:Ja.Other;case"be":return c%10==1&&c%100!=11?Ja.One:c%10===Math.floor(c%10)&&c%10>=2&&c%10<=4&&!(c%100>=12&&c%100<=14)?Ja.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?Ja.Many:Ja.Other;case"br":return c%10==1&&c%100!=11&&c%100!=71&&c%100!=91?Ja.One:c%10==2&&c%100!=12&&c%100!=72&&c%100!=92?Ja.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)?Ja.Few:0!==c&&c%1e6==0?Ja.Many:Ja.Other;case"bs":case"hr":case"sr":return 0===f&&e%10==1&&e%100!=11||g%10==1&&g%100!=11?Ja.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)?Ja.Few:Ja.Other;case"cs":case"sk":return 1===e&&0===f?Ja.One:e===Math.floor(e)&&e>=2&&e<=4&&0===f?Ja.Few:0!==f?Ja.Many:Ja.Other;case"cy":return 0===c?Ja.Zero:1===c?Ja.One:2===c?Ja.Two:3===c?Ja.Few:6===c?Ja.Many:Ja.Other;case"da":return 1===c||0!==h&&(0===e||1===e)?Ja.One:Ja.Other;case"dsb":case"hsb":return 0===f&&e%100==1||g%100==1?Ja.One:0===f&&e%100==2||g%100==2?Ja.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?Ja.Few:Ja.Other;case"ff":case"fr":case"hy":case"kab":return 0===e||1===e?Ja.One:Ja.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?Ja.One:Ja.Other;case"ga":return 1===c?Ja.One:2===c?Ja.Two:c===Math.floor(c)&&c>=3&&c<=6?Ja.Few:c===Math.floor(c)&&c>=7&&c<=10?Ja.Many:Ja.Other;case"gd":return 1===c||11===c?Ja.One:2===c||12===c?Ja.Two:c===Math.floor(c)&&(c>=3&&c<=10||c>=13&&c<=19)?Ja.Few:Ja.Other;case"gv":return 0===f&&e%10==1?Ja.One:0===f&&e%10==2?Ja.Two:0!==f||e%100!=0&&e%100!=20&&e%100!=40&&e%100!=60&&e%100!=80?0!==f?Ja.Many:Ja.Other:Ja.Few;case"he":return 1===e&&0===f?Ja.One:2===e&&0===f?Ja.Two:0!==f||c>=0&&c<=10||c%10!=0?Ja.Other:Ja.Many;case"is":return 0===h&&e%10==1&&e%100!=11||0!==h?Ja.One:Ja.Other;case"ksh":return 0===c?Ja.Zero:1===c?Ja.One:Ja.Other;case"kw":case"naq":case"se":case"smn":return 1===c?Ja.One:2===c?Ja.Two:Ja.Other;case"lag":return 0===c?Ja.Zero:0!==e&&1!==e||0===c?Ja.Other:Ja.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)?Ja.Few:0!==g?Ja.Many:Ja.Other:Ja.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?Ja.Zero:c%10==1&&c%100!=11||2===f&&g%10==1&&g%100!=11||2!==f&&g%10==1?Ja.One:Ja.Other;case"mk":return 0===f&&e%10==1||g%10==1?Ja.One:Ja.Other;case"mt":return 1===c?Ja.One:0===c||c%100===Math.floor(c%100)&&c%100>=2&&c%100<=10?Ja.Few:c%100===Math.floor(c%100)&&c%100>=11&&c%100<=19?Ja.Many:Ja.Other;case"pl":return 1===e&&0===f?Ja.One:0===f&&e%10===Math.floor(e%10)&&e%10>=2&&e%10<=4&&!(e%100>=12&&e%100<=14)?Ja.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?Ja.Many:Ja.Other;case"pt":return c===Math.floor(c)&&c>=0&&c<=2&&2!==c?Ja.One:Ja.Other;case"ro":return 1===e&&0===f?Ja.One:0!==f||0===c||1!==c&&c%100===Math.floor(c%100)&&c%100>=1&&c%100<=19?Ja.Few:Ja.Other;case"ru":case"uk":return 0===f&&e%10==1&&e%100!=11?Ja.One:0===f&&e%10===Math.floor(e%10)&&e%10>=2&&e%10<=4&&!(e%100>=12&&e%100<=14)?Ja.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?Ja.Many:Ja.Other;case"shi":return 0===e||1===c?Ja.One:c===Math.floor(c)&&c>=2&&c<=10?Ja.Few:Ja.Other;case"si":return 0===c||1===c||0===e&&1===g?Ja.One:Ja.Other;case"sl":return 0===f&&e%100==1?Ja.One:0===f&&e%100==2?Ja.Two:0===f&&e%100===Math.floor(e%100)&&e%100>=3&&e%100<=4||0!==f?Ja.Few:Ja.Other;case"tzm":return c===Math.floor(c)&&c>=0&&c<=1||c===Math.floor(c)&&c>=11&&c<=99?Ja.One:Ja.Other;default:return Ja.Other}}function E(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 F(a){return a.name||typeof a}function G(a,b,c,d){b=H(c,b)||b;for(var e,f=[];b;){if(!(e=hb.exec(b))){f.push(b);break}f=f.concat(e.slice(1));var g=f.pop();if(!g)break;b=g}var h=a.getTimezoneOffset();d&&(h=T(d,h),a=V(a,d,!0));var i="";return f.forEach(function(b){var d=S(b);i+=d?d(a,c,h):"''"===b?"'":b.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),i}function H(a,b){var c=g(a);if(gb[c]=gb[c]||{},gb[c][b])return gb[c][b];var d="";switch(b){case"shortDate":d=n(a,Ma.Short);break;case"mediumDate":d=n(a,Ma.Medium);break;case"longDate":d=n(a,Ma.Long);break;case"fullDate":d=n(a,Ma.Full);break;case"shortTime":d=o(a,Ma.Short);break;case"mediumTime":d=o(a,Ma.Medium);break;case"longTime":d=o(a,Ma.Long);break;case"fullTime":d=o(a,Ma.Full);break;case"short":var e=H(a,"shortTime"),f=H(a,"shortDate");d=I(p(a,Ma.Short),[e,f]);break;case"medium":var h=H(a,"mediumTime"),i=H(a,"mediumDate");d=I(p(a,Ma.Medium),[h,i]);break;case"long":var j=H(a,"longTime"),k=H(a,"longDate");d=I(p(a,Ma.Long),[j,k]);break;case"full":var l=H(a,"fullTime"),m=H(a,"fullDate");d=I(p(a,Ma.Full),[l,m])}return d&&(gb[c][b]=d),d}function I(a,b){return b&&(a=a.replace(/\{([^}]+)}/g,function(a,c){return null!=b&&c in b?b[c]:a})),a}function J(a,b,c,d,e){void 0===c&&(c="-");var f="";(a<0||e&&a<=0)&&(e?a=1-a:(a=-a,f=c));for(var g=""+a;g.length<b;)g="0"+g;return d&&(g=g.substr(g.length-b)),f+g}function K(a,b,c,d,e){return void 0===c&&(c=0),void 0===d&&(d=!1),void 0===e&&(e=!1),function(f,g){var h=L(a,f,b);return(c>0||h>-c)&&(h+=c),a===jb.Hours&&0===h&&-12===c&&(h=12),J(h,b,q(g,Na.MinusSign),d,e)}}function L(a,b,c){switch(a){case jb.FullYear:return b.getFullYear();case jb.Month:return b.getMonth();case jb.Date:return b.getDate();case jb.Hours:return b.getHours();case jb.Minutes:return b.getMinutes();case jb.Seconds:return b.getSeconds();case jb.Milliseconds:var d=1===c?100:2===c?10:1;return Math.round(b.getMilliseconds()/d);case jb.Day:return b.getDay();default:throw new Error('Unknown DateType value "'+a+'".')}}function M(a,b,c,d){return void 0===c&&(c=Ka.Format),void 0===d&&(d=!1),function(e,f){return N(e,f,a,b,c,d)}}function N(a,b,c,d,e,f){switch(c){case kb.Months:return j(b,e,d)[a.getMonth()];case kb.Days:return i(b,e,d)[a.getDay()];case kb.DayPeriods:var g=a.getHours(),l=a.getMinutes();if(f){var m,n=w(b),o=x(b,e,d);if(n.forEach(function(a,b){if(Array.isArray(a)){var c=a[0],d=c.hours,e=c.minutes,f=a[1],h=f.hours,i=f.minutes;g>=d&&l>=e&&(g<h||g===h&&l<i)&&(m=o[b])}else{var j=a.hours,k=a.minutes;j===g&&k===l&&(m=o[b])}}),m)return m}return h(b,e,d)[g<12?0:1];case kb.Eras:return k(b,d)[a.getFullYear()<=0?0:1]}}function O(a){return function(b,c,d){var e=-1*d,f=q(c,Na.MinusSign),g=e>0?Math.floor(e/60):Math.ceil(e/60);switch(a){case ib.Short:return(e>=0?"+":"")+J(g,2,f)+J(Math.abs(e%60),2,f);case ib.ShortGMT:return"GMT"+(e>=0?"+":"")+J(g,1,f);case ib.Long:return"GMT"+(e>=0?"+":"")+J(g,2,f)+":"+J(Math.abs(e%60),2,f);case ib.Extended:return 0===d?"Z":(e>=0?"+":"")+J(g,2,f)+":"+J(Math.abs(e%60),2,f);default:throw new Error('Unknown zone width "'+a+'"')}}}function P(a){var b=new Date(a,lb,1).getDay();return new Date(a,0,1+(b<=mb?mb:mb+7)-b)}function Q(a){return new Date(a.getFullYear(),a.getMonth(),a.getDate()+(mb-a.getDay()))}function R(a,b){return void 0===b&&(b=!1),function(c,d){var e;if(b){var f=new Date(c.getFullYear(),c.getMonth(),1).getDay()-1,g=c.getDate();e=1+Math.floor((g+f)/7)}else{var h=P(c.getFullYear()),i=Q(c),j=i.getTime()-h.getTime();e=1+Math.round(j/6048e5)}return J(e,a,q(d,Na.MinusSign))}}function S(a){if(nb[a])return nb[a];var b;switch(a){case"G":case"GG":case"GGG":b=M(kb.Eras,La.Abbreviated);break;case"GGGG":b=M(kb.Eras,La.Wide);break;case"GGGGG":b=M(kb.Eras,La.Narrow);break;case"y":b=K(jb.FullYear,1,0,!1,!0);break;case"yy":b=K(jb.FullYear,2,0,!0,!0);break;case"yyy":b=K(jb.FullYear,3,0,!1,!0);break;case"yyyy":b=K(jb.FullYear,4,0,!1,!0);break;case"M":case"L":b=K(jb.Month,1,1);break;case"MM":case"LL":b=K(jb.Month,2,1);break;case"MMM":b=M(kb.Months,La.Abbreviated);break;case"MMMM":b=M(kb.Months,La.Wide);break;case"MMMMM":b=M(kb.Months,La.Narrow);break;case"LLL":b=M(kb.Months,La.Abbreviated,Ka.Standalone);break;case"LLLL":b=M(kb.Months,La.Wide,Ka.Standalone);break;case"LLLLL":b=M(kb.Months,La.Narrow,Ka.Standalone);break;case"w":b=R(1);break;case"ww":b=R(2);break;case"W":b=R(1,!0);break;case"d":b=K(jb.Date,1);break;case"dd":b=K(jb.Date,2);break;case"E":case"EE":case"EEE":b=M(kb.Days,La.Abbreviated);break;case"EEEE":b=M(kb.Days,La.Wide);break;case"EEEEE":b=M(kb.Days,La.Narrow);break;case"EEEEEE":b=M(kb.Days,La.Short);break;case"a":case"aa":case"aaa":b=M(kb.DayPeriods,La.Abbreviated);break;case"aaaa":b=M(kb.DayPeriods,La.Wide);break;case"aaaaa":b=M(kb.DayPeriods,La.Narrow);break;case"b":case"bb":case"bbb":b=M(kb.DayPeriods,La.Abbreviated,Ka.Standalone,!0);break;case"bbbb":b=M(kb.DayPeriods,La.Wide,Ka.Standalone,!0);break;case"bbbbb":b=M(kb.DayPeriods,La.Narrow,Ka.Standalone,!0);break;case"B":case"BB":case"BBB":b=M(kb.DayPeriods,La.Abbreviated,Ka.Format,!0);break;case"BBBB":b=M(kb.DayPeriods,La.Wide,Ka.Format,!0);break;case"BBBBB":b=M(kb.DayPeriods,La.Narrow,Ka.Format,!0);break;case"h":b=K(jb.Hours,1,-12);break;case"hh":b=K(jb.Hours,2,-12);break;case"H":b=K(jb.Hours,1);break;case"HH":b=K(jb.Hours,2);break;case"m":b=K(jb.Minutes,1);break;case"mm":b=K(jb.Minutes,2);break;case"s":b=K(jb.Seconds,1);break;case"ss":b=K(jb.Seconds,2);break;case"S":b=K(jb.Milliseconds,1);break;case"SS":b=K(jb.Milliseconds,2);break;case"SSS":b=K(jb.Milliseconds,3);break;case"Z":case"ZZ":case"ZZZ":b=O(ib.Short);break;case"ZZZZZ":b=O(ib.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":b=O(ib.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":b=O(ib.Long);break;default:return null}return nb[a]=b,b}function T(a,b){a=a.replace(/:/g,"");var c=Date.parse("Jan 01, 1970 00:00:00 "+a)/6e4;return isNaN(c)?b:c}function U(a,b){return a=new Date(a.getTime()),a.setMinutes(a.getMinutes()+b),a}function V(a,b,c){var d=c?-1:1,e=a.getTimezoneOffset();return U(a,d*(T(b,e)-e))}function W(a,c){return Error("InvalidPipeArgument: '"+c+"' for pipe '"+b.ɵstringify(a)+"'")}function X(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=+(a[9]+a[10]),d=+(a[9]+a[11])),e.call(b,+a[1],+a[2]-1,+a[3]);var g=+(a[4]||"0")-c,h=+(a[5]||"0")-d,i=+(a[6]||"0"),j=Math.round(1e3*parseFloat("0."+(a[7]||0)));return f.call(b,g,h,i,j),b}function Y(a){return a instanceof Date&&!isNaN(a.valueOf())}function Z(a){return function(b,c){var d=a(b,c);return 1==d.length?"0"+d:d}}function $(a){return function(b,c){return a(b,c).split(" ")[1]}}function _(a){return function(b,c){return a(b,c).split(" ")[0]}}function aa(a,b,c){return new Intl.DateTimeFormat(b,c).format(a).replace(/[\u200e\u200f]/g,"")}function ba(a){var b={hour:"2-digit",hour12:!1,timeZoneName:a};return function(a,c){var d=aa(a,c,b);return d?d.substring(3):""}}function ca(a,b){return a.hour12=b,a}function da(a,b){var c={};return c[a]=2===b?"2-digit":"numeric",c}function ea(a,b){var c={};return c[a]=b<4?b>1?"short":"narrow":"long",c}function fa(a){return a.reduce(function(a,b){return xa({},a,b)},{})}function ga(a){return function(b,c){return aa(b,c,a)}}function ha(a,b,c){var d=sb[a];if(d)return d(b,c);var e=a,f=ub.get(e);if(!f){f=[];var g=void 0;rb.exec(a);for(var h=a;h;)g=rb.exec(h),g?(f=f.concat(g.slice(1)),h=f.pop()):(f.push(h),h=null);ub.set(e,f)}return f.reduce(function(a,d){var e=tb[d];return a+(e?e(b,c):ia(d))},"")}function ia(a){return"''"===a?"'":a.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function ja(a){return a instanceof Date&&!isNaN(a.valueOf())}function ka(a,b,c,d,e){void 0===e&&(e=null);var f,g={str:null},h=r(b,c);if("string"!=typeof a||isNaN(+a-parseFloat(a))){if("number"!=typeof a)return g.error=a+" is not a number",g;f=a}else f=+a;c===Ia.Percent&&(f*=100);var i=Math.abs(f)+"",j=la(h,q(b,Na.MinusSign)),k="",l=!1;if(isFinite(f)){var m=ma(i),n=j.minInt,o=j.minFrac,p=j.maxFrac;if(d){var s=d.match(xb);if(null===s)return g.error=d+" is not a valid digit info",g;var t=s[1],u=s[3],v=s[5];null!=t&&(n=oa(t)),null!=u&&(o=oa(u)),null!=v?p=oa(v):null!=u&&o>p&&(p=o)}na(m,o,p);var w=m.digits,x=m.integerLen,y=m.exponent,z=[];for(l=w.every(function(a){return!a});x<n;x++)w.unshift(0);for(;x<0;x++)w.unshift(0);x>0?z=w.splice(x,w.length):(z=w,w=[0]);var A=[];for(w.length>=j.lgSize&&A.unshift(w.splice(-j.lgSize,w.length).join(""));w.length>j.gSize;)A.unshift(w.splice(-j.gSize,w.length).join(""));w.length&&A.unshift(w.join(""));var B=e?Na.CurrencyGroup:Na.Group;if(k=A.join(q(b,B)),z.length){k+=q(b,e?Na.CurrencyDecimal:Na.Decimal)+z.join("")}y&&(k+=q(b,Na.Exponential)+"+"+y)}else k=q(b,Na.Infinity);return k=f<0&&!l?j.negPre+k+j.negSuf:j.posPre+k+j.posSuf,c===Ia.Currency&&null!==e?(g.str=k.replace(Eb,e).replace(Eb,""),g):c===Ia.Percent?(g.str=k.replace(new RegExp(Fb,"g"),q(b,Na.PercentSign)),g):(g.str=k,g)}function la(a,b){void 0===b&&(b="-");var c={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},d=a.split(Bb),e=d[0],f=d[1],g=-1!==e.indexOf(zb)?e.split(zb):[e.substring(0,e.lastIndexOf(Ab)+1),e.substring(e.lastIndexOf(Ab)+1)],h=g[0],i=g[1]||"";c.posPre=h.substr(0,h.indexOf(Db));for(var j=0;j<i.length;j++){var k=i.charAt(j);k===Ab?c.minFrac=c.maxFrac=j+1:k===Db?c.maxFrac=j+1:c.posSuf+=k}var l=h.split(Cb);if(c.gSize=l[1]?l[1].length:0,c.lgSize=l[2]||l[1]?(l[2]||l[1]).length:0,f){var m=e.length-c.posPre.length-c.posSuf.length,n=f.indexOf(Db);c.negPre=f.substr(0,n).replace(/'/g,""),c.negSuf=f.substr(n+m).replace(/'/g,"")}else c.negPre=b+c.posPre,c.negSuf=c.posSuf;return c}function ma(a){var b,c,d,e,f,g=0;for((c=a.indexOf(zb))>-1&&(a=a.replace(zb,"")),(d=a.search(/e/i))>0?(c<0&&(c=d),c+=+a.slice(d+1),a=a.substring(0,d)):c<0&&(c=a.length),d=0;a.charAt(d)===Ab;d++);if(d===(f=a.length))b=[0],c=1;else{for(f--;a.charAt(f)===Ab;)f--;for(c-=d,b=[],e=0;d<=f;d++,e++)b[e]=+a.charAt(d)}return c>yb&&(b=b.splice(0,yb-1),g=c-1,c=1),{digits:b,exponent:g,integerLen:c}}function na(a,b,c){if(b>c)throw new Error("The minimum number of digits after fraction ("+b+") is higher than the maximum ("+c+").");var d=a.digits,e=d.length-a.integerLen,f=Math.min(Math.max(b,e),c),g=f+a.integerLen,h=d[g];if(g>0){d.splice(Math.max(a.integerLen,g));for(var i=g;i<d.length;i++)d[i]=0}else{e=Math.max(0,e),a.integerLen=1,d.length=Math.max(1,g=f+1),d[0]=0;for(var j=1;j<g;j++)d[j]=0}if(h>=5)if(g-1<0){for(var k=0;k>g;k--)d.unshift(0),a.integerLen++;d.unshift(1),a.integerLen++}else d[g-1]++;for(;e<Math.max(0,f);e++)d.push(0);var l=d.reduceRight(function(a,b,c,d){return b+=a,d[c]=b%10,Math.floor(b/10)},0);l&&(d.unshift(l),a.integerLen++)}function oa(a){var b=parseInt(a);if(isNaN(b))throw new Error("Invalid integer literal when parsing "+a);return b}function pa(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||isNaN(+c-parseFloat(c))?c:+c))throw W(a,c);var h,i,j;if(d!==Ia.Currency&&(h=1,i=0,j=3),e){var k=e.match(xb);if(null===k)throw new Error(e+" is not a valid digit info for number pipes");null!=k[1]&&(h=oa(k[1])),null!=k[3]&&(i=oa(k[3])),null!=k[5]&&(j=oa(k[5]))}return qb.format(c,b,d,{minimumIntegerDigits:h,minimumFractionDigits:i,maximumFractionDigits:j,currency:f,currencyAsSymbol:g})}function qa(a){return a?a[0].toUpperCase()+a.substr(1).toLowerCase():a}function ra(a){return null==a||""===a||a!==a}function sa(a){return a===dc}function ta(a){return a===ec}function ua(a){return a===fc}function va(a){return a===gc}var wa=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])},xa=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++){b=arguments[c];for(var e in b)Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e])}return a},ya=function(){function a(){}return a}(),za=new b.InjectionToken("Location Initialized"),Aa=function(){function a(){}return a}(),Ba=new b.InjectionToken("appBaseHref"),Ca=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.decorators=[{type:b.Injectable}],a.ctorParameters=function(){return[{type:Aa}]},a}(),Da=function(a){function d(b,c){var d=a.call(this)||this;return d._platformLocation=b,d._baseHref="",null!=c&&(d._baseHref=c),d}return c(d,a),d.prototype.onPopState=function(a){this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a)},d.prototype.getBaseHref=function(){return this._baseHref},d.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},d.prototype.prepareExternalUrl=function(a){var b=Ca.joinWithSlash(this._baseHref,a);return b.length>0?"#"+b:b},d.prototype.pushState=function(a,b,c,d){var e=this.prepareExternalUrl(c+Ca.normalizeQueryParams(d));0==e.length&&(e=this._platformLocation.pathname),this._platformLocation.pushState(a,b,e)},d.prototype.replaceState=function(a,b,c,d){var e=this.prepareExternalUrl(c+Ca.normalizeQueryParams(d));0==e.length&&(e=this._platformLocation.pathname),this._platformLocation.replaceState(a,b,e)},d.prototype.forward=function(){this._platformLocation.forward()},d.prototype.back=function(){this._platformLocation.back()},d.decorators=[{type:b.Injectable}],d.ctorParameters=function(){return[{type:ya},{type:void 0,decorators:[{type:b.Optional},{type:b.Inject,args:[Ba]}]}]},d}(Aa),Ea=function(a){function d(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(d,a),d.prototype.onPopState=function(a){this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a)},d.prototype.getBaseHref=function(){return this._baseHref},d.prototype.prepareExternalUrl=function(a){return Ca.joinWithSlash(this._baseHref,a)},d.prototype.path=function(a){void 0===a&&(a=!1);var b=this._platformLocation.pathname+Ca.normalizeQueryParams(this._platformLocation.search),c=this._platformLocation.hash;return c&&a?""+b+c:b},d.prototype.pushState=function(a,b,c,d){var e=this.prepareExternalUrl(c+Ca.normalizeQueryParams(d));this._platformLocation.pushState(a,b,e)},d.prototype.replaceState=function(a,b,c,d){var e=this.prepareExternalUrl(c+Ca.normalizeQueryParams(d));this._platformLocation.replaceState(a,b,e)},d.prototype.forward=function(){this._platformLocation.forward()},d.prototype.back=function(){this._platformLocation.back()},d.decorators=[{type:b.Injectable}],d.ctorParameters=function(){return[{type:ya},{type:void 0,decorators:[{type:b.Optional},{type:b.Inject,args:[Ba]}]}]},d}(Aa),Fa={AOA:[,"Kz"],ARS:[,"$"],AUD:["A$","$"],BAM:[,"KM"],BBD:[,"$"],BDT:[,"৳"],BMD:[,"$"],BND:[,"$"],BOB:[,"Bs"],BRL:["R$"],BSD:[,"$"],BWP:[,"P"],BYN:[,"р."],BZD:[,"$"],CAD:["CA$","$"],CLP:[,"$"],CNY:["CN¥","¥"],COP:[,"$"],CRC:[,"₡"],CUC:[,"$"],CUP:[,"$"],CZK:[,"Kč"],DKK:[,"kr"],DOP:[,"$"],EGP:[,"E£"],ESP:[,"₧"],EUR:["€"],FJD:[,"$"],FKP:[,"£"],GBP:["£"],GEL:[,"₾"],GIP:[,"£"],GNF:[,"FG"],GTQ:[,"Q"],GYD:[,"$"],HKD:["HK$","$"],HNL:[,"L"],HRK:[,"kn"],HUF:[,"Ft"],IDR:[,"Rp"],ILS:["₪"],INR:["₹"],ISK:[,"kr"],JMD:[,"$"],JPY:["¥"],KHR:[,"៛"],KMF:[,"CF"],KPW:[,"₩"],KRW:["₩"],KYD:[,"$"],KZT:[,"₸"],LAK:[,"₭"],LBP:[,"L£"],LKR:[,"Rs"],LRD:[,"$"],LTL:[,"Lt"],LVL:[,"Ls"],MGA:[,"Ar"],MMK:[,"K"],MNT:[,"₮"],MUR:[,"Rs"],MXN:["MX$","$"],MYR:[,"RM"],NAD:[,"$"],NGN:[,"₦"],NIO:[,"C$"],NOK:[,"kr"],NPR:[,"Rs"],NZD:["NZ$","$"],PHP:[,"₱"],PKR:[,"Rs"],PLN:[,"zł"],PYG:[,"₲"],RON:[,"lei"],RUB:[,"₽"],RUR:[,"р."],RWF:[,"RF"],SBD:[,"$"],SEK:[,"kr"],SGD:[,"$"],SHP:[,"£"],SRD:[,"$"],SSP:[,"£"],STD:[,"Db"],SYP:[,"£"],THB:[,"฿"],TOP:[,"T$"],TRY:[,"₺"],TTD:[,"$"],TWD:["NT$","$"],UAH:[,"₴"],USD:["$"],UYU:[,"$"],VEF:[,"Bs"],VND:["₫"],XAF:["FCFA"],XCD:["EC$","$"],XOF:["CFA"],XPF:["CFPF"],ZAR:[,"R"],ZMW:[,"ZK"]},Ga=["en",[["a","p"],["AM","PM"]],[["AM","PM"],,],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",,"{1} 'at' {0}"],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"$","US Dollar",function(a){var b=Math.floor(Math.abs(a)),c=a.toString().replace(/^[^.]*\.?/,"").length;return 1===b&&0===c?1:5}],Ha={},Ia={Decimal:0,Percent:1,Currency:2,Scientific:3};Ia[Ia.Decimal]="Decimal",Ia[Ia.Percent]="Percent",Ia[Ia.Currency]="Currency",Ia[Ia.Scientific]="Scientific";var Ja={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};Ja[Ja.Zero]="Zero",Ja[Ja.One]="One",Ja[Ja.Two]="Two",Ja[Ja.Few]="Few",Ja[Ja.Many]="Many",Ja[Ja.Other]="Other";var Ka={Format:0,Standalone:1};Ka[Ka.Format]="Format",Ka[Ka.Standalone]="Standalone";var La={Narrow:0,Abbreviated:1,Wide:2,Short:3};La[La.Narrow]="Narrow",La[La.Abbreviated]="Abbreviated",La[La.Wide]="Wide",La[La.Short]="Short";var Ma={Short:0,Medium:1,Long:2,Full:3};Ma[Ma.Short]="Short",Ma[Ma.Medium]="Medium",Ma[Ma.Long]="Long",Ma[Ma.Full]="Full";var Na={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};Na[Na.Decimal]="Decimal",Na[Na.Group]="Group",Na[Na.List]="List",Na[Na.PercentSign]="PercentSign",Na[Na.PlusSign]="PlusSign",Na[Na.MinusSign]="MinusSign",Na[Na.Exponential]="Exponential",Na[Na.SuperscriptingExponent]="SuperscriptingExponent",Na[Na.PerMille]="PerMille",Na[Na.Infinity]="Infinity",Na[Na.NaN]="NaN",Na[Na.TimeSeparator]="TimeSeparator",Na[Na.CurrencyDecimal]="CurrencyDecimal",Na[Na.CurrencyGroup]="CurrencyGroup";var Oa={Sunday:0,Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6};Oa[Oa.Sunday]="Sunday",Oa[Oa.Monday]="Monday",Oa[Oa.Tuesday]="Tuesday",Oa[Oa.Wednesday]="Wednesday",Oa[Oa.Thursday]="Thursday",Oa[Oa.Friday]="Friday",Oa[Oa.Saturday]="Saturday";var Pa=new b.InjectionToken("UseV4Plurals"),Qa=function(){function a(){}return a}(),Ra=function(a){function d(b,c){var d=a.call(this)||this;return d.locale=b,d.deprecatedPluralFn=c,d}return c(d,a),d.prototype.getPluralCategory=function(a,b){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(b||this.locale,a):u(b||this.locale)(a)){case Ja.Zero:return"zero";case Ja.One:return"one";case Ja.Two:return"two";case Ja.Few:return"few";case Ja.Many:return"many";default:return"other"}},d.decorators=[{type:b.Injectable}],d.ctorParameters=function(){return[{type:void 0,decorators:[{type:b.Inject,args:[b.LOCALE_ID]}]},{type:void 0,decorators:[{type:b.Optional},{type:b.Inject,args:[Pa]}]}]},d}(Qa),Sa=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){b?c._renderer.addClass(c._ngEl.nativeElement,a):c._renderer.removeClass(c._ngEl.nativeElement,a)})},a.decorators=[{type:b.Directive,args:[{selector:"[ngClass]"}]}],a.ctorParameters=function(){return[{type:b.IterableDiffers},{type:b.KeyValueDiffers},{type:b.ElementRef},{type:b.Renderer2}]},a.propDecorators={klass:[{type:b.Input,args:["class"]}],ngClass:[{type:b.Input}]},a}(),Ta=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.decorators=[{type:b.Directive,args:[{selector:"[ngComponentOutlet]"}]}],a.ctorParameters=function(){return[{type:b.ViewContainerRef}]},a.propDecorators={ngComponentOutlet:[{type:b.Input}],ngComponentOutletInjector:[{type:b.Input}],ngComponentOutletContent:[{type:b.Input}],ngComponentOutletNgModuleFactory:[{type:b.Input}]},a}(),Ua=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}(),Va=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 '"+F(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 Ua(null,b.ngForOf,-1,-1),e),g=new Wa(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 Wa(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.decorators=[{type:b.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],a.ctorParameters=function(){return[{type:b.ViewContainerRef},{type:b.TemplateRef},{type:b.IterableDiffers}]},a.propDecorators={ngForOf:[{type:b.Input}],ngForTrackBy:[{type:b.Input}],ngForTemplate:[{type:b.Input}]},a}(),Wa=function(){function a(a,b){this.record=a,this.view=b}return a}(),Xa=function(){function a(a,b){this._viewContainer=a,this._context=new Ya,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.decorators=[{type:b.Directive,args:[{selector:"[ngIf]"}]}],a.ctorParameters=function(){return[{type:b.ViewContainerRef},{type:b.TemplateRef}]},a.propDecorators={ngIf:[{type:b.Input}],ngIfThen:[{type:b.Input}],ngIfElse:[{type:b.Input}]},a}(),Ya=function(){function a(){this.$implicit=null,this.ngIf=null}return a}(),Za=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}(),$a=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.decorators=[{type:b.Directive,args:[{selector:"[ngSwitch]"}]}],a.ctorParameters=function(){return[]},a.propDecorators={ngSwitch:[{type:b.Input}]},a}(),_a=function(){function a(a,b,c){this.ngSwitch=c,c._addCase(),this._view=new Za(a,b)}return a.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},a.decorators=[{type:b.Directive,args:[{selector:"[ngSwitchCase]"}]}],a.ctorParameters=function(){return[{type:b.ViewContainerRef},{type:b.TemplateRef},{type:$a,decorators:[{type:b.Host}]}]},a.propDecorators={ngSwitchCase:[{type:b.Input}]},a}(),ab=function(){function a(a,b,c){c._addDefault(new Za(a,b))}return a.decorators=[{type:b.Directive,args:[{selector:"[ngSwitchDefault]"}]}],a.ctorParameters=function(){return[{type:b.ViewContainerRef},{type:b.TemplateRef},{type:$a,decorators:[{type:b.Host}]}]},a}(),bb=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=C(this._switchValue,a,this._localization);this._activateView(this._caseViews[b])},a.prototype._clearViews=function(){this._activeView&&this._activeView.destroy()},a.prototype._activateView=function(a){a&&(this._activeView=a,this._activeView.create())},a.decorators=[{type:b.Directive,args:[{selector:"[ngPlural]"}]}],a.ctorParameters=function(){return[{type:Qa}]},a.propDecorators={ngPlural:[{type:b.Input}]},a}(),cb=function(){function a(a,b,c,d){this.value=a;var e=!isNaN(Number(a));d.addCase(e?"="+a:a,new Za(c,b))}return a.decorators=[{type:b.Directive,args:[{selector:"[ngPluralCase]"}]}],a.ctorParameters=function(){return[{type:void 0,decorators:[{type:b.Attribute,args:["ngPluralCase"]}]},{type:b.TemplateRef},{type:b.ViewContainerRef},{type:bb,decorators:[{type:b.Host}]}]},a}(),db=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.setStyle(this._ngEl.nativeElement,d,b)},a.decorators=[{type:b.Directive,args:[{selector:"[ngStyle]"}]}],a.ctorParameters=function(){return[{type:b.KeyValueDiffers},{type:b.ElementRef},{type:b.Renderer2}]},a.propDecorators={ngStyle:[{type:b.Input}]},a}(),eb=function(){function a(a){this._viewContainerRef=a}return a.prototype.ngOnChanges=function(a){this._shouldRecreateView(a)?(this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))):this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)},a.prototype._shouldRecreateView=function(a){var b=a.ngTemplateOutletContext;return!!a.ngTemplateOutlet||b&&this._hasContextShapeChanged(b)},a.prototype._hasContextShapeChanged=function(a){var b=Object.keys(a.previousValue||{}),c=Object.keys(a.currentValue||{});if(b.length===c.length){for(var d=0,e=c;d<e.length;d++){var f=e[d];if(-1===b.indexOf(f))return!0}return!1}return!0},a.prototype._updateExistingContext=function(a){for(var b=0,c=Object.keys(a);b<c.length;b++){var d=c[b];this._viewRef.context[d]=this.ngTemplateOutletContext[d]}},a.decorators=[{type:b.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],a.ctorParameters=function(){return[{type:b.ViewContainerRef}]},a.propDecorators={ngTemplateOutletContext:[{type:b.Input}],ngTemplateOutlet:[{type:b.Input}]},a}(),fb=[Sa,Ta,Va,Xa,eb,db,$a,_a,ab,bb,cb],gb={},hb=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,ib={Short:0,ShortGMT:1,Long:2,Extended:3};ib[ib.Short]="Short",ib[ib.ShortGMT]="ShortGMT",ib[ib.Long]="Long",ib[ib.Extended]="Extended";var jb={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,Milliseconds:6,Day:7};jb[jb.FullYear]="FullYear",jb[jb.Month]="Month",jb[jb.Date]="Date",jb[jb.Hours]="Hours",jb[jb.Minutes]="Minutes",jb[jb.Seconds]="Seconds",jb[jb.Milliseconds]="Milliseconds",jb[jb.Day]="Day";var kb={DayPeriods:0,Days:1,Months:2,Eras:3};kb[kb.DayPeriods]="DayPeriods",kb[kb.Days]="Days",kb[kb.Months]="Months",kb[kb.Eras]="Eras";var lb=0,mb=4,nb={},ob=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,pb=function(){function a(a){this.locale=a}return a.prototype.transform=function(b,c,d,e){if(void 0===c&&(c="mediumDate"),null==b||""===b||b!==b)return null;"string"==typeof b&&(b=b.trim());var f;if(Y(b))f=b;else if(isNaN(b-parseFloat(b)))if("string"==typeof b&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(b)){var g=b.split("-").map(function(a){return+a}),h=g[0],i=g[1],j=g[2];f=new Date(h,i-1,j)}else f=new Date(b);else f=new Date(parseFloat(b));if(!Y(f)){var k=void 0;if("string"!=typeof b||!(k=b.match(ob)))throw W(a,b);f=X(k)}return G(f,c,e||this.locale,d)},a.decorators=[{type:b.Pipe,args:[{name:"date",pure:!0}]}],a.ctorParameters=function(){return[{type:void 0,decorators:[{type:b.Inject,args:[b.LOCALE_ID]}]}]},a}(),qb=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:Ia[c].toLowerCase()};return c==Ia.Currency&&(k.currency="string"==typeof h?h:void 0,k.currencyDisplay=j?"symbol":"code"),new Intl.NumberFormat(b,k).format(a)},a}(),rb=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,sb={yMMMdjms:ga(fa([da("year",1),ea("month",3),da("day",1),da("hour",1),da("minute",1),da("second",1)])),yMdjm:ga(fa([da("year",1),da("month",1),da("day",1),da("hour",1),da("minute",1)])),yMMMMEEEEd:ga(fa([da("year",1),ea("month",4),ea("weekday",4),da("day",1)])),yMMMMd:ga(fa([da("year",1),ea("month",4),da("day",1)])),yMMMd:ga(fa([da("year",1),ea("month",3),da("day",1)])),yMd:ga(fa([da("year",1),da("month",1),da("day",1)])),jms:ga(fa([da("hour",1),da("second",1),da("minute",1)])),jm:ga(fa([da("hour",1),da("minute",1)]))},tb={yyyy:ga(da("year",4)),yy:ga(da("year",2)),y:ga(da("year",1)),MMMM:ga(ea("month",4)),MMM:ga(ea("month",3)),MM:ga(da("month",2)),M:ga(da("month",1)),LLLL:ga(ea("month",4)),L:ga(ea("month",1)),dd:ga(da("day",2)),d:ga(da("day",1)),HH:Z(_(ga(ca(da("hour",2),!1)))),H:_(ga(ca(da("hour",1),!1))),hh:Z(_(ga(ca(da("hour",2),!0)))),h:_(ga(ca(da("hour",1),!0))),jj:ga(da("hour",2)),j:ga(da("hour",1)),mm:Z(ga(da("minute",2))),m:ga(da("minute",1)),ss:Z(ga(da("second",2))),s:ga(da("second",1)),sss:ga(da("second",3)),EEEE:ga(ea("weekday",4)),EEE:ga(ea("weekday",3)),EE:ga(ea("weekday",2)),E:ga(ea("weekday",1)),a:$(ga(ca(da("hour",1),!0))),Z:ba("short"),z:ba("long"),ww:ga({}),w:ga({}),G:ga(ea("era",1)),GG:ga(ea("era",2)),GGG:ga(ea("era",3)),GGGG:ga(ea("era",4))},ub=new Map,vb=function(){function a(){}return a.format=function(a,b,c){return ha(c,a,b)},a}(),wb=function(){function a(a){this._locale=a}return a.prototype.transform=function(b,c){if(void 0===c&&(c="mediumDate"),null==b||""===b||b!==b)return null;var d;if("string"==typeof b&&(b=b.trim()),ja(b))d=b;else if(isNaN(b-parseFloat(b)))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);else d=new Date(parseFloat(b));if(!ja(d)){var i=void 0;if("string"!=typeof b||!(i=b.match(ob)))throw W(a,b);d=X(i)}return vb.format(d,this._locale,a._ALIASES[c]||c)},a._ALIASES={medium:"yMMMdjms",short:"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},a.decorators=[{type:b.Pipe,args:[{name:"date",pure:!0}]}],a.ctorParameters=function(){return[{type:void 0,decorators:[{type:b.Inject,args:[b.LOCALE_ID]}]}]},a}(),xb=/^(\d+)?\.((\d+)(-(\d+))?)?$/,yb=22,zb=".",Ab="0",Bb=";",Cb=",",Db="#",Eb="¤",Fb="%",Gb=function(){function a(a){this._locale=a}return a.prototype.transform=function(b,c){return pa(a,this._locale,b,Ia.Decimal,c)},a.decorators=[{type:b.Pipe,args:[{name:"number"}]}],a.ctorParameters=function(){return[{type:void 0,decorators:[{type:b.Inject,args:[b.LOCALE_ID]}]}]},a}(),Hb=function(){function a(a){this._locale=a}return a.prototype.transform=function(b,c){return pa(a,this._locale,b,Ia.Percent,c)},a.decorators=[{type:b.Pipe,args:[{name:"percent"}]}],a.ctorParameters=function(){return[{type:void 0,decorators:[{type:b.Inject,args:[b.LOCALE_ID]}]}]},a}(),Ib=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),pa(a,this._locale,b,Ia.Currency,e,c,d)},a.decorators=[{type:b.Pipe,args:[{name:"currency"}]}],a.ctorParameters=function(){return[{type:void 0,decorators:[{type:b.Inject,args:[b.LOCALE_ID]}]}]},a}(),Jb=[Gb,Hb,Ib,wb],Kb=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}(),Lb=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}(),Mb=new Lb,Nb=new Kb,Ob=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 Mb;if(b.ɵisObservable(c))return Nb;throw W(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.decorators=[{type:b.Pipe,args:[{name:"async",pure:!1}]}],a.ctorParameters=function(){return[{type:b.ChangeDetectorRef}]},a}(),Pb=function(){function a(){}return a.prototype.transform=function(b){if(!b)return b;if("string"!=typeof b)throw W(a,b);return b.toLowerCase()},a.decorators=[{type:b.Pipe,args:[{name:"lowercase"}]}],a.ctorParameters=function(){return[]},a}(),Qb=function(){function a(){}return a.prototype.transform=function(b){if(!b)return b;if("string"!=typeof b)throw W(a,b);return b.split(/\b/g).map(function(a){return qa(a)}).join("")},a.decorators=[{type:b.Pipe,args:[{name:"titlecase"}]}],a.ctorParameters=function(){return[]},a}(),Rb=function(){function a(){}return a.prototype.transform=function(b){if(!b)return b;if("string"!=typeof b)throw W(a,b);return b.toUpperCase()},a.decorators=[{type:b.Pipe,args:[{name:"uppercase"}]}],a.ctorParameters=function(){return[]},a}(),Sb=/#/g,Tb=function(){function a(a){this._localization=a}return a.prototype.transform=function(b,c,d){if(null==b)return"";if("object"!=typeof c||null===c)throw W(a,c);return c[C(b,Object.keys(c),this._localization,d)].replace(Sb,b.toString())},a.decorators=[{type:b.Pipe,args:[{name:"i18nPlural",pure:!0}]}],a.ctorParameters=function(){return[{type:Qa}]},a}(),Ub=function(){function a(){}return a.prototype.transform=function(b,c){if(null==b)return"";if("object"!=typeof c||"string"!=typeof b)throw W(a,c);return c.hasOwnProperty(b)?c[b]:c.hasOwnProperty("other")?c.other:""},a.decorators=[{type:b.Pipe,args:[{name:"i18nSelect",pure:!0}]}],a.ctorParameters=function(){return[]},a}(),Vb=function(){function a(){}return a.prototype.transform=function(a){return JSON.stringify(a,null,2)},a.decorators=[{type:b.Pipe,args:[{name:"json",pure:!1}]}],a.ctorParameters=function(){return[]},a}(),Wb=function(){function a(a){this._locale=a}return a.prototype.transform=function(b,c,d){if(ra(b))return null;d=d||this._locale;var e=ka(b,d,Ia.Decimal,c),f=e.str,g=e.error;if(g)throw W(a,g);return f},a.decorators=[{type:b.Pipe,args:[{name:"number"}]}],a.ctorParameters=function(){return[{type:void 0,decorators:[{type:b.Inject,args:[b.LOCALE_ID]}]}]},a}(),Xb=function(){function a(a){this._locale=a}return a.prototype.transform=function(b,c,d){if(ra(b))return null;d=d||this._locale;var e=ka(b,d,Ia.Percent,c),f=e.str,g=e.error;if(g)throw W(a,g);return f},a.decorators=[{type:b.Pipe,args:[{name:"percent"}]}],a.ctorParameters=function(){return[{type:void 0,decorators:[{type:b.Inject,args:[b.LOCALE_ID]}]}]},a}(),Yb=function(){function a(a){this._locale=a}return a.prototype.transform=function(b,c,d,e,f){if(void 0===d&&(d="symbol"),ra(b))return null;f=f||this._locale,"boolean"==typeof d&&(console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),d=d?"symbol":"code");var g=c||"USD";"code"!==d&&(g=B(g,"symbol"===d?"wide":"narrow"));var h=ka(b,f,Ia.Currency,e,g),i=h.str,j=h.error;if(j)throw W(a,j);return i},a.decorators=[{type:b.Pipe,args:[{name:"currency"}]}],a.ctorParameters=function(){return[{type:void 0,decorators:[{type:b.Inject,args:[b.LOCALE_ID]}]}]},a}(),Zb=function(){function a(){}return a.prototype.transform=function(b,c,d){if(null==b)return b;if(!this.supports(b))throw W(a,b);return b.slice(c,d)},a.prototype.supports=function(a){return"string"==typeof a||Array.isArray(a)},a.decorators=[{type:b.Pipe,args:[{name:"slice",pure:!1}]}],a.ctorParameters=function(){return[]},a}(),$b=[Ob,Rb,Pb,Vb,Zb,Wb,Xb,Qb,Yb,pb,Tb,Ub],_b=function(){function a(){}return a.decorators=[{type:b.NgModule,args:[{declarations:[fb,$b],exports:[fb,$b],providers:[{provide:Qa,useClass:Ra}]}]}],a.ctorParameters=function(){return[]},a}(),ac=D,bc=function(){function a(){}return a.decorators=[{type:b.NgModule,args:[{declarations:[Jb],exports:[Jb],providers:[{provide:Pa,useValue:ac}]}]}],a.ctorParameters=function(){return[]},a}(),cc=new b.InjectionToken("DocumentToken"),dc="browser",ec="server",fc="browserWorkerApp",gc="browserWorkerUi",hc=new b.Version("5.1.0");a.NgLocaleLocalization=Ra,a.NgLocalization=Qa,a.registerLocaleData=f,a.Plural=Ja,a.NumberFormatStyle=Ia,a.FormStyle=Ka,a.TranslationWidth=La,a.FormatWidth=Ma,a.NumberSymbol=Na,a.WeekDay=Oa,a.getLocaleDayPeriods=h,a.getLocaleDayNames=i,a.getLocaleMonthNames=j,a.getLocaleId=g,a.getLocaleEraNames=k,a.getLocaleWeekEndRange=m,a.getLocaleFirstDayOfWeek=l,a.getLocaleDateFormat=n,a.getLocaleDateTimeFormat=p,a.getLocaleExtraDayPeriodRules=w,a.getLocaleExtraDayPeriods=x,a.getLocalePluralCase=u,a.getLocaleTimeFormat=o,a.getLocaleNumberSymbol=q,a.getLocaleNumberFormat=r,a.getLocaleCurrencyName=t,a.getLocaleCurrencySymbol=s,a.CURRENCIES=Fa,a.ɵparseCookieValue=E,a.CommonModule=_b,a.DeprecatedI18NPipesModule=bc,a.NgClass=Sa,a.NgForOf=Va,a.NgForOfContext=Ua,a.NgIf=Xa,a.NgIfContext=Ya,a.NgPlural=bb,a.NgPluralCase=cb,a.NgStyle=db,a.NgSwitch=$a,a.NgSwitchCase=_a,a.NgSwitchDefault=ab,a.NgTemplateOutlet=eb,a.NgComponentOutlet=Ta,a.DOCUMENT=cc,a.AsyncPipe=Ob,a.DatePipe=pb,a.I18nPluralPipe=Tb,a.I18nSelectPipe=Ub,a.JsonPipe=Vb,a.LowerCasePipe=Pb,a.CurrencyPipe=Yb,a.DecimalPipe=Wb,a.PercentPipe=Xb,a.SlicePipe=Zb,a.UpperCasePipe=Rb,a.TitleCasePipe=Qb,a.DeprecatedDatePipe=wb,a.DeprecatedCurrencyPipe=Ib,a.DeprecatedDecimalPipe=Gb,a.DeprecatedPercentPipe=Hb,a.ɵPLATFORM_BROWSER_ID=dc,a.ɵPLATFORM_SERVER_ID=ec,a.ɵPLATFORM_WORKER_APP_ID=fc,a.ɵPLATFORM_WORKER_UI_ID=gc,a.isPlatformBrowser=sa,a.isPlatformServer=ta,a.isPlatformWorkerApp=ua,a.isPlatformWorkerUi=va,a.VERSION=hc,a.PlatformLocation=ya,a.LOCATION_INITIALIZED=za,a.LocationStrategy=Aa,a.APP_BASE_HREF=Ba,a.HashLocationStrategy=Da,a.PathLocationStrategy=Ea,a.Location=Ca,a.ɵe=fb,a.ɵd=A,a.ɵa=Pa,a.ɵb=D,a.ɵg=Jb,a.ɵf=$b,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 b.call(c,c,a("@angular/common"),a("@angular/core"))})}(0,function(a,b,c){"use strict";function d(a,b){function c(){this.constructor=a}O(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}function e(){return Q}function f(a){Q||(Q=a)}function g(){return $||($=document.querySelector("base"))?$.getAttribute("href"):null}function h(a){return X||(X=document.createElement("a")),X.setAttribute("href",a),"/"===X.pathname.charAt(0)?X.pathname:"/"+X.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){if("undefined"==typeof COMPILED||!COMPILED){(c.ɵglobal.ng=c.ɵglobal.ng||{})[a]=b}}function l(a){return c.getDebugNode(a)}function m(a){return k(ha,l),k(ia,P({},ga,n(a||[]))),function(){return l}}function n(a){return a.reduce(function(a,b){return a[b.name]=b.token,a},{})}function o(a){return ta.replace(qa,a)}function p(a){return sa.replace(qa,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(qa,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)===wa)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(Za)||a.match($a)?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(_a)return _a;ab=e();var a=ab.createElement("template");if("content"in a)return a;var b=ab.createHtmlDocument();if(null==(_a=ab.querySelector(b,"body"))){var c=ab.createElement("html",b);_a=ab.createElement("body",b),ab.appendChild(c,_a),ab.appendChild(b,c)}return _a}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&&ab.contains(a,b))throw new Error("Failed to sanitize html because the element is clobbered: "+ab.getOuterHTML(a));return b}function z(a){return a.replace(/&/g,"&amp;").replace(nb,function(a){return"&#"+(1024*(a.charCodeAt(0)-55296)+(a.charCodeAt(1)-56320)+65536)+";"}).replace(ob,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function A(a){ab.attributeMap(a).forEach(function(b,c){"xmlns:ns1"!==c&&0!==c.indexOf("ns1:")||ab.removeAttribute(a,c)});for(var b=0,c=ab.childNodesAsList(a);b<c.length;b++){var d=c[b];ab.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,ab.setInnerHTML(d,e),a.documentMode&&A(d),g=ab.getInnerHTML(d)}while(e!==g);for(var h=new mb,i=h.sanitizeChildren(ab.getTemplateContent(d)||d),j=ab.getTemplateContent(d)||d,k=0,l=ab.childNodesAsList(j);k<l.length;k++){var m=l[k];ab.removeChild(j,m)}return c.isDevMode()&&h.sanitizedSomething&&ab.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),i}catch(a){throw _a=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(wb);return b&&t(b[1])===b[1]||a.match(vb)&&C(a)?a:(c.isDevMode()&&e().log("WARNING: sanitizing unsafe style value "+a+" (see http://g.co/ng/security#xss)."),"unsafe")}function E(){Z.makeCurrent(),ea.init()}function F(){return new c.ErrorHandler}function G(){return document}function H(a){return k(Mb,new Lb(a)),a}function I(){k(Mb,null)}function J(a){var b={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return a.replace(/[&"'<>]/g,function(a){return b[a]})}function K(a){var b={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return a.replace(/&[^;]+;/g,function(a){return b[a]})}function L(a){return a}function M(a,b){var c=a.getElementById(b+"-state"),d={};if(c&&c.textContent)try{d=JSON.parse(K(c.textContent))}catch(a){console.warn("Exception while restoring TransferState for app "+b,a)}return Nb.init(d)}var N,O=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])},P=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++){b=arguments[c];for(var e in b)Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e])}return a},Q=null,R=function(){function a(){this.resourceLoaderType=null}return Object.defineProperty(a.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(a){this._attrToPropMap=a},enumerable:!0,configurable:!0}),a}(),S=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}(R),T={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},U=3,V={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},W={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&&(N=c.ɵglobal.Node.prototype.contains||function(a){return!!(16&this.compareDocumentPosition(a))});var X,Y,Z=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){(d=a)[b].apply(d,c);var d},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 T},enumerable:!0,configurable:!0}),c.prototype.contains=function(a,b){return N.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=this.getDefaultDocument().createEvent("MouseEvent");return b.initEvent(a,!0,!0),b},c.prototype.createEvent=function(a){var b=this.getDefaultDocument().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&&this.isTemplateElement(a)?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 this.getDefaultDocument().createComment(a)},c.prototype.createTemplate=function(a){var b=this.getDefaultDocument().createElement("template");return b.innerHTML=a,b},c.prototype.createElement=function(a,b){return b=b||this.getDefaultDocument(),b.createElement(a)},c.prototype.createElementNS=function(a,b,c){return c=c||this.getDefaultDocument(),c.createElementNS(a,b)},c.prototype.createTextNode=function(a,b){return b=b||this.getDefaultDocument(),b.createTextNode(a)},c.prototype.createScriptTag=function(a,b,c){c=c||this.getDefaultDocument();var d=c.createElement("SCRIPT");return d.setAttribute(a,b),d},c.prototype.createStyleElement=function(a,b){b=b||this.getDefaultDocument();var c=b.createElement("style");return this.appendChild(c,this.createTextNode(a,b)),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.item(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.getDefaultDocument=function(){return document},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 a.title},c.prototype.setTitle=function(a,b){a.title=b||""},c.prototype.elementMatches=function(a,b){return!!this.isElementNode(a)&&(a.matches&&a.matches(b)||a.msMatchesSelector&&a.msMatchesSelector(b)||a.webkitMatchesSelector&&a.webkitMatchesSelector(b))},c.prototype.isTemplateElement=function(a){return this.isElementNode(a)&&"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.getAttribute("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===U&&W.hasOwnProperty(b)&&(b=W[b]))}return V[b]||b},c.prototype.getGlobalEventTarget=function(a,b){return"window"===b?window:"document"===b?a:"body"===b?a.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(){$=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}(S),$=null,_=b.DOCUMENT,aa=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()},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.decorators=[{type:c.Injectable}],b.ctorParameters=function(){return[{type:void 0,decorators:[{type:c.Inject,args:[_]}]}]},b}(b.PlatformLocation),ba=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: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.decorators=[{type:c.Injectable}],a.ctorParameters=function(){return[{type:void 0,decorators:[{type:c.Inject,args:[_]}]}]},a}(),ca=new c.InjectionToken("TRANSITION_ID"),da=[{provide:c.APP_INITIALIZER,useFactory:j,deps:[ca,_,c.Injector],multi:!0}],ea=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}(),fa=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}],a.ctorParameters=function(){return[{type:void 0,decorators:[{type:c.Inject,args:[_]}]}]},a}(),ga={ApplicationRef:c.ApplicationRef,NgZone:c.NgZone},ha="probe",ia="coreTokens",ja=[{provide:c.APP_INITIALIZER,useFactory:m,deps:[[c.NgProbeToken,new c.Optional]],multi:!0}],ka=new c.InjectionToken("EventManagerPlugins"),la=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.decorators=[{type:c.Injectable}],a.ctorParameters=function(){return[{type:Array,decorators:[{type:c.Inject,args:[ka]}]},{type:c.NgZone}]},a}(),ma=function(){function a(a){this._doc=a}return 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}(),na=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.decorators=[{type:c.Injectable}],a.ctorParameters=function(){return[]},a}(),oa=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.decorators=[{type:c.Injectable}],b.ctorParameters=function(){return[{type:void 0,decorators:[{type:c.Inject,args:[_]}]}]},b}(na),pa={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/"},qa=/%COMP%/g,ra="%COMP%",sa="_nghost-"+ra,ta="_ngcontent-"+ra,ua=function(){function a(a,b){this.eventManager=a,this.sharedStylesHost=b,this.rendererByCompId=new Map,this.defaultRenderer=new va(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 xa(this.eventManager,this.sharedStylesHost,b),this.rendererByCompId.set(b.id,d)),d.applyToHost(a),d;case c.ViewEncapsulation.Native:return new ya(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.decorators=[{type:c.Injectable}],a.ctorParameters=function(){return[{type:la},{type:oa}]},a}(),va=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(pa[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=pa[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=pa[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}(),wa="@".charCodeAt(0),xa=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}(va),ya=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}(va),za=function(a){return"__zone_symbol__"+a},Aa="undefined"!=typeof Zone&&Zone.__symbol__||za,Ba=Aa("addEventListener"),Ca=Aa("removeEventListener"),Da={},Ea="FALSE",Fa="ANGULAR",Ga="addEventListener",Ha="removeEventListener",Ia="__zone_symbol__propagationStopped",Ja="__zone_symbol__stopImmediatePropagation",Ka="undefined"!=typeof Zone&&Zone[Aa("BLACK_LISTED_EVENTS")];Ka&&(Y={},Ka.forEach(function(a){Y[a]=a}));var La=function(a){return!!Y&&Y.hasOwnProperty(a)},Ma=function(a){var b=Da[a.type];if(b){var c=this[b];if(c){var d=[a];if(1===c.length){var e=c[0];return e.zone!==Zone.current?e.zone.run(e.handler,this,d):e.handler.apply(this,d)}for(var f=c.slice(),g=0;g<f.length&&!0!==a[Ia];g++){var e=f[g];e.zone!==Zone.current?e.zone.run(e.handler,this,d):e.handler.apply(this,d)}}}},Na=function(a){function b(b,c){var d=a.call(this,b)||this;return d.ngZone=c,d.patchEvent(),d}return d(b,a),b.prototype.patchEvent=function(){if(Event&&Event.prototype&&!Event.prototype[Ja]){var a=Event.prototype[Ja]=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[Ia]=!0),a&&a.apply(this,arguments)}}},b.prototype.supports=function(a){return!0},b.prototype.addEventListener=function(a,b,d){var e=this,f=a[Ba],g=d;if(!f||c.NgZone.isInAngularZone()&&!La(b))a[Ga](b,g,!1);else{var h=Da[b];h||(h=Da[b]=Aa(Fa+b+Ea));var i=a[h],j=i&&i.length>0;i||(i=a[h]=[]);var k=La(b)?Zone.root:Zone.current;if(0===i.length)i.push({zone:k,handler:g});else{for(var l=!1,m=0;m<i.length;m++)if(i[m].handler===g){l=!0;break}l||i.push({zone:k,handler:g})}j||a[Ba](b,Ma,!1)}return function(){return e.removeEventListener(a,b,g)}},b.prototype.removeEventListener=function(a,b,c){var d=a[Ca];if(!d)return a[Ha].apply(a,[b,c,!1]);var e=Da[b],f=e&&a[e];if(!f)return a[Ha].apply(a,[b,c,!1]);for(var g=!1,h=0;h<f.length;h++)if(f[h].handler===c){g=!0,f.splice(h,1);break}g?0===f.length&&d.apply(a,[b,Ma,!1]):a[Ha].apply(a,[b,c,!1])},b.decorators=[{type:c.Injectable}],b.ctorParameters=function(){return[{type:void 0,decorators:[{type:c.Inject,args:[_]}]},{type:c.NgZone}]},b}(ma),Oa={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},Pa=new c.InjectionToken("HammerGestureConfig"),Qa=function(){function a(){this.events=[],this.overrides={}}return a.prototype.buildHammer=function(a){var b=new Hammer(a);b.get("pinch").set({enable:!0}),b.get("rotate").set({enable:!0});for(var c in this.overrides)b.get(c).set(this.overrides[c]);return b},a.decorators=[{type:c.Injectable}],a.ctorParameters=function(){return[]},a}(),Ra=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(!Oa.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.decorators=[{type:c.Injectable}],b.ctorParameters=function(){return[{type:void 0,decorators:[{type:c.Inject,args:[_]}]},{type:Qa,decorators:[{type:c.Inject,args:[Pa]}]}]},b}(ma),Sa=["alt","control","meta","shift"],Ta=function(a){return a.altKey},Ua=function(a){return a.ctrlKey},Va=function(a){return a.metaKey},Wa=function(a){return a.shiftKey},Xa={alt:Ta,control:Ua,meta:Va,shift:Wa},Ya=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(Sa.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"),Sa.forEach(function(d){if(d!=c){(0,Xa[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.decorators=[{type:c.Injectable}],b.ctorParameters=function(){return[{type:void 0,decorators:[{type:c.Inject,args:[_]}]}]},b}(ma),Za=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,$a=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,_a=null,ab=null,bb=w("area,br,col,hr,img,wbr"),cb=w("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),db=w("rp,rt"),eb=x(db,cb),fb=x(cb,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")),gb=x(db,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")),hb=x(bb,fb,gb,eb),ib=w("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),jb=w("srcset"),kb=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"),lb=x(ib,jb,kb),mb=function(){function a(){this.sanitizedSomething=!1,this.buf=[]}return a.prototype.sanitizeChildren=function(a){for(var b=a.firstChild;b;)if(ab.isElementNode(b)?this.startElement(b):ab.isTextNode(b)?this.chars(ab.nodeValue(b)):this.sanitizedSomething=!0,ab.firstChild(b))b=ab.firstChild(b);else for(;b;){ab.isElementNode(b)&&this.endElement(b);var c=y(b,ab.nextSibling(b));if(c){b=c;break}b=y(b,ab.parentElement(b))}return this.buf.join("")},a.prototype.startElement=function(a){var b=this,c=ab.nodeName(a).toLowerCase();if(!hb.hasOwnProperty(c))return void(this.sanitizedSomething=!0);this.buf.push("<"),this.buf.push(c),ab.attributeMap(a).forEach(function(a,c){var d=c.toLowerCase();if(!lb.hasOwnProperty(d))return void(b.sanitizedSomething=!0);ib[d]&&(a=t(a)),jb[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=ab.nodeName(a).toLowerCase();hb.hasOwnProperty(b)&&!bb.hasOwnProperty(b)&&(this.buf.push("</"),this.buf.push(b),this.buf.push(">"))},a.prototype.chars=function(a){this.buf.push(z(a))},a}(),nb=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ob=/([^\#-~ |!])/g,pb="[-,.\"'%_!# a-zA-Z0-9]+",qb="(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?",rb="(?:rgb|hsl)a?",sb="(?:repeating-)?(?:linear|radial)-gradient",tb="(?:calc|attr)",ub="\\([-0-9.%, #a-zA-Z]+\\)",vb=new RegExp("^("+pb+"|(?:"+qb+"|"+rb+"|"+sb+"|"+tb+")"+ub+")$","g"),wb=/^url\(([^)]+)\)$/,xb=function(){function a(){}return a}(),yb=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 Ab?b.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(b,"HTML"),B(this._doc,String(b)));case c.SecurityContext.STYLE:return b instanceof Bb?b.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(b,"Style"),D(b));case c.SecurityContext.SCRIPT:if(b instanceof Cb)return b.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(b,"Script"),new Error("unsafe value used in a script context");case c.SecurityContext.URL:return b instanceof Eb||b instanceof Db?b.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(b,"URL"),t(String(b)));case c.SecurityContext.RESOURCE_URL:if(b instanceof Eb)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 zb)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 Ab(a)},b.prototype.bypassSecurityTrustStyle=function(a){return new Bb(a)},b.prototype.bypassSecurityTrustScript=function(a){return new Cb(a)},b.prototype.bypassSecurityTrustUrl=function(a){return new Db(a)},b.prototype.bypassSecurityTrustResourceUrl=function(a){return new Eb(a)},b.decorators=[{type:c.Injectable}],b.ctorParameters=function(){return[{type:void 0,decorators:[{type:c.Inject,args:[_]}]}]},b}(xb),zb=function(){function a(a){this.changingThisBreaksApplicationSecurity=a}return a.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},a}(),Ab=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return d(b,a),b.prototype.getTypeName=function(){return"HTML"},b}(zb),Bb=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return d(b,a),b.prototype.getTypeName=function(){return"Style"},b}(zb),Cb=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return d(b,a),b.prototype.getTypeName=function(){return"Script"},b}(zb),Db=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return d(b,a),b.prototype.getTypeName=function(){return"URL"},b}(zb),Eb=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return d(b,a),b.prototype.getTypeName=function(){return"ResourceURL"},b}(zb),Fb=[{provide:c.PLATFORM_ID,useValue:b.ɵPLATFORM_BROWSER_ID},{provide:c.PLATFORM_INITIALIZER,useValue:E,multi:!0},{provide:b.PlatformLocation,useClass:aa,deps:[_]},{provide:_,useFactory:G,deps:[]}],Gb=[{provide:c.Sanitizer,useExisting:xb},{provide:xb,useClass:yb,deps:[_]}],Hb=c.createPlatformFactory(c.platformCore,"browser",Fb),Ib=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:ca,useExisting:c.APP_ID},da]}},a.decorators=[{type:c.NgModule,args:[{providers:[Gb,{provide:c.ErrorHandler,useFactory:F,deps:[]},{provide:ka,useClass:Na,multi:!0},{provide:ka,useClass:Ya,multi:!0},{provide:ka,useClass:Ra,multi:!0},{provide:Pa,useClass:Qa},ua,{provide:c.RendererFactory2,useExisting:ua},{provide:na,useExisting:oa},oa,c.Testability,la,ja,ba,fa],exports:[b.CommonModule,c.ApplicationModule]}]}],a.ctorParameters=function(){return[{type:a,decorators:[{type:c.Optional},{type:c.SkipSelf}]}]},a}(),Jb="undefined"!=typeof window&&window||{},Kb=function(){function a(a,b){this.msPerTick=a,this.numTicks=b}return a}(),Lb=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!=Jb.console.profile;b&&d&&Jb.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&&Jb.console.profileEnd(c);var i=(h-f)/g;return Jb.console.log("ran "+g+" change detection cycles"),Jb.console.log(i.toFixed(2)+" ms per check"),new Kb(i,g)},a}(),Mb="profiler",Nb=function(){function a(){this.store={},this.onSerializeCallbacks={}}return a.init=function(b){var c=new a;return c.store=b,c},a.prototype.get=function(a,b){return this.store[a]||b},a.prototype.set=function(a,b){this.store[a]=b},a.prototype.remove=function(a){delete this.store[a]},a.prototype.hasKey=function(a){return this.store.hasOwnProperty(a)},a.prototype.onSerialize=function(a,b){this.onSerializeCallbacks[a]=b},a.prototype.toJson=function(){for(var a in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(a))try{this.store[a]=this.onSerializeCallbacks[a]()}catch(a){console.warn("Exception in onSerialize callback: ",a)}return JSON.stringify(this.store)},a.decorators=[{type:c.Injectable}],a.ctorParameters=function(){return[]},a}(),Ob=function(){function a(){}return a.decorators=[{type:c.NgModule,args:[{providers:[{provide:Nb,useFactory:M,deps:[_,c.APP_ID]}]}]}],a.ctorParameters=function(){return[]},a}(),Pb=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}(),Qb=new c.Version("5.1.0");a.BrowserModule=Ib,a.platformBrowser=Hb,a.Meta=ba,a.Title=fa,a.disableDebugTools=I,a.enableDebugTools=H,a.BrowserTransferStateModule=Ob,a.TransferState=Nb,a.makeStateKey=L,a.By=Pb,a.DOCUMENT=_,a.EVENT_MANAGER_PLUGINS=ka,a.EventManager=la,a.HAMMER_GESTURE_CONFIG=Pa,a.HammerGestureConfig=Qa,a.DomSanitizer=xb,a.VERSION=Qb,a.ɵBROWSER_SANITIZATION_PROVIDERS=Gb,a.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS=Fb,a.ɵinitDomAdapter=E,a.ɵBrowserDomAdapter=Z,a.ɵBrowserPlatformLocation=aa,a.ɵTRANSITION_ID=ca,a.ɵBrowserGetTestability=ea,a.ɵescapeHtml=J,a.ɵELEMENT_PROBE_PROVIDERS=ja,a.ɵDomAdapter=R,a.ɵgetDOM=e,a.ɵsetRootDomAdapter=f,a.ɵDomRendererFactory2=ua,a.ɵNAMESPACE_URIS=pa,a.ɵflattenStyles=q,a.ɵshimContentAttribute=o,a.ɵshimHostAttribute=p,a.ɵDomEventsPlugin=Na,a.ɵHammerGesturesPlugin=Ra,a.ɵKeyEventsPlugin=Ya,a.ɵDomSharedStylesHost=oa,a.ɵSharedStylesHost=na,a.ɵb=G,a.ɵa=F,a.ɵi=S,a.ɵg=da,a.ɵf=j,a.ɵc=M,a.ɵh=m,a.ɵd=ma,a.ɵe=yb,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 b.call(c,c,a("@angular/core"),a("rxjs/Observable"),a("@angular/platform-browser"))})}(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 V({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 V({method:c,url:d}))}function o(){return new T}function p(a,b){return new ba(a,b)}function q(a,b){return new ca(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.decorators=[{type:b.Injectable}],a.ctorParameters=function(){return[]},a}(),t={Get:0,Post:1,Put:2,Delete:3,Options:4,Head:5,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={Unsent:0,Open:1,HeadersReceived:2,Loading:3,Done:4,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={Basic:0,Cors:1,Default:2,Error:3,Opaque:4};v[v.Basic]="Basic",v[v.Cors]="Cors",v[v.Default]="Default",v[v.Error]="Error",v[v.Opaque]="Opaque";var w={NONE:0,JSON:1,FORM:2,FORM_DATA:3,TEXT:4,BLOB:5,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={Text:0,Json:1,ArrayBuffer:2,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 c(){return a.call(this,{status:200,statusText:"Ok",type:v.Default,headers:new y})||this}return e(c,a),c.decorators=[{type:b.Injectable}],c.ctorParameters=function(){return[]},c}(z),B=function(){function a(){}return a}(),C=function(){function a(){}return a}(),D=function(){function a(){}return a}(),E=function(a){return a>=200&&a<300},F=function(){function a(){}return a.prototype.encodeKey=function(a){return 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.decorators=[{type:b.Injectable}],a.ctorParameters=function(){return[]},a}(),N="JSONP injected script did not invoke callback.",O="JSONP requests must use GET request method.",P=function(){function a(a,b,d){var e=this;if(this._dom=b,this.baseResponseOptions=d,this._finished=!1,a.method!==t.Get)throw new TypeError(O);this.request=a,this.response=new c.Observable(function(c){e.readyState=u.Loading;var f=e._id=b.nextRequestID();b.exposeConnection(f,e);var g=b.requestCallback(e._id),h=a.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=e._script=b.build(h),j=function(a){if(e.readyState!==u.Cancelled){if(e.readyState=u.Done,b.cleanup(i),!e._finished){var f=new z({body:N,type:v.Error,url:h});return d&&(f=d.merge(f)),void c.error(new I(f))}var g=new z({body:e._responseData,url:h});e.baseResponseOptions&&(g=e.baseResponseOptions.merge(g)),c.next(new I(g)),c.complete()}},k=function(a){if(e.readyState!==u.Cancelled){e.readyState=u.Done,b.cleanup(i);var f=new z({body:a.message,type:v.Error});d&&(f=d.merge(f)),c.error(new I(f))}};return i.addEventListener("load",j),i.addEventListener("error",k),b.send(i),function(){e.readyState=u.Cancelled,i.removeEventListener("load",j),i.removeEventListener("error",k),e._dom.cleanup(i)}})}return a.prototype.finished=function(a){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==u.Cancelled&&(this._responseData=a)},a}(),Q=function(a){function c(b,c){var d=a.call(this)||this;return d._browserJSONP=b,d._baseResponseOptions=c,d}return e(c,a),c.prototype.createConnection=function(a){return new P(a,this._browserJSONP,this._baseResponseOptions)},c.decorators=[{type:b.Injectable}],c.ctorParameters=function(){return[{type:M},{type:z}]},c}(B),R=/^\)\]\}',?\n/,S=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(R,"")),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}(),T=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}(),U=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 S(a,this._browserXHR,this._baseResponseOptions)},a.decorators=[{type:b.Injectable}],a.ctorParameters=function(){return[{type:s},{type:z},{type:D}]},a}(),V=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}(),W=function(a){function c(){return a.call(this,{method:t.Get,headers:new y})||this}return e(c,a),c.decorators=[{type:b.Injectable}],c.ctorParameters=function(){return[]},c}(V),X=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 aa?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 $?w.FORM_DATA:this._body instanceof _?w.BLOB:this._body instanceof aa?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),Y=function(){},Z="object"==typeof window?window:Y,$=Z.FormData||Y,_=Z.Blob||Y,aa=Z.ArrayBuffer||Y,ba=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 X(n(this._defaultOptions,b,t.Get,a)));else{if(!(a instanceof X))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 X(n(this._defaultOptions,b,t.Get,a)))},a.prototype.post=function(a,b,c){return this.request(new X(n(this._defaultOptions.merge(new V({body:b})),c,t.Post,a)))},a.prototype.put=function(a,b,c){return this.request(new X(n(this._defaultOptions.merge(new V({body:b})),c,t.Put,a)))},a.prototype.delete=function(a,b){return this.request(new X(n(this._defaultOptions,b,t.Delete,a)))},a.prototype.patch=function(a,b,c){return this.request(new X(n(this._defaultOptions.merge(new V({body:b})),c,t.Patch,a)))},a.prototype.head=function(a,b){return this.request(new X(n(this._defaultOptions,b,t.Head,a)))},a.prototype.options=function(a,b){return this.request(new X(n(this._defaultOptions,b,t.Options,a)))},a.decorators=[{type:b.Injectable}],a.ctorParameters=function(){return[{type:B},{type:V}]},a}(),ca=function(a){function c(b,c){return a.call(this,b,c)||this}return e(c,a),c.prototype.request=function(a,b){if("string"==typeof a&&(a=new X(n(this._defaultOptions,b,t.Get,a))),!(a instanceof X))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)},c.decorators=[{type:b.Injectable}],c.ctorParameters=function(){return[{type:B},{type:V}]},c}(ba),da=function(){function a(){}return a.decorators=[{type:b.NgModule,args:[{providers:[{provide:ba,useFactory:p,deps:[U,V]},s,{provide:V,useClass:W},{provide:z,useClass:A},U,{provide:D,useFactory:o}]}]}],a.ctorParameters=function(){return[]},a}(),ea=function(){function a(){}return a.decorators=[{type:b.NgModule,args:[{providers:[{provide:ca,useFactory:q,deps:[Q,V]},M,{provide:V,useClass:W},{provide:z,useClass:A},Q]}]}],a.ctorParameters=function(){return[]},a}(),fa=new b.Version("5.1.0");a.BrowserXhr=s,a.JSONPBackend=Q,a.JSONPConnection=P,a.CookieXSRFStrategy=T,a.XHRBackend=U,a.XHRConnection=S,a.BaseRequestOptions=W,a.RequestOptions=V,a.BaseResponseOptions=A,a.ResponseOptions=z,a.ReadyState=u,a.RequestMethod=t,a.ResponseContentType=x,a.ResponseType=v,a.Headers=y,a.Http=ba,a.Jsonp=ca,a.HttpModule=da,a.JsonpModule=ea,a.Connection=C,a.ConnectionBackend=B,a.XSRFStrategy=D,a.Request=X,a.Response=I,a.QueryEncoder=F,a.URLSearchParams=G,a.VERSION=fa,a.ɵe=M,a.ɵf=H,a.ɵa=o,a.ɵb=p,a.ɵc=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/util/identity.js",[],!0,function(a,b,c){"use strict";function d(a){return a}this||self;b.identity=d}),System.registerDynamic("rxjs/operators/mergeAll.js",["./mergeMap","../util/identity"],!0,function(a,b,c){"use strict";function d(a){return void 0===a&&(a=Number.POSITIVE_INFINITY),e.mergeMap(f.identity,null,a)}var e=(this||self,a("./mergeMap")),f=a("../util/identity");b.mergeAll=d}),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/operators/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 function(b){return b.lift.call(e.apply(void 0,[b].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]:h.mergeAll(c)(new g.ArrayObservable(a,d))}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/operator/merge.js",["../operators/merge"],!0,function(a,b,c){"use strict";function d(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];return e.merge.apply(void 0,a)(this)}var e=(this||self,a("../operators/merge")),f=a("../operators/merge");b.mergeStatic=f.mergeStatic,b.merge=d}),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","../operators/refCount"],!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=a("../operators/refCount"),j=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 l(this.getSubject(),this))),a.closed?(this._connection=null,a=h.Subscription.EMPTY):this._connection=a),a},b.prototype.refCount=function(){return i.refCount()(this)},b}(f.Observable);b.ConnectableObservable=j;var k=j.prototype;b.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:k._subscribe},_isComplete:{value:k._isComplete,writable:!0},getSubject:{value:k.getSubject},connect:{value:k.connect},refCount:{value:k.refCount}};var l=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),m=(function(){function a(a){this.connectable=a}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}}(),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/operators/multicast.js",["../observable/ConnectableObservable"],!0,function(a,b,c){"use strict";function d(a,b){return function(c){var d;if(d="function"==typeof a?a:function(){return a},"function"==typeof b)return c.lift(new f(d,b));var g=Object.create(c,e.connectableObservableDescriptor);return g.source=c,g.subjectFactory=d,g}}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/operators/refCount.js",["../Subscriber"],!0,function(a,b,c){"use strict";function d(){return function(a){return a.lift(new g(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("../Subscriber");b.refCount=d;var g=function(){function a(a){this.connectable=a}return a.prototype.call=function(a,b){var c=this.connectable;c._refCount++;var d=new h(a,c),e=b.subscribe(d);return d.closed||(d.connection=c.connect()),e},a}(),h=function(a){function b(b,c){a.call(this,b),this.connectable=c}return e(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}(f.Subscriber)}),System.registerDynamic("rxjs/operators/share.js",["./multicast","./refCount","../Subject"],!0,function(a,b,c){"use strict";function d(){return new h.Subject}function e(){return function(a){return g.refCount()(f.multicast(d)(a))}}var f=(this||self,a("./multicast")),g=a("./refCount"),h=a("../Subject");b.share=e}),System.registerDynamic("rxjs/operator/share.js",["../operators/share"],!0,function(a,b,c){"use strict";function d(){return e.share()(this)}var e=(this||self,a("../operators/share"));b.share=d}),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}),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 b.call(c,c,a("rxjs/Observable"),a("rxjs/observable/merge"),a("rxjs/operator/share"),a("rxjs/Subject"))})}(0,function(a,b,c,d,e){"use strict";function f(a,b){function c(){this.constructor=a}Me(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}function g(a,b,c,d){function e(a){if(this instanceof e)return f.call(this,a),this;var b=new e(a),c=function(a){return(a.hasOwnProperty(Pe)?a[Pe]:Object.defineProperty(a,Pe,{value:[]})[Pe]).push(b),a};return d&&d(c),c}var f=h(b);return c&&(e.prototype=Object.create(c.prototype)),e.prototype.ngMetadataName=a,e.annotationCls=e,e}function h(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 i(a,b,c){function d(){function a(a,b,c){for(var d=a.hasOwnProperty(Qe)?a[Qe]:Object.defineProperty(a,Qe,{value:[]})[Qe];d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(f),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((g=d).bind.apply(g,[void 0].concat(b)));return a.annotation=f,a;var g}var e=h(b);return c&&(d.prototype=Object.create(c.prototype)),d.prototype.ngMetadataName=a,d.annotationCls=d,d}function j(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((f=d).bind.apply(f,[void 0].concat(a)));return function(a,b){var d=a.constructor,e=d.hasOwnProperty(Re)?d[Re]:Object.defineProperty(d,Re,{value:{}})[Re];e[b]=e.hasOwnProperty(b)&&e[b]||[],e[b].unshift(c)};var f}var e=h(b);return c&&(d.prototype=Object.create(c.prototype)),d.prototype.ngMetadataName=a,d.annotationCls=d,d}function k(a){return null==a||a===Ze.Default}function l(){if(!Af){var a=zf.Symbol;if(a&&a.iterator)Af=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&&(Af=d)}}return Af}function m(a){Zone.current.scheduleMicroTask("scheduleMicrotask",a)}function n(a,b){return a===b||"number"==typeof a&&"number"==typeof b&&isNaN(a)&&isNaN(b)}function o(a){if("string"==typeof a)return a;if(a instanceof Array)return"["+a.map(o).join(", ")+"]";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 p(a){return a.__forward_ref__=p,a.toString=function(){return o(this())},a}function q(a){return"function"==typeof a&&a.hasOwnProperty("__forward_ref__")&&a.__forward_ref__===p?a():a}function r(a){var b=w(a),c=Ff,d=Gf,e=!1,f=q(a.provide);if(Lf in a)d=a.useValue;else if(a.useFactory)c=a.useFactory;else if(a.useExisting);else if(a.useClass)e=!0,c=q(a.useClass);else{if("function"!=typeof f)throw y("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",a);e=!0,c=f}return{deps:b,fn:c,useNew:e,value:d}}function s(a){return y("Cannot mix multi providers and regular providers",a)}function t(a,b){if(b)if((b=q(b))instanceof Array)for(var c=0;c<b.length;c++)t(a,b[c]);else{if("function"==typeof b)throw y("Function/Class not supported",b);if(!b||"object"!=typeof b||!b.provide)throw y("Unexpected provider",b);var d=q(b.provide),e=r(b);if(!0===b.multi){var f=a.get(d);if(f){if(f.fn!==If)throw s(d)}else a.set(d,f={token:b.provide,deps:[],useNew:!1,fn:If,value:Gf});d=b,f.deps.push({token:d,options:6})}var g=a.get(d);if(g&&g.fn==If)throw s(d);a.set(d,e)}}function u(a,b,c,d,e){try{return v(a,b,c,d,e)}catch(c){c instanceof Error||(c=new Error(c));var f=c[Nf]=c[Nf]||[];throw f.unshift(a),b&&b.value==Hf&&(b.value=Gf),c}}function v(a,b,c,d,e){var f;if(b){if((f=b.value)==Hf)throw Error(Qf+"Circular dependency");if(f===Gf){b.value=Hf;var g=void 0,h=b.useNew,i=b.fn,j=b.deps,k=Gf;if(j.length){k=[];for(var l=0;l<j.length;l++){var m=j[l],n=m.options,o=2&n?c.get(m.token):void 0;k.push(u(m.token,o,c,o||4&n?d:Of,1&n?null:Ef.THROW_IF_NOT_FOUND))}}b.value=f=h?new((p=i).bind.apply(p,[void 0].concat(k))):i.apply(g,k)}}else f=d.get(a,e);return f;var p}function w(a){var b=Gf,c=a.deps;if(c&&c.length){b=[];for(var d=0;d<c.length;d++){var e=6,f=q(c[d]);if(f instanceof Array)for(var g=0,h=f;g<h.length;g++){var i=h[g];i instanceof rf||i==rf?e|=1:i instanceof uf||i==uf?e&=-3:i instanceof tf||i==tf?e&=-5:f=i instanceof qf?i.token:q(i)}b.push({token:f,options:e})}}else if(a.useExisting){var f=q(a.useExisting);b=[{token:f,options:6}]}else if(!(c||Lf in a))throw y("'deps' required",a);return b}function x(a,b){a=a&&"\n"===a.charAt(0)&&a.charAt(1)==Qf?a.substr(2):a;var c=o(b);if(b instanceof Array)c=b.map(o).join(" -> ");else if("object"==typeof b){var d=[];for(var e in b)if(b.hasOwnProperty(e)){var f=b[e];d.push(e+":"+("string"==typeof f?JSON.stringify(f):o(f)))}c="{"+d.join(", ")+"}"}return"StaticInjectorError["+c+"]: "+a.replace(Pf,"\n  ")}function y(a,b){return new Error(x(a,b))}function z(a){for(var b in a)if(a[b]===Jf)return b;throw Error("!prop")}function A(a){return a[Sf]}function B(a){return a[Tf]}function C(a){return a[Uf]||D}function D(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];a.error.apply(a,b)}function E(a,b){var c=a+" caused by: "+(b instanceof Error?b.message:b),d=Error(c);return d[Tf]=b,d}function F(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 G(a){if(a.length>1){return" ("+F(a.slice().reverse()).map(function(a){return o(a.token)}).join(" -> ")+")"}return""}function H(a,b,c,d){var e=[b],f=c(e),g=d?E(f,d):Error(f);return g.addKey=I,g.keys=e,g.injectors=[a],g.constructResolvingMessage=c,g[Tf]=d,g}function I(a,b){this.injectors.push(a),this.keys.push(b),this.message=this.constructResolvingMessage(this.keys)}function J(a,b){return H(a,b,function(a){return"No provider for "+o(a[0].token)+"!"+G(a)})}function K(a,b){return H(a,b,function(a){return"Cannot instantiate cyclic dependency!"+G(a)})}function L(a,b,c,d){return H(a,d,function(a){var c=o(a[0].token);return b.message+": Error during instantiation of "+c+"!"+G(a)+"."},b)}function M(a){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+a)}function N(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(o).join(" ")):c.push("?")}return Error("Cannot resolve all parameters for '"+o(a)+"'("+c.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+o(a)+"' is decorated with Injectable.")}function O(a){return Error("Index "+a+" is out-of-bounds.")}function P(a,b){return Error("Cannot mix multi providers and regular providers, got: "+a+" "+b)}function Q(a){return"function"==typeof a}function R(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 S(a){var b=Object.getPrototypeOf(a.prototype);return(b?b.constructor:null)||Object}function T(a){var b,c;if(a.useClass){var d=q(a.useClass);b=bg.factory(d),c=Z(d)}else a.useExisting?(b=function(a){return a},c=[cg.fromKey(Wf.get(a.useExisting))]):a.useFactory?(b=a.useFactory,c=Y(a.useFactory,a.deps)):(b=function(){return a.useValue},c=dg);return new fg(b,c)}function U(a){return new eg(Wf.get(a.provide),[T(a)],a.multi||!1)}function V(a){var b=X(a,[]),c=b.map(U),d=W(c,new Map);return Array.from(d.values())}function W(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 P(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 eg(d.key,d.resolvedFactories.slice(),d.multiProvider):d,b.set(d.key.id,g)}}return b}function X(a,b){return a.forEach(function(a){if(a instanceof Zf)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 M(a);X(a,b)}}),b}function Y(a,b){if(b){var c=b.map(function(a){return[a]});return b.map(function(b){return $(a,b,c)})}return Z(a)}function Z(a){var b=bg.parameters(a);if(!b)return[];if(b.some(function(a){return null==a}))throw N(a,b);return b.map(function(c){return $(a,c,b)})}function $(a,b,c){var d=null,e=!1;if(!Array.isArray(b))return b instanceof qf?_(b.token,e,null):_(b,e,null);for(var f=null,g=0;g<b.length;++g){var h=b[g];h instanceof Zf?d=h:h instanceof qf?d=h.token:h instanceof rf?e=!0:h instanceof tf||h instanceof uf?f=h:h instanceof Oe&&(d=h)}if(null!=(d=q(d)))return _(d,e,f);throw N(a,c)}function _(a,b,c){return new cg(Wf.get(a),b,c)}function aa(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 ba(a){return!!a&&"function"==typeof a.then}function ca(a){return!!a&&"function"==typeof a.subscribe}function da(){return""+ea()+ea()+ea()}function ea(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function fa(){throw new Error("Runtime compiler is not loaded")}function ga(a){var b=Error("No component factory found for "+o(a)+". Did you add it to @NgModule.entryComponents?");return b[yg]=a,b}function ha(){var a=zf.wtf;return!(!a||!(lf=a.trace))&&(mf=lf.events,!0)}function ia(a,b){return void 0===b&&(b=null),mf.createScope(a,b)}function ja(a,b){return lf.leaveScope(a,b),b}function ka(a,b){return lf.beginTimeRange(a,b)}function la(a){lf.endTimeRange(a)}function ma(a,b){return null}function na(){}function oa(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 pa(a){a._inner=a._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(b,c,d,e,f,g){try{return qa(a),b.invokeTask(d,e,f,g)}finally{ra(a)}},onInvoke:function(b,c,d,e,f,g,h){try{return qa(a),b.invoke(d,e,f,g,h)}finally{ra(a)}},onHasTask:function(b,c,d,e){b.hasTask(d,e),c===d&&("microTask"==e.change?(a.hasPendingMicrotasks=e.microTask,oa(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 qa(a){a._nesting++,a.isStable&&(a.isStable=!1,a.onUnstable.emit(null))}function ra(a){a._nesting--,oa(a)}function sa(a){Rg=a}function ta(){if(Tg)throw new Error("Cannot enable prod mode after platform setup.");Sg=!1}function ua(){return Tg=!0,Sg}function va(a){if(nf&&!nf.destroyed&&!nf.injector.get(Ug,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");nf=a.get(Wg);var b=a.get(ng,null);return b&&b.forEach(function(a){return a()}),nf}function wa(a,b,c){void 0===c&&(c=[]);var d=new Oe("Platform: "+b);return function(b){void 0===b&&(b=[]);var e=za();return e&&!e.injector.get(Ug,!1)||(a?a(c.concat(b).concat({provide:d,useValue:!0})):va(Ef.create(c.concat(b).concat({provide:d,useValue:!0})))),xa(d)}}function xa(a){var b=za();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 ya(){nf&&!nf.destroyed&&nf.destroy()}function za(){return nf&&!nf.destroyed?nf:null}function Aa(a){return"noop"===a?new Ng:("zone.js"===a?void 0:a)||new Lg({enableLongStackTrace:ua()})}function Ba(a,b,c){try{var d=c();return ba(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 Ca(a,b){return a=Array.isArray(b)?b.reduce(Ca,a):Ne({},a,b)}function Da(a,b){var c=a.indexOf(b);c>-1&&a.splice(c,1)}function Ea(a,b){var c=fh.get(a);if(c)throw new Error("Duplicate module registered for "+a+" - "+c.moduleType.name+" vs "+b.moduleType.name);fh.set(a,b)}function Fa(a){var b=fh.get(a);if(!b)throw new Error("No module with ID "+a+" loaded");return b}function Ga(a){return a.reduce(function(a,b){var c=Array.isArray(b)?Ga(b):b;return a.concat(c)},[])}function Ha(a,b,c){if(!a)throw new Error("Cannot find '"+c+"' in '"+b+"'");return a}function Ia(a){return a.map(function(a){return a.nativeElement})}function Ja(a,b,c){a.childNodes.forEach(function(a){a instanceof th&&(b(a)&&c.push(a),Ja(a,b,c))})}function Ka(a,b,c){a instanceof th&&a.childNodes.forEach(function(a){b(a)&&c.push(a),a instanceof th&&Ka(a,b,c)})}function La(a){return uh.get(a)||null}function Ma(a){uh.set(a.nativeNode,a)}function Na(a){uh.delete(a.nativeNode)}function Oa(a,b){var c=Pa(a),d=Pa(b);if(c&&d)return Qa(a,b,Oa);var e=a&&("object"==typeof a||"function"==typeof a),f=b&&("object"==typeof b||"function"==typeof b);return!(c||!e||d||!f)||n(a,b)}function Pa(a){return!!Sa(a)&&(Array.isArray(a)||!(a instanceof Map)&&l()in a)}function Qa(a,b,c){for(var d=a[l()](),e=b[l()]();;){var f=d.next(),g=e.next();if(f.done&&g.done)return!0;if(f.done||g.done)return!1;if(!c(f.value,g.value))return!1}}function Ra(a,b){if(Array.isArray(a))for(var c=0;c<a.length;c++)b(a[c]);else for(var d=a[l()](),e=void 0;!(e=d.next()).done;)b(e.value)}function Sa(a){return null!==a&&("function"==typeof a||"object"==typeof a)}function Ta(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 Ua(a){return a.name||typeof a}function Va(){return Lh}function Wa(){return Mh}function Xa(a){return a||"en-US"}function Ya(a,b,c){var d=a.state,e=1792&d;return e===b?(a.state=-1793&d|c,a.initIndex=-1,!0):e===c}function Za(a,b,c){return(1792&a.state)===b&&a.initIndex<=c&&(a.initIndex=c+1,!0)}function $a(a,b){return a.nodes[b]}function _a(a,b){return a.nodes[b]}function ab(a,b){return a.nodes[b]}function bb(a,b){return a.nodes[b]}function cb(a,b){return a.nodes[b]}function db(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 ?"),fb(e,a)}function eb(a,b){return a instanceof Error||(a=new Error(a.toString())),gb(a,b),a}function fb(a,b){var c=new Error(a);return gb(c,b),c}function gb(a,b){a[Sf]=b,a[Uf]=b.logError.bind(b)}function hb(a){return!!A(a)}function ib(a){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+a)}function jb(a){var b=Zh.get(a);return b||(b=o(a)+"_"+Zh.size,Zh.set(a,b)),b}function kb(a,b,c,d){if(d instanceof vh){d=d.wrapped;var e=a.def.nodes[b].bindingIndex+c,f=a.oldValues[e];f instanceof vh&&(f=f.wrapped),a.oldValues[e]=new vh(f)}return d}function lb(a){return{id:$h,styles:a.styles,encapsulation:a.encapsulation,data:a.data}}function mb(a){if(a&&a.id===$h){var b=null!=a.encapsulation&&a.encapsulation!==kf.None||a.styles.length||Object.keys(a.data).length;a.id=b?"c"+ai++:_h}return a&&a.id===_h&&(a=null),a||null}function nb(a,b,c,d){var e=a.oldValues;return!(!(2&a.state)&&n(e[b.bindingIndex+c],d))}function ob(a,b,c,d){return!!nb(a,b,c,d)&&(a.oldValues[b.bindingIndex+c]=d,!0)}function pb(a,b,c,d){var e=a.oldValues[b.bindingIndex+c];if(1&a.state||!Oa(e,d))throw db(Xh.createDebugContext(a,b.nodeIndex),e,d,0!=(1&a.state))}function qb(a){for(var b=a;b;)2&b.def.flags&&(b.state|=8),b=b.viewContainerParent||b.parent}function rb(a,b){for(var c=a;c&&c!==b;)c.state|=64,c=c.viewContainerParent||c.parent}function sb(a,b,c,d){try{return qb(33554432&a.def.nodes[b].flags?_a(a,b).componentView:a),Xh.handleEvent(a,b,c,d)}catch(b){a.root.errorHandler.handleError(b)}}function tb(a){if(a.parent){return _a(a.parent,a.parentNodeDef.nodeIndex)}return null}function ub(a){return a.parent?a.parentNodeDef.parent:null}function vb(a,b){switch(201347067&b.flags){case 1:return _a(a,b.nodeIndex).renderElement;case 2:return $a(a,b.nodeIndex).renderText}}function wb(a,b){return a?a+":"+b:b}function xb(a){return!!a.parent&&!!(32768&a.parentNodeDef.flags)}function yb(a){return!(!a.parent||32768&a.parentNodeDef.flags)}function zb(a){return 1<<a%32}function Ab(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|=zb(e)):d[e]=f}),{matchedQueries:b,references:d,matchedQueryIds:c}}function Bb(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:jb(b)}})}function Cb(a,b,c){var d=c.renderParent;return d?0==(1&d.flags)||0==(33554432&d.flags)||d.element.componentRendererType&&d.element.componentRendererType.encapsulation===kf.Native?_a(a,c.renderParent.nodeIndex).renderElement:void 0:b}function Db(a){var b=bi.get(a);return b||(b=a(function(){return Yh}),b.factory=a,bi.set(a,b)),b}function Eb(a){var b=[];return Fb(a,0,void 0,void 0,b),b}function Fb(a,b,c,d,e){3===b&&(c=a.renderer.parentNode(vb(a,a.def.lastRenderRootNode))),Gb(a,b,0,a.def.nodes.length-1,c,d,e)}function Gb(a,b,c,d,e,f,g){for(var h=c;h<=d;h++){var i=a.def.nodes[h];11&i.flags&&Ib(a,i,b,e,f,g),h+=i.childCount}}function Hb(a,b,c,d,e,f){for(var g=a;g&&!xb(g);)g=g.parent;for(var h=g.parent,i=ub(g),j=i.nodeIndex+1,k=i.nodeIndex+i.childCount,l=j;l<=k;l++){var m=h.def.nodes[l];m.ngContentIndex===b&&Ib(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++)Jb(a,n[l],c,d,e,f)}}function Ib(a,b,c,d,e,f){if(8&b.flags)Hb(a,b.ngContent.index,c,d,e,f);else{var g=vb(a,b);if(3===c&&33554432&b.flags&&48&b.bindingFlags){if(16&b.bindingFlags&&Jb(a,g,c,d,e,f),32&b.bindingFlags){var h=_a(a,b.nodeIndex).componentView;Jb(h,g,c,d,e,f)}}else Jb(a,g,c,d,e,f);if(16777216&b.flags)for(var i=_a(a,b.nodeIndex).viewContainer._embeddedViews,j=0;j<i.length;j++)Fb(i[j],c,d,e,f);1&b.flags&&!b.element.name&&Gb(a,c,b.nodeIndex+1,b.nodeIndex+b.childCount,d,e,f)}}function Jb(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 Kb(a){if(":"===a[0]){var b=a.match(ci);return[b[1],b[2]]}return["",a]}function Lb(a){for(var b=0,c=0;c<a.length;c++)b|=a[c].flags;return b}function Mb(a,b){for(var c="",d=0;d<2*a;d+=2)c=c+b[d]+Ob(b[d+1]);return c+b[2*a]}function Nb(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+Ob(c)+d;case 2:return b+Ob(c)+d+Ob(e)+f;case 3:return b+Ob(c)+d+Ob(e)+f+Ob(g)+h;case 4:return b+Ob(c)+d+Ob(e)+f+Ob(g)+h+Ob(i)+j;case 5:return b+Ob(c)+d+Ob(e)+f+Ob(g)+h+Ob(i)+j+Ob(k)+l;case 6:return b+Ob(c)+d+Ob(e)+f+Ob(g)+h+Ob(i)+j+Ob(k)+l+Ob(m)+n;case 7:return b+Ob(c)+d+Ob(e)+f+Ob(g)+h+Ob(i)+j+Ob(k)+l+Ob(m)+n+Ob(o)+p;case 8:return b+Ob(c)+d+Ob(e)+f+Ob(g)+h+Ob(i)+j+Ob(k)+l+Ob(m)+n+Ob(o)+p+Ob(q)+r;case 9:return b+Ob(c)+d+Ob(e)+f+Ob(g)+h+Ob(i)+j+Ob(k)+l+Ob(m)+n+Ob(o)+p+Ob(q)+r+Ob(s)+t;default:throw new Error("Does not support more than 9 expressions")}}function Ob(a){return null!=a?a.toString():""}function Pb(a,b,c,d,e,f){a|=1;var g=Ab(b),h=g.matchedQueries,i=g.references;return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:a,checkIndex:-1,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?Db(f):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:e||Yh},provider:null,text:null,query:null,ngContent:null}}function Qb(a,b,c,d,e,f,g,h,i,j,k,l){void 0===g&&(g=[]),j||(j=Yh);var m=Ab(c),n=m.matchedQueries,o=m.references,p=m.matchedQueryIds,q=null,r=null;f&&(I=Kb(f),q=I[0],r=I[1]),h=h||[];for(var s=new Array(h.length),t=0;t<h.length;t++){var u=h[t],v=u[0],w=u[1],x=u[2],y=Kb(w),z=y[0],A=y[1],B=void 0,C=void 0;switch(15&v){case 4:C=x;break;case 1:case 8:B=x}s[t]={flags:v,ns:z,name:A,nonMinifiedName:A,securityContext:B,suffix:C}}i=i||[];for(var D=new Array(i.length),t=0;t<i.length;t++){var E=i[t],F=E[0],G=E[1];D[t]={type:0,target:F,eventName:G,propName:null}}g=g||[];var H=g.map(function(a){var b=a[0],c=a[1],d=Kb(b);return[d[0],d[1],c]});return l=mb(l),k&&(b|=33554432),b|=1,{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:a,flags:b,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:n,matchedQueryIds:p,references:o,ngContentIndex:d,childCount:e,bindings:s,bindingFlags:Lb(s),outputs:D,element:{ns:q,name:r,attrs:H,template:null,componentProvider:null,componentView:k||null,componentRendererType:l,publicProviders:null,allProviders:null,handleEvent:j||Yh},provider:null,text:null,query:null,ngContent:null};var I}function Rb(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=Cb(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 Sb(a,b,c,d){for(var e=0;e<c.outputs.length;e++){var f=c.outputs[e],g=Tb(a,c.nodeIndex,wb(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 Tb(a,b,c){return function(d){return sb(a,b,c,d)}}function Ub(a,b,c,d,e,f,g,h,i,j,k,l){var m=b.bindings.length,n=!1;return m>0&&Wb(a,b,0,c)&&(n=!0),m>1&&Wb(a,b,1,d)&&(n=!0),m>2&&Wb(a,b,2,e)&&(n=!0),m>3&&Wb(a,b,3,f)&&(n=!0),m>4&&Wb(a,b,4,g)&&(n=!0),m>5&&Wb(a,b,5,h)&&(n=!0),m>6&&Wb(a,b,6,i)&&(n=!0),m>7&&Wb(a,b,7,j)&&(n=!0),m>8&&Wb(a,b,8,k)&&(n=!0),m>9&&Wb(a,b,9,l)&&(n=!0),n}function Vb(a,b,c){for(var d=!1,e=0;e<c.length;e++)Wb(a,b,e,c[e])&&(d=!0);return d}function Wb(a,b,c,d){if(!ob(a,b,c,d))return!1;var e=b.bindings[c],f=_a(a,b.nodeIndex),g=f.renderElement,h=e.name;switch(15&e.flags){case 1:Xb(a,e,g,e.ns,h,d);break;case 2:Yb(a,g,h,d);break;case 4:Zb(a,e,g,h,d);break;case 8:$b(33554432&b.flags&&32&e.flags?f.componentView:a,e,g,h,d)}return!0}function Xb(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 Yb(a,b,c,d){var e=a.renderer;d?e.addClass(b,c):e.removeClass(b,c)}function Zb(a,b,c,d,e){var f=a.root.sanitizer.sanitize(Uh.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 $b(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 _b(a,b,c,d){return c=q(c),{index:-1,deps:Bb(d),flags:a,token:b,value:c}}function ac(a){for(var b={},c=0;c<a.length;c++){var d=a[c];d.index=c,b[jb(d.token)]=d}return{factory:null,providersByKey:b,providers:a}}function bc(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];4096&e.flags||(c[d]=dc(a,e))}}function cc(a,b,c){if(void 0===c&&(c=Ef.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 gi:case hi:return a}var e=a._def.providersByKey[d];if(e){var f=a._providers[e.index];return void 0===f&&(f=a._providers[e.index]=dc(a,e)),f===fi?void 0:f}return a._parent.get(b.token,c)}function dc(a,b){var c;switch(201347067&b.flags){case 512:c=ec(a,b.value,b.deps);break;case 1024:c=fc(a,b.value,b.deps);break;case 2048:c=cc(a,b.deps[0]);break;case 256:c=b.value}return void 0===c?fi:c}function ec(a,b,c){var d=c.length;switch(d){case 0:return new b;case 1:return new b(cc(a,c[0]));case 2:return new b(cc(a,c[0]),cc(a,c[1]));case 3:return new b(cc(a,c[0]),cc(a,c[1]),cc(a,c[2]));default:for(var e=new Array(d),f=0;f<d;f++)e[f]=cc(a,c[f]);return new(b.bind.apply(b,[void 0].concat(e)))}}function fc(a,b,c){var d=c.length;switch(d){case 0:return b();case 1:return b(cc(a,c[0]));case 2:return b(cc(a,c[0]),cc(a,c[1]));case 3:return b(cc(a,c[0]),cc(a,c[1]),cc(a,c[2]));default:for(var e=Array(d),f=0;f<d;f++)e[f]=cc(a,c[f]);return b.apply(void 0,e)}}function gc(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!==fi&&e.ngOnDestroy()}}}function hc(a,b,c,d){var e=b.viewContainer._embeddedViews;null!==c&&void 0!==c||(c=e.length),d.viewContainerParent=a,pc(e,c,d),ic(b,d),Xh.dirtyParentQueries(d),nc(b,c>0?e[c-1]:null,d)}function ic(a,b){var c=tb(b);if(c&&c!==a&&!(16&b.state)){b.state|=16;var d=c.template._projectedViews;d||(d=c.template._projectedViews=[]),d.push(b),jc(b.parent.def,b.parentNodeDef)}}function jc(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 kc(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,qc(c,b),Xh.dirtyParentQueries(d),oc(d),d}function lc(a){if(16&a.state){var b=tb(a);if(b){var c=b.template._projectedViews;c&&(qc(c,c.indexOf(a)),Xh.dirtyParentQueries(a))}}}function mc(a,b,c){var d=a.viewContainer._embeddedViews,e=d[b];return qc(d,b),null==c&&(c=d.length),pc(d,c,e),Xh.dirtyParentQueries(e),oc(e),nc(a,c>0?d[c-1]:null,e),e}function nc(a,b,c){var d=b?vb(b,b.def.lastRenderRootNode):a.renderElement;Fb(c,2,c.renderer.parentNode(d),c.renderer.nextSibling(d),void 0)}function oc(a){Fb(a,3,null,null,void 0)}function pc(a,b,c){b>=a.length?a.push(c):a.splice(b,0,c)}function qc(a,b){b>=a.length-1?a.pop():a.splice(b,1)}function rc(a,b,c,d,e,f){return new ji(a,b,c,d,e,f)}function sc(a){return a.viewDefFactory}function tc(a,b,c){return new li(a,b,c)}function uc(a){return new mi(a)}function vc(a,b){return new ni(a,b)}function wc(a,b){return new oi(a,b)}function xc(a,b){var c=a.def.nodes[b];if(1&c.flags){var d=_a(a,c.nodeIndex);return c.element.template?d.template:d.renderElement}if(2&c.flags)return $a(a,c.nodeIndex).renderText;if(20240&c.flags)return ab(a,c.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+b)}function yc(a){return new pi(a.renderer)}function zc(a,b,c,d){return new qi(a,b,c,d)}function Ac(a,b,c,d,e,f,g,h){var i=[];if(g)for(var j in g){var k=g[j],l=k[0],m=k[1];i[l]={flags:8,name:j,nonMinifiedName:m,ns:null,securityContext:null,suffix:null}}var n=[];if(h)for(var o in h)n.push({type:1,propName:o,target:null,eventName:h[o]});return b|=16384,Dc(a,b,c,d,e,e,f,i,n)}function Bc(a,b,c){return a|=16,Dc(-1,a,null,0,b,b,c)}function Cc(a,b,c,d,e){return Dc(-1,a,b,0,c,d,e)}function Dc(a,b,c,d,e,f,g,h,i){var j=Ab(c),k=j.matchedQueries,l=j.references,m=j.matchedQueryIds;i||(i=[]),h||(h=[]),f=q(f);var n=Bb(g);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:a,flags:b,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:k,matchedQueryIds:m,references:l,ngContentIndex:-1,childCount:d,bindings:h,bindingFlags:Lb(h),outputs:i,element:null,provider:{token:e,value:f,deps:n},text:null,query:null,ngContent:null}}function Ec(a,b){return Kc(a,b)}function Fc(a,b){for(var c=a;c.parent&&!xb(c);)c=c.parent;return Lc(c.parent,ub(c),!0,b.provider.value,b.provider.deps)}function Gc(a,b){var c=(32768&b.flags)>0,d=Lc(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(Hc(a,b.parent.nodeIndex,f.eventName));a.disposables[b.outputIndex+e]=g.unsubscribe.bind(g)}return d}function Hc(a,b,c){return function(d){return sb(a,b,c,d)}}function Ic(a,b,c,d,e,f,g,h,i,j,k,l){var m=ab(a,b.nodeIndex),n=m.instance,o=!1,p=void 0,q=b.bindings.length;return q>0&&nb(a,b,0,c)&&(o=!0,p=Pc(a,m,b,0,c,p)),q>1&&nb(a,b,1,d)&&(o=!0,p=Pc(a,m,b,1,d,p)),q>2&&nb(a,b,2,e)&&(o=!0,p=Pc(a,m,b,2,e,p)),q>3&&nb(a,b,3,f)&&(o=!0,p=Pc(a,m,b,3,f,p)),q>4&&nb(a,b,4,g)&&(o=!0,p=Pc(a,m,b,4,g,p)),q>5&&nb(a,b,5,h)&&(o=!0,p=Pc(a,m,b,5,h,p)),q>6&&nb(a,b,6,i)&&(o=!0,p=Pc(a,m,b,6,i,p)),q>7&&nb(a,b,7,j)&&(o=!0,p=Pc(a,m,b,7,j,p)),q>8&&nb(a,b,8,k)&&(o=!0,p=Pc(a,m,b,8,k,p)),q>9&&nb(a,b,9,l)&&(o=!0,p=Pc(a,m,b,9,l,p)),p&&n.ngOnChanges(p),65536&b.flags&&Za(a,256,b.nodeIndex)&&n.ngOnInit(),262144&b.flags&&n.ngDoCheck(),o}function Jc(a,b,c){for(var d=ab(a,b.nodeIndex),e=d.instance,f=!1,g=void 0,h=0;h<c.length;h++)nb(a,b,h,c[h])&&(f=!0,g=Pc(a,d,b,h,c[h],g));return g&&e.ngOnChanges(g),65536&b.flags&&Za(a,256,b.nodeIndex)&&e.ngOnInit(),262144&b.flags&&e.ngDoCheck(),f}function Kc(a,b){var c=(8192&b.flags)>0,d=b.provider;switch(201347067&b.flags){case 512:return Lc(a,b.parent,c,d.value,d.deps);case 1024:return Mc(a,b.parent,c,d.value,d.deps);case 2048:return Nc(a,b.parent,c,d.deps[0]);case 256:return d.value}}function Lc(a,b,c,d,e){var f=e.length;switch(f){case 0:return new d;case 1:return new d(Nc(a,b,c,e[0]));case 2:return new d(Nc(a,b,c,e[0]),Nc(a,b,c,e[1]));case 3:return new d(Nc(a,b,c,e[0]),Nc(a,b,c,e[1]),Nc(a,b,c,e[2]));default:for(var g=new Array(f),h=0;h<f;h++)g[h]=Nc(a,b,c,e[h]);return new(d.bind.apply(d,[void 0].concat(g)))}}function Mc(a,b,c,d,e){var f=e.length;switch(f){case 0:return d();case 1:return d(Nc(a,b,c,e[0]));case 2:return d(Nc(a,b,c,e[0]),Nc(a,b,c,e[1]));case 3:return d(Nc(a,b,c,e[0]),Nc(a,b,c,e[1]),Nc(a,b,c,e[2]));default:for(var g=Array(f),h=0;h<f;h++)g[h]=Nc(a,b,c,e[h]);return d.apply(void 0,g)}}function Nc(a,b,c,d,e){if(void 0===e&&(e=Ef.THROW_IF_NOT_FOUND),8&d.flags)return d.token;var f=a;2&d.flags&&(e=null);var g=d.tokenKey;for(g===wi&&(c=!(!b||!b.element.componentView)),b&&1&d.flags&&(c=!1,b=b.parent);a;){if(b)switch(g){case ri:var h=Oc(a,b,c);return yc(h);case si:var h=Oc(a,b,c);return h.renderer;case ti:return new dh(_a(a,b.nodeIndex).renderElement);case ui:return _a(a,b.nodeIndex).viewContainer;case vi:if(b.element.template)return _a(a,b.nodeIndex).template;break;case wi:return uc(Oc(a,b,c));case xi:return wc(a,b);default:var i=(c?b.element.allProviders:b.element.publicProviders)[g];if(i){var j=ab(a,i.nodeIndex);return j||(j={instance:Kc(a,i)},a.nodes[i.nodeIndex]=j),j.instance}}c=xb(a),b=ub(a),a=a.parent}var k=f.root.injector.get(d.token,yi);return k!==yi||e===yi?k:f.root.ngModule.injector.get(d.token,e)}function Oc(a,b,c){var d;if(c)d=_a(a,b.nodeIndex).componentView;else for(d=a;d.parent&&!xb(d);)d=d.parent;return d}function Pc(a,b,c,d,e,f){if(32768&c.flags){var g=_a(a,c.parent.nodeIndex).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 vh&&(j=j.wrapped);f[c.bindings[d].nonMinifiedName]=new xh(j,e,0!=(2&a.state))}return a.oldValues[c.bindingIndex+d]=e,f}function Qc(a,b){if(a.def.nodeFlags&b)for(var c=a.def.nodes,d=0,e=0;e<c.length;e++){var f=c[e],g=f.parent;for(!g&&f.flags&b&&Sc(a,e,f.flags&b,d++),0==(f.childFlags&b)&&(e+=f.childCount);g&&1&g.flags&&e===g.nodeIndex+g.childCount;)g.directChildFlags&b&&(d=Rc(a,g,b,d)),g=g.parent}}function Rc(a,b,c,d){for(var e=b.nodeIndex+1;e<=b.nodeIndex+b.childCount;e++){var f=a.def.nodes[e];f.flags&c&&Sc(a,e,f.flags&c,d++),e+=f.childCount}return d}function Sc(a,b,c,d){var e=ab(a,b);if(e){var f=e.instance;f&&(Xh.setCurrentNode(a,b),1048576&c&&Za(a,512,d)&&f.ngAfterContentInit(),2097152&c&&f.ngAfterContentChecked(),4194304&c&&Za(a,768,d)&&f.ngAfterViewInit(),8388608&c&&f.ngAfterViewChecked(),131072&c&&f.ngOnDestroy())}}function Tc(a,b,c){var d=[];for(var e in c){var f=c[e];d.push({propName:e,bindingType:f})}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-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:zb(b),bindings:d},ngContent:null}}function Uc(){return new gh}function Vc(a){for(var b=a.def.nodeMatchedQueries;a.parent&&yb(a);){var c=a.parentNodeDef;a=a.parent;for(var d=c.nodeIndex+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&&cb(a,e).setDirty(),!(1&f.flags&&e+f.childCount<c.nodeIndex)&&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&&cb(a,e).setDirty(),e+=f.childCount}}function Wc(a,b){var c=cb(a,b.nodeIndex);if(c.dirty){var d,e=void 0;if(67108864&b.flags){var f=b.parent.parent;e=Xc(a,f.nodeIndex,f.nodeIndex+f.childCount,b.query,[]),d=ab(a,b.parent.nodeIndex).instance}else 134217728&b.flags&&(e=Xc(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 Xc(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(Yc(a,g,h)),1&g.flags&&g.element.template&&(g.element.template.nodeMatchedQueries&d.filterId)===d.filterId){var i=_a(a,f);if((g.childMatchedQueries&d.filterId)===d.filterId&&(Xc(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=tb(l);m&&m===i&&Xc(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];Xc(o,0,o.def.nodes.length-1,d,e)}}(g.childMatchedQueries&d.filterId)!==d.filterId&&(f+=g.childCount)}return e}function Yc(a,b,c){if(null!=c)switch(c){case 1:return _a(a,b.nodeIndex).renderElement;case 0:return new dh(_a(a,b.nodeIndex).renderElement);case 2:return _a(a,b.nodeIndex).template;case 3:return _a(a,b.nodeIndex).viewContainer;case 4:return ab(a,b.nodeIndex).instance}}function Zc(a,b){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-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 $c(a,b,c){var d=Cb(a,b,c);if(d){Hb(a,c.ngContent.index,1,d,null,void 0)}}function _c(a,b){return cd(128,a,new Array(b+1))}function ad(a,b){return cd(32,a,new Array(b))}function bd(a,b){for(var c=Object.keys(b),d=c.length,e=new Array(d),f=0;f<d;f++){var g=c[f];e[b[g]]=g}return cd(64,a,e)}function cd(a,b,c){for(var d=new Array(c.length),e=0;e<c.length;e++){var f=c[e];d[e]={flags:8,name:f,ns:null,nonMinifiedName:f,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:b,flags:a,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:d,bindingFlags:Lb(d),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function dd(a,b){return{value:void 0}}function ed(a,b,c,d,e,f,g,h,i,j,k,l){var m=b.bindings,n=!1,o=m.length;if(o>0&&ob(a,b,0,c)&&(n=!0),o>1&&ob(a,b,1,d)&&(n=!0),o>2&&ob(a,b,2,e)&&(n=!0),o>3&&ob(a,b,3,f)&&(n=!0),o>4&&ob(a,b,4,g)&&(n=!0),o>5&&ob(a,b,5,h)&&(n=!0),o>6&&ob(a,b,6,i)&&(n=!0),o>7&&ob(a,b,7,j)&&(n=!0),o>8&&ob(a,b,8,k)&&(n=!0),o>9&&ob(a,b,9,l)&&(n=!0),n){var p=bb(a,b.nodeIndex),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 fd(a,b,c){for(var d=b.bindings,e=!1,f=0;f<c.length;f++)ob(a,b,f,c[f])&&(e=!0);if(e){var g=bb(a,b.nodeIndex),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 gd(a,b,c){for(var d=new Array(c.length-1),e=1;e<c.length;e++)d[e-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:c[e]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:a,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:b,childCount:0,bindings:d,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:c[0]},query:null,ngContent:null}}function hd(a,b,c){var d,e=a.renderer;d=e.createText(c.text.prefix);var f=Cb(a,b,c);return f&&e.appendChild(f,d),{renderText:d}}function id(a,b,c,d,e,f,g,h,i,j,k,l){var m=!1,n=b.bindings,o=n.length;if(o>0&&ob(a,b,0,c)&&(m=!0),o>1&&ob(a,b,1,d)&&(m=!0),o>2&&ob(a,b,2,e)&&(m=!0),o>3&&ob(a,b,3,f)&&(m=!0),o>4&&ob(a,b,4,g)&&(m=!0),o>5&&ob(a,b,5,h)&&(m=!0),o>6&&ob(a,b,6,i)&&(m=!0),o>7&&ob(a,b,7,j)&&(m=!0),o>8&&ob(a,b,8,k)&&(m=!0),o>9&&ob(a,b,9,l)&&(m=!0),m){var p=b.text.prefix;o>0&&(p+=kd(c,n[0])),o>1&&(p+=kd(d,n[1])),o>2&&(p+=kd(e,n[2])),o>3&&(p+=kd(f,n[3])),o>4&&(p+=kd(g,n[4])),o>5&&(p+=kd(h,n[5])),o>6&&(p+=kd(i,n[6])),o>7&&(p+=kd(j,n[7])),o>8&&(p+=kd(k,n[8])),o>9&&(p+=kd(l,n[9]));var q=$a(a,b.nodeIndex).renderText;a.renderer.setValue(q,p)}return m}function jd(a,b,c){for(var d=b.bindings,e=!1,f=0;f<c.length;f++)ob(a,b,f,c[f])&&(e=!0);if(e){for(var g="",f=0;f<c.length;f++)g+=kd(c[f],d[f]);g=b.text.prefix+g;var h=$a(a,b.nodeIndex).renderText;a.renderer.setValue(h,g)}return e}function kd(a,b){return(null!=a?a.toString():"")+b.suffix}function ld(a,b,c,d){for(var e=0,f=0,g=0,h=0,i=0,j=null,k=null,l=!1,m=!1,n=null,o=0;o<b.length;o++){var p=b[o];if(p.nodeIndex=o,p.parent=j,p.bindingIndex=e,p.outputIndex=f,p.renderParent=k,g|=p.flags,i|=p.matchedQueryIds,p.element){var q=p.element;q.publicProviders=j?j.element.publicProviders:Object.create(null),q.allProviders=q.publicProviders,l=!1,m=!1,p.element.template&&(i|=p.element.template.nodeMatchedQueries)}if(nd(j,p,b.length),e+=p.bindings.length,f+=p.outputs.length,!k&&3&p.flags&&(n=p),20224&p.flags){l||(l=!0,j.element.publicProviders=Object.create(j.element.publicProviders),j.element.allProviders=j.element.publicProviders);var r=0!=(8192&p.flags),s=0!=(32768&p.flags);!r||s?j.element.publicProviders[jb(p.provider.token)]=p:(m||(m=!0,j.element.allProviders=Object.create(j.element.publicProviders)),j.element.allProviders[jb(p.provider.token)]=p),s&&(j.element.componentProvider=p)}if(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,p.childCount>0)j=p,md(p)||(k=p);else for(;j&&o===j.nodeIndex+j.childCount;){var t=j.parent;t&&(t.childFlags|=j.childFlags,t.childMatchedQueries|=j.childMatchedQueries),j=t,k=j&&md(j)?j.renderParent:j}}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||Yh,updateRenderer:d||Yh,handleEvent:u,bindingCount:e,outputCount:f,lastRenderRootNode:n}}function md(a){return 0!=(1&a.flags)&&null===a.element.name}function nd(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.nodeIndex+"!")}if(20224&b.flags){if(0==(1&(a?a.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+b.nodeIndex+"!")}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.nodeIndex+"!");if(134217728&b.flags&&a)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+b.nodeIndex+"!")}if(b.childCount){var e=a?a.nodeIndex+a.childCount:c-1;if(b.nodeIndex<=e&&b.nodeIndex+b.childCount>e)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+b.nodeIndex+"!")}}function od(a,b,c,d){var e=rd(a.root,a.renderer,a,b,c);return sd(e,a.component,d),td(e),e}function pd(a,b,c){var d=rd(a,a.renderer,null,null,b);return sd(d,c,c),td(d),d}function qd(a,b,c,d){var e,f=b.element.componentRendererType;return e=f?a.root.rendererFactory.createRenderer(d,f):a.root.renderer,rd(a.root,e,a,b.element.componentProvider,c)}function rd(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,initIndex:-1}}function sd(a,b,c){a.component=b,a.context=c}function td(a){var b;if(xb(a)){var c=a.parentNodeDef;b=_a(a.parent,c.parent.nodeIndex).renderElement}for(var d=a.def,e=a.nodes,f=0;f<d.nodes.length;f++){var g=d.nodes[f];Xh.setCurrentNode(a,f);var h=void 0;switch(201347067&g.flags){case 1:var i=Rb(a,b,g),j=void 0;if(33554432&g.flags){var k=Db(g.element.componentView);j=Xh.createComponentView(a,g,k,i)}Sb(a,j,g,i),h={renderElement:i,componentView:j,viewContainer:null,template:g.element.template?vc(a,g):void 0},16777216&g.flags&&(h.viewContainer=tc(a,g,h));break;case 2:h=hd(a,b,g);break;case 512:case 1024:case 2048:case 256:if(!((h=e[f])||4096&g.flags)){var l=Ec(a,g);h={instance:l}}break;case 16:var l=Fc(a,g);h={instance:l};break;case 16384:if(!(h=e[f])){var l=Gc(a,g);h={instance:l}}if(32768&g.flags){sd(_a(a,g.parent.nodeIndex).componentView,h.instance,h.instance)}break;case 32:case 64:case 128:h=dd(a,g);break;case 67108864:case 134217728:h=Uc();break;case 8:$c(a,b,g),h=void 0}e[f]=h}Gd(a,zi.CreateViewNodes),Kd(a,201326592,268435456,0)}function ud(a){xd(a),Xh.updateDirectives(a,1),Hd(a,zi.CheckNoChanges),Xh.updateRenderer(a,1),Gd(a,zi.CheckNoChanges),a.state&=-97}function vd(a){1&a.state?(a.state&=-2,a.state|=2):a.state&=-3,Ya(a,0,256),xd(a),Xh.updateDirectives(a,0),Hd(a,zi.CheckAndUpdate),Kd(a,67108864,536870912,0);var b=Ya(a,256,512);Qc(a,2097152|(b?1048576:0)),Xh.updateRenderer(a,0),Gd(a,zi.CheckAndUpdate),Kd(a,134217728,536870912,0),b=Ya(a,512,768),Qc(a,8388608|(b?4194304:0)),2&a.def.flags&&(a.state&=-9),a.state&=-97,Ya(a,768,1024)}function wd(a,b,c,d,e,f,g,h,i,j,k,l,m){return 0===c?yd(a,b,d,e,f,g,h,i,j,k,l,m):zd(a,b,d)}function xd(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=_a(a,c).template._projectedViews;if(e)for(var f=0;f<e.length;f++){var g=e[f];g.state|=32,rb(g,a)}}else 0==(4&d.childFlags)&&(c+=d.childCount)}}function yd(a,b,c,d,e,f,g,h,i,j,k,l){switch(201347067&b.flags){case 1:return Ub(a,b,c,d,e,f,g,h,i,j,k,l);case 2:return id(a,b,c,d,e,f,g,h,i,j,k,l);case 16384:return Ic(a,b,c,d,e,f,g,h,i,j,k,l);case 32:case 64:case 128:return ed(a,b,c,d,e,f,g,h,i,j,k,l);default:throw"unreachable"}}function zd(a,b,c){switch(201347067&b.flags){case 1:return Vb(a,b,c);case 2:return jd(a,b,c);case 16384:return Jc(a,b,c);case 32:case 64:case 128:return fd(a,b,c);default:throw"unreachable"}}function Ad(a,b,c,d,e,f,g,h,i,j,k,l,m){return 0===c?Bd(a,b,d,e,f,g,h,i,j,k,l,m):Cd(a,b,d),!1}function Bd(a,b,c,d,e,f,g,h,i,j,k,l){var m=b.bindings.length;m>0&&pb(a,b,0,c),m>1&&pb(a,b,1,d),m>2&&pb(a,b,2,e),m>3&&pb(a,b,3,f),m>4&&pb(a,b,4,g),m>5&&pb(a,b,5,h),m>6&&pb(a,b,6,i),m>7&&pb(a,b,7,j),m>8&&pb(a,b,8,k),m>9&&pb(a,b,9,l)}function Cd(a,b,c){for(var d=0;d<c.length;d++)pb(a,b,d,c[d])}function Dd(a,b){if(cb(a,b.nodeIndex).dirty)throw db(Xh.createDebugContext(a,b.nodeIndex),"Query "+b.query.id+" not dirty","Query "+b.query.id+" dirty",0!=(1&a.state))}function Ed(a){if(!(128&a.state)){if(Hd(a,zi.Destroy),Gd(a,zi.Destroy),Qc(a,131072),a.disposables)for(var b=0;b<a.disposables.length;b++)a.disposables[b]();lc(a),a.renderer.destroyNode&&Fd(a),xb(a)&&a.renderer.destroy(),a.state|=128}}function Fd(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(_a(a,c).renderElement):2&d.flags?a.renderer.destroyNode($a(a,c).renderText):(67108864&d.flags||134217728&d.flags)&&cb(a,c).destroy()}}function Gd(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?Id(_a(a,d).componentView,b):0==(33554432&e.childFlags)&&(d+=e.childCount)}}function Hd(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=_a(a,d).viewContainer._embeddedViews,g=0;g<f.length;g++)Id(f[g],b);else 0==(16777216&e.childFlags)&&(d+=e.childCount)}}function Id(a,b){var c=a.state;switch(b){case zi.CheckNoChanges:0==(128&c)&&(12==(12&c)?ud(a):64&c&&Jd(a,zi.CheckNoChangesProjectedViews));break;case zi.CheckNoChangesProjectedViews:0==(128&c)&&(32&c?ud(a):64&c&&Jd(a,b));break;case zi.CheckAndUpdate:0==(128&c)&&(12==(12&c)?vd(a):64&c&&Jd(a,zi.CheckAndUpdateProjectedViews));break;case zi.CheckAndUpdateProjectedViews:0==(128&c)&&(32&c?vd(a):64&c&&Jd(a,b));break;case zi.Destroy:Ed(a);break;case zi.CreateViewNodes:td(a)}}function Jd(a,b){Hd(a,b),Gd(a,b)}function Kd(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(Xh.setCurrentNode(a,g.nodeIndex),d){case 0:Wc(a,g);break;case 1:Dd(a,g)}g.childFlags&b&&g.childFlags&c||(f+=g.childCount)}}function Ld(){if(!Ai){Ai=!0;var a=ua()?Nd():Md();Xh.setCurrentNode=a.setCurrentNode,Xh.createRootView=a.createRootView,Xh.createEmbeddedView=a.createEmbeddedView,Xh.createComponentView=a.createComponentView,Xh.createNgModuleRef=a.createNgModuleRef,Xh.overrideProvider=a.overrideProvider,Xh.overrideComponentView=a.overrideComponentView,Xh.clearOverrides=a.clearOverrides,Xh.checkAndUpdateView=a.checkAndUpdateView,Xh.checkNoChangesView=a.checkNoChangesView,Xh.destroyView=a.destroyView,Xh.resolveDep=Nc,Xh.createDebugContext=a.createDebugContext,Xh.handleEvent=a.handleEvent,Xh.updateDirectives=a.updateDirectives,Xh.updateRenderer=a.updateRenderer,Xh.dirtyParentQueries=Vc}}function Md(){return{setCurrentNode:function(){},createRootView:Od,createEmbeddedView:od,createComponentView:qd,createNgModuleRef:zc,overrideProvider:Yh,overrideComponentView:Yh,clearOverrides:Yh,checkAndUpdateView:vd,checkNoChangesView:ud,destroyView:Ed,createDebugContext:function(a,b){return new Ii(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?Zd:$d,a)},updateRenderer:function(a,b){return a.def.updateRenderer(0===b?Zd:$d,a)}}}function Nd(){return{setCurrentNode:ce,createRootView:Pd,createEmbeddedView:Rd,createComponentView:Sd,createNgModuleRef:Td,overrideProvider:Ud,overrideComponentView:Vd,clearOverrides:Wd,checkAndUpdateView:_d,checkNoChangesView:ae,destroyView:be,createDebugContext:function(a,b){return new Ii(a,b)},handleEvent:de,updateDirectives:ee,updateRenderer:fe}}function Od(a,b,c,d,e,f){return pd(Qd(a,e,e.injector.get(ah),b,c),d,f)}function Pd(a,b,c,d,e,f){var g=e.injector.get(ah),h=Qd(a,e,new Ji(g),b,c),i=Xd(d);return qe(Di.create,pd,null,[h,i,f])}function Qd(a,b,c,d,e){var f=b.injector.get(Vh),g=b.injector.get(Vf);return{ngModule:b,injector:a,projectableNodes:d,selectorOrNode:e,sanitizer:f,rendererFactory:c,renderer:c.createRenderer(null,null),errorHandler:g}}function Rd(a,b,c,d){var e=Xd(c);return qe(Di.create,od,null,[a,b,e,d])}function Sd(a,b,c,d){var e=Ci.get(b.element.componentProvider.provider.token);return c=e||Xd(c),qe(Di.create,qd,null,[a,b,c,d])}function Td(a,b,c,d){return zc(a,b,c,Yd(d))}function Ud(a){Bi.set(a.token,a)}function Vd(a,b){var c=Db(sc(b)),d=Db(c.nodes[0].element.componentView);Ci.set(a,d)}function Wd(){Bi.clear(),Ci.clear()}function Xd(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&&Bi.has(e.provider.token)&&(b.push(c.nodeIndex),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){var e=d.provider,f=Bi.get(e.token);f&&(d.flags=-3841&d.flags|f.flags,e.deps=Bb(f.deps),e.value=f.value)}}}if(0===Bi.size)return a;var d=b(a);if(0===d.length)return a;a=a.factory(function(){return Yh});for(var e=0;e<d.length;e++)c(a,d[e]);return a}function Yd(a){function b(a){var b=!1,c=!1;return 0===Bi.size?{hasOverrides:b,hasDeprecatedOverrides:c}:(a.providers.forEach(function(a){var d=Bi.get(a.token);3840&a.flags&&d&&(b=!0,c=c||d.deprecatedBehavior)}),{hasOverrides:b,hasDeprecatedOverrides:c})}function c(a){for(var b=0;b<a.providers.length;b++){var c=a.providers[b];f&&(c.flags|=4096);var d=Bi.get(c.token);d&&(c.flags=-3841&c.flags|d.flags,c.deps=Bb(d.deps),c.value=d.value)}}var d=b(a),e=d.hasOverrides,f=d.hasDeprecatedOverrides;return e?(a=a.factory(function(){return Yh}),c(a),a):a}function Zd(a,b,c,d,e,f,g,h,i,j,k,l,m){var n=a.def.nodes[b];return wd(a,n,c,d,e,f,g,h,i,j,k,l,m),224&n.flags?bb(a,b).value:void 0}function $d(a,b,c,d,e,f,g,h,i,j,k,l,m){var n=a.def.nodes[b];return Ad(a,n,c,d,e,f,g,h,i,j,k,l,m),224&n.flags?bb(a,b).value:void 0}function _d(a){return qe(Di.detectChanges,vd,null,[a])}function ae(a){return qe(Di.checkNoChanges,ud,null,[a])}function be(a){return qe(Di.destroy,Ed,null,[a])}function ce(a,b){Fi=a,Gi=b}function de(a,b,c,d){return ce(a,b),qe(Di.handleEvent,a.def.handleEvent,null,[a,b,c,d])}function ee(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?ge(a,g,d,e):he(a,g,d,e),16384&g.flags&&ce(a,le(a,c)),224&g.flags?bb(a,g.nodeIndex).value:void 0}if(128&a.state)throw ib(Di[Ei]);return ce(a,le(a,0)),a.def.updateDirectives(c,a)}function fe(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?ge(a,g,d,e):he(a,g,d,e),3&g.flags&&ce(a,me(a,c)),224&g.flags?bb(a,g.nodeIndex).value:void 0}if(128&a.state)throw ib(Di[Ei]);return ce(a,me(a,0)),a.def.updateRenderer(c,a)}function ge(a,b,c,d){if(wd.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[ie(h.nonMinifiedName)]=ke(i))}var j=b.parent,k=_a(a,j.nodeIndex).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 he(a,b,c,d){Ad.apply(void 0,[a,b,c].concat(d))}function ie(a){return"ng-reflect-"+(a=je(a.replace(/[$@]/g,"_")))}function je(a){return a.replace(Hi,function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];return"-"+a[1].toLowerCase()})}function ke(a){try{return null!=a?a.toString().slice(0,30):a}catch(a){return"[ERROR] Exception while trying to serialize the value"}}function le(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 me(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 ne(a,b){for(var c=-1,d=0;d<=b;d++){3&a.nodes[d].flags&&c++}return c}function oe(a){for(;a&&!xb(a);)a=a.parent;return a.parent?_a(a.parent,ub(a).nodeIndex):null}function pe(a,b,c){for(var d in b.references)c[d]=Yc(a,b,b.references[d])}function qe(a,b,c,d){var e=Ei,f=Fi,g=Gi;try{Ei=a;var h=b.apply(c,d);return Fi=f,Gi=g,Ei=e,h}catch(a){if(hb(a)||!Fi)throw a;throw eb(a,re())}}function re(){return Fi?new Ii(Fi,Gi):null}function se(a){return Ld(),Xh.overrideProvider(a)}function te(a,b){return Ld(),Xh.overrideComponentView(a,b)}function ue(){return Ld(),Xh.clearOverrides()}function ve(a,b,c){return new Li(a,b,c)}function we(a,b){return{type:7,name:a,definitions:b,options:{}}}function xe(a,b){return void 0===b&&(b=null),{type:4,styles:b,timings:a}}function ye(a,b){return void 0===b&&(b=null),{type:3,steps:a,options:b}}function ze(a,b){return void 0===b&&(b=null),{type:2,steps:a,options:b}}function Ae(a){return{type:6,styles:a,offset:null}}function Be(a,b,c){return{type:0,name:a,styles:b,options:c}}function Ce(a){return{type:5,steps:a}}function De(a,b,c){return void 0===c&&(c=null),{type:1,expr:a,animation:b,options:c}}function Ee(a,b){return we(a,b)}function Fe(a,b){return xe(a,b)}function Ge(a){return ye(a)}function He(a){return ze(a)}function Ie(a){return Ae(a)}function Je(a,b){return Be(a,b)}function Ke(a){return Ce(a)}function Le(a,b){return De(a,b)}var Me=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])},Ne=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++){b=arguments[c];for(var e in b)Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e])}return a},Oe=function(){function a(a){this._desc=a,this.ngMetadataName="InjectionToken"}return a.prototype.toString=function(){return"InjectionToken "+this._desc},a}(),Pe="__annotations__",Qe="__paramaters__",Re="__prop__metadata__",Se=new Oe("AnalyzeForEntryComponents"),Te=i("Attribute",function(a){return{attributeName:a}}),Ue=function(){function a(){}return a}(),Ve=j("ContentChildren",function(a,b){return void 0===b&&(b={}),Ne({selector:a,first:!1,isViewQuery:!1,descendants:!1},b)},Ue),We=j("ContentChild",function(a,b){return void 0===b&&(b={}),Ne({selector:a,first:!0,isViewQuery:!1,descendants:!0},b)},Ue),Xe=j("ViewChildren",function(a,b){return void 0===b&&(b={}),Ne({selector:a,first:!1,isViewQuery:!0,descendants:!0},b)},Ue),Ye=j("ViewChild",function(a,b){return Ne({selector:a,first:!0,isViewQuery:!0,descendants:!0},b)},Ue),Ze={OnPush:0,Default:1};Ze[Ze.OnPush]="OnPush",Ze[Ze.Default]="Default";var $e={CheckOnce:0,Checked:1,CheckAlways:2,Detached:3,Errored:4,Destroyed:5};$e[$e.CheckOnce]="CheckOnce",$e[$e.Checked]="Checked",$e[$e.CheckAlways]="CheckAlways",$e[$e.Detached]="Detached",$e[$e.Errored]="Errored",$e[$e.Destroyed]="Destroyed";var _e=g("Directive",function(a){return void 0===a&&(a={}),a}),af=g("Component",function(a){return void 0===a&&(a={}),Ne({changeDetection:Ze.Default},a)},_e),bf=g("Pipe",function(a){return Ne({pure:!0},a)}),cf=j("Input",function(a){return{bindingPropertyName:a}}),df=j("Output",function(a){return{bindingPropertyName:a}}),ef=j("HostBinding",function(a){return{hostPropertyName:a}}),ff=j("HostListener",function(a,b){return{eventName:a,args:b}}),gf={name:"custom-elements"},hf={name:"no-errors-schema"},jf=g("NgModule",function(a){return a}),kf={Emulated:0,Native:1,None:2};kf[kf.Emulated]="Emulated",kf[kf.Native]="Native",kf[kf.None]="None";var lf,mf,nf,of=function(){function a(a){this.full=a,this.major=a.split(".")[0],this.minor=a.split(".")[1],this.patch=a.split(".").slice(2).join(".")}return a}(),pf=new of("5.1.0"),qf=i("Inject",function(a){return{token:a}}),rf=i("Optional"),sf=g("Injectable"),tf=i("Self"),uf=i("SkipSelf"),vf=i("Host"),wf="undefined"!=typeof window&&window,xf="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,yf="undefined"!=typeof global&&global,zf=wf||yf||xf,Af=null,Bf=new Object,Cf=Bf,Df=function(){function a(){}return a.prototype.get=function(a,b){if(void 0===b&&(b=Bf),b===Bf)throw new Error("NullInjectorError: No provider for "+o(a)+"!");return b},a}(),Ef=function(){function a(){}return a.create=function(a,b){return new Rf(a,b)},a.THROW_IF_NOT_FOUND=Bf,a.NULL=new Df,a}(),Ff=function(a){return a},Gf=[],Hf=Ff,If=function(){return Array.prototype.slice.call(arguments)},Jf={},Kf=Jf,Lf=z({provide:String,useValue:Kf}),Mf="ngTokenPath",Nf="ngTempTokenPath",Of=Ef.NULL,Pf=/\n/gm,Qf="ɵ",Rf=function(){function a(a,b){void 0===b&&(b=Of),this.parent=b;var c=this._records=new Map;c.set(Ef,{token:Ef,fn:Ff,deps:Gf,value:this,useNew:!1}),t(c,a)}return a.prototype.get=function(a,b){var c=this._records.get(a);try{return u(a,c,this._records,this.parent,b)}catch(a){var d=a[Nf];throw a.message=x("\n"+a.message,d),a[Mf]=d,a[Nf]=null,a}},a.prototype.toString=function(){var a=[];return this._records.forEach(function(b,c){return a.push(o(c))}),"StaticInjector["+a.join(", ")+"]"},a}(),Sf="ngDebugContext",Tf="ngOriginalError",Uf="ngErrorLogger",Vf=function(){function a(){this._console=console}return a.prototype.handleError=function(a){var b=this._findOriginalError(a),c=this._findContext(a),d=C(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?A(a)?A(a):this._findContext(B(a)):null},a.prototype._findOriginalError=function(a){for(var b=B(a);b&&B(b);)b=B(b);return b},a}(),Wf=function(){function a(a,b){if(this.token=a,this.id=b,!a)throw new Error("Token must be defined!");this.displayName=o(this.token)}return a.get=function(a){return Yf.get(q(a))},Object.defineProperty(a,"numberOfKeys",{get:function(){return Yf.numberOfKeys},enumerable:!0,configurable:!0}),a}(),Xf=function(){function a(){this._allKeys=new Map}return a.prototype.get=function(a){if(a instanceof Wf)return a;if(this._allKeys.has(a))return this._allKeys.get(a);var b=new Wf(a,Wf.numberOfKeys);return this._allKeys.set(a,b),b},Object.defineProperty(a.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),a}(),Yf=new Xf,Zf=Function,$f=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,_f=function(){function a(a){this._reflect=a||zf.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($f.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&&R(a.decorators)});return this._zipTypesAndAnnotations(e,f)}var g=a.hasOwnProperty(Qe)&&a[Qe],h=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",a);return h||g?this._zipTypesAndAnnotations(h,g):new Array(a.length).fill(void 0)},a.prototype.parameters=function(a){if(!Q(a))return[];var b=S(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?R(a.decorators):a.hasOwnProperty(Pe)?a[Pe]:null},a.prototype.annotations=function(a){if(!Q(a))return[];var b=S(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]=R(d[a])}),e}return a.hasOwnProperty(Re)?a[Re]:null},a.prototype.propMetadata=function(a){if(!Q(a))return{};var b=S(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 Zf&&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:"./"+o(a)},a.prototype.resourceUri=function(a){return"./"+o(a)},a.prototype.resolveIdentifier=function(a,b,c,d){return d},a.prototype.resolveEnum=function(a,b){return a[b]},a}(),ag=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}(),bg=new ag(new _f),cg=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}(),dg=[],eg=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}(),fg=function(){function a(a,b){this.factory=a,this.dependencies=b}return a}(),gg=new Object,hg=function(){function a(){}return a.resolve=function(a){return V(a)},a.resolveAndCreate=function(b,c){var d=a.resolve(b);return a.fromResolvedProviders(d,c)},a.fromResolvedProviders=function(a,b){return new ig(a,b)},a}(),ig=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]=gg}return a.prototype.get=function(a,b){return void 0===b&&(b=Cf),this._getByKey(Wf.get(a),null,b)},a.prototype.resolveAndCreateChild=function(a){var b=hg.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(hg.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 O(a);return this._providers[a]},a.prototype._new=function(a){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw K(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 L(this,b,b.stack,a.key)}return f},a.prototype._getByReflectiveDependency=function(a){return this._getByKey(a.key,a.visibility,a.optional?null:Cf)},a.prototype._getByKey=function(b,c,d){return b===a.INJECTOR_KEY?this:c instanceof tf?this._getByKeySelf(b,d):this._getByKeyDefault(b,d,c)},a.prototype._getObjByKeyId=function(a){for(var b=0;b<this.keyIds.length;b++)if(this.keyIds[b]===a)return this.objs[b]===gg&&(this.objs[b]=this._new(this._providers[b])),this.objs[b];return gg},a.prototype._throwOrNull=function(a,b){if(b!==Cf)return b;throw J(this,a)},a.prototype._getByKeySelf=function(a,b){var c=this._getObjByKeyId(a.id);return c!==gg?c:this._throwOrNull(a,b)},a.prototype._getByKeyDefault=function(b,c,d){var e;for(e=d instanceof uf?this.parent:this;e instanceof a;){var f=e,g=f._getObjByKeyId(b.id);if(g!==gg)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: ["+aa(this,function(a){return' "'+a.key.displayName+'" '}).join(", ")+"])"},enumerable:!0,configurable:!0}),a.prototype.toString=function(){return this.displayName},a.INJECTOR_KEY=Wf.get(Ef),a}(),jg=new Oe("Application Initializer"),kg=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]();ba(e)&&b.push(e)}Promise.all(b).then(function(){c()}).catch(function(b){a.reject(b)}),0===b.length&&c(),this.initialized=!0}},a.decorators=[{type:sf}],a.ctorParameters=function(){return[{type:Array,decorators:[{type:qf,args:[jg]},{type:rf}]}]},a}(),lg=new Oe("AppId"),mg={provide:lg,useFactory:da,deps:[]},ng=new Oe("Platform Initializer"),og=new Oe("Platform ID"),pg=new Oe("appBootstrapListener"),qg=new Oe("Application Packages Root URL"),rg=function(){function a(){}return a.prototype.log=function(a){console.log(a)},a.prototype.warn=function(a){console.warn(a)},a.decorators=[{type:sf}],a.ctorParameters=function(){return[]},a}(),sg=function(){function a(a,b){this.ngModuleFactory=a,this.componentFactories=b}return a}(),tg=function(){function a(){}return a.prototype.compileModuleSync=function(a){throw fa()},a.prototype.compileModuleAsync=function(a){throw fa()},a.prototype.compileModuleAndAllComponentsSync=function(a){throw fa()},a.prototype.compileModuleAndAllComponentsAsync=function(a){throw fa()},a.prototype.clearCache=function(){},a.prototype.clearCacheFor=function(a){},a.decorators=[{type:sf}],a.ctorParameters=function(){return[]},a}(),ug=new Oe("compilerOptions"),vg=function(){function a(){}return a}(),wg=function(){function a(){}return a}(),xg=function(){function a(){}return a}(),yg="ngComponent",zg=function(){function a(){}return a.prototype.resolveComponentFactory=function(a){throw ga(a)},a}(),Ag=function(){function a(){}return a.NULL=new zg,a}(),Bg=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 ga(a);return new Cg(b,this._ngModule)},a}(),Cg=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}(xg),Dg=function(){function a(){}return a}(),Eg=function(){function a(){}return a}(),Fg=ha(),Gg=Fg?ia:function(a,b){return ma},Hg=Fg?ja:function(a,b){return b},Ig=Fg?ka:function(a,b){return null},Jg=Fg?la:function(a){return null},Kg=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),Lg=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 Kg(!1),this.onMicrotaskEmpty=new Kg(!1),this.onStable=new Kg(!1),this.onError=new Kg(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");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)),pa(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,b,c){return this._inner.run(a,b,c)},a.prototype.runTask=function(a,b,c,d){var e=this._inner,f=e.scheduleEventTask("NgZoneEvent: "+d,a,Mg,na,na);try{return e.runTask(f,b,c)}finally{e.cancelTask(f)}},a.prototype.runGuarded=function(a,b,c){return this._inner.runGuarded(a,b,c)},a.prototype.runOutsideAngular=function(a){return this._outer.run(a)},a}(),Mg={},Ng=function(){function a(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Kg,this.onMicrotaskEmpty=new Kg,this.onStable=new Kg,this.onError=new Kg}return a.prototype.run=function(a){return a()},a.prototype.runGuarded=function(a){return a()},a.prototype.runOutsideAngular=function(a){return a()},a.prototype.runTask=function(a){return a()},a}(),Og=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(){Lg.assertNotInAngularZone(),m(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()?m(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.findProviders=function(a,b,c){return[]},a.decorators=[{type:sf}],a.ctorParameters=function(){return[{type:Lg}]},a}(),Pg=function(){function a(){this._applications=new Map,Rg.addToWindow(this)}return a.prototype.registerApplication=function(a,b){this._applications.set(a,b)},a.prototype.unregisterApplication=function(a){this._applications.delete(a)},a.prototype.unregisterAllApplications=function(){this._applications.clear()},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.decorators=[{type:sf}],a.ctorParameters=function(){return[]},a}(),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 Oe("AllowMultipleToken"),Vg=function(){function a(a,b){this.name=a,this.token=b}return a}(),Wg=function(){function a(a){this._injector=a,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return a.prototype.bootstrapModuleFactory=function(a,b){var c=this,d=b?b.ngZone:void 0,e=Aa(d);return e.run(function(){var b=Ef.create([{provide:Lg,useValue:e}],c.injector),d=a.create(b),f=d.injector.get(Vf,null);if(!f)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return d.onDestroy(function(){return Da(c._modules,d)}),e.runOutsideAngular(function(){return e.onError.subscribe({next:function(a){f.handleError(a)}})}),Ba(f,e,function(){var a=d.injector.get(kg);return a.runInitializers(),a.donePromise.then(function(){return c._moduleDoBootstrap(d),d})})})},a.prototype.bootstrapModule=function(a,b){var c=this;void 0===b&&(b=[]);var d=this.injector.get(vg),e=Ca({},b);return d.createCompiler([e]).compileModuleAsync(a).then(function(a){return c.bootstrapModuleFactory(a,e)})},a.prototype._moduleDoBootstrap=function(a){var b=a.injector.get(Xg);if(a._bootstrapComponents.length>0)a._bootstrapComponents.forEach(function(a){return b.bootstrap(a)});else{if(!a.instance.ngDoBootstrap)throw new Error("The module "+o(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)},a.prototype.onDestroy=function(a){this._destroyListeners.push(a)},Object.defineProperty(a.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),a.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},Object.defineProperty(a.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),a.decorators=[{type:sf}],a.ctorParameters=function(){return[{type:Ef}]},a}(),Xg=function(){function a(a,e,f,g,h,i){var j=this;this._zone=a,this._console=e,this._injector=f,this._exceptionHandler=g,this._componentFactoryResolver=h,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=ua(),this._zone.onMicrotaskEmpty.subscribe({next:function(){j._zone.run(function(){j.tick()})}});var k=new b.Observable(function(a){j._stable=j._zone.isStable&&!j._zone.hasPendingMacrotasks&&!j._zone.hasPendingMicrotasks,j._zone.runOutsideAngular(function(){a.next(j._stable),a.complete()})}),l=new b.Observable(function(a){var b;j._zone.runOutsideAngular(function(){b=j._zone.onStable.subscribe(function(){Lg.assertNotInAngularZone(),m(function(){j._stable||j._zone.hasPendingMacrotasks||j._zone.hasPendingMicrotasks||(j._stable=!0,a.next(!0))})})});var c=j._zone.onUnstable.subscribe(function(){Lg.assertInAngularZone(),j._stable&&(j._stable=!1,j._zone.runOutsideAngular(function(){a.next(!1)}))});return function(){b.unsubscribe(),c.unsubscribe()}});this.isStable=c.merge(k,d.share.call(l))}return a.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 xg?a:this._componentFactoryResolver.resolveComponentFactory(a),this.componentTypes.push(d.componentType);var e=d instanceof Cg?null:this._injector.get(Dg),f=b||d.selector,g=d.create(Ef.NULL,[],f,e);g.onDestroy(function(){c._unloadComponent(g)});var h=g.injector.get(Og,null);return h&&g.injector.get(Pg).registerApplication(g.location.nativeElement,h),this._loadComponent(g),ua()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),g},a.prototype.tick=function(){var b=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var c=a._tickScope();try{this._runningTick=!0,this._views.forEach(function(a){return a.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(a){return a.checkNoChanges()})}catch(a){this._zone.runOutsideAngular(function(){return b._exceptionHandler.handleError(a)})}finally{this._runningTick=!1,Hg(c)}},a.prototype.attachView=function(a){var b=a;this._views.push(b),b.attachToAppRef(this)},a.prototype.detachView=function(a){var b=a;Da(this._views,b),b.detachFromAppRef()},a.prototype._loadComponent=function(a){this.attachView(a.hostView),this.tick(),this.components.push(a),this._injector.get(pg,[]).concat(this._bootstrapListeners).forEach(function(b){return b(a)})},a.prototype._unloadComponent=function(a){this.detachView(a.hostView),Da(this.components,a)},a.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(a){return a.destroy()})},Object.defineProperty(a.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),a._tickScope=Gg("ApplicationRef#tick()"),a.decorators=[{type:sf}],a.ctorParameters=function(){return[{type:Lg},{type:rg},{type:Ef},{type:Vf},{type:Ag},{type:kg}]},a}(),Yg=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}(),Zg=function(){function a(){}return a}(),$g=function(){function a(){}return a}(),_g=(new Oe("Renderer2Interceptor"),function(){function a(){}return a}()),ah=function(){function a(){}return a}(),bh={Important:1,DashCase:2};bh[bh.Important]="Important",bh[bh.DashCase]="DashCase";var ch=function(){function a(){}return a}(),dh=function(){function a(a){this.nativeElement=a}return a}(),eh=function(){function a(){}return a}(),fh=new Map,gh=function(){function a(){this.dirty=!0,this._results=[],this.changes=new Kg}return 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[l()]=function(){return this._results[l()]()},a.prototype.toString=function(){return this._results.toString()},a.prototype.reset=function(a){this._results=Ga(a),this.dirty=!1},a.prototype.notifyOnChanges=function(){this.changes.emit(this)},a.prototype.setDirty=function(){this.dirty=!0},a.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},a}(),hh="#",ih="NgFactory",jh=function(){function a(){}return a}(),kh={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},lh=function(){function a(a,b){this._compiler=a,this._config=b||kh}return a.prototype.load=function(a){return this._compiler instanceof tg?this.loadFactory(a):this.loadAndCompile(a)},a.prototype.loadAndCompile=function(a){var b=this,c=a.split(hh),d=c[0],e=c[1];return void 0===e&&(e="default"),System.import(d).then(function(a){return a[e]}).then(function(a){return Ha(a,d,e)}).then(function(a){return b._compiler.compileModuleAsync(a)})},a.prototype.loadFactory=function(a){var b=a.split(hh),c=b[0],d=b[1],e=ih;return void 0===d&&(d="default",e=""),System.import(this._config.factoryPathPrefix+c+this._config.factoryPathSuffix).then(function(a){return a[d+e]}).then(function(a){return Ha(a,c,d)})},a.decorators=[{type:sf}],a.ctorParameters=function(){return[{type:tg},{type:jh,decorators:[{type:rf}]}]},a}(),mh=function(){function a(){}return a}(),nh=function(){function a(){}return a}(),oh=function(){function a(){}return a}(),ph=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return f(b,a),b}(oh),qh=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}return f(b,a),b}(ph),rh=function(){function a(a,b){this.name=a,this.callback=b}return a}(),sh=function(){function a(a,b,c){this._debugContext=c,this.nativeNode=a,b&&b instanceof th?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}),a}(),th=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 Ja(this,a,b),b},b.prototype.queryAllNodes=function(a){var b=[];return Ka(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}(sh),uh=new Map,vh=function(){function a(a){this.wrapped=a}return a.wrap=function(b){return new a(b)},a}(),wh=function(){function a(){this.hasWrappedValue=!1}return a.prototype.unwrap=function(a){return a instanceof vh?(this.hasWrappedValue=!0,a.wrapped):a},a.prototype.reset=function(){this.hasWrappedValue=!1},a}(),xh=function(){function a(a,b,c){this.previousValue=a,this.currentValue=b,this.firstChange=c}return a.prototype.isFirstChange=function(){return this.firstChange},a}(),yh=function(){function a(){}return a.prototype.supports=function(a){return Pa(a)},a.prototype.create=function(a){return new Ah(a)},a}(),zh=function(a,b){return b},Ah=function(){function a(a){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=a||zh}return 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<Ta(c,d,e)?b:c,g=Ta(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=[]),!Pa(a))throw new Error("Error trying to diff '"+o(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&&n(f.trackById,e)?(g&&(f=this._verifyReinsertion(f,d,e,h)),n(f.item,d)||this._addIdentityChange(f,d)):(f=this._mismatch(f,d,e,h),g=!0),f=f._next}else c=0,Ra(a,function(a){e=b._trackByFn(c,a),null!==f&&n(f.trackById,e)?(g&&(f=b._verifyReinsertion(f,a,e,c)),n(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?(n(a.item,b)||this._addIdentityChange(a,b),this._moveAfter(a,e,d)):(a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(c,null),null!==a?(n(a.item,b)||this._addIdentityChange(a,b),this._reinsertAfter(a,e,d)):a=this._addAfter(new Bh(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 Dh),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 Dh),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}(),Bh=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}(),Ch=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)&&n(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}(),Dh=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 Ch,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}(),Eh=function(){function a(){}return a.prototype.supports=function(a){return a instanceof Map||Sa(a)},a.prototype.create=function(){return new Fh},a}(),Fh=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||Sa(a)))throw new Error("Error trying to diff '"+o(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 Gh(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){n(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}(),Gh=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}(),Hh=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 uf,new rf]]}},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 '"+Ua(a)+"'")},a}(),Ih=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 uf,new rf]]}},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}(),Jh=[new Eh],Kh=[new yh],Lh=new Hh(Kh),Mh=new Ih(Jh),Nh=[{provide:og,useValue:"unknown"},{provide:Wg,deps:[Ef]},{provide:Pg,deps:[]},{provide:rg,deps:[]}],Oh=wa(null,"core",Nh),Ph=new Oe("LocaleId"),Qh=new Oe("Translations"),Rh=new Oe("TranslationsFormat"),Sh={Error:0,Warning:1,Ignore:2};Sh[Sh.Error]="Error",Sh[Sh.Warning]="Warning",Sh[Sh.Ignore]="Ignore";var Th=function(){function a(a){}return a.decorators=[{type:jf,args:[{providers:[Xg,kg,tg,mg,{provide:Hh,useFactory:Va},{provide:Ih,useFactory:Wa},{provide:Ph,useFactory:Xa,deps:[[new qf(Ph),new rf,new uf]]}]}]}],a.ctorParameters=function(){return[{type:Xg}]},a}(),Uh={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};Uh[Uh.NONE]="NONE",Uh[Uh.HTML]="HTML",Uh[Uh.STYLE]="STYLE",Uh[Uh.SCRIPT]="SCRIPT",Uh[Uh.URL]="URL",Uh[Uh.RESOURCE_URL]="RESOURCE_URL";var Vh=function(){function a(){}return a}(),Wh=function(){function a(){}return a}(),Xh={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},Yh=function(){},Zh=new Map,$h="$$undefined",_h="$$empty",ai=0,bi=new WeakMap,ci=/^:([^:]+):(.+)$/,di=[],ei={},fi=new Object,gi=jb(Ef),hi=jb(Dg),ii=new Object,ji=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=Db(this.viewDefFactory),f=e.nodes[0].element.componentProvider.nodeIndex,g=Xh.createRootView(a,b||[],c,e,d,ii),h=ab(g,f).instance;return c&&g.renderer.setAttribute(_a(g,0).renderElement,"ng-version",pf.full),new ki(g,new mi(g),h)},b}(xg),ki=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.hostView=c,e.changeDetectorRef=c,e.instance=d,e}return f(b,a),Object.defineProperty(b.prototype,"location",{get:function(){return new dh(_a(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"injector",{get:function(){return new oi(this._view,this._elDef)},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}(wg),li=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 dh(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"injector",{get:function(){return new oi(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=ub(a),a=a.parent;return a?new oi(a,b):new oi(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=kc(this._data,b);Xh.destroyView(c)}},a.prototype.get=function(a){var b=this._embeddedViews[a];if(b){var c=new mi(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 Cg||(e=f.get(Dg));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 hc(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 mc(this._data,c,b),a},a.prototype.indexOf=function(a){return this._embeddedViews.indexOf(a._view)},a.prototype.remove=function(a){var b=kc(this._data,a);b&&Xh.destroyView(b)},a.prototype.detach=function(a){var b=kc(this._data,a);return b?new mi(b):null},a}(),mi=function(){function a(a){this._view=a,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(a.prototype,"rootNodes",{get:function(){return Eb(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(){qb(this._view)},a.prototype.detach=function(){this._view.state&=-5},a.prototype.detectChanges=function(){var a=this._view.root.rendererFactory;a.begin&&a.begin(),Xh.checkAndUpdateView(this._view),a.end&&a.end()},a.prototype.checkNoChanges=function(){Xh.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)),Xh.destroyView(this._view)},a.prototype.detachFromAppRef=function(){this._appRef=null,oc(this._view),Xh.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}(),ni=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 mi(Xh.createEmbeddedView(this._parentView,this._def,this._def.element.template,a))},Object.defineProperty(b.prototype,"elementRef",{get:function(){return new dh(_a(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),b}(mh),oi=function(){function a(a,b){this.view=a,this.elDef=b}return a.prototype.get=function(a,b){void 0===b&&(b=Ef.THROW_IF_NOT_FOUND);var c=!!this.elDef&&0!=(33554432&this.elDef.flags);return Xh.resolveDep(this.view,this.elDef,c,{flags:0,token:a,tokenKey:jb(a)},b)},a}(),pi=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=Kb(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=Kb(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}(),qi=function(){function a(a,b,c,d){this._moduleType=a,this._parent=b,this._bootstrapComponents=c,this._def=d,this._destroyListeners=[],this._destroyed=!1,bc(this)}return a.prototype.get=function(a,b){return void 0===b&&(b=Ef.THROW_IF_NOT_FOUND),cc(this,{token:a,tokenKey:jb(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(Ag)},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 "+o(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,gc(this,131072),this._destroyListeners.forEach(function(a){return a()})},a.prototype.onDestroy=function(a){this._destroyListeners.push(a)},a}(),ri=jb($g),si=jb(ch),ti=jb(dh),ui=jb(nh),vi=jb(mh),wi=jb(oh),xi=jb(Ef),yi={},zi={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};zi[zi.CreateViewNodes]="CreateViewNodes",zi[zi.CheckNoChanges]="CheckNoChanges",zi[zi.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",zi[zi.CheckAndUpdate]="CheckAndUpdate",zi[zi.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",zi[zi.Destroy]="Destroy";var Ai=!1,Bi=new Map,Ci=new Map,Di={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};Di[Di.create]="create",Di[Di.detectChanges]="detectChanges",Di[Di.checkNoChanges]="checkNoChanges",Di[Di.destroy]="destroy",Di[Di.handleEvent]="handleEvent";var Ei,Fi,Gi,Hi=/([A-Z])/g,Ii=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=ub(d),d=d.parent;this.elDef=c,this.elView=d}return Object.defineProperty(a.prototype,"elOrCompView",{get:function(){return _a(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"injector",{get:function(){return wc(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.nodeIndex+1;b<=this.elDef.nodeIndex+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){pe(this.elView,this.elDef,a);for(var b=this.elDef.nodeIndex+1;b<=this.elDef.nodeIndex+this.elDef.childCount;b++){var c=this.elView.def.nodes[b];20224&c.flags&&pe(this.elView,c,a),b+=c.childCount}}return a},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"componentRenderElement",{get:function(){var a=oe(this.elOrCompView);return a?a.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?vb(this.view,this.nodeDef):vb(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.nodeIndex):(d=this.elView.def,e=this.elDef.nodeIndex);var f=ne(d,e),g=-1,h=function(){return g++,g===f?(c=a.error).bind.apply(c,[a].concat(b)):Yh;var c};d.factory(h),g<f&&(a.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),a.error.apply(a,b))},a}(),Ji=function(){function a(a){this.delegate=a}return a.prototype.createRenderer=function(a,b){return new Ki(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}(),Ki=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){Na(La(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=re();if(d){var e=new th(c,null,d);e.name=a,Ma(e)}return c},a.prototype.createComment=function(a){var b=this.delegate.createComment(a),c=re();return c&&Ma(new sh(b,null,c)),b},a.prototype.createText=function(a){var b=this.delegate.createText(a),c=re();return c&&Ma(new sh(b,null,c)),b},a.prototype.appendChild=function(a,b){var c=La(a),d=La(b);c&&d&&c instanceof th&&c.addChild(d),this.delegate.appendChild(a,b)},a.prototype.insertBefore=function(a,b,c){var d=La(a),e=La(b),f=La(c);d&&e&&d instanceof th&&d.insertBefore(f,e),this.delegate.insertBefore(a,b,c)},a.prototype.removeChild=function(a,b){var c=La(a),d=La(b);c&&d&&c instanceof th&&c.removeChild(d),this.delegate.removeChild(a,b)},a.prototype.selectRootElement=function(a){var b=this.delegate.selectRootElement(a),c=re();return c&&Ma(new th(b,null,c)),b},a.prototype.setAttribute=function(a,b,c,d){var e=La(a);if(e&&e instanceof th){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=La(a);if(d&&d instanceof th){var e=c?c+":"+b:b;d.attributes[e]=null}this.delegate.removeAttribute(a,b,c)},a.prototype.addClass=function(a,b){var c=La(a);c&&c instanceof th&&(c.classes[b]=!0),this.delegate.addClass(a,b)},a.prototype.removeClass=function(a,b){var c=La(a);c&&c instanceof th&&(c.classes[b]=!1),this.delegate.removeClass(a,b)},a.prototype.setStyle=function(a,b,c,d){var e=La(a);e&&e instanceof th&&(e.styles[b]=c),this.delegate.setStyle(a,b,c,d)},a.prototype.removeStyle=function(a,b,c){var d=La(a);d&&d instanceof th&&(d.styles[b]=null),this.delegate.removeStyle(a,b,c)},a.prototype.setProperty=function(a,b,c){var d=La(a);d&&d instanceof th&&(d.properties[b]=c),this.delegate.setProperty(a,b,c)},a.prototype.listen=function(a,b,c){if("string"!=typeof a){var d=La(a);d&&d.listeners.push(new rh(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}(),Li=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){Ld();var b=Db(this._ngModuleDefFactory);return Xh.createNgModuleRef(this.moduleType,a||Ef.NULL,this._bootstrapComponents,b)},b}(Eg);a.createPlatform=va,a.assertPlatform=xa,a.destroyPlatform=ya,a.getPlatform=za,a.PlatformRef=Wg,a.ApplicationRef=Xg,a.enableProdMode=ta,a.isDevMode=ua,a.createPlatformFactory=wa,a.NgProbeToken=Vg,a.APP_ID=lg,a.PACKAGE_ROOT_URL=qg,a.PLATFORM_INITIALIZER=ng,a.PLATFORM_ID=og,a.APP_BOOTSTRAP_LISTENER=pg,a.APP_INITIALIZER=jg,a.ApplicationInitStatus=kg,a.DebugElement=th,a.DebugNode=sh,a.asNativeElements=Ia,a.getDebugNode=La,a.Testability=Og,a.TestabilityRegistry=Pg,a.setTestabilityGetter=sa,a.TRANSLATIONS=Qh,a.TRANSLATIONS_FORMAT=Rh,a.LOCALE_ID=Ph,a.MissingTranslationStrategy=Sh,a.ApplicationModule=Th,a.wtfCreateScope=Gg,a.wtfLeave=Hg,a.wtfStartTimeRange=Ig,a.wtfEndTimeRange=Jg,a.Type=Zf,a.EventEmitter=Kg,a.ErrorHandler=Vf,a.Sanitizer=Vh,a.SecurityContext=Uh,a.ANALYZE_FOR_ENTRY_COMPONENTS=Se,a.Attribute=Te,a.ContentChild=We,a.ContentChildren=Ve,a.Query=Ue,a.ViewChild=Ye,a.ViewChildren=Xe,a.Component=af,a.Directive=_e,a.HostBinding=ef,a.HostListener=ff,a.Input=cf,a.Output=df,a.Pipe=bf,a.CUSTOM_ELEMENTS_SCHEMA=gf,a.NO_ERRORS_SCHEMA=hf,a.NgModule=jf,a.ViewEncapsulation=kf,a.Version=of,a.VERSION=pf,a.forwardRef=p,a.resolveForwardRef=q,a.Injector=Ef,a.ReflectiveInjector=hg,a.ResolvedReflectiveFactory=fg,a.ReflectiveKey=Wf,a.InjectionToken=Oe,a.Inject=qf,a.Optional=rf,a.Injectable=sf,a.Self=tf,a.SkipSelf=uf,a.Host=vf,a.NgZone=Lg,a.RenderComponentType=Yg,a.Renderer=$g,a.Renderer2=ch,a.RendererFactory2=ah,a.RendererStyleFlags2=bh,a.RootRenderer=_g,a.COMPILER_OPTIONS=ug,a.Compiler=tg,a.CompilerFactory=vg,a.ModuleWithComponentFactories=sg,a.ComponentFactory=xg,a.ComponentRef=wg,a.ComponentFactoryResolver=Ag,a.ElementRef=dh,a.NgModuleFactory=Eg,a.NgModuleRef=Dg,a.NgModuleFactoryLoader=eh,a.getModuleFactory=Fa,a.QueryList=gh,a.SystemJsNgModuleLoader=lh,a.SystemJsNgModuleLoaderConfig=jh,a.TemplateRef=mh,a.ViewContainerRef=nh,a.EmbeddedViewRef=qh,a.ViewRef=ph,a.ChangeDetectionStrategy=Ze,a.ChangeDetectorRef=oh,a.DefaultIterableDiffer=Ah,a.IterableDiffers=Hh,a.KeyValueDiffers=Ih,a.SimpleChange=xh,a.WrappedValue=vh,a.platformCore=Oh,a.ɵALLOW_MULTIPLE_PLATFORMS=Ug,a.ɵAPP_ID_RANDOM_PROVIDER=mg,a.ɵValueUnwrapper=wh,a.ɵdevModeEqual=Oa,a.ɵisListLikeIterable=Pa,a.ɵChangeDetectorStatus=$e,a.ɵisDefaultChangeDetectionStrategy=k,a.ɵConsole=rg,a.ɵComponentFactory=xg,a.ɵCodegenComponentFactoryResolver=Bg,a.ɵReflectionCapabilities=_f,a.ɵRenderDebugInfo=Zg,a.ɵglobal=zf,a.ɵlooseIdentical=n,a.ɵstringify=o,a.ɵmakeDecorator=g,a.ɵisObservable=ca,a.ɵisPromise=ba,a.ɵclearOverrides=ue,a.ɵoverrideComponentView=te,a.ɵoverrideProvider=se,a.ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR=yi,a.ɵregisterModuleFactory=Ea,a.ɵEMPTY_ARRAY=di,a.ɵEMPTY_MAP=ei,a.ɵand=Pb,a.ɵccf=rc,a.ɵcmf=ve,a.ɵcrt=lb,a.ɵdid=Ac,a.ɵeld=Qb,a.ɵelementEventFullName=wb,a.ɵgetComponentViewDefinitionFactory=sc,a.ɵinlineInterpolate=Nb,a.ɵinterpolate=Mb,a.ɵmod=ac,a.ɵmpd=_b,a.ɵncd=Zc,a.ɵnov=xc,a.ɵpid=Bc,a.ɵprd=Cc,a.ɵpad=ad,a.ɵpod=bd,a.ɵppd=_c,a.ɵqud=Tc,a.ɵted=gd,a.ɵunv=kb,a.ɵvid=ld,a.AUTO_STYLE="*",a.trigger=Ee,a.animate=Fe,a.group=Ge,a.sequence=He,a.style=Ie,a.state=Je,a.keyframes=Ke,a.transition=Le,a.ɵx=xe,a.ɵy=ye,a.ɵbc=Ce,a.ɵz=ze,a.ɵbb=Be,a.ɵba=Ae,a.ɵbd=De,a.ɵw=we,a.ɵk=Va,a.ɵl=Wa,a.ɵm=Xa,a.ɵf=da,a.ɵg=Lh,a.ɵh=Mh,a.ɵi=yh,a.ɵj=Eh,a.ɵb=Rf,a.ɵc=ig,a.ɵd=cg,a.ɵe=V,a.ɵn=Fg,a.ɵp=ia,a.ɵo=ha,a.ɵs=la,a.ɵq=ja,a.ɵr=ka,a.ɵa=i,a.ɵt=Dc,a.ɵu=Wh,Object.defineProperty(a,"__esModule",{value:!0})}),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","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"),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){var b=this;return f.Observable.create(function(c){b.adalContext.acquireToken(a,function(d,e){d?(b.adalContext.error("Error when acquiring token for resource: "+a,d),c.error(d)):c.next(e),c.complete()})})},a.prototype.getUser=function(){var a=this;return f.Observable.create(function(b){a.adalContext.getUser(function(c,d){c?(a.adalContext.error("Error when getting user",c),b.next(null)):b.next(d),b.complete()})})},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/operators/catchError.js",["../OuterSubscriber","../util/subscribeToResult"],!0,function(a,b,c){"use strict";function d(a){return function(b){var c=new h(a),d=b.lift(c);return c.caught=d}}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.catchError=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/operator/catch.js",["../operators/catchError"],!0,function(a,b,c){"use strict";function d(a){return e.catchError(a)(this)}var e=(this||self,a("../operators/catchError"));b._catch=d}),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/operators/map.js",["../Subscriber"],!0,function(a,b,c){"use strict";function d(a,b){return function(c){if("function"!=typeof a)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return c.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/operator/map.js",["../operators/map"],!0,function(a,b,c){"use strict";function d(a,b){return e.map(a,b)(this)}var e=(this||self,a("../operators/map"));b.map=d}),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):(m.syncErrorThrowable=!0,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/operators/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),function(d){return"number"==typeof b&&(c=b,b=null),d.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/operator/mergeMap.js",["../operators/mergeMap"],!0,function(a,b,c){"use strict";function d(a,b,c){return void 0===c&&(c=Number.POSITIVE_INFINITY),e.mergeMap(a,b,c)(this)}var e=(this||self,a("../operators/mergeMap"));b.mergeMap=d}),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/util/noop.js",[],!0,function(a,b,c){"use strict";function d(){}this||self;b.noop=d}),System.registerDynamic("rxjs/util/pipe.js",["./noop"],!0,function(a,b,c){"use strict";function d(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];return e(a)}function e(a){return a?1===a.length?a[0]:function(b){return a.reduce(function(a,b){return b(a)},b)}:f.noop}var f=(this||self,a("./noop"));b.pipe=d,b.pipeFromArray=e}),System.registerDynamic("rxjs/Observable.js",["./util/root","./util/toSubscriber","./symbol/observable","./util/pipe"],!0,function(a,b,c){"use strict";var d=(this||self,a("./util/root")),e=a("./util/toSubscriber"),f=a("./symbol/observable"),g=a("./util/pipe"),h=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.prototype.pipe=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];return 0===a.length?this:g.pipeFromArray(a)(this)},a.prototype.toPromise=function(a){var b=this;if(a||(d.root.Rx&&d.root.Rx.config&&d.root.Rx.config.Promise?a=d.root.Rx.config.Promise:d.root.Promise&&(a=d.root.Promise)),!a)throw new Error("no Promise impl found");return new a(function(a,c){var d;b.subscribe(function(a){return d=a},function(a){return c(a)},function(){return a(d)})})},a.create=function(b){return new a(b)},a}();b.Observable=h}),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