text: webpackJsonp([4],[function(t,e,n){"use strict";var r=n(16),i=n(219),o=n(80),s=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,o=i.toSubscriber(t,e,n);if(r?r.call(o,this.source):o.add(this.source?this._subscribe(o):this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var n=this;if(e||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?e=r.root.Rx.config.Promise:r.root.Promise&&(e=r.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var i;i=n.subscribe(function(e){if(i)try{t(e)}catch(t){r(t),i.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[o.observable]=function(){return this},t.create=function(e){return new t(e)},t}();e.Observable=s},,function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(78),o=n(13),s=n(136),a=n(79),u=function(t){function e(n,r,i){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!n){this.destination=s.empty;break}if("object"==typeof n){n instanceof e?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,n,r,i)}}return r(e,t),e.prototype[a.rxSubscriber]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this,e=t._parent,n=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=n,this},e}(o.Subscription);e.Subscriber=u;var c=function(t){function e(e,n,r,o){t.call(this),this._parentSubscriber=e;var a,u=this;i.isFunction(n)?a=n:n&&(a=n.next,r=n.error,o=n.complete,n!==s.empty&&(u=Object.create(n),i.isFunction(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=a,this._error=r,this._complete=o}return r(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(u)},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(2),o=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(i.Subscriber);e.OuterSubscriber=o},function(t,e,n){"use strict";function r(t,e,n,r){var h=new l.InnerSubscriber(t,n,r);if(h.closed)return null;if(e instanceof u.Observable)return e._isScalar?(h.next(e.value),h.complete(),null):e.subscribe(h);if(o.isArrayLike(e)){for(var f=0,d=e.length;f<d&&!h.closed;f++)h.next(e[f]);h.closed||h.complete()}else{if(s.isPromise(e))return e.then(function(t){h.closed||(h.next(t),h.complete())},function(t){return h.error(t)}).then(null,function(t){i.root.setTimeout(function(){throw t})}),h;if(e&&"function"==typeof e[c.iterator])for(var v=e[c.iterator]();;){var y=v.next();if(y.done){h.complete();break}if(h.next(y.value),h.closed)break}else if(e&&"function"==typeof e[p.observable]){var m=e[p.observable]();if("function"==typeof m.subscribe)return m.subscribe(new l.InnerSubscriber(t,n,r));h.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var g=a.isObject(e)?"an invalid object":"'"+e+"'",b="You provided "+g+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";h.error(new TypeError(b))}}return null}var i=n(16),o=n(139),s=n(140),a=n(134),u=n(0),c=n(65),l=n(220),p=n(80);e.subscribeToResult=r},,,,,,function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(0),o=n(2),s=n(13),a=n(81),u=n(143),c=n(79),l=function(t){function e(e){t.call(this,e),this.destination=e}return r(e,t),e}(o.Subscriber);e.SubjectSubscriber=l;var p=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return r(e,t),e.prototype[c.rxSubscriber]=function(){return new l(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new u.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new i.Observable;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(i.Observable);e.Subject=p;var h=function(t){function e(e,n){t.call(this),this.destination=e,this.source=n}return r(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):s.Subscription.EMPTY},e}(p);e.AnonymousSubject=h},,function(t,e,n){"use strict";(function(t){function r(){if(!Ei){var t=Si.Symbol;if(t&&t.iterator)Ei=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n<e.length;++n){var r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Ei=r)}}return Ei}function i(t){Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function o(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function s(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function a(t){return"function"==typeof t&&t.hasOwnProperty("annotation")&&(t=t.annotation),t}function u(t,e){if(t===Object||t===String||t===Function||t===Number||t===Array)throw new Error("Can not use native "+s(t)+" as constructor");if("function"==typeof t)return t;if(Array.isArray(t)){var n=t,r=n.length-1,i=t[r];if("function"!=typeof i)throw new Error("Last position of Class method array must be Function in key "+e+" was '"+s(i)+"'");if(r!=i.length)throw new Error("Number of annotations ("+r+") does not match number of arguments ("+i.length+") in the function: "+s(i));for(var o=[],u=0,c=n.length-1;u<c;u++){var l=[];o.push(l);var p=n[u];if(Array.isArray(p))for(var h=0;h<p.length;h++)l.push(a(p[h]));else"function"==typeof p?l.push(a(p)):l.push(p)}return Oi.defineMetadata("parameters",o,i),i}throw new Error("Only Function or Array is supported in Class definition for key '"+e+"' is '"+s(t)+"'")}function c(t){var e=u(t.hasOwnProperty("constructor")?t.constructor:void 0,"constructor"),n=e.prototype;if(t.hasOwnProperty("extends")){if("function"!=typeof t.extends)throw new Error("Class definition 'extends' property must be a constructor function was: "+s(t.extends));e.prototype=n=Object.create(t.extends.prototype)}for(var r in t)"extends"!==r&&"prototype"!==r&&t.hasOwnProperty(r)&&(n[r]=u(t[r],r));this&&this.annotations instanceof Array&&Oi.defineMetadata("annotations",this.annotations,e);var i=e.name;return i&&"constructor"!==i||(e.overriddenName="class"+Ci++),e}function l(t,e,n,r){function i(t){if(!Oi||!Oi.getOwnMetadata)throw"reflect-metadata shim is required when using class decorators";if(this instanceof i)return o.call(this,t),this;var e=new i(t),n="function"==typeof this&&Array.isArray(this.annotations)?this.annotations:[];n.push(e);var s=function(t){var n=Oi.getOwnMetadata("annotations",t)||[];return n.push(e),Oi.defineMetadata("annotations",n,t),t};return s.annotations=n,s.Class=c,r&&r(s),s}var o=p(e);return n&&(i.prototype=Object.create(n.prototype)),i.prototype.toString=function(){return"@"+t},i.annotationCls=i,i}function p(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(t){var r=t.apply(void 0,e);for(var i in r)this[i]=r[i]}}}function h(t,e,n){function r(){function t(t,e,n){for(var r=Oi.getOwnMetadata("parameters",t)||[];r.length<=n;)r.push(null);return r[n]=r[n]||[],r[n].push(o),Oi.defineMetadata("parameters",r,t),t}for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this instanceof r)return i.apply(this,e),this;var o=new(r.bind.apply(r,[void 0].concat(e)));return t.annotation=o,t}var i=p(e);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+t},r.annotationCls=r,r}function f(t,e,n){function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof r)return i.apply(this,t),this;var n=new(r.bind.apply(r,[void 0].concat(t)));return function(t,e){var r=Oi.getOwnMetadata("propMetadata",t.constructor)||{};r[e]=r.hasOwnProperty(e)&&r[e]||[],r[e].unshift(n),Oi.defineMetadata("propMetadata",r,t.constructor)}}var i=p(e);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+t},r.annotationCls=r,r}function d(t){return t.__forward_ref__=d,t.toString=function(){return s(this())},t}function v(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===d?t():t}function y(t){return t[so]}function m(t){return t[ao]}function g(t){return t[uo]||b}function b(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,e)}function _(t,e){var n=t+" caused by: "+(e instanceof Error?e.message:e),r=Error(n);return r[ao]=e,r}function w(t){for(var e=[],n=0;n<t.length;++n){if(e.indexOf(t[n])>-1)return e.push(t[n]),e;e.push(t[n])}return e}function x(t){if(t.length>1){return" ("+w(t.slice().reverse()).map(function(t){return s(t.token)}).join(" -> ")+")"}return""}function S(t,e,n,r){var i=[e],o=n(i),s=r?_(o,r):Error(o);return s.addKey=E,s.keys=i,s.injectors=[t],s.constructResolvingMessage=n,s[ao]=r,s}function E(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)}function C(t,e){return S(t,e,function(t){return"No provider for "+s(t[0].token)+"!"+x(t)})}function O(t,e){return S(t,e,function(t){return"Cannot instantiate cyclic dependency!"+x(t)})}function T(t,e,n,r){return S(t,r,function(t){var n=s(t[0].token);return e.message+": Error during instantiation of "+n+"!"+x(t)+"."},e)}function P(t){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+t)}function A(t,e){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];o&&0!=o.length?n.push(o.map(s).join(" ")):n.push("?")}return Error("Cannot resolve all parameters for '"+s(t)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+s(t)+"' is decorated with Injectable.")}function k(t){return Error("Index "+t+" is out-of-bounds.")}function M(t,e){return Error("Cannot mix multi providers and regular providers, got: "+t+" "+e)}function N(t){return"function"==typeof t}function R(t){return t?t.map(function(t){var e=t.type,n=e.annotationCls,r=t.args?t.args:[];return new(n.bind.apply(n,[void 0].concat(r)))}):[]}function I(t){var e=Object.getPrototypeOf(t.prototype);return(e?e.constructor:null)||Object}function j(t){var e,n;if(t.useClass){var r=v(t.useClass);e=go.factory(r),n=B(r)}else t.useExisting?(e=function(t){return t},n=[bo.fromKey(lo.get(t.useExisting))]):t.useFactory?(e=t.useFactory,n=U(t.useFactory,t.deps)):(e=function(){return t.useValue},n=_o);return new xo(e,n)}function D(t){return new wo(lo.get(t.provide),[j(t)],t.multi||!1)}function F(t){var e=V(t,[]),n=e.map(D),r=L(n,new Map);return Array.from(r.values())}function L(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e.get(r.key.id);if(i){if(r.multiProvider!==i.multiProvider)throw M(i,r);if(r.multiProvider)for(var o=0;o<r.resolvedFactories.length;o++)i.resolvedFactories.push(r.resolvedFactories[o]);else e.set(r.key.id,r)}else{var s=void 0;s=r.multiProvider?new wo(r.key,r.resolvedFactories.slice(),r.multiProvider):r,e.set(r.key.id,s)}}return e}function V(t,e){return t.forEach(function(t){if(t instanceof fo)e.push({provide:t,useClass:t});else if(t&&"object"==typeof t&&void 0!==t.provide)e.push(t);else{if(!(t instanceof Array))throw P(t);V(t,e)}}),e}function U(t,e){if(e){var n=e.map(function(t){return[t]});return e.map(function(e){return H(t,e,n)})}return B(t)}function B(t){var e=go.parameters(t);if(!e)return[];if(e.some(function(t){return null==t}))throw A(t,e);return e.map(function(n){return H(t,n,e)})}function H(t,e,n){var r=null,i=!1;if(!Array.isArray(e))return e instanceof Xi?q(e.token,i,null):q(e,i,null);for(var o=null,s=0;s<e.length;++s){var a=e[s];a instanceof fo?r=a:a instanceof Xi?r=a.token:a instanceof Yi?i=!0:a instanceof Zi||a instanceof $i?o=a:a instanceof bi&&(r=a)}if(null!=(r=v(r)))return q(r,i,o);throw A(t,n)}function q(t,e,n){return new bo(lo.get(t),e,n)}function z(t,e){for(var n=new Array(t._providers.length),r=0;r<t._providers.length;++r)n[r]=e(t.getProviderAtIndex(r));return n}function W(t){return!!t&&"function"==typeof t.then}function K(t){return!!t&&"function"==typeof t.subscribe}function G(){return""+Q()+Q()+Q()}function Q(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function X(){throw new Error("Runtime compiler is not loaded")}function Y(t){var e=Error("No component factory found for "+s(t)+". Did you add it to @NgModule.entryComponents?");return e[Ho]=t,e}function J(t,e){return void 0===e&&(e=null),Ko.createScope(t,e)}function Z(t,e){return Wo.leaveScope(t,e),e}function $(t,e){return null}function tt(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(function(){return t.onStable.emit(null)})}finally{t.isStable=!0}}}function et(t){t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,n,r,i,o,s){try{return nt(t),e.invokeTask(r,i,o,s)}finally{rt(t)}},onInvoke:function(e,n,r,i,o,s,a){try{return nt(t),e.invoke(r,i,o,s,a)}finally{rt(t)}},onHasTask:function(e,n,r,i){e.hasTask(r,i),n===r&&("microTask"==i.change?(t.hasPendingMicrotasks=i.microTask,tt(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,n,r,i){return e.handleError(r,i),t.runOutsideAngular(function(){return t.onError.emit(i)}),!1}})}function nt(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function rt(t){t._nesting--,tt(t)}function it(t){ss=t}function ot(){return us=!0,as}function st(t){if(is&&!is.destroyed&&!is.injector.get(cs,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");is=t.get(ps);var e=t.get(Mo,null);return e&&e.forEach(function(t){return t()}),is}function at(t,e,n){void 0===n&&(n=[]);var r=new bi("Platform: "+e);return function(e){void 0===e&&(e=[]);var i=ct();return i&&!i.injector.get(cs,!1)||(t?t(n.concat(e).concat({provide:r,useValue:!0})):st(Eo.resolveAndCreate(n.concat(e).concat({provide:r,useValue:!0})))),ut(r)}}function ut(t){var e=ct();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}function ct(){return is&&!is.destroyed?is:null}function lt(t,e,n){try{var r=n();return W(r)?r.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):r}catch(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}}function pt(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function ht(t,e){var n=ws.get(t);if(n)throw new Error("Duplicate module registered for "+t+" - "+n.moduleType.name+" vs "+e.moduleType.name);ws.set(t,e)}function ft(t){return t.reduce(function(t,e){var n=Array.isArray(e)?ft(e):e;return t.concat(n)},[])}function dt(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}function vt(t,e,n){t.childNodes.forEach(function(t){t instanceof Ns&&(e(t)&&n.push(t),vt(t,e,n))})}function yt(t,e,n){t instanceof Ns&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof Ns&&yt(t,e,n)})}function mt(t){return Rs.get(t)||null}function gt(t){Rs.set(t.nativeNode,t)}function bt(t){Rs.delete(t.nativeNode)}function _t(t,e){var n=wt(t),r=wt(e);if(n&&r)return xt(t,e,_t);var i=t&&("object"==typeof t||"function"==typeof t),s=e&&("object"==typeof e||"function"==typeof e);return!(n||!i||r||!s)||o(t,e)}function wt(t){return!!Et(t)&&(Array.isArray(t)||!(t instanceof Map)&&r()in t)}function xt(t,e,n){for(var i=t[r()](),o=e[r()]();;){var s=i.next(),a=o.next();if(s.done&&a.done)return!0;if(s.done||a.done)return!1;if(!n(s.value,a.value))return!1}}function St(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var i=t[r()](),o=void 0;!(o=i.next()).done;)e(o.value)}function Et(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Ct(t,e,n){var r=t.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+e+i}function Ot(t){return t.name||typeof t}function Tt(){return go}function Pt(){return Xs}function At(){return Ys}function kt(t){return t||"en-US"}function Mt(t,e){return t.nodes[e]}function Nt(t,e){return t.nodes[e]}function Rt(t,e){return t.nodes[e]}function It(t,e){return t.nodes[e]}function jt(t,e){return t.nodes[e]}function Dt(t,e,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),Lt(i,t)}function Ft(t,e){return t instanceof Error||(t=new Error(t.toString())),Vt(t,e),t}function Lt(t,e){var n=new Error(t);return Vt(n,e),n}function Vt(t,e){t[so]=e,t[uo]=e.logError.bind(e)}function Ut(t){return!!y(t)}function Bt(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}function Ht(t){var e=ua.get(t);return e||(e=s(t)+"_"+ua.size,ua.set(t,e)),e}function qt(t,e,n,r){if(r instanceof Is){r=r.wrapped;var i=t.def.nodes[e].bindingIndex+n,o=t.oldValues[i];o instanceof Is&&(o=o.wrapped),t.oldValues[i]=new Is(o)}return r}function zt(t){return{id:ca,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}function Wt(t){if(t&&t.id===ca){var e=null!=t.encapsulation&&t.encapsulation!==Ki.None||t.styles.length||Object.keys(t.data).length;t.id=e?"c"+pa++:la}return t&&t.id===la&&(t=null),t||null}function Kt(t,e,n,r){var i=t.oldValues;return!(!(2&t.state)&&o(i[e.bindingIndex+n],r))}function Gt(t,e,n,r){return!!Kt(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function Qt(t,e,n,r){var i=t.oldValues[e.bindingIndex+n];if(1&t.state||!_t(i,r))throw Dt(sa.createDebugContext(t,e.index),i,r,0!=(1&t.state))}function Xt(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function Yt(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function Jt(t,e,n,r){return Xt(33554432&t.def.nodes[e].flags?Nt(t,e).componentView:t),sa.handleEvent(t,e,n,r)}function Zt(t){if(t.parent){return Nt(t.parent,t.parentNodeDef.index)}return null}function $t(t){return t.parent?t.parentNodeDef.parent:null}function te(t,e){switch(201347067&e.flags){case 1:return Nt(t,e.index).renderElement;case 2:return Mt(t,e.index).renderText}}function ee(t,e){return t?t+":"+e:e}function ne(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function re(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function ie(t){return 1<<t%32}function oe(t){var e={},n=0,r={};return t&&t.forEach(function(t){var i=t[0],o=t[1];"number"==typeof i?(e[i]=o,n|=ie(i)):r[i]=o}),{matchedQueries:e,references:r,matchedQueryIds:n}}function se(t){return t.map(function(t){var e,n;return Array.isArray(t)?(n=t[0],e=t[1]):(n=0,e=t),{flags:n,token:e,tokenKey:Ht(e)}})}function ae(t,e,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===Ki.Native?Nt(t,n.renderParent.index).renderElement:void 0:e}function ue(t){var e=ha.get(t);return e||(e=t(function(){return aa}),e.factory=t,ha.set(t,e)),e}function ce(t){var e=[];return le(t,0,void 0,void 0,e),e}function le(t,e,n,r,i){3===e&&(n=t.renderer.parentNode(te(t,t.def.lastRenderRootNode))),pe(t,e,0,t.def.nodes.length-1,n,r,i)}function pe(t,e,n,r,i,o,s){for(var a=n;a<=r;a++){var u=t.def.nodes[a];11&u.flags&&fe(t,u,e,i,o,s),a+=u.childCount}}function he(t,e,n,r,i,o){for(var s=t;s&&!ne(s);)s=s.parent;for(var a=s.parent,u=$t(s),c=u.index+1,l=u.index+u.childCount,p=c;p<=l;p++){var h=a.def.nodes[p];h.ngContentIndex===e&&fe(a,h,n,r,i,o),p+=h.childCount}if(!a.parent){var f=t.root.projectableNodes[e];if(f)for(var p=0;p<f.length;p++)de(t,f[p],n,r,i,o)}}function fe(t,e,n,r,i,o){if(8&e.flags)he(t,e.ngContent.index,n,r,i,o);else{var s=te(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags){if(16&e.bindingFlags&&de(t,s,n,r,i,o),32&e.bindingFlags){var a=Nt(t,e.index).componentView;de(a,s,n,r,i,o)}}else de(t,s,n,r,i,o);if(16777216&e.flags)for(var u=Nt(t,e.index).viewContainer._embeddedViews,c=0;c<u.length;c++)le(u[c],n,r,i,o);1&e.flags&&!e.element.name&&pe(t,n,e.index+1,e.index+e.childCount,r,i,o)}}function de(t,e,n,r,i,o){var s=t.renderer;switch(n){case 1:s.appendChild(r,e);break;case 2:s.insertBefore(r,e,i);break;case 3:s.removeChild(r,e);break;case 0:o.push(e)}}function ve(t){if(":"===t[0]){var e=t.match(fa);return[e[1],e[2]]}return["",t]}function ye(t){for(var e=0,n=0;n<t.length;n++)e|=t[n].flags;return e}function me(t,e){for(var n="",r=0;r<2*t;r+=2)n=n+e[r]+be(e[r+1]);return n+e[2*t]}function ge(t,e,n,r,i,o,s,a,u,c,l,p,h,f,d,v,y,m,g,b){switch(t){case 1:return e+be(n)+r;case 2:return e+be(n)+r+be(i)+o;case 3:return e+be(n)+r+be(i)+o+be(s)+a;case 4:return e+be(n)+r+be(i)+o+be(s)+a+be(u)+c;case 5:return e+be(n)+r+be(i)+o+be(s)+a+be(u)+c+be(l)+p;case 6:return e+be(n)+r+be(i)+o+be(s)+a+be(u)+c+be(l)+p+be(h)+f;case 7:return e+be(n)+r+be(i)+o+be(s)+a+be(u)+c+be(l)+p+be(h)+f+be(d)+v;case 8:return e+be(n)+r+be(i)+o+be(s)+a+be(u)+c+be(l)+p+be(h)+f+be(d)+v+be(y)+m;case 9:return e+be(n)+r+be(i)+o+be(s)+a+be(u)+c+be(l)+p+be(h)+f+be(d)+v+be(y)+m+be(g)+b;default:throw new Error("Does not support more than 9 expressions")}}function be(t){return null!=t?t.toString():""}function _e(t,e,n,r,i,o){t|=1;var s=oe(e),a=s.matchedQueries,u=s.references;return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a,matchedQueryIds:s.matchedQueryIds,references:u,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:o?ue(o):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||aa},provider:null,text:null,query:null,ngContent:null}}function we(t,e,n,r,i,o,s,a,u,c,l){void 0===o&&(o=[]),u||(u=aa);var p=oe(e),h=p.matchedQueries,f=p.references,d=p.matchedQueryIds,v=null,y=null;i&&(R=ve(i),v=R[0],y=R[1]),s=s||[];for(var m=new Array(s.length),g=0;g<s.length;g++){var b=s[g],_=b[0],w=b[1],x=b[2],S=ve(w),E=S[0],C=S[1],O=void 0,T=void 0;switch(15&_){case 4:T=x;break;case 1:case 8:O=x}m[g]={flags:_,ns:E,name:C,nonMinifiedName:C,securityContext:O,suffix:T}}a=a||[];for(var P=new Array(a.length),g=0;g<a.length;g++){var A=a[g],k=A[0],M=A[1];P[g]={type:0,target:k,eventName:M,propName:null}}o=o||[];var N=o.map(function(t){var e=t[0],n=t[1],r=ve(e);return[r[0],r[1],n]});return l=Wt(l),c&&(t|=33554432),t|=1,{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:h,matchedQueryIds:d,references:f,ngContentIndex:n,childCount:r,bindings:m,bindingFlags:ye(m),outputs:P,element:{ns:v,name:y,attrs:N,template:null,componentProvider:null,componentView:c||null,componentRendererType:l,publicProviders:null,allProviders:null,handleEvent:u||aa},provider:null,text:null,query:null,ngContent:null};var R}function xe(t,e,n){var r,i=n.element,o=t.root.selectorOrNode,s=t.renderer;if(t.parent||!o){r=i.name?s.createElement(i.name,i.ns):s.createComment("");var a=ae(t,e,n);a&&s.appendChild(a,r)}else r=s.selectRootElement(o);if(i.attrs)for(var u=0;u<i.attrs.length;u++){var c=i.attrs[u],l=c[0],p=c[1],h=c[2];s.setAttribute(r,p,h,l)}return r}function Se(t,e,n,r){for(var i=0;i<n.outputs.length;i++){var o=n.outputs[i],s=Ee(t,n.index,ee(o.target,o.eventName)),a=o.target,u=t;"component"===o.target&&(a=null,u=e);var c=u.renderer.listen(a||r,o.eventName,s);t.disposables[n.outputIndex+i]=c}}function Ee(t,e,n){return function(r){try{return Jt(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}}function Ce(t,e,n,r,i,o,s,a,u,c,l,p){var h=e.bindings.length,f=!1;return h>0&&Te(t,e,0,n)&&(f=!0),h>1&&Te(t,e,1,r)&&(f=!0),h>2&&Te(t,e,2,i)&&(f=!0),h>3&&Te(t,e,3,o)&&(f=!0),h>4&&Te(t,e,4,s)&&(f=!0),h>5&&Te(t,e,5,a)&&(f=!0),h>6&&Te(t,e,6,u)&&(f=!0),h>7&&Te(t,e,7,c)&&(f=!0),h>8&&Te(t,e,8,l)&&(f=!0),h>9&&Te(t,e,9,p)&&(f=!0),f}function Oe(t,e,n){for(var r=!1,i=0;i<n.length;i++)Te(t,e,i,n[i])&&(r=!0);return r}function Te(t,e,n,r){if(!Gt(t,e,n,r))return!1;var i=e.bindings[n],o=Nt(t,e.index),s=o.renderElement,a=i.name;switch(15&i.flags){case 1:Pe(t,i,s,i.ns,a,r);break;case 2:Ae(t,s,a,r);break;case 4:ke(t,i,s,a,r);break;case 8:Me(33554432&e.flags&&32&i.flags?o.componentView:t,i,s,a,r)}return!0}function Pe(t,e,n,r,i,o){var s=e.securityContext,a=s?t.root.sanitizer.sanitize(s,o):o;a=null!=a?a.toString():null;var u=t.renderer;null!=o?u.setAttribute(n,i,a,r):u.removeAttribute(n,i,r)}function Ae(t,e,n,r){var i=t.renderer;r?i.addClass(e,n):i.removeClass(e,n)}function ke(t,e,n,r,i){var o=t.root.sanitizer.sanitize(ia.STYLE,i);if(null!=o){o=o.toString();var s=e.suffix;null!=s&&(o+=s)}else o=null;var a=t.renderer;null!=o?a.setStyle(n,r,o):a.removeStyle(n,r)}function Me(t,e,n,r,i){var o=e.securityContext,s=o?t.root.sanitizer.sanitize(o,i):i;t.renderer.setProperty(n,r,s)}function Ne(t,e,n,r){return{index:-1,deps:se(r),flags:t,token:e,value:n}}function Re(t){for(var e={},n=0;n<t.length;n++){var r=t[n];r.index=n,e[Ht(r.token)]=r}return{factory:null,providersByKey:e,providers:t}}function Ie(t){for(var e=t._def,n=t._providers=new Array(e.providers.length),r=0;r<e.providers.length;r++){var i=e.providers[r];n[r]=4096&i.flags?ya:De(t,i)}}function je(t,e,n){if(void 0===n&&(n=io.THROW_IF_NOT_FOUND),8&e.flags)return e.token;if(2&e.flags&&(n=null),1&e.flags)return t._parent.get(e.token,n);var r=e.tokenKey;switch(r){case ma:case ga:return t}var i=t._def.providersByKey[r];if(i){var o=t._providers[i.index];return o===ya&&(o=t._providers[i.index]=De(t,i)),o}return t._parent.get(e.token,n)}function De(t,e){var n;switch(201347067&e.flags){case 512:n=Fe(t,e.value,e.deps);break;case 1024:n=Le(t,e.value,e.deps);break;case 2048:n=je(t,e.deps[0]);break;case 256:n=e.value}return n}function Fe(t,e,n){var r,i=n.length;switch(i){case 0:r=new e;break;case 1:r=new e(je(t,n[0]));break;case 2:r=new e(je(t,n[0]),je(t,n[1]));break;case 3:r=new e(je(t,n[0]),je(t,n[1]),je(t,n[2]));break;default:for(var o=new Array(i),s=0;s<i;s++)o[s]=je(t,n[s]);r=new(e.bind.apply(e,[void 0].concat(o)))}return r}function Le(t,e,n){var r,i=n.length;switch(i){case 0:r=e();break;case 1:r=e(je(t,n[0]));break;case 2:r=e(je(t,n[0]),je(t,n[1]));break;case 3:r=e(je(t,n[0]),je(t,n[1]),je(t,n[2]));break;default:for(var o=Array(i),s=0;s<i;s++)o[s]=je(t,n[s]);r=e.apply(void 0,o)}return r}function Ve(t,e){for(var n=t._def,r=0;r<n.providers.length;r++){if(131072&n.providers[r].flags){var i=t._providers[r];i&&i!==ya&&i.ngOnDestroy()}}}function Ue(t,e,n,r){var i=e.viewContainer._embeddedViews;null!==n&&void 0!==n||(n=i.length),r.viewContainerParent=t,Qe(i,n,r),Be(e,r),sa.dirtyParentQueries(r),Ke(e,n>0?i[n-1]:null,r)}function Be(t,e){var n=Zt(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),He(e.parent.def,e.parentNodeDef)}}function He(t,e){if(!(4&e.flags)){t.nodeFlags|=4,e.flags|=4;for(var n=e.parent;n;)n.childFlags|=4,n=n.parent}}function qe(t,e){var n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,Xe(n,e),sa.dirtyParentQueries(r),Ge(r),r}function ze(t){if(16&t.state){var e=Zt(t);if(e){var n=e.template._projectedViews;n&&(Xe(n,n.indexOf(t)),sa.dirtyParentQueries(t))}}}function We(t,e,n){var r=t.viewContainer._embeddedViews,i=r[e];return Xe(r,e),null==n&&(n=r.length),Qe(r,n,i),sa.dirtyParentQueries(i),Ge(i),Ke(t,n>0?r[n-1]:null,i),i}function Ke(t,e,n){var r=e?te(e,e.def.lastRenderRootNode):t.renderElement;le(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Ge(t){le(t,3,null,null,void 0)}function Qe(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Xe(t,e){e>=t.length-1?t.pop():t.splice(e,1)}function Ye(t,e,n,r,i,o){return new _a(t,e,n,r,i,o)}function Je(t){return t.viewDefFactory}function Ze(t,e,n){return new xa(t,e,n)}function $e(t){return new Sa(t)}function tn(t,e){return new Ea(t,e)}function en(t,e){return new Ca(t,e)}function nn(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Nt(t,n.index);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Mt(t,n.index).renderText;if(20240&n.flags)return Rt(t,n.index).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function rn(t){return new Oa(t.renderer)}function on(t,e,n,r){return new Ta(t,e,n,r)}function sn(t,e,n,r,i,o,s){var a=[];if(o)for(var u in o){var c=o[u],l=c[0],p=c[1];a[l]={flags:8,name:u,nonMinifiedName:p,ns:null,securityContext:null,suffix:null}}var h=[];if(s)for(var f in s)h.push({type:1,propName:f,target:null,eventName:s[f]});return t|=16384,cn(t,e,n,r,r,i,a,h)}function an(t,e,n){return t|=16,cn(t,null,0,e,e,n)}function un(t,e,n,r,i){return cn(t,e,0,n,r,i)}function cn(t,e,n,r,i,o,s,a){var u=oe(e),c=u.matchedQueries,l=u.references,p=u.matchedQueryIds;a||(a=[]),s||(s=[]);var h=se(o);return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:p,references:l,ngContentIndex:-1,childCount:n,bindings:s,bindingFlags:ye(s),outputs:a,element:null,provider:{token:r,value:i,deps:h},text:null,query:null,ngContent:null}}function ln(t,e){return 4096&e.flags?ja:yn(t,e)}function pn(t,e){for(var n=t;n.parent&&!ne(n);)n=n.parent;return mn(n.parent,$t(n),!0,e.provider.value,e.provider.deps)}function hn(t,e){var n=(32768&e.flags)>0,r=mn(t,e.parent,n,e.provider.value,e.provider.deps);if(e.outputs.length)for(var i=0;i<e.outputs.length;i++){var o=e.outputs[i],s=r[o.propName].subscribe(fn(t,e.parent.index,o.eventName));t.disposables[e.outputIndex+i]=s.unsubscribe.bind(s)}return r}function fn(t,e,n){return function(r){try{return Jt(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}}function dn(t,e,n,r,i,o,s,a,u,c,l,p){var h=Rt(t,e.index),f=h.instance,d=!1,v=void 0,y=e.bindings.length;return y>0&&Kt(t,e,0,n)&&(d=!0,v=wn(t,h,e,0,n,v)),y>1&&Kt(t,e,1,r)&&(d=!0,v=wn(t,h,e,1,r,v)),y>2&&Kt(t,e,2,i)&&(d=!0,v=wn(t,h,e,2,i,v)),y>3&&Kt(t,e,3,o)&&(d=!0,v=wn(t,h,e,3,o,v)),y>4&&Kt(t,e,4,s)&&(d=!0,v=wn(t,h,e,4,s,v)),y>5&&Kt(t,e,5,a)&&(d=!0,v=wn(t,h,e,5,a,v)),y>6&&Kt(t,e,6,u)&&(d=!0,v=wn(t,h,e,6,u,v)),y>7&&Kt(t,e,7,c)&&(d=!0,v=wn(t,h,e,7,c,v)),y>8&&Kt(t,e,8,l)&&(d=!0,v=wn(t,h,e,8,l,v)),y>9&&Kt(t,e,9,p)&&(d=!0,v=wn(t,h,e,9,p,v)),v&&f.ngOnChanges(v),2&t.state&&65536&e.flags&&f.ngOnInit(),262144&e.flags&&f.ngDoCheck(),d}function vn(t,e,n){for(var r=Rt(t,e.index),i=r.instance,o=!1,s=void 0,a=0;a<n.length;a++)Kt(t,e,a,n[a])&&(o=!0,s=wn(t,r,e,a,n[a],s));return s&&i.ngOnChanges(s),2&t.state&&65536&e.flags&&i.ngOnInit(),262144&e.flags&&i.ngDoCheck(),o}function yn(t,e){var n,r=(8192&e.flags)>0,i=e.provider;switch(201347067&e.flags){case 512:n=mn(t,e.parent,r,i.value,i.deps);break;case 1024:n=gn(t,e.parent,r,i.value,i.deps);break;case 2048:n=bn(t,e.parent,r,i.deps[0]);break;case 256:n=i.value}return n}function mn(t,e,n,r,i){var o,s=i.length;switch(s){case 0:o=new r;break;case 1:o=new r(bn(t,e,n,i[0]));break;case 2:o=new r(bn(t,e,n,i[0]),bn(t,e,n,i[1]));break;case 3:o=new r(bn(t,e,n,i[0]),bn(t,e,n,i[1]),bn(t,e,n,i[2]));break;default:for(var a=new Array(s),u=0;u<s;u++)a[u]=bn(t,e,n,i[u]);o=new(r.bind.apply(r,[void 0].concat(a)))}return o}function gn(t,e,n,r,i){var o,s=i.length;switch(s){case 0:o=r();break;case 1:o=r(bn(t,e,n,i[0]));break;case 2:o=r(bn(t,e,n,i[0]),bn(t,e,n,i[1]));break;case 3:o=r(bn(t,e,n,i[0]),bn(t,e,n,i[1]),bn(t,e,n,i[2]));break;default:for(var a=Array(s),u=0;u<s;u++)a[u]=bn(t,e,n,i[u]);o=r.apply(void 0,a)}return o}function bn(t,e,n,r,i){if(void 0===i&&(i=io.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var o=t;2&r.flags&&(i=null);var s=r.tokenKey;for(s===Ra&&(n=!(!e||!e.element.componentView)),e&&1&r.flags&&(n=!1,e=e.parent);t;){if(e)switch(s){case Pa:var a=_n(t,e,n);return rn(a);case Aa:var a=_n(t,e,n);return a.renderer;case ka:return new bs(Nt(t,e.index).renderElement);case Ma:return Nt(t,e.index).viewContainer;case Na:if(e.element.template)return Nt(t,e.index).template;break;case Ra:return $e(_n(t,e,n));case Ia:return en(t,e);default:var u=(n?e.element.allProviders:e.element.publicProviders)[s];if(u){var c=Rt(t,u.index);return c.instance===ja&&(c.instance=yn(t,u)),c.instance}}n=ne(t),e=$t(t),t=t.parent}var l=o.root.injector.get(r.token,Da);return l!==Da||i===Da?l:o.root.ngModule.injector.get(r.token,i)}function _n(t,e,n){var r;if(n)r=Nt(t,e.index).componentView;else for(r=t;r.parent&&!ne(r);)r=r.parent;return r}function wn(t,e,n,r,i,o){if(32768&n.flags){var s=Nt(t,n.parent.index).componentView;2&s.def.flags&&(s.state|=8)}var a=n.bindings[r],u=a.name;if(e.instance[u]=i,524288&n.flags){o=o||{};var c=t.oldValues[n.bindingIndex+r];c instanceof Is&&(c=c.wrapped);o[n.bindings[r].nonMinifiedName]=new js(c,i,0!=(2&t.state))}return t.oldValues[n.bindingIndex+r]=i,o}function xn(t,e){if(t.def.nodeFlags&e)for(var n=t.def.nodes,r=0;r<n.length;r++){var i=n[r],o=i.parent;for(!o&&i.flags&e&&En(t,r,i.flags&e),0==(i.childFlags&e)&&(r+=i.childCount);o&&1&o.flags&&r===o.index+o.childCount;)o.directChildFlags&e&&Sn(t,o,e),o=o.parent}}function Sn(t,e,n){for(var r=e.index+1;r<=e.index+e.childCount;r++){var i=t.def.nodes[r];i.flags&n&&En(t,r,i.flags&n),r+=i.childCount}}function En(t,e,n){var r=Rt(t,e).instance;r!==ja&&(sa.setCurrentNode(t,e),1048576&n&&r.ngAfterContentInit(),2097152&n&&r.ngAfterContentChecked(),4194304&n&&r.ngAfterViewInit(),8388608&n&&r.ngAfterViewChecked(),131072&n&&r.ngOnDestroy())}function Cn(t,e,n){var r=[];for(var i in n){var o=n[i];r.push({propName:i,bindingType:o})}return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,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:e,filterId:ie(e),bindings:r},ngContent:null}}function On(){return new xs}function Tn(t){for(var e=t.def.nodeMatchedQueries;t.parent&&re(t);){var n=t.parentNodeDef;t=t.parent;for(var r=n.index+n.childCount,i=0;i<=r;i++){var o=t.def.nodes[i];67108864&o.flags&&536870912&o.flags&&(o.query.filterId&e)===o.query.filterId&&jt(t,i).setDirty(),!(1&o.flags&&i+o.childCount<n.index)&&67108864&o.childFlags&&536870912&o.childFlags||(i+=o.childCount)}}if(134217728&t.def.nodeFlags)for(var i=0;i<t.def.nodes.length;i++){var o=t.def.nodes[i];134217728&o.flags&&536870912&o.flags&&jt(t,i).setDirty(),i+=o.childCount}}function Pn(t,e){var n=jt(t,e.index);if(n.dirty){var r,i=void 0;if(67108864&e.flags){var o=e.parent.parent;i=An(t,o.index,o.index+o.childCount,e.query,[]),r=Rt(t,e.parent.index).instance}else 134217728&e.flags&&(i=An(t,0,t.def.nodes.length-1,e.query,[]),r=t.component);n.reset(i);for(var s=e.query.bindings,a=!1,u=0;u<s.length;u++){var c=s[u],l=void 0;switch(c.bindingType){case 0:l=n.first;break;case 1:l=n,a=!0}r[c.propName]=l}a&&n.notifyOnChanges()}}function An(t,e,n,r,i){for(var o=e;o<=n;o++){var s=t.def.nodes[o],a=s.matchedQueries[r.id];if(null!=a&&i.push(kn(t,s,a)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var u=Nt(t,o);if(16777216&s.flags)for(var c=u.viewContainer._embeddedViews,l=0;l<c.length;l++){var p=c[l],h=Zt(p);h&&h===u&&An(p,0,p.def.nodes.length-1,r,i)}var f=u.template._projectedViews;if(f)for(var l=0;l<f.length;l++){var d=f[l];An(d,0,d.def.nodes.length-1,r,i)}}(s.childMatchedQueries&r.filterId)!==r.filterId&&(o+=s.childCount)}return i}function kn(t,e,n){if(null!=n){var r=void 0;switch(n){case 1:r=Nt(t,e.index).renderElement;break;case 0:r=new bs(Nt(t,e.index).renderElement);break;case 2:r=Nt(t,e.index).template;break;case 3:r=Nt(t,e.index).viewContainer;break;case 4:r=Rt(t,e.index).instance}return r}}function Mn(t,e){return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:e}}}function Nn(t,e,n){var r=ae(t,e,n);if(r){he(t,n.ngContent.index,1,r,null,void 0)}}function Rn(t){return Dn(128,new Array(t+1))}function In(t){return Dn(32,new Array(t))}function jn(t){for(var e=Object.keys(t),n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[t[o]]=o}return Dn(64,r)}function Dn(t,e){for(var n=new Array(e.length),r=0;r<e.length;r++){var i=e[r];n[r]={flags:8,name:i,ns:null,nonMinifiedName:i,securityContext:null,suffix:null}}return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:n,bindingFlags:ye(n),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function Fn(t,e){return{value:void 0}}function Ln(t,e,n,r,i,o,s,a,u,c,l,p){var h=e.bindings,f=!1,d=h.length;if(d>0&&Gt(t,e,0,n)&&(f=!0),d>1&&Gt(t,e,1,r)&&(f=!0),d>2&&Gt(t,e,2,i)&&(f=!0),d>3&&Gt(t,e,3,o)&&(f=!0),d>4&&Gt(t,e,4,s)&&(f=!0),d>5&&Gt(t,e,5,a)&&(f=!0),d>6&&Gt(t,e,6,u)&&(f=!0),d>7&&Gt(t,e,7,c)&&(f=!0),d>8&&Gt(t,e,8,l)&&(f=!0),d>9&&Gt(t,e,9,p)&&(f=!0),f){var v=It(t,e.index),y=void 0;switch(201347067&e.flags){case 32:y=new Array(h.length),d>0&&(y[0]=n),d>1&&(y[1]=r),d>2&&(y[2]=i),d>3&&(y[3]=o),d>4&&(y[4]=s),d>5&&(y[5]=a),d>6&&(y[6]=u),d>7&&(y[7]=c),d>8&&(y[8]=l),d>9&&(y[9]=p);break;case 64:y={},d>0&&(y[h[0].name]=n),d>1&&(y[h[1].name]=r),d>2&&(y[h[2].name]=i),d>3&&(y[h[3].name]=o),d>4&&(y[h[4].name]=s),d>5&&(y[h[5].name]=a),d>6&&(y[h[6].name]=u),d>7&&(y[h[7].name]=c),d>8&&(y[h[8].name]=l),d>9&&(y[h[9].name]=p);break;case 128:var m=n;switch(d){case 1:y=m.transform(n);break;case 2:y=m.transform(r);break;case 3:y=m.transform(r,i);break;case 4:y=m.transform(r,i,o);break;case 5:y=m.transform(r,i,o,s);break;case 6:y=m.transform(r,i,o,s,a);break;case 7:y=m.transform(r,i,o,s,a,u);break;case 8:y=m.transform(r,i,o,s,a,u,c);break;case 9:y=m.transform(r,i,o,s,a,u,c,l);break;case 10:y=m.transform(r,i,o,s,a,u,c,l,p)}}v.value=y}return f}function Vn(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)Gt(t,e,o,n[o])&&(i=!0);if(i){var s=It(t,e.index),a=void 0;switch(201347067&e.flags){case 32:a=n;break;case 64:a={};for(var o=0;o<n.length;o++)a[r[o].name]=n[o];break;case 128:var u=n[0],c=n.slice(1);a=u.transform.apply(u,c)}s.value=a}return i}function Un(t,e){for(var n=new Array(e.length-1),r=1;r<e.length;r++)n[r-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:e[r]};return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:n,bindingFlags:ye(n),outputs:[],element:null,provider:null,text:{prefix:e[0]},query:null,ngContent:null}}function Bn(t,e,n){var r,i=t.renderer;r=i.createText(n.text.prefix);var o=ae(t,e,n);return o&&i.appendChild(o,r),{renderText:r}}function Hn(t,e,n,r,i,o,s,a,u,c,l,p){var h=!1,f=e.bindings,d=f.length;if(d>0&&Gt(t,e,0,n)&&(h=!0),d>1&&Gt(t,e,1,r)&&(h=!0),d>2&&Gt(t,e,2,i)&&(h=!0),d>3&&Gt(t,e,3,o)&&(h=!0),d>4&&Gt(t,e,4,s)&&(h=!0),d>5&&Gt(t,e,5,a)&&(h=!0),d>6&&Gt(t,e,6,u)&&(h=!0),d>7&&Gt(t,e,7,c)&&(h=!0),d>8&&Gt(t,e,8,l)&&(h=!0),d>9&&Gt(t,e,9,p)&&(h=!0),h){var v=e.text.prefix;d>0&&(v+=zn(n,f[0])),d>1&&(v+=zn(r,f[1])),d>2&&(v+=zn(i,f[2])),d>3&&(v+=zn(o,f[3])),d>4&&(v+=zn(s,f[4])),d>5&&(v+=zn(a,f[5])),d>6&&(v+=zn(u,f[6])),d>7&&(v+=zn(c,f[7])),d>8&&(v+=zn(l,f[8])),d>9&&(v+=zn(p,f[9]));var y=Mt(t,e.index).renderText;t.renderer.setValue(y,v)}return h}function qn(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)Gt(t,e,o,n[o])&&(i=!0);if(i){for(var s="",o=0;o<n.length;o++)s+=zn(n[o],r[o]);s=e.text.prefix+s;var a=Mt(t,e.index).renderText;t.renderer.setValue(a,s)}return i}function zn(t,e){return(null!=t?t.toString():"")+e.suffix}function Wn(t,e,n,r){for(var i=0,o=0,s=0,a=0,u=0,c=null,l=!1,p=!1,h=null,f=0;f<e.length;f++){for(;c&&f>c.index+c.childCount;){var d=c.parent;d&&(d.childFlags|=c.childFlags,d.childMatchedQueries|=c.childMatchedQueries),c=d}var v=e[f];v.index=f,v.parent=c,v.bindingIndex=i,v.outputIndex=o;var y=void 0;if(y=c&&1&c.flags&&!c.element.name?c.renderParent:c,v.renderParent=y,v.element){var m=v.element;m.publicProviders=c?c.element.publicProviders:Object.create(null),m.allProviders=m.publicProviders,l=!1,p=!1}if(Kn(c,v,e.length),s|=v.flags,u|=v.matchedQueryIds,v.element&&v.element.template&&(u|=v.element.template.nodeMatchedQueries),c?(c.childFlags|=v.flags,c.directChildFlags|=v.flags,c.childMatchedQueries|=v.matchedQueryIds,v.element&&v.element.template&&(c.childMatchedQueries|=v.element.template.nodeMatchedQueries)):a|=v.flags,i+=v.bindings.length,o+=v.outputs.length,!y&&3&v.flags&&(h=v),20224&v.flags){l||(l=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);var g=0!=(8192&v.flags),b=0!=(32768&v.flags);!g||b?c.element.publicProviders[Ht(v.provider.token)]=v:(p||(p=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[Ht(v.provider.token)]=v),b&&(c.element.componentProvider=v)}v.childCount&&(c=v)}for(;c;){var d=c.parent;d&&(d.childFlags|=c.childFlags,d.childMatchedQueries|=c.childMatchedQueries),c=d}var _=function(t,n,r,i){return e[n].element.handleEvent(t,r,i)};return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||aa,updateRenderer:r||aa,handleEvent:_||aa,bindingCount:i,outputCount:o,lastRenderRootNode:h}}function Kn(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.index+"!")}if(20224&e.flags){if(0==(1&(t?t.flags:0)))throw new Error("Illegal State: Provider/Directive nodes need to be children of elements or anchors, at index "+e.index+"!")}if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.index+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.index+"!")}if(e.childCount){var i=t?t.index+t.childCount:n-1;if(e.index<=i&&e.index+e.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.index+"!")}}function Gn(t,e,n,r){var i=Yn(t.root,t.renderer,t,e,n);return Jn(i,t.component,r),Zn(i),i}function Qn(t,e,n){var r=Yn(t,t.renderer,null,null,e);return Jn(r,n,n),Zn(r),r}function Xn(t,e,n,r){var i,o=e.element.componentRendererType;return i=o?t.root.rendererFactory.createRenderer(r,o):t.root.renderer,Yn(t.root,i,t,e.element.componentProvider,n)}function Yn(t,e,n,r,i){var o=new Array(i.nodes.length),s=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:s}}function Jn(t,e,n){t.component=e,t.context=n}function Zn(t){var e;if(ne(t)){var n=t.parentNodeDef;e=Nt(t.parent,n.parent.index).renderElement}for(var r=t.def,i=t.nodes,o=0;o<r.nodes.length;o++){var s=r.nodes[o];sa.setCurrentNode(t,o);var a=void 0;switch(201347067&s.flags){case 1:var u=xe(t,e,s),c=void 0;if(33554432&s.flags){var l=ue(s.element.componentView);c=sa.createComponentView(t,s,l,u)}Se(t,c,s,u),a={renderElement:u,componentView:c,viewContainer:null,template:s.element.template?tn(t,s):void 0},16777216&s.flags&&(a.viewContainer=Ze(t,s,a));break;case 2:a=Bn(t,e,s);break;case 512:case 1024:case 2048:case 256:var p=ln(t,s);a={instance:p};break;case 16:var p=pn(t,s);a={instance:p};break;case 16384:var p=hn(t,s);if(a={instance:p},32768&s.flags){Jn(Nt(t,s.parent.index).componentView,p,p)}break;case 32:case 64:case 128:a=Fn(t,s);break;case 67108864:case 134217728:a=On();break;case 8:Nn(t,e,s),a=void 0}i[o]=a}pr(t,Fa.CreateViewNodes),vr(t,201326592,268435456,0)}function $n(t){nr(t),sa.updateDirectives(t,1),hr(t,Fa.CheckNoChanges),sa.updateRenderer(t,1),pr(t,Fa.CheckNoChanges),t.state&=-97}function tr(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,nr(t),sa.updateDirectives(t,0),hr(t,Fa.CheckAndUpdate),vr(t,67108864,536870912,0),xn(t,2097152|(2&t.state?1048576:0)),sa.updateRenderer(t,0),pr(t,Fa.CheckAndUpdate),vr(t,134217728,536870912,0),xn(t,8388608|(2&t.state?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97}function er(t,e,n,r,i,o,s,a,u,c,l,p,h){return 0===n?rr(t,e,r,i,o,s,a,u,c,l,p,h):ir(t,e,r)}function nr(t){var e=t.def;if(4&e.nodeFlags)for(var n=0;n<e.nodes.length;n++){var r=e.nodes[n];if(4&r.flags){var i=Nt(t,n).template._projectedViews;if(i)for(var o=0;o<i.length;o++){var s=i[o];s.state|=32,Yt(s,t)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function rr(t,e,n,r,i,o,s,a,u,c,l,p){var h=!1;switch(201347067&e.flags){case 1:h=Ce(t,e,n,r,i,o,s,a,u,c,l,p);break;case 2:h=Hn(t,e,n,r,i,o,s,a,u,c,l,p);break;case 16384:h=dn(t,e,n,r,i,o,s,a,u,c,l,p);break;case 32:case 64:case 128:h=Ln(t,e,n,r,i,o,s,a,u,c,l,p)}return h}function ir(t,e,n){var r=!1;switch(201347067&e.flags){case 1:r=Oe(t,e,n);break;case 2:r=qn(t,e,n);break;case 16384:r=vn(t,e,n);break;case 32:case 64:case 128:r=Vn(t,e,n)}if(r)for(var i=e.bindings.length,o=e.bindingIndex,s=t.oldValues,a=0;a<i;a++)s[o+a]=n[a];return r}function or(t,e,n,r,i,o,s,a,u,c,l,p,h){return 0===n?sr(t,e,r,i,o,s,a,u,c,l,p,h):ar(t,e,r),!1}function sr(t,e,n,r,i,o,s,a,u,c,l,p){var h=e.bindings.length;h>0&&Qt(t,e,0,n),h>1&&Qt(t,e,1,r),h>2&&Qt(t,e,2,i),h>3&&Qt(t,e,3,o),h>4&&Qt(t,e,4,s),h>5&&Qt(t,e,5,a),h>6&&Qt(t,e,6,u),h>7&&Qt(t,e,7,c),h>8&&Qt(t,e,8,l),h>9&&Qt(t,e,9,p)}function ar(t,e,n){for(var r=0;r<n.length;r++)Qt(t,e,r,n[r])}function ur(t,e){if(jt(t,e.index).dirty)throw Dt(sa.createDebugContext(t,e.index),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!=(1&t.state))}function cr(t){if(!(128&t.state)){if(hr(t,Fa.Destroy),pr(t,Fa.Destroy),xn(t,131072),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();ze(t),t.renderer.destroyNode&&lr(t),ne(t)&&t.renderer.destroy(),t.state|=128}}function lr(t){for(var e=t.def.nodes.length,n=0;n<e;n++){var r=t.def.nodes[n];1&r.flags?t.renderer.destroyNode(Nt(t,n).renderElement):2&r.flags&&t.renderer.destroyNode(Mt(t,n).renderText)}}function pr(t,e){var n=t.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];33554432&i.flags?fr(Nt(t,r).componentView,e):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function hr(t,e){var n=t.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];if(16777216&i.flags)for(var o=Nt(t,r).viewContainer._embeddedViews,s=0;s<o.length;s++)fr(o[s],e);else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function fr(t,e){var n=t.state;switch(e){case Fa.CheckNoChanges:0==(128&n)&&(12==(12&n)?$n(t):64&n&&dr(t,Fa.CheckNoChangesProjectedViews));break;case Fa.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?$n(t):64&n&&dr(t,e));break;case Fa.CheckAndUpdate:0==(128&n)&&(12==(12&n)?tr(t):64&n&&dr(t,Fa.CheckAndUpdateProjectedViews));break;case Fa.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?tr(t):64&n&&dr(t,e));break;case Fa.Destroy:cr(t);break;case Fa.CreateViewNodes:Zn(t)}}function dr(t,e){hr(t,e),pr(t,e)}function vr(t,e,n,r){if(t.def.nodeFlags&e&&t.def.nodeFlags&n)for(var i=t.def.nodes.length,o=0;o<i;o++){var s=t.def.nodes[o];if(s.flags&e&&s.flags&n)switch(sa.setCurrentNode(t,s.index),r){case 0:Pn(t,s);break;case 1:ur(t,s)}s.childFlags&e&&s.childFlags&n||(o+=s.childCount)}}function yr(){if(!La){La=!0;var t=ot()?gr():mr();sa.setCurrentNode=t.setCurrentNode,sa.createRootView=t.createRootView,sa.createEmbeddedView=t.createEmbeddedView,sa.createComponentView=t.createComponentView,sa.createNgModuleRef=t.createNgModuleRef,sa.overrideProvider=t.overrideProvider,sa.clearProviderOverrides=t.clearProviderOverrides,sa.checkAndUpdateView=t.checkAndUpdateView,sa.checkNoChangesView=t.checkNoChangesView,sa.destroyView=t.destroyView,sa.resolveDep=bn,sa.createDebugContext=t.createDebugContext,sa.handleEvent=t.handleEvent,sa.updateDirectives=t.updateDirectives,sa.updateRenderer=t.updateRenderer,sa.dirtyParentQueries=Tn}}function mr(){return{setCurrentNode:function(){},createRootView:br,createEmbeddedView:Gn,createComponentView:Xn,createNgModuleRef:on,overrideProvider:aa,clearProviderOverrides:aa,checkAndUpdateView:tr,checkNoChangesView:$n,destroyView:cr,createDebugContext:function(t,e){return new Wa(t,e)},handleEvent:function(t,e,n,r){return t.def.handleEvent(t,e,n,r)},updateDirectives:function(t,e){return t.def.updateDirectives(0===e?Ar:kr,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?Ar:kr,t)}}}function gr(){return{setCurrentNode:Ir,createRootView:_r,createEmbeddedView:xr,createComponentView:Sr,createNgModuleRef:Er,overrideProvider:Cr,clearProviderOverrides:Or,checkAndUpdateView:Mr,checkNoChangesView:Nr,destroyView:Rr,createDebugContext:function(t,e){return new Wa(t,e)},handleEvent:jr,updateDirectives:Dr,updateRenderer:Fr}}function br(t,e,n,r,i,o){return Qn(wr(t,i,i.injector.get(ys),e,n),r,o)}function _r(t,e,n,r,i,o){var s=i.injector.get(ys),a=wr(t,i,new Ka(s),e,n),u=Tr(r);return Qr(Ua.create,Qn,null,[a,u,o])}function wr(t,e,n,r,i){var o=e.injector.get(oa),s=e.injector.get(co);return{ngModule:e,injector:t,projectableNodes:r,selectorOrNode:i,sanitizer:o,rendererFactory:n,renderer:n.createRenderer(null,null),errorHandler:s}}function xr(t,e,n,r){var i=Tr(n);return Qr(Ua.create,Gn,null,[t,e,i,r])}function Sr(t,e,n,r){var i=Tr(n);return Qr(Ua.create,Xn,null,[t,e,i,r])}function Er(t,e,n,r){return on(t,e,n,Pr(r))}function Cr(t){Va.set(t.token,t)}function Or(){Va.clear()}function Tr(t){if(0===Va.size)return t;var e=function(t){for(var e=[],n=null,r=0;r<t.nodes.length;r++){var i=t.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&Va.has(i.provider.token)&&(e.push(n.index),n=null)}return e}(t);if(0===e.length)return t;t=t.factory(function(){return aa});for(var n=0;n<e.length;n++)!function(t,e){for(var n=e+1;n<t.nodes.length;n++){var r=t.nodes[n];if(1&r.flags)return;if(3840&r.flags){r.flags|=4096;var i=r.provider,o=Va.get(i.token);o&&(r.flags=-3841&r.flags|o.flags,i.deps=se(o.deps),i.value=o.value)}}}(t,e[n]);return t}function Pr(t){return 0!==Va.size&&function(t){return t.providers.some(function(t){return!!(3840&t.flags)&&Va.has(t.token)})}(t)?(t=t.factory(function(){return aa}),function(t){for(var e=0;e<t.providers.length;e++){var n=t.providers[e];n.flags|=4096;var r=Va.get(n.token);r&&(n.flags=-3841&n.flags|r.flags,n.deps=se(r.deps),n.value=r.value)}}(t),t):t}function Ar(t,e,n,r,i,o,s,a,u,c,l,p,h){var f=t.def.nodes[e];return er(t,f,n,r,i,o,s,a,u,c,l,p,h),224&f.flags?It(t,e).value:void 0}function kr(t,e,n,r,i,o,s,a,u,c,l,p,h){var f=t.def.nodes[e];return or(t,f,n,r,i,o,s,a,u,c,l,p,h),224&f.flags?It(t,e).value:void 0}function Mr(t){return Qr(Ua.detectChanges,tr,null,[t])}function Nr(t){return Qr(Ua.checkNoChanges,$n,null,[t])}function Rr(t){return Qr(Ua.destroy,cr,null,[t])}function Ir(t,e){Ha=t,qa=e}function jr(t,e,n,r){return Ir(t,e),Qr(Ua.handleEvent,t.def.handleEvent,null,[t,e,n,r])}function Dr(t,e){function n(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=t.def.nodes[n];return 0===e?Lr(t,s,r,i):Vr(t,s,r,i),16384&s.flags&&Ir(t,qr(t,n)),224&s.flags?It(t,s.index).value:void 0}if(128&t.state)throw Bt(Ua[Ba]);return Ir(t,qr(t,0)),t.def.updateDirectives(n,t)}function Fr(t,e){function n(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=t.def.nodes[n];return 0===e?Lr(t,s,r,i):Vr(t,s,r,i),3&s.flags&&Ir(t,zr(t,n)),224&s.flags?It(t,s.index).value:void 0}if(128&t.state)throw Bt(Ua[Ba]);return Ir(t,zr(t,0)),t.def.updateRenderer(n,t)}function Lr(t,e,n,r){if(er.apply(void 0,[t,e,n].concat(r))){var i=1===n?r[0]:r;if(16384&e.flags){for(var o={},s=0;s<e.bindings.length;s++){var a=e.bindings[s],u=i[s];8&a.flags&&(o[Ur(a.nonMinifiedName)]=Hr(u))}var c=e.parent,l=Nt(t,c.index).renderElement;if(c.element.name)for(var p in o){var u=o[p];null!=u?t.renderer.setAttribute(l,p,u):t.renderer.removeAttribute(l,p)}else t.renderer.setValue(l,"bindings="+JSON.stringify(o,null,2))}}}function Vr(t,e,n,r){or.apply(void 0,[t,e,n].concat(r))}function Ur(t){return"ng-reflect-"+(t=Br(t.replace(/[$@]/g,"_")))}function Br(t){return t.replace(za,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()})}function Hr(t){try{return null!=t?t.toString().slice(0,30):t}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function qr(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function zr(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}function Wr(t,e){for(var n=-1,r=0;r<=e;r++){3&t.nodes[r].flags&&n++}return n}function Kr(t){for(;t&&!ne(t);)t=t.parent;return t.parent?Nt(t.parent,$t(t).index):null}function Gr(t,e,n){for(var r in e.references)n[r]=kn(t,e,e.references[r])}function Qr(t,e,n,r){var i=Ba,o=Ha,s=qa;try{Ba=t;var a=e.apply(n,r);return Ha=o,qa=s,Ba=i,a}catch(t){if(Ut(t)||!Ha)throw t;throw Ft(t,Xr())}}function Xr(){return Ha?new Wa(Ha,qa):null}function Yr(t,e,n){return new Qa(t,e,n)}function Jr(t,e){return{type:7,name:t,definitions:e,options:{}}}function Zr(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}}function $r(t,e){return void 0===e&&(e=null),{type:3,steps:t,options:e}}function ti(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}}function ei(t){return{type:6,styles:t,offset:null}}function ni(t,e,n){return{type:0,name:t,styles:e,options:n}}function ri(t){return{type:5,steps:t}}function ii(t,e,n){return void 0===n&&(n=null),{type:1,expr:t,animation:e,options:n}}function oi(t,e){return Jr(t,e)}function si(t,e){return Zr(t,e)}function ai(t){return $r(t)}function ui(t){return ti(t)}function ci(t){return ei(t)}function li(t,e){return ni(t,e)}function pi(t){return ri(t)}function hi(t,e){return ii(t,e)}n.d(e,"g",function(){return fs}),n.d(e,"_27",function(){return ot}),n.d(e,"_23",function(){return at}),n.d(e,"Q",function(){return ls}),n.d(e,"c",function(){return Ao}),n.d(e,"U",function(){return Io}),n.d(e,"W",function(){return Mo}),n.d(e,"V",function(){return No}),n.d(e,"b",function(){return Ro}),n.d(e,"d",function(){return To}),n.d(e,"e",function(){return Po}),n.d(e,"_25",function(){return mt}),n.d(e,"_14",function(){return ns}),n.d(e,"_32",function(){return it}),n.d(e,"_11",function(){return ta}),n.d(e,"_12",function(){return ea}),n.d(e,"I",function(){return $s}),n.d(e,"J",function(){return na}),n.d(e,"f",function(){return ra}),n.d(e,"_15",function(){return fo}),n.d(e,"x",function(){return ts}),n.d(e,"w",function(){return co}),n.d(e,"_5",function(){return oa}),n.d(e,"_6",function(){return ia}),n.d(e,"a",function(){return Ti}),n.d(e,"h",function(){return Pi}),n.d(e,"s",function(){return Mi}),n.d(e,"t",function(){return ki}),n.d(e,"Y",function(){return Ai}),n.d(e,"_17",function(){return Ri}),n.d(e,"_18",function(){return Ni}),n.d(e,"o",function(){return Fi}),n.d(e,"u",function(){return Di}),n.d(e,"z",function(){return Bi}),n.d(e,"A",function(){return Hi}),n.d(e,"F",function(){return Vi}),n.d(e,"T",function(){return Ui}),n.d(e,"X",function(){return Li}),n.d(e,"j",function(){return qi}),n.d(e,"L",function(){return zi}),n.d(e,"M",function(){return Wi}),n.d(e,"_20",function(){return Ki}),n.d(e,"_16",function(){return Gi}),n.d(e,"_24",function(){return d}),n.d(e,"_30",function(){return v}),n.d(e,"E",function(){return io}),n.d(e,"_0",function(){return Eo}),n.d(e,"D",function(){return bi}),n.d(e,"B",function(){return Xi}),n.d(e,"S",function(){return Yi}),n.d(e,"C",function(){return Ji}),n.d(e,"_7",function(){return Zi}),n.d(e,"_8",function(){return $i}),n.d(e,"y",function(){return to}),n.d(e,"R",function(){return es}),n.d(e,"_1",function(){return vs}),n.d(e,"_2",function(){return gs}),n.d(e,"_3",function(){return ys}),n.d(e,"_4",function(){return ms}),n.d(e,"i",function(){return Lo}),n.d(e,"m",function(){return Fo}),n.d(e,"n",function(){return Vo}),n.d(e,"K",function(){return Do}),n.d(e,"p",function(){return Bo}),n.d(e,"r",function(){return Uo}),n.d(e,"q",function(){return zo}),n.d(e,"v",function(){return bs}),n.d(e,"N",function(){return Yo}),n.d(e,"P",function(){return Xo}),n.d(e,"O",function(){return _s}),n.d(e,"Z",function(){return xs}),n.d(e,"_9",function(){return Cs}),n.d(e,"_10",function(){return Ss}),n.d(e,"_13",function(){return Os}),n.d(e,"_19",function(){return Ts}),n.d(e,"k",function(){return Ii}),n.d(e,"l",function(){return Ps}),n.d(e,"G",function(){return Ws}),n.d(e,"H",function(){return Ks}),n.d(e,"_21",function(){return Is}),n.d(e,"_29",function(){return Zs}),n.d(e,"_56",function(){return wt}),n.d(e,"_38",function(){return jo}),n.d(e,"_41",function(){return oo}),n.d(e,"_37",function(){return Go}),n.d(e,"_42",function(){return yo}),n.d(e,"_53",function(){return Si}),n.d(e,"_61",function(){return o}),n.d(e,"_74",function(){return s}),n.d(e,"_57",function(){return K}),n.d(e,"_58",function(){return W}),n.d(e,"_73",function(){return ht}),n.d(e,"_39",function(){return da}),n.d(e,"_40",function(){return va}),n.d(e,"_43",function(){return _e}),n.d(e,"_44",function(){return Ye}),n.d(e,"_45",function(){return Yr}),n.d(e,"_46",function(){return zt}),n.d(e,"_47",function(){return sn}),n.d(e,"_49",function(){return we}),n.d(e,"_50",function(){return ee}),n.d(e,"_52",function(){return Je}),n.d(e,"_54",function(){return ge}),n.d(e,"_55",function(){return me}),n.d(e,"_63",function(){return Re}),n.d(e,"_64",function(){return Ne}),n.d(e,"_65",function(){return Mn}),n.d(e,"_66",function(){return nn}),n.d(e,"_68",function(){return an}),n.d(e,"_71",function(){return un}),n.d(e,"_67",function(){return In}),n.d(e,"_69",function(){return jn}),n.d(e,"_70",function(){return Rn}),n.d(e,"_72",function(){return Cn}),n.d(e,"_75",function(){return Un}),n.d(e,"_76",function(){return qt}),n.d(e,"_77",function(){return Wn}),n.d(e,"_36",function(){return oi}),n.d(e,"_22",function(){return si}),n.d(e,"_26",function(){return ai}),n.d(e,"_31",function(){return ui}),n.d(e,"_34",function(){return ci}),n.d(e,"_33",function(){return li}),n.d(e,"_28",function(){return pi}),n.d(e,"_35",function(){return hi}),n.d(e,"_59",function(){return Pt}),n.d(e,"_60",function(){return At}),n.d(e,"_62",function(){return kt}),n.d(e,"_48",function(){return ds}),n.d(e,"_51",function(){return G});var fi=n(41),di=n(0),vi=(n.n(di),n(137)),yi=(n.n(vi),n(141)),mi=(n.n(yi),n(10)),gi=(n.n(mi),function(){function t(t){this._desc=t}return t.prototype.toString=function(){return"Token "+this._desc},t}()),bi=function(t){function e(e){return t.call(this,e)||this}return fi.a(e,t),e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(gi),_i="undefined"!=typeof window&&window,wi="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,xi=void 0!==t&&t,Si=_i||xi||wi,Ei=null,Ci=0,Oi=Si.Reflect,Ti=new bi("AnalyzeForEntryComponents"),Pi=h("Attribute",function(t){return{attributeName:t}}),Ai=function(){function t(){}return t}(),ki=f("ContentChildren",function(t,e){return void 0===e&&(e={}),Object.assign({selector:t,first:!1,isViewQuery:!1,descendants:!1},e)},Ai),Mi=f("ContentChild",function(t,e){return void 0===e&&(e={}),Object.assign({selector:t,first:!0,isViewQuery:!1,descendants:!0},e)},Ai),Ni=f("ViewChildren",function(t,e){return void 0===e&&(e={}),Object.assign({selector:t,first:!1,isViewQuery:!0,descendants:!0},e)},Ai),Ri=f("ViewChild",function(t,e){return Object.assign({selector:t,first:!0,isViewQuery:!0,descendants:!0},e)},Ai),Ii={};Ii.OnPush=0,Ii.Default=1,Ii[Ii.OnPush]="OnPush",Ii[Ii.Default]="Default";var ji={};ji.CheckOnce=0,ji.Checked=1,ji.CheckAlways=2,ji.Detached=3,ji.Errored=4,ji.Destroyed=5,ji[ji.CheckOnce]="CheckOnce",ji[ji.Checked]="Checked",ji[ji.CheckAlways]="CheckAlways",ji[ji.Detached]="Detached",ji[ji.Errored]="Errored",ji[ji.Destroyed]="Destroyed";var Di=l("Directive",function(t){return void 0===t&&(t={}),t}),Fi=l("Component",function(t){return void 0===t&&(t={}),Object.assign({changeDetection:Ii.Default},t)},Di),Li=l("Pipe",function(t){return Object.assign({pure:!0},t)}),Vi=f("Input",function(t){return{bindingPropertyName:t}}),Ui=f("Output",function(t){return{bindingPropertyName:t}}),Bi=f("HostBinding",function(t){return{hostPropertyName:t}}),Hi=f("HostListener",function(t,e){return{eventName:t,args:e}}),qi={name:"custom-elements"},zi={name:"no-errors-schema"},Wi=l("NgModule",function(t){return t}),Ki={};Ki.Emulated=0,Ki.Native=1,Ki.None=2,Ki[Ki.Emulated]="Emulated",Ki[Ki.Native]="Native",Ki[Ki.None]="None";var Gi=(function(){function t(t){void 0===t&&(t={}),this.templateUrl=t.templateUrl,this.template=t.template,this.styleUrls=t.styleUrls,this.styles=t.styles,this.encapsulation=t.encapsulation,this.animations=t.animations,this.interpolation=t.interpolation}}(),function(){function t(t){this.full=t}return Object.defineProperty(t.prototype,"major",{get:function(){return this.full.split(".")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minor",{get:function(){return this.full.split(".")[1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"patch",{get:function(){return this.full.split(".").slice(2).join(".")},enumerable:!0,configurable:!0}),t}()),Qi=new Gi("4.3.5"),Xi=h("Inject",function(t){return{token:t}}),Yi=h("Optional"),Ji=l("Injectable"),Zi=h("Self"),$i=h("SkipSelf"),to=h("Host"),eo=new Object,no=eo,ro=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=eo),e===eo)throw new Error("No provider for "+s(t)+"!");return e},t}(),io=function(){function t(){}return t.prototype.get=function(t,e){},t.prototype.get=function(t,e){},t}();io.THROW_IF_NOT_FOUND=eo,io.NULL=new ro;var oo="ngComponentType",so="ngDebugContext",ao="ngOriginalError",uo="ngErrorLogger",co=function(){function t(t){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),n=this._findContext(t),r=g(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)},t.prototype._findContext=function(t){return t?y(t)?y(t):this._findContext(m(t)):null},t.prototype._findOriginalError=function(t){for(var e=m(t);e&&m(e);)e=m(e);return e},t}(),lo=function(){function t(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!")}return Object.defineProperty(t.prototype,"displayName",{get:function(){return s(this.token)},enumerable:!0,configurable:!0}),t.get=function(t){return ho.get(v(t))},Object.defineProperty(t,"numberOfKeys",{get:function(){return ho.numberOfKeys},enumerable:!0,configurable:!0}),t}(),po=function(){function t(){this._allKeys=new Map}return t.prototype.get=function(t){if(t instanceof lo)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var e=new lo(t,lo.numberOfKeys);return this._allKeys.set(t,e),e},Object.defineProperty(t.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),t}(),ho=new po,fo=Function,vo=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,yo=function(){function t(t){this._reflect=t||Si.Reflect}return t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,[void 0].concat(e)))}},t.prototype._zipTypesAndAnnotations=function(t,e){var n;n=void 0===t?new Array(e.length):new Array(t.length);for(var r=0;r<n.length;r++)void 0===t?n[r]=[]:t[r]!=Object?n[r]=[t[r]]:n[r]=[],e&&null!=e[r]&&(n[r]=n[r].concat(e[r]));return n},t.prototype._ownParameters=function(t,e){if(vo.exec(t.toString()))return null;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;var n=t.ctorParameters;if(n&&n!==e.ctorParameters){var r="function"==typeof n?n():n,i=r.map(function(t){return t&&t.type}),o=r.map(function(t){return t&&R(t.decorators)});return this._zipTypesAndAnnotations(i,o)}if(null!=this._reflect&&null!=this._reflect.getOwnMetadata){var o=this._reflect.getOwnMetadata("parameters",t),i=this._reflect.getOwnMetadata("design:paramtypes",t);if(i||o)return this._zipTypesAndAnnotations(i,o)}return new Array(t.length).fill(void 0)},t.prototype.parameters=function(t){if(!N(t))return[];var e=I(t),n=this._ownParameters(t,e);return n||e===Object||(n=this.parameters(e)),n||[]},t.prototype._ownAnnotations=function(t,e){if(t.annotations&&t.annotations!==e.annotations){var n=t.annotations;return"function"==typeof n&&n.annotations&&(n=n.annotations),n}return t.decorators&&t.decorators!==e.decorators?R(t.decorators):this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("annotations",t):null},t.prototype.annotations=function(t){if(!N(t))return[];var e=I(t),n=this._ownAnnotations(t,e)||[];return(e!==Object?this.annotations(e):[]).concat(n)},t.prototype._ownPropMetadata=function(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){var n=t.propMetadata;return"function"==typeof n&&n.propMetadata&&(n=n.propMetadata),n}if(t.propDecorators&&t.propDecorators!==e.propDecorators){var r=t.propDecorators,i={};return Object.keys(r).forEach(function(t){i[t]=R(r[t])}),i}return this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("propMetadata",t):null},t.prototype.propMetadata=function(t){if(!N(t))return{};var e=I(t),n={};if(e!==Object){var r=this.propMetadata(e);Object.keys(r).forEach(function(t){n[t]=r[t]})}var i=this._ownPropMetadata(t,e);return i&&Object.keys(i).forEach(function(t){var e=[];n.hasOwnProperty(t)&&e.push.apply(e,n[t]),e.push.apply(e,i[t]),n[t]=e}),n},t.prototype.hasLifecycleHook=function(t,e){return t instanceof fo&&e in t.prototype},t.prototype.getter=function(t){return new Function("o","return o."+t+";")},t.prototype.setter=function(t){return new Function("o","v","return o."+t+" = v;")},t.prototype.method=function(t){var e="if (!o."+t+") throw new Error('\""+t+"\" is undefined');\n        return o."+t+".apply(o, args);";return new Function("o","args",e)},t.prototype.importUri=function(t){return"object"==typeof t&&t.filePath?t.filePath:"./"+s(t)},t.prototype.resourceUri=function(t){return"./"+s(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return r},t.prototype.resolveEnum=function(t,e){return t[e]},t}(),mo=function(){function t(t){this.reflectionCapabilities=t}return t.prototype.updateCapabilities=function(t){this.reflectionCapabilities=t},t.prototype.factory=function(t){return this.reflectionCapabilities.factory(t)},t.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},t.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},t.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},t.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},t.prototype.getter=function(t){return this.reflectionCapabilities.getter(t)},t.prototype.setter=function(t){return this.reflectionCapabilities.setter(t)},t.prototype.method=function(t){return this.reflectionCapabilities.method(t)},t.prototype.importUri=function(t){return this.reflectionCapabilities.importUri(t)},t.prototype.resourceUri=function(t){return this.reflectionCapabilities.resourceUri(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return this.reflectionCapabilities.resolveIdentifier(t,e,n,r)},t.prototype.resolveEnum=function(t,e){return this.reflectionCapabilities.resolveEnum(t,e)},t}(),go=new mo(new yo),bo=function(){function t(t,e,n){this.key=t,this.optional=e,this.visibility=n}return t.fromKey=function(e){return new t(e,!1,null)},t}(),_o=[],wo=function(){function t(t,e,n){this.key=t,this.resolvedFactories=e,this.multiProvider=n}return Object.defineProperty(t.prototype,"resolvedFactory",{get:function(){return this.resolvedFactories[0]},enumerable:!0,configurable:!0}),t}(),xo=function(){function t(t,e){this.factory=t,this.dependencies=e}return t}(),So=new Object,Eo=function(){function t(){}return t.resolve=function(t){return F(t)},t.resolveAndCreate=function(e,n){var r=t.resolve(e);return t.fromResolvedProviders(r,n)},t.fromResolvedProviders=function(t,e){return new Co(t,e)},t.prototype.parent=function(){},t.prototype.resolveAndCreateChild=function(t){},t.prototype.createChildFromResolved=function(t){},t.prototype.resolveAndInstantiate=function(t){},t.prototype.instantiateResolved=function(t){},t.prototype.get=function(t,e){},t}(),Co=function(){function t(t,e){this._constructionCounter=0,this._providers=t,this._parent=e||null;var n=t.length;this.keyIds=new Array(n),this.objs=new Array(n);for(var r=0;r<n;r++)this.keyIds[r]=t[r].key.id,this.objs[r]=So}return t.prototype.get=function(t,e){return void 0===e&&(e=no),this._getByKey(lo.get(t),null,e)},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),t.prototype.resolveAndCreateChild=function(t){var e=Eo.resolve(t);return this.createChildFromResolved(e)},t.prototype.createChildFromResolved=function(e){var n=new t(e);return n._parent=this,n},t.prototype.resolveAndInstantiate=function(t){return this.instantiateResolved(Eo.resolve([t])[0])},t.prototype.instantiateResolved=function(t){return this._instantiateProvider(t)},t.prototype.getProviderAtIndex=function(t){if(t<0||t>=this._providers.length)throw k(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw O(this,t.key);return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),n=0;n<t.resolvedFactories.length;++n)e[n]=this._instantiate(t,t.resolvedFactories[n]);return e}return this._instantiate(t,t.resolvedFactories[0])},t.prototype._instantiate=function(t,e){var n,r=this,i=e.factory;try{n=e.dependencies.map(function(t){return r._getByReflectiveDependency(t)})}catch(e){throw e.addKey&&e.addKey(this,t.key),e}var o;try{o=i.apply(void 0,n)}catch(e){throw T(this,e,e.stack,t.key)}return o},t.prototype._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:no)},t.prototype._getByKey=function(t,e,n){return t===Oo?this:e instanceof Zi?this._getByKeySelf(t,n):this._getByKeyDefault(t,n,e)},t.prototype._getObjByKeyId=function(t){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===So&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return So},t.prototype._throwOrNull=function(t,e){if(e!==no)return e;throw C(this,t)},t.prototype._getByKeySelf=function(t,e){var n=this._getObjByKeyId(t.id);return n!==So?n:this._throwOrNull(t,e)},t.prototype._getByKeyDefault=function(e,n,r){var i;for(i=r instanceof $i?this._parent:this;i instanceof t;){var o=i,s=o._getObjByKeyId(e.id);if(s!==So)return s;i=o._parent}return null!==i?i.get(e.token,n):this._throwOrNull(e,n)},Object.defineProperty(t.prototype,"displayName",{get:function(){return"ReflectiveInjector(providers: ["+z(this,function(t){return' "'+t.key.displayName+'" '}).join(", ")+"])"},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.displayName},t}(),Oo=lo.get(io),To=new bi("Application Initializer"),Po=function(){function t(t){var e=this;this.appInits=t,this.initialized=!1,this._done=!1,this._donePromise=new Promise(function(t,n){e.resolve=t,e.reject=n})}return t.prototype.runInitializers=function(){var t=this;if(!this.initialized){var e=[],n=function(){t._done=!0,t.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var i=this.appInits[r]();W(i)&&e.push(i)}Promise.all(e).then(function(){n()}).catch(function(e){t.reject(e)}),0===e.length&&n(),this.initialized=!0}},Object.defineProperty(t.prototype,"done",{get:function(){return this._done},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"donePromise",{get:function(){return this._donePromise},enumerable:!0,configurable:!0}),t}();Po.decorators=[{type:Ji}],Po.ctorParameters=function(){return[{type:Array,decorators:[{type:Xi,args:[To]},{type:Yi}]}]};var Ao=new bi("AppId"),ko={provide:Ao,useFactory:G,deps:[]},Mo=new bi("Platform Initializer"),No=new bi("Platform ID"),Ro=new bi("appBootstrapListener"),Io=new bi("Application Packages Root URL"),jo=function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t}();jo.decorators=[{type:Ji}],jo.ctorParameters=function(){return[]};var Do=function(){function t(t,e){this.ngModuleFactory=t,this.componentFactories=e}return t}(),Fo=function(){function t(){}return t.prototype.compileModuleSync=function(t){throw X()},t.prototype.compileModuleAsync=function(t){throw X()},t.prototype.compileModuleAndAllComponentsSync=function(t){throw X()},t.prototype.compileModuleAndAllComponentsAsync=function(t){throw X()},t.prototype.getNgContentSelectors=function(t){throw X()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(t){},t}();Fo.decorators=[{type:Ji}],Fo.ctorParameters=function(){return[]};var Lo=new bi("compilerOptions"),Vo=function(){function t(){}return t.prototype.createCompiler=function(t){},t}(),Uo=function(){function t(){}return t.prototype.location=function(){},t.prototype.injector=function(){},t.prototype.instance=function(){},t.prototype.hostView=function(){},t.prototype.changeDetectorRef=function(){},t.prototype.componentType=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(t){},t}(),Bo=function(){function t(){}return t.prototype.selector=function(){},t.prototype.componentType=function(){},t.prototype.ngContentSelectors=function(){},t.prototype.inputs=function(){},t.prototype.outputs=function(){},t.prototype.create=function(t,e,n,r){},t}(),Ho="ngComponent",qo=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw Y(t)},t}(),zo=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){},t}();zo.NULL=new qo;var Wo,Ko,Go=function(){function t(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(var r=0;r<t.length;r++){var i=t[r];this._factories.set(i.componentType,i)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t);if(!e&&this._parent&&(e=this._parent.resolveComponentFactory(t)),!e)throw Y(t);return new Qo(e,this._ngModule)},t}(),Qo=function(t){function e(e,n){var r=t.call(this)||this;return r.factory=e,r.ngModule=n,r}return fi.a(e,t),Object.defineProperty(e.prototype,"selector",{get:function(){return this.factory.selector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this.factory.componentType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngContentSelectors",{get:function(){return this.factory.ngContentSelectors},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputs",{get:function(){return this.factory.inputs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return this.factory.outputs},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){return this.factory.create(t,e,n,r||this.ngModule)},e}(Bo),Xo=function(){function t(){}return t.prototype.injector=function(){},t.prototype.componentFactoryResolver=function(){},t.prototype.instance=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(t){},t}(),Yo=function(){function t(){}return t.prototype.moduleType=function(){},t.prototype.create=function(t){},t}(),Jo=function(){var t=Si.wtf;return!(!t||!(Wo=t.trace))&&(Ko=Wo.events,!0)}(),Zo=Jo?J:function(t,e){return $},$o=Jo?Z:function(t,e){return e},ts=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return fi.a(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var i,o=function(t){return null},s=function(){return null};return e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(o=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()})),t.prototype.subscribe.call(this,i,o,s)},e}(mi.Subject),es=function(){function t(t){var e=t.enableLongStackTrace,n=void 0!==e&&e;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ts(!1),this.onMicrotaskEmpty=new ts(!1),this.onStable=new ts(!1),this.onError=new ts(!1),"undefined"==typeof Zone)throw new Error("Angular requires Zone.js prolyfill.");Zone.assertZonePatched();var r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.wtfZoneSpec&&(r._inner=r._inner.fork(Zone.wtfZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),et(r)}return t.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t){return this._inner.run(t)},t.prototype.runGuarded=function(t){return this._inner.runGuarded(t)},t.prototype.runOutsideAngular=function(t){return this._outer.run(t)},t}(),ns=function(){function t(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents()}return t.prototype._watchAngularEvents=function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.subscribe({next:function(){es.assertNotInAngularZone(),i(function(){t._isZoneStable=!0,t._runCallbacksIfReady()})}})})},t.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},t.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;this.isStable()?i(function(){for(;0!==t._callbacks.length;)t._callbacks.pop()(t._didWork);t._didWork=!1}):this._didWork=!0},t.prototype.whenStable=function(t){this._callbacks.push(t),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findBindings=function(t,e,n){return[]},t.prototype.findProviders=function(t,e,n){return[]},t}();ns.decorators=[{type:Ji}],ns.ctorParameters=function(){return[{type:es}]};var rs=function(){function t(){this._applications=new Map,ss.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),ss.findTestabilityInTree(this,t,e)},t}();rs.decorators=[{type:Ji}],rs.ctorParameters=function(){return[]};var is,os=function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}(),ss=new os,as=!0,us=!1,cs=new bi("AllowMultipleToken"),ls=function(){function t(t,e){this.name=t,this.token=e}return t}(),ps=function(){function t(){}return t.prototype.bootstrapModuleFactory=function(t){},t.prototype.bootstrapModule=function(t,e){},t.prototype.onDestroy=function(t){},t.prototype.injector=function(){},t.prototype.destroy=function(){},t.prototype.destroyed=function(){},t}(),hs=function(t){function e(e){var n=t.call(this)||this;return n._injector=e,n._modules=[],n._destroyListeners=[],n._destroyed=!1,n}return fi.a(e,t),e.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},e.prototype.bootstrapModuleFactory=function(t){return this._bootstrapModuleFactoryWithZone(t)},e.prototype._bootstrapModuleFactoryWithZone=function(t,e){var n=this;return e||(e=new es({enableLongStackTrace:ot()})),e.run(function(){var r=Eo.resolveAndCreate([{provide:es,useValue:e}],n.injector),i=t.create(r),o=i.injector.get(co,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(function(){return pt(n._modules,i)}),e.runOutsideAngular(function(){return e.onError.subscribe({next:function(t){o.handleError(t)}})}),lt(o,e,function(){var t=i.injector.get(Po);return t.runInitializers(),t.donePromise.then(function(){return n._moduleDoBootstrap(i),i})})})},e.prototype.bootstrapModule=function(t,e){return void 0===e&&(e=[]),this._bootstrapModuleWithZone(t,e)},e.prototype._bootstrapModuleWithZone=function(t,e,n){var r=this;return void 0===e&&(e=[]),this.injector.get(Vo).createCompiler(Array.isArray(e)?e:[e]).compileModuleAsync(t).then(function(t){return r._bootstrapModuleFactoryWithZone(t,n)})},e.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(fs);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+s(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},e}(ps);hs.decorators=[{type:Ji}],hs.ctorParameters=function(){return[{type:io}]};var fs=function(){function t(){}return t.prototype.bootstrap=function(t,e){},t.prototype.tick=function(){},t.prototype.componentTypes=function(){},t.prototype.components=function(){},t.prototype.attachView=function(t){},t.prototype.detachView=function(t){},t.prototype.viewCount=function(){},t.prototype.isStable=function(){},t}(),ds=function(t){function e(e,n,r,o,s,a){var u=t.call(this)||this;u._zone=e,u._console=n,u._injector=r,u._exceptionHandler=o,u._componentFactoryResolver=s,u._initStatus=a,u._bootstrapListeners=[],u._rootComponents=[],u._rootComponentTypes=[],u._views=[],u._runningTick=!1,u._enforceNoNewChanges=!1,u._stable=!0,u._enforceNoNewChanges=ot(),u._zone.onMicrotaskEmpty.subscribe({next:function(){u._zone.run(function(){u.tick()})}});var c=new di.Observable(function(t){u._stable=u._zone.isStable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks,u._zone.runOutsideAngular(function(){t.next(u._stable),t.complete()})}),l=new di.Observable(function(t){var e=u._zone.onStable.subscribe(function(){es.assertNotInAngularZone(),i(function(){u._stable||u._zone.hasPendingMacrotasks||u._zone.hasPendingMicrotasks||(u._stable=!0,t.next(!0))})}),n=u._zone.onUnstable.subscribe(function(){es.assertInAngularZone(),u._stable&&(u._stable=!1,u._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});return u._isStable=Object(vi.merge)(c,yi.share.call(l)),u}return fi.a(e,t),e.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},e.prototype.detachView=function(t){var e=t;pt(this._views,e),e.detachFromAppRef()},e.prototype.bootstrap=function(t,e){var n=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 r;r=t instanceof Bo?t:this._componentFactoryResolver.resolveComponentFactory(t),this._rootComponentTypes.push(r.componentType);var i=r instanceof Qo?null:this._injector.get(Xo),o=e||r.selector,s=r.create(io.NULL,[],o,i);s.onDestroy(function(){n._unloadComponent(s)});var a=s.injector.get(ns,null);return a&&s.injector.get(rs).registerApplication(s.location.nativeElement,a),this._loadComponent(s),ot()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s},e.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this._rootComponents.push(t),this._injector.get(Ro,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},e.prototype._unloadComponent=function(t){this.detachView(t.hostView),pt(this._rootComponents,t)},e.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,$o(n)}},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),e}(fs);ds._tickScope=Zo("ApplicationRef#tick()"),ds.decorators=[{type:Ji}],ds.ctorParameters=function(){return[{type:es},{type:jo},{type:io},{type:co},{type:zo},{type:Po}]};var vs=(function(){function t(t,e,n,r,i,o){this.id=t,this.templateUrl=e,this.slotCount=n,this.encapsulation=r,this.styles=i,this.animations=o}}(),function(){function t(){}t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.source=function(){}}(),function(){function t(){}return t.prototype.selectRootElement=function(t,e){},t.prototype.createElement=function(t,e,n){},t.prototype.createViewRoot=function(t){},t.prototype.createTemplateAnchor=function(t,e){},t.prototype.createText=function(t,e,n){},t.prototype.projectNodes=function(t,e){},t.prototype.attachViewAfter=function(t,e){},t.prototype.detachView=function(t){},t.prototype.destroyView=function(t,e){},t.prototype.listen=function(t,e,n){},t.prototype.listenGlobal=function(t,e,n){},t.prototype.setElementProperty=function(t,e,n){},t.prototype.setElementAttribute=function(t,e,n){},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){},t.prototype.setElementStyle=function(t,e,n){},t.prototype.invokeElementMethod=function(t,e,n){},t.prototype.setText=function(t,e){},t.prototype.animate=function(t,e,n,r,i,o,s){},t}()),ys=(new bi("Renderer2Interceptor"),function(){function t(){}t.prototype.renderComponent=function(t){}}(),function(){function t(){}return t.prototype.createRenderer=function(t,e){},t.prototype.begin=function(){},t.prototype.end=function(){},t.prototype.whenRenderingDone=function(){},t}()),ms={};ms.Important=1,ms.DashCase=2,ms[ms.Important]="Important",ms[ms.DashCase]="DashCase";var gs=function(){function t(){}return t.prototype.data=function(){},t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){},t.prototype.createComment=function(t){},t.prototype.createText=function(t){},t.prototype.appendChild=function(t,e){},t.prototype.insertBefore=function(t,e,n){},t.prototype.removeChild=function(t,e){},t.prototype.selectRootElement=function(t){},t.prototype.parentNode=function(t){},t.prototype.nextSibling=function(t){},t.prototype.setAttribute=function(t,e,n,r){},t.prototype.removeAttribute=function(t,e,n){},t.prototype.addClass=function(t,e){},t.prototype.removeClass=function(t,e){},t.prototype.setStyle=function(t,e,n,r){},t.prototype.removeStyle=function(t,e,n){},t.prototype.setProperty=function(t,e,n){},t.prototype.setValue=function(t,e){},t.prototype.listen=function(t,e,n){},t}(),bs=function(){function t(t){this.nativeElement=t}return t}(),_s=function(){function t(){}return t.prototype.load=function(t){},t}(),ws=new Map,xs=function(){function t(){this._dirty=!0,this._results=[],this._emitter=new ts}return Object.defineProperty(t.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[r()]=function(){return this._results[r()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=ft(t),this._dirty=!1},t.prototype.notifyOnChanges=function(){this._emitter.emit(this)},t.prototype.setDirty=function(){this._dirty=!0},Object.defineProperty(t.prototype,"dirty",{get:function(){return this._dirty},enumerable:!0,configurable:!0}),t}(),Ss=function(){function t(){}return t}(),Es={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Cs=function(){function t(t,e){this._compiler=t,this._config=e||Es}return t.prototype.load=function(t){return this._compiler instanceof Fo?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=t.split("#"),i=r[0],o=r[1];return void 0===o&&(o="default"),n(144)(i).then(function(t){return t[o]}).then(function(t){return dt(t,i,o)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split("#"),r=e[0],i=e[1],o="NgFactory";return void 0===i&&(i="default",o=""),n(144)(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[i+o]}).then(function(t){return dt(t,r,i)})},t}();Cs.decorators=[{type:Ji}],Cs.ctorParameters=function(){return[{type:Fo},{type:Ss,decorators:[{type:Yi}]}]};var Os=function(){function t(){}return t.prototype.elementRef=function(){},t.prototype.createEmbeddedView=function(t){},t}(),Ts=function(){function t(){}return t.prototype.element=function(){},t.prototype.injector=function(){},t.prototype.parentInjector=function(){},t.prototype.clear=function(){},t.prototype.get=function(t){},t.prototype.length=function(){},t.prototype.createEmbeddedView=function(t,e,n){},t.prototype.createComponent=function(t,e,n,r,i){},t.prototype.insert=function(t,e){},t.prototype.move=function(t,e){},t.prototype.indexOf=function(t){},t.prototype.remove=function(t){},t.prototype.detach=function(t){},t}(),Ps=function(){function t(){}return t.prototype.markForCheck=function(){},t.prototype.detach=function(){},t.prototype.detectChanges=function(){},t.prototype.checkNoChanges=function(){},t.prototype.reattach=function(){},t}(),As=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return fi.a(e,t),e.prototype.destroy=function(){},e.prototype.destroyed=function(){},e.prototype.onDestroy=function(t){},e}(Ps),ks=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}fi.a(e,t),e.prototype.context=function(){},e.prototype.rootNodes=function(){}}(As),function(){function t(t,e){this.name=t,this.callback=e}return t}()),Ms=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof Ns?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"source",{get:function(){return"Deprecated since v4"},enumerable:!0,configurable:!0}),t}(),Ns=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return fi.a(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n=this,r=this.childNodes.indexOf(t);-1!==r&&((i=this.childNodes).splice.apply(i,[r+1,0].concat(e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=n}));var i},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return vt(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return yt(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(Ms),Rs=new Map,Is=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t}(),js=(function(){function t(){this.hasWrappedValue=!1}t.prototype.unwrap=function(t){return t instanceof Is?(this.hasWrappedValue=!0,t.wrapped):t},t.prototype.reset=function(){this.hasWrappedValue=!1}}(),function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}()),Ds=function(){function t(){}return t.prototype.supports=function(t){return wt(t)},t.prototype.create=function(t,e){return new Ls(e||t)},t}(),Fs=function(t,e){return e},Ls=function(){function t(t){this._length=0,this._collection=null,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Fs}return Object.defineProperty(t.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex<Ct(n,r,i)?e:n,s=Ct(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);var u=s-r,c=a-r;if(u!=c){for(var l=0;l<u;l++){var p=l<i.length?i[l]:i[l]=0,h=p+l;c<=h&&h<u&&(i[l]=p+1)}var f=o.previousIndex;i[f]=c-u}}s!==a&&t(o,s,a)}},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachMovedItem=function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.forEachIdentityChange=function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)},t.prototype.diff=function(t){if(null==t&&(t=[]),!wt(t))throw new Error("Error trying to diff '"+s(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n,r,i,s=this._itHead,a=!1;if(Array.isArray(t)){this._length=t.length;for(var u=0;u<this._length;u++)r=t[u],i=this._trackByFn(u,r),null!==s&&o(s.trackById,i)?(a&&(s=this._verifyReinsertion(s,r,i,u)),o(s.item,r)||this._addIdentityChange(s,r)):(s=this._mismatch(s,r,i,u),a=!0),s=s._next}else n=0,St(t,function(t){i=e._trackByFn(n,t),null!==s&&o(s.trackById,i)?(a&&(s=e._verifyReinsertion(s,t,i,n)),o(s.item,t)||e._addIdentityChange(s,t)):(s=e._mismatch(s,t,i,n),a=!0),s=s._next,n++}),this._length=n;return this._truncate(s),this._collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,n,r){var i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),t=null===this._linkedRecords?null:this._linkedRecords.get(n,r),null!==t?(o(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null),null!==t?(o(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new Vs(e,n),i,r)),t},t.prototype._verifyReinsertion=function(t,e,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._moveAfter=function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._addAfter=function(t,e,n){return this._insertAfter(t,e,n),null===this._additionsTail?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,n){var r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Bs),this._linkedRecords.put(t),t.currentIndex=n,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e?t:(null===this._movesTail?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Bs),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t},t.prototype._addIdentityChange=function(t,e){return t.item=e,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t},t.prototype.toString=function(){var t=[];this.forEachItem(function(e){return t.push(e)});var e=[];this.forEachPreviousItem(function(t){return e.push(t)});var n=[];this.forEachAddedItem(function(t){return n.push(t)});var r=[];this.forEachMovedItem(function(t){return r.push(t)});var i=[];this.forEachRemovedItem(function(t){return i.push(t)});var o=[];return this.forEachIdentityChange(function(t){return o.push(t)}),"collection: "+t.join(", ")+"\nprevious: "+e.join(", ")+"\nadditions: "+n.join(", ")+"\nmoves: "+r.join(", ")+"\nremovals: "+i.join(", ")+"\nidentityChanges: "+o.join(", ")+"\n"},t}(),Vs=function(){function t(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}return t.prototype.toString=function(){return this.previousIndex===this.currentIndex?s(this.item):s(this.item)+"["+s(this.previousIndex)+"->"+s(this.currentIndex)+"]"},t}(),Us=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&o(n.trackById,t))return n;return null},t.prototype.remove=function(t){var e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head},t}(),Bs=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,n=this.map.get(e);n||(n=new Us,this.map.set(e,n)),n.add(t)},t.prototype.get=function(t,e){var n=t,r=this.map.get(n);return r?r.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t.prototype.toString=function(){return"_DuplicateMap("+s(this.map)+")"},t}(),Hs=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||Et(t)},t.prototype.create=function(t){return new qs},t}(),qs=function(){function t(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||Et(t)))throw new Error("Error trying to diff '"+s(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(t,r){if(n&&n.key===r)e._maybeAddToChanges(n,t),e._appendAfter=n,n=n._next;else{var i=e._getOrCreateRecordForKey(r,t);n=e._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},t.prototype._insertBeforeOrAppend=function(t,e){if(t){var n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null},t.prototype._getOrCreateRecordForKey=function(t,e){if(this._records.has(t)){var n=this._records.get(t);this._maybeAddToChanges(n,e);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new zs(t);return this._records.set(t,o),o.currentValue=e,this._addToAdditions(o),o},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},t.prototype._maybeAddToChanges=function(t,e){o(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(n){return e(t[n],n)})},t}(),zs=function(){function t(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}return t}(),Ws=function(){function t(t){this.factories=t}return t.create=function(e,n){if(null!=n){var r=n.factories.slice();return e=e.concat(r),new t(e)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new $i,new Yi]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(null!=e)return e;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+Ot(t)+"'")},t}(),Ks=function(){function t(t){this.factories=t}return t.create=function(e,n){if(n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new $i,new Yi]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(e)return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},t}(),Gs=[new Hs],Qs=[new Ds],Xs=new Ws(Qs),Ys=new Ks(Gs),Js=[{provide:No,useValue:"unknown"},hs,{provide:ps,useExisting:hs},{provide:mo,useFactory:Tt,deps:[]},rs,jo],Zs=at(null,"core",Js),$s=new bi("LocaleId"),ta=new bi("Translations"),ea=new bi("TranslationsFormat"),na={};na.Error=0,na.Warning=1,na.Ignore=2,na[na.Error]="Error",na[na.Warning]="Warning",na[na.Ignore]="Ignore";var ra=function(){function t(t){}return t}();ra.decorators=[{type:Wi,args:[{providers:[ds,{provide:fs,useExisting:ds},Po,Fo,ko,{provide:Ws,useFactory:Pt},{provide:Ks,useFactory:At},{provide:$s,useFactory:kt,deps:[[new Xi($s),new Yi,new $i]]}]}]}],ra.ctorParameters=function(){return[{type:fs}]};var ia={};ia.NONE=0,ia.HTML=1,ia.STYLE=2,ia.SCRIPT=3,ia.URL=4,ia.RESOURCE_URL=5,ia[ia.NONE]="NONE",ia[ia.HTML]="HTML",ia[ia.STYLE]="STYLE",ia[ia.SCRIPT]="SCRIPT",ia[ia.URL]="URL",ia[ia.RESOURCE_URL]="RESOURCE_URL";var oa=function(){function t(){}return t.prototype.sanitize=function(t,e){},t}(),sa=(function(){function t(){}t.prototype.view=function(){},t.prototype.nodeIndex=function(){},t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.componentRenderElement=function(){},t.prototype.renderNode=function(){},t.prototype.logError=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n]}}(),{setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,clearProviderOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0}),aa=function(){},ua=new Map,ca="$$undefined",la="$$empty",pa=0,ha=new WeakMap,fa=/^:([^:]+):(.+)$/,da=[],va={},ya=new Object,ma=Ht(io),ga=Ht(Xo),ba=new Object,_a=function(t){function e(e,n,r,i,o,s){var a=t.call(this)||this;return a.selector=e,a.componentType=n,a._inputs=i,a._outputs=o,a.ngContentSelectors=s,a.viewDefFactory=r,a}return fi.a(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e){var r=e[n];t.push({propName:n,templateName:r})}return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs){var n=this._outputs[e];t.push({propName:e,templateName:n})}return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var i=ue(this.viewDefFactory),o=i.nodes[0].element.componentProvider.index,s=sa.createRootView(t,e||[],n,i,r,ba),a=Rt(s,o).instance;return n&&s.renderer.setAttribute(Nt(s,0).renderElement,"ng-version",Qi.full),new wa(s,new Sa(s),a)},e}(Bo),wa=function(t){function e(e,n,r){var i=t.call(this)||this;return i._view=e,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i}return fi.a(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new bs(Nt(this._view,this._elDef.index).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Ca(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"instance",{get:function(){return this._component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostView",{get:function(){return this._viewRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"changeDetectorRef",{get:function(){return this._viewRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(Uo),xa=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new bs(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Ca(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=$t(t),t=t.parent;return t?new Ca(t,e):new Ca(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length,e=t-1;e>=0;e--){var n=qe(this._data,e);sa.destroyView(n)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new Sa(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;i||t instanceof Qo||(i=o.get(Xo));var s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n=t,r=n._view;return Ue(this._view,this._data,e,r),n.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n=this._embeddedViews.indexOf(t._view);return We(this._data,n,e),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=qe(this._data,t);e&&sa.destroyView(e)},t.prototype.detach=function(t){var e=qe(this._data,t);return e?new Sa(e):null},t}(),Sa=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return ce(this._view)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){Xt(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin(),sa.checkAndUpdateView(this._view),t.end&&t.end()},t.prototype.checkNoChanges=function(){sa.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),sa.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Ge(this._view),sa.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}(),Ea=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return fi.a(e,t),e.prototype.createEmbeddedView=function(t){return new Sa(sa.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new bs(Nt(this._parentView,this._def.index).renderElement)},enumerable:!0,configurable:!0}),e}(Os),Ca=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){void 0===e&&(e=io.THROW_IF_NOT_FOUND);var n=!!this.elDef&&0!=(33554432&this.elDef.flags);return sa.resolveDep(this.view,this.elDef,n,{flags:0,token:t,tokenKey:Ht(t)},e)},t}(),Oa=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=ve(e),r=n[0],i=n[1],o=this.delegate.createElement(i,r);return t&&this.delegate.appendChild(t,o),o},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n<e.length;n++)this.delegate.appendChild(t,e[n])},t.prototype.attachViewAfter=function(t,e){for(var n=this.delegate.parentNode(t),r=this.delegate.nextSibling(t),i=0;i<e.length;i++)this.delegate.insertBefore(n,e[i],r)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},t.prototype.destroyView=function(t,e){for(var n=0;n<e.length;n++)this.delegate.destroyNode(e[n])},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.listenGlobal=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.setElementProperty=function(t,e,n){this.delegate.setProperty(t,e,n)},t.prototype.setElementAttribute=function(t,e,n){var r=ve(e),i=r[0],o=r[1];null!=n?this.delegate.setAttribute(t,o,n,i):this.delegate.removeAttribute(t,o,i)},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){n?this.delegate.addClass(t,e):this.delegate.removeClass(t,e)},t.prototype.setElementStyle=function(t,e,n){null!=n?this.delegate.setStyle(t,e,n):this.delegate.removeStyle(t,e)},t.prototype.invokeElementMethod=function(t,e,n){t[e].apply(t,n)},t.prototype.setText=function(t,e){this.delegate.setValue(t,e)},t.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},t}(),Ta=function(){function t(t,e,n,r){this._moduleType=t,this._parent=e,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,Ie(this)}return t.prototype.get=function(t,e){return void 0===e&&(e=io.THROW_IF_NOT_FOUND),je(this,{token:t,tokenKey:Ht(t),flags:0},e)},Object.defineProperty(t.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this.get(zo)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return this},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+s(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,Ve(this,131072),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t}(),Pa=Ht(vs),Aa=Ht(gs),ka=Ht(bs),Ma=Ht(Ts),Na=Ht(Os),Ra=Ht(Ps),Ia=Ht(io),ja=new Object,Da={},Fa={};Fa.CreateViewNodes=0,Fa.CheckNoChanges=1,Fa.CheckNoChangesProjectedViews=2,Fa.CheckAndUpdate=3,Fa.CheckAndUpdateProjectedViews=4,Fa.Destroy=5,Fa[Fa.CreateViewNodes]="CreateViewNodes",Fa[Fa.CheckNoChanges]="CheckNoChanges",Fa[Fa.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",Fa[Fa.CheckAndUpdate]="CheckAndUpdate",Fa[Fa.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",Fa[Fa.Destroy]="Destroy";var La=!1,Va=new Map,Ua={};Ua.create=0,Ua.detectChanges=1,Ua.checkNoChanges=2,Ua.destroy=3,Ua.handleEvent=4,Ua[Ua.create]="create",Ua[Ua.detectChanges]="detectChanges",Ua[Ua.checkNoChanges]="checkNoChanges",Ua[Ua.destroy]="destroy",Ua[Ua.handleEvent]="handleEvent";var Ba,Ha,qa,za=/([A-Z])/g,Wa=function(){function t(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];for(var n=this.nodeDef,r=t;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=$t(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return Nt(this.elView,this.elDef.index).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return en(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=[];if(this.elDef)for(var e=this.elDef.index+1;e<=this.elDef.index+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&t.push(n.provider.token),e+=n.childCount}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t={};if(this.elDef){Gr(this.elView,this.elDef,t);for(var e=this.elDef.index+1;e<=this.elDef.index+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&Gr(this.elView,n,t),e+=n.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=Kr(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?te(this.view,this.nodeDef):te(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r,i;2&this.nodeDef.flags?(r=this.view.def,i=this.nodeDef.index):(r=this.elView.def,i=this.elDef.index);var o=Wr(r,i),s=-1,a=function(){return s++,s===o?(n=t.error).bind.apply(n,[t].concat(e)):aa;var n};r.factory(a),s<o&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,e))},t}(),Ka=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new Ga(this.delegate.createRenderer(t,e))},t.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},t.prototype.end=function(){this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},t}(),Ga=function(){function t(t){this.delegate=t}return Object.defineProperty(t.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),t.prototype.destroyNode=function(t){bt(mt(t)),this.delegate.destroyNode&&this.delegate.destroyNode(t)},t.prototype.destroy=function(){this.delegate.destroy()},t.prototype.createElement=function(t,e){var n=this.delegate.createElement(t,e),r=Xr();if(r){var i=new Ns(n,null,r);i.name=t,gt(i)}return n},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),n=Xr();return n&&gt(new Ms(e,null,n)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),n=Xr();return n&&gt(new Ms(e,null,n)),e},t.prototype.appendChild=function(t,e){var n=mt(t),r=mt(e);n&&r&&n instanceof Ns&&n.addChild(r),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,n){var r=mt(t),i=mt(e),o=mt(n);r&&i&&r instanceof Ns&&r.insertBefore(o,i),this.delegate.insertBefore(t,e,n)},t.prototype.removeChild=function(t,e){var n=mt(t),r=mt(e);n&&r&&n instanceof Ns&&n.removeChild(r),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t){var e=this.delegate.selectRootElement(t),n=Xr();return n&&gt(new Ns(e,null,n)),e},t.prototype.setAttribute=function(t,e,n,r){var i=mt(t);if(i&&i instanceof Ns){var o=r?r+":"+e:e;i.attributes[o]=n}this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){var r=mt(t);if(r&&r instanceof Ns){var i=n?n+":"+e:e;r.attributes[i]=null}this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){var n=mt(t);n&&n instanceof Ns&&(n.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var n=mt(t);n&&n instanceof Ns&&(n.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){var i=mt(t);i&&i instanceof Ns&&(i.styles[e]=n),this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){var r=mt(t);r&&r instanceof Ns&&(r.styles[e]=null),this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){var r=mt(t);r&&r instanceof Ns&&(r.properties[e]=n),this.delegate.setProperty(t,e,n)},t.prototype.listen=function(t,e,n){if("string"!=typeof t){var r=mt(t);r&&r.listeners.push(new ks(e,n))}return this.delegate.listen(t,e,n)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setValue=function(t,e){return this.delegate.setValue(t,e)},t}(),Qa=function(t){function e(e,n,r){var i=t.call(this)||this;return i.moduleType=e,i._bootstrapComponents=n,i._ngModuleDefFactory=r,i}return fi.a(e,t),e.prototype.create=function(t){yr();var e=ue(this._ngModuleDefFactory);return sa.createNgModuleRef(this.moduleType,t||io.NULL,this._bootstrapComponents,e)},e}(Yo)}).call(e,n(77))},function(t,e,n){"use strict";function r(t){return t.reduce(function(t,e){return t.concat(e instanceof c.UnsubscriptionError?e.errors:e)},[])}var i=n(31),o=n(134),s=n(78),a=n(17),u=n(14),c=n(135),l=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this,l=n._parent,p=n._parents,h=n._unsubscribe,f=n._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var d=-1,v=p?p.length:0;l;)l.remove(this),l=++d<v&&p[d]||null;if(s.isFunction(h)){var y=a.tryCatch(h).call(this);y===u.errorObject&&(e=!0,t=t||(u.errorObject.e instanceof c.UnsubscriptionError?r(u.errorObject.e.errors):[u.errorObject.e]))}if(i.isArray(f))for(d=-1,v=f.length;++d<v;){var m=f[d];if(o.isObject(m)){var y=a.tryCatch(m.unsubscribe).call(m);if(y===u.errorObject){e=!0,t=t||[];var g=u.errorObject.e;g instanceof c.UnsubscriptionError?t=t.concat(r(g.errors)):t.push(g)}}}if(e)throw new c.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;n=new t,n._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this,n=e._parent,r=e._parents;n&&n!==t?r?-1===r.indexOf(t)&&r.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();e.Subscription=l},function(t,e,n){"use strict";e.errorObject={e:{}}},,function(t,e,n){"use strict";(function(t){var n="undefined"!=typeof window&&window,r="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=void 0!==t&&t,o=n||i||r;e.root=o,function(){if(!o)throw new Error("RxJS could not find any global context (window, self, global)")}()}).call(e,n(77))},function(t,e,n){"use strict";function r(){try{return o.apply(this,arguments)}catch(t){return s.errorObject.e=t,s.errorObject}}function i(t){return o=t,r}var o,s=n(14);e.tryCatch=i},,function(t,e,n){"use strict";var r=n(66),i=n(67);e.async=new i.AsyncScheduler(r.AsyncAction)},,,,,,,,,,,function(t,e,n){"use strict";function r(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}function i(t){return t.replace(/\/index.html$/,"")}function o(t,e,n){var r="="+t;if(e.indexOf(r)>-1)return r;if(r=n.getPluralCategory(t),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}function s(t,e){"string"==typeof e&&(e=parseInt(e,10));var n=e,r=n.toString().replace(/^[^.]*\.?/,""),i=Math.floor(Math.abs(n)),o=r.length,s=parseInt(r,10),a=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(t.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?U.One:U.Other;case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?U.One:U.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===n?U.One:U.Other;case"ar":return 0===n?U.Zero:1===n?U.One:2===n?U.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?U.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?U.Many:U.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===i&&0===o?U.One:U.Other;case"be":return n%10==1&&n%100!=11?U.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?U.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?U.Many:U.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?U.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?U.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?U.Few:0!==n&&n%1e6==0?U.Many:U.Other;case"bs":case"hr":case"sr":return 0===o&&i%10==1&&i%100!=11||s%10==1&&s%100!=11?U.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)||s%10===Math.floor(s%10)&&s%10>=2&&s%10<=4&&!(s%100>=12&&s%100<=14)?U.Few:U.Other;case"cs":case"sk":return 1===i&&0===o?U.One:i===Math.floor(i)&&i>=2&&i<=4&&0===o?U.Few:0!==o?U.Many:U.Other;case"cy":return 0===n?U.Zero:1===n?U.One:2===n?U.Two:3===n?U.Few:6===n?U.Many:U.Other;case"da":return 1===n||0!==a&&(0===i||1===i)?U.One:U.Other;case"dsb":case"hsb":return 0===o&&i%100==1||s%100==1?U.One:0===o&&i%100==2||s%100==2?U.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||s%100===Math.floor(s%100)&&s%100>=3&&s%100<=4?U.Few:U.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?U.One:U.Other;case"fil":return 0===o&&(1===i||2===i||3===i)||0===o&&i%10!=4&&i%10!=6&&i%10!=9||0!==o&&s%10!=4&&s%10!=6&&s%10!=9?U.One:U.Other;case"ga":return 1===n?U.One:2===n?U.Two:n===Math.floor(n)&&n>=3&&n<=6?U.Few:n===Math.floor(n)&&n>=7&&n<=10?U.Many:U.Other;case"gd":return 1===n||11===n?U.One:2===n||12===n?U.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?U.Few:U.Other;case"gv":return 0===o&&i%10==1?U.One:0===o&&i%10==2?U.Two:0!==o||i%100!=0&&i%100!=20&&i%100!=40&&i%100!=60&&i%100!=80?0!==o?U.Many:U.Other:U.Few;case"he":return 1===i&&0===o?U.One:2===i&&0===o?U.Two:0!==o||n>=0&&n<=10||n%10!=0?U.Other:U.Many;case"is":return 0===a&&i%10==1&&i%100!=11||0!==a?U.One:U.Other;case"ksh":return 0===n?U.Zero:1===n?U.One:U.Other;case"kw":case"naq":case"se":case"smn":return 1===n?U.One:2===n?U.Two:U.Other;case"lag":return 0===n?U.Zero:0!==i&&1!==i||0===n?U.Other:U.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?U.Few:0!==s?U.Many:U.Other:U.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===o&&s%100===Math.floor(s%100)&&s%100>=11&&s%100<=19?U.Zero:n%10==1&&n%100!=11||2===o&&s%10==1&&s%100!=11||2!==o&&s%10==1?U.One:U.Other;case"mk":return 0===o&&i%10==1||s%10==1?U.One:U.Other;case"mt":return 1===n?U.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?U.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?U.Many:U.Other;case"pl":return 1===i&&0===o?U.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?U.Few:0===o&&1!==i&&i%10===Math.floor(i%10)&&i%10>=0&&i%10<=1||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=12&&i%100<=14?U.Many:U.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?U.One:U.Other;case"ro":return 1===i&&0===o?U.One:0!==o||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?U.Few:U.Other;case"ru":case"uk":return 0===o&&i%10==1&&i%100!=11?U.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?U.Few:0===o&&i%10==0||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=11&&i%100<=14?U.Many:U.Other;case"shi":return 0===i||1===n?U.One:n===Math.floor(n)&&n>=2&&n<=10?U.Few:U.Other;case"si":return 0===n||1===n||0===i&&1===s?U.One:U.Other;case"sl":return 0===o&&i%100==1?U.One:0===o&&i%100==2?U.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||0!==o?U.Few:U.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?U.One:U.Other;default:return U.Other}}function a(t,e){e=encodeURIComponent(e);for(var n=0,r=t.split(";");n<r.length;n++){var i=r[n],o=i.indexOf("="),s=-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],a=s[0],u=s[1];if(a.trim()===e)return decodeURIComponent(u)}return null}function u(t){return t.name||typeof t}function c(t,e){return Error("InvalidPipeArgument: '"+e+"' for pipe '"+Object(k._74)(t)+"'")}function l(t){return t?t[0].toUpperCase()+t.substr(1).toLowerCase():t}function p(t){return function(e,n){var r=t(e,n);return 1==r.length?"0"+r:r}}function h(t){return function(e,n){return t(e,n).split(" ")[0]}}function f(t,e,n){return new Intl.DateTimeFormat(e,n).format(t).replace(/[\u200e\u200f]/g,"")}function d(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,n){var r=f(t,n,e);return r?r.substring(3):""}}function v(t,e){return t.hour12=e,t}function y(t,e){var n={};return n[t]=2===e?"2-digit":"numeric",n}function m(t,e){var n={};return n[t]=e<4?e>1?"short":"narrow":"long",n}function g(t){return t.reduce(function(t,e){return Object.assign({},t,e)},{})}function b(t){return function(e,n){return f(e,n,t)}}function _(t,e,n){var r=dt[t];if(r)return r(e,n);var i=t,o=yt.get(i);if(!o){o=[];var s=void 0;ft.exec(t);for(var a=t;a;)s=ft.exec(a),s?(o=o.concat(s.slice(1)),a=o.pop()):(o.push(a),a=null);yt.set(i,o)}return o.reduce(function(t,r){var i=vt[r];return t+(i?i(e,n):w(r))},"")}function w(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function x(t,e,n,r,i,o,s){if(void 0===o&&(o=null),void 0===s&&(s=!1),null==n)return null;if("number"!=typeof(n="string"==typeof n&&E(n)?+n:n))throw c(t,n);var a=void 0,u=void 0,l=void 0;if(r!==pt.Currency&&(a=1,u=0,l=3),i){var p=i.match(gt);if(null===p)throw new Error(i+" is not a valid digit info for number pipes");null!=p[1]&&(a=S(p[1])),null!=p[3]&&(u=S(p[3])),null!=p[5]&&(l=S(p[5]))}return ht.format(n,e,r,{minimumIntegerDigits:a,minimumFractionDigits:u,maximumFractionDigits:l,currency:o,currencyAsSymbol:s})}function S(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function E(t){return!isNaN(t-parseFloat(t))}function C(t){return null==t||""===t}function O(t){return t instanceof Date&&!isNaN(t.valueOf())}function T(t){var e=new Date(0),n=0,r=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=P(t[9]+t[10]),r=P(t[9]+t[11])),i.call(e,P(t[1]),P(t[2])-1,P(t[3]));var s=P(t[4]||"0")-n,a=P(t[5]||"0")-r,u=P(t[6]||"0"),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,s,a,u,c),e}function P(t){return parseInt(t,10)}n.d(e,"m",function(){return V}),n.d(e,"n",function(){return L}),n.d(e,"s",function(){return a}),n.d(e,"b",function(){return kt}),n.d(e,"j",function(){return B}),n.d(e,"k",function(){return z}),n.d(e,"l",function(){return K}),n.d(e,"o",function(){return tt}),n.d(e,"d",function(){return Mt}),n.d(e,"i",function(){return ut}),n.d(e,"c",function(){return wt}),n.d(e,"r",function(){return Nt}),n.d(e,"q",function(){return M}),n.d(e,"f",function(){return N}),n.d(e,"h",function(){return R}),n.d(e,"a",function(){return I}),n.d(e,"e",function(){return D}),n.d(e,"p",function(){return F}),n.d(e,"g",function(){return j});var A=n(41),k=n(12),M=function(){function t(){}return t.prototype.getBaseHrefFromDOM=function(){},t.prototype.onPopState=function(t){},t.prototype.onHashChange=function(t){},t.prototype.pathname=function(){},t.prototype.search=function(){},t.prototype.hash=function(){},t.prototype.replaceState=function(t,e,n){},t.prototype.pushState=function(t,e,n){},t.prototype.forward=function(){},t.prototype.back=function(){},t}(),N=new k.D("Location Initialized"),R=function(){function t(){}return t.prototype.path=function(t){},t.prototype.prepareExternalUrl=function(t){},t.prototype.pushState=function(t,e,n,r){},t.prototype.replaceState=function(t,e,n,r){},t.prototype.forward=function(){},t.prototype.back=function(){},t.prototype.onPopState=function(t){},t.prototype.getBaseHref=function(){},t}(),I=new k.D("appBaseHref"),j=function(){function t(e){var n=this;this._subject=new k.x,this._platformStrategy=e;var r=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(i(r)),this._platformStrategy.onPopState(function(t){n._subject.emit({url:n.path(!0),pop:!0,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},t.prototype.normalize=function(e){return t.stripTrailingSlash(r(this._baseHref,i(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e){void 0===e&&(e=""),this._platformStrategy.pushState(null,"",t,e)},t.prototype.replaceState=function(t,e){void 0===e&&(e=""),this._platformStrategy.replaceState(null,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length,r=n-("/"===t[n-1]?1:0);return t.slice(0,r)+t.slice(n)},t}();j.decorators=[{type:k.C}],j.ctorParameters=function(){return[{type:R}]};var D=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return A.a(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=j.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+j.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+j.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(R);D.decorators=[{type:k.C}],D.ctorParameters=function(){return[{type:M},{type:void 0,decorators:[{type:k.S},{type:k.B,args:[I]}]}]};var F=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return A.a(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return j.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+j.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+j.normalizeQueryParams(r));this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+j.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(R);F.decorators=[{type:k.C}],F.ctorParameters=function(){return[{type:M},{type:void 0,decorators:[{type:k.S},{type:k.B,args:[I]}]}]};var L=function(){function t(){}return t.prototype.getPluralCategory=function(t){},t}(),V=function(t){function e(e){var n=t.call(this)||this;return n.locale=e,n}return A.a(e,t),e.prototype.getPluralCategory=function(t){switch(s(this.locale,t)){case U.Zero:return"zero";case U.One:return"one";case U.Two:return"two";case U.Few:return"few";case U.Many:return"many";default:return"other"}},e}(L);V.decorators=[{type:k.C}],V.ctorParameters=function(){return[{type:void 0,decorators:[{type:k.B,args:[k.I]}]}]};var U={};U.Zero=0,U.One=1,U.Two=2,U.Few=3,U.Many=4,U.Other=5,U[U.Zero]="Zero",U[U.One]="One",U[U.Two]="Two",U[U.Few]="Few",U[U.Many]="Many",U[U.Other]="Other";var B=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._applyInitialClasses(!0),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Object(k._56)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._cleanupClasses=function(t){this._applyClasses(t,!0),this._applyInitialClasses(!1)},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(k._74)(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})},t.prototype._applyInitialClasses=function(t){var e=this;this._initialClasses.forEach(function(n){return e._toggleClass(n,!t)})},t.prototype._applyClasses=function(t,e){var n=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return n._toggleClass(t,!e)}):Object.keys(t).forEach(function(r){null!=t[r]&&n._toggleClass(r,!e)}))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){n._renderer.setElementClass(n._ngEl.nativeElement,t,!!e)})},t}();B.decorators=[{type:k.u,args:[{selector:"[ngClass]"}]}],B.ctorParameters=function(){return[{type:k.G},{type:k.H},{type:k.v},{type:k._1}]},B.propDecorators={klass:[{type:k.F,args:["class"]}],ngClass:[{type:k.F}]};var H=function(){function t(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return t.prototype.ngOnChanges=function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=e.get(k.P);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var r=this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(k.q),i=r.resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,e,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},t}();H.decorators=[{type:k.u,args:[{selector:"[ngComponentOutlet]"}]}],H.ctorParameters=function(){return[{type:k._19}]},H.propDecorators={ngComponentOutlet:[{type:k.F}],ngComponentOutletInjector:[{type:k.F}],ngComponentOutletContent:[{type:k.F}],ngComponentOutletNgModuleFactory:[{type:k.F}]};var q=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),z=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){Object(k._27)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+u(e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new q(null,e.ngForOf,-1,-1),i),s=new W(t,o);n.push(s)}else if(null==i)e._viewContainer.remove(r);else{var o=e._viewContainer.get(r);e._viewContainer.move(o,i);var s=new W(t,o);n.push(s)}});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);for(var r=0,i=this._viewContainer.length;r<i;r++){var o=this._viewContainer.get(r);o.context.index=r,o.context.count=i}t.forEachIdentityChange(function(t){e._viewContainer.get(t.currentIndex).context.$implicit=t.item})},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t}();z.decorators=[{type:k.u,args:[{selector:"[ngFor][ngForOf]"}]}],z.ctorParameters=function(){return[{type:k._19},{type:k._13},{type:k.G}]},z.propDecorators={ngForOf:[{type:k.F}],ngForTrackBy:[{type:k.F}],ngForTemplate:[{type:k.F}]};var W=function(){function t(t,e){this.record=t,this.view=e}return t}(),K=function(){function t(t,e){this._viewContainer=t,this._context=new G,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfThen",{set:function(t){this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),t.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)))},t}();K.decorators=[{type:k.u,args:[{selector:"[ngIf]"}]}],K.ctorParameters=function(){return[{type:k._19},{type:k._13}]},K.propDecorators={ngIf:[{type:k.F}],ngIfThen:[{type:k.F}],ngIfElse:[{type:k.F}]};var G=function(){function t(){this.$implicit=null,this.ngIf=null}return t}(),Q=function(){function t(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}return t.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},t.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},t.prototype.enforceState=function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()},t}(),X=function(){function t(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(t.prototype,"ngSwitch",{set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),t.prototype._addCase=function(){return this._caseCount++},t.prototype._addDefault=function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)},t.prototype._matchCase=function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e},t.prototype._updateDefaultCases=function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e<this._defaultViews.length;e++){this._defaultViews[e].enforceState(t)}}},t}();X.decorators=[{type:k.u,args:[{selector:"[ngSwitch]"}]}],X.ctorParameters=function(){return[]},X.propDecorators={ngSwitch:[{type:k.F}]};var Y=function(){function t(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new Q(t,e)}return t.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},t}();Y.decorators=[{type:k.u,args:[{selector:"[ngSwitchCase]"}]}],Y.ctorParameters=function(){return[{type:k._19},{type:k._13},{type:X,decorators:[{type:k.y}]}]},Y.propDecorators={ngSwitchCase:[{type:k.F}]};var J=function(){function t(t,e,n){n._addDefault(new Q(t,e))}return t}();J.decorators=[{type:k.u,args:[{selector:"[ngSwitchDefault]"}]}],J.ctorParameters=function(){return[{type:k._19},{type:k._13},{type:X,decorators:[{type:k.y}]}]};var Z=function(){function t(t){this._localization=t,this._caseViews={}}return Object.defineProperty(t.prototype,"ngPlural",{set:function(t){this._switchValue=t,this._updateView()},enumerable:!0,configurable:!0}),t.prototype.addCase=function(t,e){this._caseViews[t]=e},t.prototype._updateView=function(){this._clearViews();var t=Object.keys(this._caseViews),e=o(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])},t.prototype._clearViews=function(){this._activeView&&this._activeView.destroy()},t.prototype._activateView=function(t){t&&(this._activeView=t,this._activeView.create())},t}();Z.decorators=[{type:k.u,args:[{selector:"[ngPlural]"}]}],Z.ctorParameters=function(){return[{type:L}]},Z.propDecorators={ngPlural:[{type:k.F}]};var $=function(){function t(t,e,n,r){this.value=t;var i=!isNaN(Number(t));r.addCase(i?"="+t:t,new Q(n,e))}return t}();$.decorators=[{type:k.u,args:[{selector:"[ngPluralCase]"}]}],$.ctorParameters=function(){return[{type:void 0,decorators:[{type:k.h,args:["ngPluralCase"]}]},{type:k._13},{type:k._19},{type:Z,decorators:[{type:k.y}]}]};var tt=function(){function t(t,e,n){this._differs=t,this._ngEl=e,this._renderer=n}return Object.defineProperty(t.prototype,"ngStyle",{set:function(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this;t.forEachRemovedItem(function(t){return e._setStyle(t.key,null)}),t.forEachAddedItem(function(t){return e._setStyle(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._setStyle(t.key,t.currentValue)})},t.prototype._setStyle=function(t,e){var n=t.split("."),r=n[0],i=n[1];e=null!=e&&i?""+e+i:e,this._renderer.setElementStyle(this._ngEl.nativeElement,r,e)},t}();tt.decorators=[{type:k.u,args:[{selector:"[ngStyle]"}]}],tt.ctorParameters=function(){return[{type:k.H},{type:k.v},{type:k._1}]},tt.propDecorators={ngStyle:[{type:k.F}]};var et=function(){function t(t){this._viewContainerRef=t}return Object.defineProperty(t.prototype,"ngOutletContext",{set:function(t){this.ngTemplateOutletContext=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))},t}();et.decorators=[{type:k.u,args:[{selector:"[ngTemplateOutlet]"}]}],et.ctorParameters=function(){return[{type:k._19}]},et.propDecorators={ngTemplateOutletContext:[{type:k.F}],ngTemplateOutlet:[{type:k.F}],ngOutletContext:[{type:k.F}]};var nt=[B,H,z,K,et,tt,X,Y,J,Z,$],rt=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.subscribe({next:e,error:function(t){throw t}})},t.prototype.dispose=function(t){t.unsubscribe()},t.prototype.onDestroy=function(t){t.unsubscribe()},t}(),it=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.then(e,function(t){throw t})},t.prototype.dispose=function(t){},t.prototype.onDestroy=function(t){},t}(),ot=new it,st=new rt,at=function(){function t(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return t.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},t.prototype.transform=function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,k._21.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)},t.prototype._subscribe=function(t){var e=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,function(n){return e._updateLatestValue(t,n)})},t.prototype._selectStrategy=function(e){if(Object(k._58)(e))return ot;if(Object(k._57)(e))return st;throw c(t,e)},t.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},t.prototype._updateLatestValue=function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())},t}();at.decorators=[{type:k.X,args:[{name:"async",pure:!1}]}],at.ctorParameters=function(){return[{type:k.l}]};var ut=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw c(t,e);return e.toLowerCase()},t}();ut.decorators=[{type:k.X,args:[{name:"lowercase"}]}],ut.ctorParameters=function(){return[]};var ct=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw c(t,e);return e.split(/\b/g).map(function(t){return l(t)}).join("")},t}();ct.decorators=[{type:k.X,args:[{name:"titlecase"}]}],ct.ctorParameters=function(){return[]};var lt=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw c(t,e);return e.toUpperCase()},t}();lt.decorators=[{type:k.X,args:[{name:"uppercase"}]}],lt.ctorParameters=function(){return[]};var pt={};pt.Decimal=0,pt.Percent=1,pt.Currency=2,pt[pt.Decimal]="Decimal",pt[pt.Percent]="Percent",pt[pt.Currency]="Currency";var ht=function(){function t(){}return t.format=function(t,e,n,r){void 0===r&&(r={});var i=r.minimumIntegerDigits,o=r.minimumFractionDigits,s=r.maximumFractionDigits,a=r.currency,u=r.currencyAsSymbol,c=void 0!==u&&u,l={minimumIntegerDigits:i,minimumFractionDigits:o,maximumFractionDigits:s,style:pt[n].toLowerCase()};return n==pt.Currency&&(l.currency="string"==typeof a?a:void 0,l.currencyDisplay=c?"symbol":"code"),new Intl.NumberFormat(e,l).format(t)},t}(),ft=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,dt={yMMMdjms:b(g([y("year",1),m("month",3),y("day",1),y("hour",1),y("minute",1),y("second",1)])),yMdjm:b(g([y("year",1),y("month",1),y("day",1),y("hour",1),y("minute",1)])),yMMMMEEEEd:b(g([y("year",1),m("month",4),m("weekday",4),y("day",1)])),yMMMMd:b(g([y("year",1),m("month",4),y("day",1)])),yMMMd:b(g([y("year",1),m("month",3),y("day",1)])),yMd:b(g([y("year",1),y("month",1),y("day",1)])),jms:b(g([y("hour",1),y("second",1),y("minute",1)])),jm:b(g([y("hour",1),y("minute",1)]))},vt={yyyy:b(y("year",4)),yy:b(y("year",2)),y:b(y("year",1)),MMMM:b(m("month",4)),MMM:b(m("month",3)),MM:b(y("month",2)),M:b(y("month",1)),LLLL:b(m("month",4)),L:b(m("month",1)),dd:b(y("day",2)),d:b(y("day",1)),HH:p(h(b(v(y("hour",2),!1)))),H:h(b(v(y("hour",1),!1))),hh:p(h(b(v(y("hour",2),!0)))),h:h(b(v(y("hour",1),!0))),jj:b(y("hour",2)),j:b(y("hour",1)),mm:p(b(y("minute",2))),m:b(y("minute",1)),ss:p(b(y("second",2))),s:b(y("second",1)),sss:b(y("second",3)),EEEE:b(m("weekday",4)),EEE:b(m("weekday",3)),EE:b(m("weekday",2)),E:b(m("weekday",1)),a:function(t){return function(e,n){return t(e,n).split(" ")[1]}}(b(v(y("hour",1),!0))),Z:d("short"),z:d("long"),ww:b({}),w:b({}),G:b(m("era",1)),GG:b(m("era",2)),GGG:b(m("era",3)),GGGG:b(m("era",4))},yt=new Map,mt=function(){function t(){}return t.format=function(t,e,n){return _(n,t,e)},t}(),gt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,bt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return x(t,this._locale,e,pt.Decimal,n)},t}();bt.decorators=[{type:k.X,args:[{name:"number"}]}],bt.ctorParameters=function(){return[{type:void 0,decorators:[{type:k.B,args:[k.I]}]}]};var _t=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return x(t,this._locale,e,pt.Percent,n)},t}();_t.decorators=[{type:k.X,args:[{name:"percent"}]}],_t.ctorParameters=function(){return[{type:void 0,decorators:[{type:k.B,args:[k.I]}]}]};var wt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n,r,i){return void 0===n&&(n="USD"),void 0===r&&(r=!1),x(t,this._locale,e,pt.Currency,i,n,r)},t}();wt.decorators=[{type:k.X,args:[{name:"currency"}]}],wt.ctorParameters=function(){return[{type:void 0,decorators:[{type:k.B,args:[k.I]}]}]};var xt=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,St=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){void 0===n&&(n="mediumDate");var r;if(C(e)||e!==e)return null;if("string"==typeof e&&(e=e.trim()),O(e))r=e;else if(E(e))r=new Date(parseFloat(e));else if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var i=e.split("-").map(function(t){return parseInt(t,10)}),o=i[0],s=i[1],a=i[2];r=new Date(o,s-1,a)}else r=new Date(e);if(!O(r)){var u=void 0;if("string"!=typeof e||!(u=e.match(xt)))throw c(t,e);r=T(u)}return mt.format(r,this._locale,t._ALIASES[n]||n)},t}();St._ALIASES={medium:"yMMMdjms",short:"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},St.decorators=[{type:k.X,args:[{name:"date",pure:!0}]}],St.ctorParameters=function(){return[{type:void 0,decorators:[{type:k.B,args:[k.I]}]}]};var Et=/#/g,Ct=function(){function t(t){this._localization=t}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||null===n)throw c(t,n);return n[o(e,Object.keys(n),this._localization)].replace(Et,e.toString())},t}();Ct.decorators=[{type:k.X,args:[{name:"i18nPlural",pure:!0}]}],Ct.ctorParameters=function(){return[{type:L}]};var Ot=function(){function t(){}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw c(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""},t}();Ot.decorators=[{type:k.X,args:[{name:"i18nSelect",pure:!0}]}],Ot.ctorParameters=function(){return[]};var Tt=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t}();Tt.decorators=[{type:k.X,args:[{name:"json",pure:!1}]}],Tt.ctorParameters=function(){return[]};var Pt=function(){function t(){}return t.prototype.transform=function(e,n,r){if(null==e)return e;if(!this.supports(e))throw c(t,e);return e.slice(n,r)},t.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},t}();Pt.decorators=[{type:k.X,args:[{name:"slice",pure:!1}]}],Pt.ctorParameters=function(){return[]};var At=[at,lt,ut,Tt,Pt,bt,_t,ct,wt,St,Ct,Ot],kt=function(){function t(){}return t}();kt.decorators=[{type:k.M,args:[{declarations:[nt,At],exports:[nt,At],providers:[{provide:L,useClass:V}]}]}],kt.ctorParameters=function(){return[]};var Mt=new k.D("DocumentToken"),Nt="browser";new k._16("4.3.5")},function(t,e,n){"use strict";e.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(0),o=n(100),s=n(43),a=n(33),u=function(t){function e(e,n){t.call(this),this.array=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return r(e,t),e.create=function(t,n){return new e(t,n)},e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];var r=t[t.length-1];a.isScheduler(r)?t.pop():r=null;var i=t.length;return i>1?new e(t,r):1===i?new o.ScalarObservable(t[0],r):new s.EmptyObservable(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.count,i=t.subscriber;if(n>=r)return void i.complete();i.next(e[n]),i.closed||(t.index=n+1,this.schedule(t))},e.prototype._subscribe=function(t){var n=this.array,r=n.length,i=this.scheduler;if(i)return i.schedule(e.dispatch,0,{array:n,index:0,count:r,subscriber:t});for(var o=0;o<r&&!t.closed;o++)t.next(n[o]);t.complete()},e}(i.Observable);e.ArrayObservable=u},function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}e.isScheduler=r},,,,,,,,function(t,e,n){"use strict";function r(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}e.a=r;var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};Object.assign},,function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(0),o=function(t){function e(e){t.call(this),this.scheduler=e}return r(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(i.Observable);e.EmptyObservable=o},,,,,,function(t,e,n){"use strict";function r(t){return new He(t)}function i(t){var e=Error("NavigationCancelingError: "+t);return e[qe]=!0,e}function o(t){return t[qe]}function s(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;for(var i={},o=0;o<r.length;o++){var s=r[o],a=t[o];if(s.startsWith(":"))i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function a(t,e){void 0===e&&(e="");for(var n=0;n<t.length;n++){var r=t[n];u(r,c(e,r))}}function u(t,e){if(!t)throw new Error("\n      Invalid configuration of route '"+e+"': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    ");if(Array.isArray(t))throw new Error("Invalid configuration of route '"+e+"': Array cannot be specified");if(!t.component&&t.outlet&&t.outlet!==Be)throw new Error("Invalid configuration of route '"+e+"': a componentless route cannot have a named outlet set");if(t.redirectTo&&t.children)throw new Error("Invalid configuration of route '"+e+"': redirectTo and children cannot be used together");if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': redirectTo and loadChildren cannot be used together");if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': children and loadChildren cannot be used together");if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '"+e+"': redirectTo and component cannot be used together");if(t.path&&t.matcher)throw new Error("Invalid configuration of route '"+e+"': path and matcher cannot be used together");if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error("Invalid configuration of route '"+e+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===t.path&&void 0===t.matcher)throw new Error("Invalid configuration of route '"+e+"': routes must have either a path or a matcher specified");if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error("Invalid configuration of route '"+e+"': path cannot start with a slash");if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch){throw new Error("Invalid configuration of route '{path: \""+e+'", redirectTo: "'+t.redirectTo+"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.")}if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '"+e+"': pathMatch can only be set to 'prefix' or 'full'");t.children&&a(t.children,e)}function c(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function l(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!p(t[n],e[n]))return!1;return!0}function p(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i,o=0;o<n.length;o++)if(i=n[o],t[i]!==e[i])return!1;return!0}function h(t){return Array.prototype.concat.apply([],t)}function f(t){return t.length>0?t[t.length-1]:null}function d(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function v(t,e){if(0===Object.keys(t).length)return Object(de.of)({});var n=[],r=[],i={};d(t,function(t,o){var s=be.map.call(e(o,t),function(t){return i[o]=t});o===Be?n.push(s):r.push(s)});var o=Ee.concatAll.call(de.of.apply(void 0,n.concat(r))),s=ge.last.call(o);return be.map.call(s,function(){return i})}function y(t){var e=Te.mergeAll.call(t);return ye.every.call(e,function(t){return!0===t})}function m(t){return Object(le._57)(t)?t:Object(le._58)(t)?Object(Oe.fromPromise)(Promise.resolve(t)):Object(de.of)(t)}function g(){return new We(new Ke([],{}),{},null)}function b(t,e,n){return n?_(t.queryParams,e.queryParams)&&w(t.root,e.root):x(t.queryParams,e.queryParams)&&S(t.root,e.root)}function _(t,e){return p(t,e)}function w(t,e){if(!O(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(var n in e.children){if(!t.children[n])return!1;if(!w(t.children[n],e.children[n]))return!1}return!0}function x(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}function S(t,e){return E(t,e,e.segments)}function E(t,e,n){if(t.segments.length>n.length){var r=t.segments.slice(0,n.length);return!!O(r,n)&&!e.hasChildren()}if(t.segments.length===n.length){if(!O(t.segments,n))return!1;for(var i in e.children){if(!t.children[i])return!1;if(!S(t.children[i],e.children[i]))return!1}return!0}var r=n.slice(0,t.segments.length),o=n.slice(t.segments.length);return!!O(t.segments,r)&&(!!t.children[Be]&&E(t.children[Be],e,o))}function C(t,e){return O(t,e)&&t.every(function(t,n){return p(t.parameters,e[n].parameters)})}function O(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function T(t,e){var n=[];return d(t.children,function(t,r){r===Be&&(n=n.concat(e(t,r)))}),d(t.children,function(t,r){r!==Be&&(n=n.concat(e(t,r)))}),n}function P(t){return t.segments.map(function(t){return N(t)}).join("/")}function A(t,e){if(!t.hasChildren())return P(t);if(e){var n=t.children[Be]?A(t.children[Be],!1):"",r=[];return d(t.children,function(t,e){e!==Be&&r.push(e+":"+A(t,!1))}),r.length>0?n+"("+r.join("//")+")":n}var i=T(t,function(e,n){return n===Be?[A(t.children[Be],!1)]:[n+":"+A(e,!1)]});return P(t)+"/("+i.join("//")+")"}function k(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}function M(t){return decodeURIComponent(t)}function N(t){return""+k(t.path)+R(t.parameters)}function R(t){return Object.keys(t).map(function(e){return";"+k(e)+"="+k(t[e])}).join("")}function I(t){var e=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return k(e)+"="+k(t)}).join("&"):k(e)+"="+k(n)});return e.length?"?"+e.join("&"):""}function j(t){var e=t.match(Je);return e?e[0]:""}function D(t){var e=t.match(Ze);return e?e[0]:""}function F(t){var e=t.match($e);return e?e[0]:""}function L(t){return new xe.Observable(function(e){return e.error(new en(t))})}function V(t){return new xe.Observable(function(e){return e.error(new nn(t))})}function U(t){return new xe.Observable(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}function B(t){return new xe.Observable(function(e){return e.error(i("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}function H(t,e,n,r,i){return new rn(t,e,n,r,i).apply()}function q(t,e){var n=e.canLoad;return n&&0!==n.length?y(be.map.call(Object(fe.from)(n),function(n){var r=t.get(n);return m(r.canLoad?r.canLoad(e):r(e))})):Object(de.of)(!0)}function z(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=e.matcher||s,i=r(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function W(t,e,n,r){if(n.length>0&&X(t,n,r)){var i=new Ke(e,Q(r,new Ke(n,t.children)));return{segmentGroup:K(i),slicedSegments:[]}}if(0===n.length&&Y(t,n,r)){var i=new Ke(t.segments,G(t,n,r,t.children));return{segmentGroup:K(i),slicedSegments:n}}return{segmentGroup:t,slicedSegments:n}}function K(t){if(1===t.numberOfChildren&&t.children[Be]){var e=t.children[Be];return new Ke(t.segments.concat(e.segments),e.children)}return t}function G(t,e,n,r){for(var i={},o=0,s=n;o<s.length;o++){var a=s[o];J(t,e,a)&&!r[Z(a)]&&(i[Z(a)]=new Ke([],{}))}return Object.assign({},r,i)}function Q(t,e){var n={};n[Be]=e;for(var r=0,i=t;r<i.length;r++){var o=i[r];""===o.path&&Z(o)!==Be&&(n[Z(o)]=new Ke([],{}))}return n}function X(t,e,n){return n.some(function(n){return J(t,e,n)&&Z(n)!==Be})}function Y(t,e,n){return n.some(function(n){return J(t,e,n)})}function J(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0!==n.redirectTo)}function Z(t){return t.outlet||Be}function $(t,e){if(t===e.value)return e;for(var n=0,r=e.children;n<r.length;n++){var i=r[n],o=$(t,i);if(o)return o}return null}function tt(t,e){if(t===e.value)return[e];for(var n=0,r=e.children;n<r.length;n++){var i=r[n],o=tt(t,i);if(o.length)return o.unshift(e),o}return[]}function et(t,e){var n=nt(t,e),r=new pe.BehaviorSubject([new Ge("",{})]),i=new pe.BehaviorSubject({}),o=new pe.BehaviorSubject({}),s=new pe.BehaviorSubject({}),a=new pe.BehaviorSubject(""),u=new un(r,i,s,a,o,Be,e,n.root);return u.snapshot=n.root,new an(new sn(u,[]),n)}function nt(t,e){var n={},r={},i={},o=new cn([],n,i,"",r,Be,e,null,t.root,-1,{});return new ln("",new sn(o,[]))}function rt(t){for(var e=t.pathFromRoot,n=e.length-1;n>=1;){var r=e[n],i=e[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(i.component)break;n--}}return e.slice(n).reduce(function(t,e){return{params:Object.assign({},t.params,e.params),data:Object.assign({},t.data,e.data),resolve:Object.assign({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}function it(t,e){e.value._routerState=t,e.children.forEach(function(e){return it(t,e)})}function ot(t){var e=t.children.length>0?" { "+t.children.map(ot).join(", ")+" } ":"";return""+t.value+e}function st(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,p(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),p(e.params,n.params)||t.params.next(n.params),l(e.url,n.url)||t.url.next(n.url),p(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function at(t,e){var n=p(t.params,e.params)&&C(t.url,e.url),r=!t.parent!=!e.parent;return n&&!r&&(!t.parent||at(t.parent,e.parent))}function ut(t,e,n){var r=ct(t,e._root,n?n._root:void 0);return new an(r,e)}function ct(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){var r=n.value;r._futureSnapshot=e.value;var i=pt(t,e,n);return new sn(r,i)}if(t.retrieve(e.value)){var o=t.retrieve(e.value).route;return lt(e,o),o}var r=ht(e.value),i=e.children.map(function(e){return ct(t,e)});return new sn(r,i)}function lt(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(var n=0;n<t.children.length;++n)lt(t.children[n],e.children[n])}function pt(t,e,n){return e.children.map(function(e){for(var r=0,i=n.children;r<i.length;r++){var o=i[r];if(t.shouldReuseRoute(o.value.snapshot,e.value))return ct(t,e,o)}return ct(t,e)})}function ht(t){return new un(new pe.BehaviorSubject(t.url),new pe.BehaviorSubject(t.params),new pe.BehaviorSubject(t.queryParams),new pe.BehaviorSubject(t.fragment),new pe.BehaviorSubject(t.data),t.outlet,t.component,t)}function ft(t,e,n,r,i){if(0===n.length)return vt(e.root,e.root,e,r,i);var o=mt(n);if(o.toRoot())return vt(e.root,new Ke([],{}),e,r,i);var s=gt(o,e,t),a=s.processChildren?St(s.segmentGroup,s.index,o.commands):xt(s.segmentGroup,s.index,o.commands);return vt(s.segmentGroup,a,e,r,i)}function dt(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function vt(t,e,n,r,i){var o={};return r&&d(r,function(t,e){o[e]=Array.isArray(t)?t.map(function(t){return""+t}):""+t}),n.root===t?new We(e,o,i):new We(yt(n.root,t,e),o,i)}function yt(t,e,n){var r={};return d(t.children,function(t,i){r[i]=t===e?n:yt(t,e,n)}),new Ke(t.segments,r)}function mt(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new pn(!0,0,t);var e=0,n=!1,r=t.reduce(function(t,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return d(r.outlets,function(t,e){o[e]="string"==typeof t?t.split("/"):t}),t.concat([{outlets:o}])}if(r.segmentPath)return t.concat([r.segmentPath])}return"string"!=typeof r?t.concat([r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):t.concat([r])},[]);return new pn(n,e,r)}function gt(t,e,n){if(t.isAbsolute)return new hn(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new hn(n.snapshot._urlSegment,!0,0);var r=dt(t.commands[0])?0:1,i=n.snapshot._lastPathIndex+r;return bt(n.snapshot._urlSegment,i,t.numberOfDoubleDots)}function bt(t,e,n){for(var r=t,i=e,o=n;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new hn(r,!1,i-o)}function _t(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[Be]:""+t}function wt(t){return"object"!=typeof t[0]?(e={},e[Be]=t,e):void 0===t[0].outlets?(n={},n[Be]=t,n):t[0].outlets;var e,n}function xt(t,e,n){if(t||(t=new Ke([],{})),0===t.segments.length&&t.hasChildren())return St(t,e,n);var r=Et(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){var o=new Ke(t.segments.slice(0,r.pathIndex),{});return o.children[Be]=new Ke(t.segments.slice(r.pathIndex),t.children),St(o,0,i)}return r.match&&0===i.length?new Ke(t.segments,{}):r.match&&!t.hasChildren()?Ct(t,e,n):r.match?St(t,0,i):Ct(t,e,n)}function St(t,e,n){if(0===n.length)return new Ke(t.segments,{});var r=wt(n),i={};return d(r,function(n,r){null!==n&&(i[r]=xt(t.children[r],e,n))}),d(t.children,function(t,e){void 0===r[e]&&(i[e]=t)}),new Ke(t.segments,i)}function Et(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i<t.segments.length;){if(r>=n.length)return o;var s=t.segments[i],a=_t(n[r]),u=r<n.length-1?n[r+1]:null;if(i>0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!Pt(a,u,s))return o;r+=2}else{if(!Pt(a,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Ct(t,e,n){for(var r=t.segments.slice(0,e),i=0;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){var o=Ot(n[i].outlets);return new Ke(r,o)}if(0===i&&dt(n[0])){var s=t.segments[e];r.push(new Ge(s.path,n[0])),i++}else{var a=_t(n[i]),u=i<n.length-1?n[i+1]:null;a&&u&&dt(u)?(r.push(new Ge(a,Tt(u))),i+=2):(r.push(new Ge(a,{})),i++)}}return new Ke(r,{})}function Ot(t){var e={};return d(t,function(t,n){null!==t&&(e[n]=Ct(new Ke([],{}),0,t))}),e}function Tt(t){var e={};return d(t,function(t,n){return e[n]=""+t}),e}function Pt(t,e,n){return t==n.path&&p(e,n.parameters)}function At(t,e,n,r){return new dn(t,e,n,r).recognize()}function kt(t){t.sort(function(t,e){return t.value.outlet===Be?-1:e.value.outlet===Be?1:t.value.outlet.localeCompare(e.value.outlet)})}function Mt(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}function Nt(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new fn;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=e.matcher||s,i=r(n,t,e);if(!i)throw new fn;var o={};d(i.posParams,function(t,e){o[e]=t.path});var a=i.consumed.length>0?Object.assign({},o,i.consumed[i.consumed.length-1].parameters):o;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a}}function Rt(t){var e={};t.forEach(function(t){var n=e[t.value.outlet];if(n){var r=n.url.map(function(t){return t.toString()}).join("/"),i=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+i+"'.")}e[t.value.outlet]=t.value})}function It(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function jt(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Dt(t,e,n,r){if(n.length>0&&Vt(t,n,r)){var i=new Ke(e,Lt(t,e,r,new Ke(n,t.children)));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&Ut(t,n,r)){var o=new Ke(t.segments,Ft(t,n,r,t.children));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}var s=new Ke(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function Ft(t,e,n,r){for(var i={},o=0,s=n;o<s.length;o++){var a=s[o];if(Bt(t,e,a)&&!r[Ht(a)]){var u=new Ke([],{});u._sourceSegment=t,u._segmentIndexShift=t.segments.length,i[Ht(a)]=u}}return Object.assign({},r,i)}function Lt(t,e,n,r){var i={};i[Be]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(var o=0,s=n;o<s.length;o++){var a=s[o];if(""===a.path&&Ht(a)!==Be){var u=new Ke([],{});u._sourceSegment=t,u._segmentIndexShift=e.length,i[Ht(a)]=u}}return i}function Vt(t,e,n){return n.some(function(n){return Bt(t,e,n)&&Ht(n)!==Be})}function Ut(t,e,n){return n.some(function(n){return Bt(t,e,n)})}function Bt(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0===n.redirectTo)}function Ht(t){return t.outlet||Be}function qt(t){return t.data||{}}function zt(t){return t.resolve||{}}function Wt(t){throw t}function Kt(t){return Object(de.of)(null)}function Gt(t){st(t.value),t.children.forEach(Gt)}function Qt(t){for(var e=t.parent;e;e=e.parent){var n=e._routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}function Xt(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e._routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}function Yt(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}function Jt(t){for(var e=0;e<t.length;e++){var n=t[e];if(null==n)throw new Error("The requested path contains "+n+" segment at index "+e)}}function Zt(t){return""===t||!!t}function $t(){return new le.Q("Router",wn)}function te(t,e,n){return void 0===n&&(n={}),n.useHash?new ce.e(t,e):new ce.p(t,e)}function ee(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function ne(t){return[{provide:le.a,multi:!0,useValue:t},{provide:mn,multi:!0,useValue:t}]}function re(t,e,n,r,i,o,s,a,u,c,l){void 0===u&&(u={});var p=new wn(null,e,n,r,i,o,s,h(a));if(c&&(p.urlHandlingStrategy=c),l&&(p.routeReuseStrategy=l),u.errorHandler&&(p.errorHandler=u.errorHandler),u.enableTracing){var f=Object(Pe.u)();p.events.subscribe(function(t){f.logGroup("Router Event: "+t.constructor.name),f.log(t.toString()),f.log(t),f.logGroupEnd()})}return p}function ie(t){return t.routerState.root}function oe(t){return t.appInitializer.bind(t)}function se(t){return t.bootstrapListener.bind(t)}function ae(){return[Hn,{provide:le.d,multi:!0,useFactory:oe,deps:[Hn]},{provide:qn,useFactory:se,deps:[Hn]},{provide:le.b,multi:!0,useExisting:qn}]}n.d(e,"m",function(){return Tn}),n.d(e,"l",function(){return Pn}),n.d(e,"o",function(){return Mn}),n.d(e,"j",function(){return vn}),n.d(e,"k",function(){return wn}),n.d(e,"i",function(){return mn}),n.d(e,"g",function(){return Ln}),n.d(e,"h",function(){return qn}),n.d(e,"n",function(){return Bn}),n.d(e,"b",function(){return kn}),n.d(e,"d",function(){return jn}),n.d(e,"e",function(){return In}),n.d(e,"f",function(){return Rn}),n.d(e,"p",function(){return Dn}),n.d(e,"a",function(){return un}),n.d(e,"q",function(){return bn}),n.d(e,"c",function(){return Xe}),n.d(e,"r",function(){return Qe}),n.d(e,"s",function(){return Vn}),n.d(e,"y",function(){return Hn}),n.d(e,"z",function(){return oe}),n.d(e,"A",function(){return se}),n.d(e,"v",function(){return ee}),n.d(e,"u",function(){return te}),n.d(e,"x",function(){return ie}),n.d(e,"t",function(){return $t}),n.d(e,"w",function(){return re});var ue=n(41),ce=n(30),le=n(12),pe=n(101),he=(n.n(pe),n(10)),fe=(n.n(he),n(146)),de=(n.n(fe),n(149)),ve=(n.n(de),n(150)),ye=(n.n(ve),n(151)),me=(n.n(ye),n(152)),ge=(n.n(me),n(153)),be=(n.n(ge),n(63)),_e=(n.n(be),n(103)),we=(n.n(_e),n(82)),xe=(n.n(we),n(0)),Se=(n.n(xe),n(145)),Ee=(n.n(Se),n(154)),Ce=(n.n(Ee),n(69)),Oe=(n.n(Ce),n(99)),Te=(n.n(Oe),n(64)),Pe=(n.n(Te),n(50)),Ae=n(104),ke=(n.n(Ae),function(){function t(t,e){this.id=t,this.url=e}return t.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},t}()),Me=function(){function t(t,e,n){this.id=t,this.url=e,this.urlAfterRedirects=n}return t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(),Ne=function(){function t(t,e,n){this.id=t,this.url=e,this.reason=n}return t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(),Re=function(){function t(t,e,n){this.id=t,this.url=e,this.error=n}return t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(),Ie=function(){function t(t,e,n,r){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r}return t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),je=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),De=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),Fe=function(){function t(t,e,n,r){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r}return t.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),Le=function(){function t(t,e,n,r,i){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r,this.shouldActivate=i}return t.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},t}(),Ve=function(){function t(t,e,n,r){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r}return t.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),Ue=function(){function t(t,e,n,r){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r}return t.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),Be="primary",He=function(){function t(t){this.params=t||{}}return t.prototype.has=function(t){return this.params.hasOwnProperty(t)},t.prototype.get=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null},t.prototype.getAll=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}(),qe="ngNavigationCancelingError",ze=function(){function t(t,e){this.routes=t,this.module=e}return t}(),We=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=r(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Ye.serialize(this)},t}(),Ke=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,d(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return P(this)},t}(),Ge=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=r(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return N(this)},t}(),Qe=function(){function t(){}return t.prototype.parse=function(t){},t.prototype.serialize=function(t){},t}(),Xe=function(){function t(){}return t.prototype.parse=function(t){var e=new tn(t);return new We(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){return"/"+A(t.root,!0)+I(t.queryParams)+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),Ye=new Xe,Je=/^[^\/()?;=&#]+/,Ze=/^[^=?&#]+/,$e=/^[^?&#]+/,tn=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ke([],{}):new Ke([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURI(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[Be]=new Ke(t,e)),n},t.prototype.parseSegment=function(){var t=j(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new Ge(M(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=j(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=j(this.remaining);r&&(n=r,this.capture(n))}t[M(e)]=M(n)}},t.prototype.parseQueryParam=function(t){var e=D(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=F(this.remaining);r&&(n=r,this.capture(n))}var i=M(e),o=M(n);if(t.hasOwnProperty(i)){var s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=j(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=Be);var o=this.parseChildren();e[i]=1===Object.keys(o).length?o[Be]:new Ke([],o),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),en=function(){function t(t){this.segmentGroup=t||null}return t}(),nn=function(){function t(t){this.urlTree=t}return t}(),rn=function(){function t(t,e,n,r,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(le.P)}return t.prototype.apply=function(){var t=this,e=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Be),n=be.map.call(e,function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)});return Se._catch.call(n,function(e){if(e instanceof nn)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof en)throw t.noMatchError(e);throw e})},t.prototype.match=function(t){var e=this,n=this.expandSegmentGroup(this.ngModule,this.config,t.root,Be),r=be.map.call(n,function(n){return e.createUrlTree(n,t.queryParams,t.fragment)});return Se._catch.call(r,function(t){if(t instanceof en)throw e.noMatchError(t);throw t})},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,n){var r=t.segments.length>0?new Ke([],(i={},i[Be]=t,i)):t;return new We(r,e,n);var i},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?be.map.call(this.expandChildren(t,e,n),function(t){return new Ke([],t)}):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return v(n.children,function(n,i){return r.expandSegmentGroup(t,e,i,n)})},t.prototype.expandSegment=function(t,e,n,r,i,o){var s=this,a=de.of.apply(void 0,n),u=be.map.call(a,function(a){var u=s.expandSegmentAgainstRoute(t,e,n,a,r,i,o);return Se._catch.call(u,function(t){if(t instanceof en)return Object(de.of)(null);throw t})}),c=Ee.concatAll.call(u),l=me.first.call(c,function(t){return!!t});return Se._catch.call(l,function(t,n){if(t instanceof Ce.EmptyError){if(s.noLeftoversInUrl(e,r,i))return Object(de.of)(new Ke([],{}));throw new en(e)}throw t})},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,i,o,s){return Z(r)!==o?L(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):L(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?V(o):_e.mergeMap.call(this.lineralizeSegments(n,o),function(n){var o=new Ke(n,{});return i.expandSegment(t,o,e,n,r,!1)})},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){var s=this,a=z(e,r,i),u=a.matched,c=a.consumedSegments,l=a.lastChild,p=a.positionalParamSegments;if(!u)return L(e);var h=this.applyRedirectCommands(c,r.redirectTo,p);return r.redirectTo.startsWith("/")?V(h):_e.mergeMap.call(this.lineralizeSegments(r,h),function(r){return s.expandSegment(t,e,n,r.concat(i.slice(l)),o,!1)})},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var i=this;if("**"===n.path)return n.loadChildren?be.map.call(this.configLoader.load(t.injector,n),function(t){return n._loadedConfig=t,new Ke(r,{})}):Object(de.of)(new Ke(r,{}));var o=z(e,n,r),s=o.matched,a=o.consumedSegments,u=o.lastChild;if(!s)return L(e);var c=r.slice(u),l=this.getChildConfig(t,n);return _e.mergeMap.call(l,function(t){var n=t.module,r=t.routes,o=W(e,a,c,r),s=o.segmentGroup,u=o.slicedSegments;if(0===u.length&&s.hasChildren()){var l=i.expandChildren(n,r,s);return be.map.call(l,function(t){return new Ke(a,t)})}if(0===r.length&&0===u.length)return Object(de.of)(new Ke(a,{}));var p=i.expandSegment(n,s,r,u,Be,!0);return be.map.call(p,function(t){return new Ke(a.concat(t.segments),t.children)})})},t.prototype.getChildConfig=function(t,e){var n=this;return e.children?Object(de.of)(new ze(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(de.of)(e._loadedConfig):_e.mergeMap.call(q(t.injector,e),function(r){return r?be.map.call(n.configLoader.load(t.injector,e),function(t){return e._loadedConfig=t,t}):B(e)}):Object(de.of)(new ze([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(de.of)(n);if(r.numberOfChildren>1||!r.children[Be])return U(t.redirectTo);r=r.children[Be]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new We(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return d(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),s={};return d(e.children,function(e,o){s[o]=i.createSegmentGroup(t,e,n,r)}),new Ke(o,s)},t.prototype.createSegments=function(t,e,n,r){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){for(var n=0,r=0,i=e;r<i.length;r++){var o=i[r];if(o.path===t.path)return e.splice(n),o;n++}return t},t}(),on=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=$(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=$(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=tt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return tt(t,this._root).map(function(t){return t.value})},t}(),sn=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}(),an=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,it(r,e),r}return ue.a(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(on),un=function(){function t(t,e,n,r,i,o,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this._futureSnapshot=a}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=be.map.call(this.params,function(t){return r(t)})),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=be.map.call(this.queryParams,function(t){return r(t)})),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}(),cn=function(){function t(t,e,n,r,i,o,s,a,u,c,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this._routeConfig=a,this._urlSegment=u,this._lastPathIndex=c,this._resolve=l}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=r(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=r(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this._routeConfig?this._routeConfig.path:"")+"')"},t}(),ln=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,it(r,n),r}return ue.a(e,t),e.prototype.toString=function(){return ot(this._root)},e}(on),pn=function(){function t(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&dt(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==f(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),hn=function(){function t(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}return t}(),fn=function(){function t(){}return t}(),dn=function(){function t(t,e,n,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r}return t.prototype.recognize=function(){try{var t=Dt(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,Be),n=new cn([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},Be,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new sn(n,e),i=new ln(this.url,r);return this.inheritParamsAndData(i._root),Object(de.of)(i)}catch(t){return new xe.Observable(function(e){return e.error(t)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=rt(n);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n=this,r=T(e,function(e,r){return n.processSegmentGroup(t,e,r)});return Rt(r),kt(r),r},t.prototype.processSegment=function(t,e,n,r){for(var i=0,o=t;i<o.length;i++){var s=o[i];try{return this.processSegmentAgainstRoute(s,e,n,r)}catch(t){if(!(t instanceof fn))throw t}}if(this.noLeftoversInUrl(e,n,r))return[];throw new fn},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new fn;if((t.outlet||Be)!==r)throw new fn;if("**"===t.path){var i=n.length>0?f(n).parameters:{},o=new cn(n,i,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,qt(t),r,t.component,t,It(e),jt(e)+n.length,zt(t));return[new sn(o,[])]}var s=Nt(e,t,n),a=s.consumedSegments,u=s.parameters,c=s.lastChild,l=n.slice(c),p=Mt(t),h=Dt(e,a,l,p),d=h.segmentGroup,v=h.slicedSegments,y=new cn(a,u,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,qt(t),r,t.component,t,It(e),jt(e)+a.length,zt(t));if(0===v.length&&d.hasChildren()){var m=this.processChildren(p,d);return[new sn(y,m)]}if(0===p.length&&0===v.length)return[new sn(y,[])];var g=this.processSegment(p,d,v,Be);return[new sn(y,g)]},t}(),vn=function(){function t(){}return t.prototype.shouldDetach=function(t){},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){},t.prototype.retrieve=function(t){},t.prototype.shouldReuseRoute=function(t,e){},t}(),yn=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),mn=new le.D("ROUTES"),gn=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;this.onLoadStartListener&&this.onLoadStartListener(e);var r=this.loadModuleFactory(e.loadChildren);return be.map.call(r,function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new ze(h(i.injector.get(mn)),i)})},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?Object(Oe.fromPromise)(this.loader.load(t)):_e.mergeMap.call(m(t()),function(t){return t instanceof le.N?Object(de.of)(t):Object(Oe.fromPromise)(e.compiler.compileModuleAsync(t))})},t}(),bn=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){},t.prototype.extract=function(t){},t.prototype.merge=function(t,e){},t}(),_n=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}(),wn=function(){function t(t,e,n,r,i,o,s,a){var u=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=a,this.navigations=new pe.BehaviorSubject(null),this.routerEvents=new he.Subject,this.navigationId=0,this.errorHandler=Wt,this.navigated=!1,this.hooks={beforePreactivation:Kt,afterPreactivation:Kt},this.urlHandlingStrategy=new _n,this.routeReuseStrategy=new yn;var c=function(t){return u.triggerEvent(new je(t))},l=function(t){return u.triggerEvent(new De(t))};this.ngModule=i.get(le.P),this.resetConfig(a),this.currentUrlTree=g(),this.rawUrlTree=this.currentUrlTree,this.configLoader=new gn(o,s,c,l),this.currentRouterState=et(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.currentRouterState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(Zone.current.wrap(function(e){var n=t.urlSerializer.parse(e.url),r="popstate"===e.type?"popstate":"hashchange";setTimeout(function(){t.scheduleNavigation(n,r,{replaceUrl:!0})},0)})))},Object.defineProperty(t.prototype,"routerState",{get:function(){return this.currentRouterState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){return this.routerEvents},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.routerEvents.next(t)},t.prototype.resetConfig=function(t){a(t),this.config=t,this.navigated=!1},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){void 0===e&&(e={});var n=e.relativeTo,r=e.queryParams,i=e.fragment,o=e.preserveQueryParams,s=e.queryParamsHandling,a=e.preserveFragment;Object(le._27)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var u=n||this.routerState.root,c=a?this.currentUrlTree.fragment:i,l=null;if(s)switch(s){case"merge":l=Object.assign({},this.currentUrlTree.queryParams,r);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=r||null}else l=o?this.currentUrlTree.queryParams:r||null;return ft(u,this.currentUrlTree,t,l,c)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var n=t instanceof We?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),Jt(t),"object"==typeof e.queryParams&&null!==e.queryParams&&(e.queryParams=this.removeEmptyProps(e.queryParams)),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){return this.urlSerializer.parse(t)},t.prototype.isActive=function(t,e){if(t instanceof We)return b(this.currentUrlTree,t,e);var n=this.urlSerializer.parse(t);return b(this.currentUrlTree,n,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce(function(e,n){var r=t[n];return null!==r&&void 0!==r&&(e[n]=r),e},{})},t.prototype.processNavigations=function(){var t=this;ve.concatMap.call(this.navigations,function(e){return e?(t.executeScheduledNavigation(e),e.promise.catch(function(){})):Object(de.of)(null)}).subscribe(function(){})},t.prototype.scheduleNavigation=function(t,e,n){var r=this.navigations.value;if(r&&"imperative"!==e&&"imperative"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(r&&"hashchange"==e&&"popstate"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);var i=null,o=null,s=new Promise(function(t,e){i=t,o=e}),a=++this.navigationId;return this.navigations.next({id:a,source:e,rawUrl:t,extras:n,resolve:i,reject:o,promise:s}),s.catch(function(t){return Promise.reject(t)})},t.prototype.executeScheduledNavigation=function(t){var e=this,n=t.id,r=t.rawUrl,i=t.extras,o=t.resolve,s=t.reject,a=this.urlHandlingStrategy.extract(r),u=!this.navigated||a.toString()!==this.currentUrlTree.toString();u&&this.urlHandlingStrategy.shouldProcessUrl(r)?(this.routerEvents.next(new ke(n,this.serializeUrl(a))),Promise.resolve().then(function(t){return e.runNavigate(a,r,!!i.skipLocationChange,!!i.replaceUrl,n,null)}).then(o,s)):u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)?(this.routerEvents.next(new ke(n,this.serializeUrl(a))),Promise.resolve().then(function(t){return e.runNavigate(a,r,!1,!1,n,et(a,e.rootComponentType).snapshot)}).then(o,s)):(this.rawUrlTree=r,o(null))},t.prototype.runNavigate=function(t,e,n,r,i,s){var a=this;return i!==this.navigationId?(this.location.go(this.urlSerializer.serialize(this.currentUrlTree)),this.routerEvents.next(new Ne(i,this.serializeUrl(t),"Navigation ID "+i+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(u,c){var l;if(s)l=Object(de.of)({appliedUrl:t,snapshot:s});else{var p=a.ngModule.injector,h=H(p,a.configLoader,a.urlSerializer,t,a.config);l=_e.mergeMap.call(h,function(e){return be.map.call(At(a.rootComponentType,a.config,e,a.serializeUrl(e)),function(n){return a.routerEvents.next(new Ie(i,a.serializeUrl(t),a.serializeUrl(e),n)),{appliedUrl:e,snapshot:n}})})}var f,d,v=_e.mergeMap.call(l,function(t){return be.map.call(a.hooks.beforePreactivation(t.snapshot),function(){return t})}),y=be.map.call(v,function(t){var e=t.appliedUrl,n=t.snapshot,r=a.ngModule.injector;return f=new En(n,a.currentRouterState.snapshot,r),f.traverse(a.rootContexts),{appliedUrl:e,snapshot:n}}),m=_e.mergeMap.call(y,function(e){var n=e.appliedUrl,r=e.snapshot;return a.navigationId!==i?Object(de.of)(!1):(a.triggerEvent(new Fe(i,a.serializeUrl(t),n,r)),be.map.call(f.checkGuards(),function(e){return a.triggerEvent(new Le(i,a.serializeUrl(t),n,r,e)),{appliedUrl:n,snapshot:r,shouldActivate:e}}))}),g=_e.mergeMap.call(m,function(e){return a.navigationId!==i?Object(de.of)(!1):e.shouldActivate&&f.isActivating()?(a.triggerEvent(new Ve(i,a.serializeUrl(t),e.appliedUrl,e.snapshot)),be.map.call(f.resolveData(),function(){return a.triggerEvent(new Ue(i,a.serializeUrl(t),e.appliedUrl,e.snapshot)),e})):Object(de.of)(e)}),b=_e.mergeMap.call(g,function(t){return be.map.call(a.hooks.afterPreactivation(t.snapshot),function(){return t})}),_=be.map.call(b,function(t){var e=t.appliedUrl,n=t.snapshot,r=t.shouldActivate;if(r){return{appliedUrl:e,state:ut(a.routeReuseStrategy,n,a.currentRouterState),shouldActivate:r}}return{appliedUrl:e,state:null,shouldActivate:r}}),w=a.currentRouterState,x=a.currentUrlTree;_.forEach(function(t){var o=t.appliedUrl,s=t.state;if(!t.shouldActivate||i!==a.navigationId)return void(d=!1);if(a.currentUrlTree=o,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.currentRouterState=s,!n){var u=a.urlSerializer.serialize(a.rawUrlTree);a.location.isCurrentPathEqualTo(u)||r?a.location.replaceState(u):a.location.go(u)}new Cn(a.routeReuseStrategy,s,w).activate(a.rootContexts),d=!0}).then(function(){d?(a.navigated=!0,a.routerEvents.next(new Me(i,a.serializeUrl(t),a.serializeUrl(a.currentUrlTree))),u(!0)):(a.resetUrlToCurrentUrlTree(),a.routerEvents.next(new Ne(i,a.serializeUrl(t),"")),u(!1))},function(n){if(o(n))a.resetUrlToCurrentUrlTree(),a.navigated=!0,a.routerEvents.next(new Ne(i,a.serializeUrl(t),n.message)),u(!1);else{a.routerEvents.next(new Re(i,a.serializeUrl(t),n));try{u(a.errorHandler(n))}catch(t){c(t)}}a.currentRouterState=w,a.currentUrlTree=x,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.location.replaceState(a.serializeUrl(a.rawUrlTree))})})},t.prototype.resetUrlToCurrentUrlTree=function(){var t=this.urlSerializer.serialize(this.rawUrlTree);this.location.replaceState(t)},t}(),xn=function(){function t(t){this.path=t}return Object.defineProperty(t.prototype,"route",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t}(),Sn=function(){function t(t,e){this.component=t,this.route=e}return t}(),En=function(){function t(t,e,n){this.future=t,this.curr=e,this.moduleInjector=n,this.canActivateChecks=[],this.canDeactivateChecks=[]}return t.prototype.traverse=function(t){var e=this.future._root,n=this.curr?this.curr._root:null;this.traverseChildRoutes(e,n,t,[e.value])},t.prototype.checkGuards=function(){var t=this;if(!this.isDeactivating()&&!this.isActivating())return Object(de.of)(!0);var e=this.runCanDeactivateChecks();return _e.mergeMap.call(e,function(e){return e?t.runCanActivateChecks():Object(de.of)(!1)})},t.prototype.resolveData=function(){var t=this;if(!this.isActivating())return Object(de.of)(null);var e=Object(fe.from)(this.canActivateChecks),n=ve.concatMap.call(e,function(e){return t.runResolve(e.route)});return we.reduce.call(n,function(t,e){return t})},t.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},t.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},t.prototype.traverseChildRoutes=function(t,e,n,r){var i=this,o=Yt(e);t.children.forEach(function(t){i.traverseRoutes(t,o[t.value.outlet],n,r.concat([t.value])),delete o[t.value.outlet]}),d(o,function(t,e){return i.deactivateRouteAndItsChildren(t,n.getContext(e))})},t.prototype.traverseRoutes=function(t,e,n,r){var i=t.value,o=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(o&&i._routeConfig===o._routeConfig){var a=this.shouldRunGuardsAndResolvers(o,i,i._routeConfig.runGuardsAndResolvers);if(a?this.canActivateChecks.push(new xn(r)):(i.data=o.data,i._resolvedData=o._resolvedData),i.component?this.traverseChildRoutes(t,e,s?s.children:null,r):this.traverseChildRoutes(t,e,n,r),a){var u=s.outlet;this.canDeactivateChecks.push(new Sn(u.component,o))}}else o&&this.deactivateRouteAndItsChildren(e,s),this.canActivateChecks.push(new xn(r)),i.component?this.traverseChildRoutes(t,null,s?s.children:null,r):this.traverseChildRoutes(t,null,n,r)},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!at(t,e)||!p(t.queryParams,e.queryParams);case"paramsChange":default:return!at(t,e)}},t.prototype.deactivateRouteAndItsChildren=function(t,e){var n=this,r=Yt(t),i=t.value;d(r,function(t,r){i.component?e?n.deactivateRouteAndItsChildren(t,e.children.getContext(r)):n.deactivateRouteAndItsChildren(t,null):n.deactivateRouteAndItsChildren(t,e)}),i.component&&e&&e.outlet&&e.outlet.isActivated?this.canDeactivateChecks.push(new Sn(e.outlet.component,i)):this.canDeactivateChecks.push(new Sn(null,i))},t.prototype.runCanDeactivateChecks=function(){var t=this,e=Object(fe.from)(this.canDeactivateChecks),n=_e.mergeMap.call(e,function(e){return t.runCanDeactivate(e.component,e.route)});return ye.every.call(n,function(t){return!0===t})},t.prototype.runCanActivateChecks=function(){var t=this,e=Object(fe.from)(this.canActivateChecks),n=ve.concatMap.call(e,function(e){return y(Object(fe.from)([t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))});return ye.every.call(n,function(t){return!0===t})},t.prototype.runCanActivate=function(t){var e=this,n=t._routeConfig?t._routeConfig.canActivate:null;return n&&0!==n.length?y(be.map.call(Object(fe.from)(n),function(n){var r,i=e.getToken(n,t);return r=m(i.canActivate?i.canActivate(t,e.future):i(t,e.future)),me.first.call(r)})):Object(de.of)(!0)},t.prototype.runCanActivateChild=function(t){var e=this,n=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t});return y(be.map.call(Object(fe.from)(r),function(t){return y(be.map.call(Object(fe.from)(t.guards),function(r){var i,o=e.getToken(r,t.node);return i=m(o.canActivateChild?o.canActivateChild(n,e.future):o(n,e.future)),me.first.call(i)}))}))},t.prototype.extractCanActivateChild=function(t){var e=t._routeConfig?t._routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var n=this,r=e&&e._routeConfig?e._routeConfig.canDeactivate:null;if(!r||0===r.length)return Object(de.of)(!0);var i=_e.mergeMap.call(Object(fe.from)(r),function(r){var i,o=n.getToken(r,e);return i=m(o.canDeactivate?o.canDeactivate(t,e,n.curr,n.future):o(t,e,n.curr,n.future)),me.first.call(i)});return ye.every.call(i,function(t){return!0===t})},t.prototype.runResolve=function(t){var e=t._resolve;return be.map.call(this.resolveNode(e,t),function(e){return t._resolvedData=e,t.data=Object.assign({},t.data,rt(t).resolve),null})},t.prototype.resolveNode=function(t,e){var n=this,r=Object.keys(t);if(0===r.length)return Object(de.of)({});if(1===r.length){var i=r[0];return be.map.call(this.getResolver(t[i],e),function(t){return e={},e[i]=t,e;var e})}var o={},s=_e.mergeMap.call(Object(fe.from)(r),function(r){return be.map.call(n.getResolver(t[r],e),function(t){return o[r]=t,t})});return be.map.call(ge.last.call(s),function(){return o})},t.prototype.getResolver=function(t,e){var n=this.getToken(t,e);return m(n.resolve?n.resolve(e,this.future):n(e,this.future))},t.prototype.getToken=function(t,e){var n=Xt(e);return(n?n.module.injector:this.moduleInjector).get(t)},t}(),Cn=function(){function t(t,e,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=n}return t.prototype.activate=function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),st(this.futureState.root),this.activateChildRoutes(e,n,t)},t.prototype.deactivateChildRoutes=function(t,e,n){var r=this,i=Yt(e);t.children.forEach(function(t){var e=t.value.outlet;r.deactivateRoutes(t,i[e],n),delete i[e]}),d(i,function(t,e){r.deactivateRouteAndItsChildren(t,n)})},t.prototype.deactivateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(r===i)if(r.component){var o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,n);else i&&this.deactivateRouteAndItsChildren(e,n)},t.prototype.deactivateRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var n=e.getContext(t.value.outlet);if(n&&n.outlet){var r=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t,contexts:i})}},t.prototype.deactivateRouteAndOutlet=function(t,e){var n=this,r=e.getContext(t.value.outlet);if(r){var i=Yt(t),o=t.value.component?r.children:e;d(i,function(t,e){return n.deactivateRouteAndItsChildren(t,o)}),r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated())}},t.prototype.activateChildRoutes=function(t,e,n){var r=this,i=Yt(e);t.children.forEach(function(t){r.activateRoutes(t,i[t.value.outlet],n)})},t.prototype.activateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(st(r),r===i)if(r.component){var o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,n);else if(r.component){var o=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){var s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(s.contexts),o.attachRef=s.componentRef,o.route=s.route.value,o.outlet&&o.outlet.attach(s.componentRef,s.route.value),Gt(s.route)}else{var a=Qt(r.snapshot),u=a?a.module.componentFactoryResolver:null;o.route=r,o.resolver=u,o.outlet&&o.outlet.activateWith(r,u),this.activateChildRoutes(t,null,o.children)}}else this.activateChildRoutes(t,null,n)},t}(),On=function(){function t(t,e,n,r,i){this.router=t,this.route=e,this.commands=[],null==n&&r.setAttribute(i.nativeElement,"tabindex","0")}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){Object(le._27)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){var t={skipLocationChange:Zt(this.skipLocationChange),replaceUrl:Zt(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Zt(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Zt(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();On.decorators=[{type:le.u,args:[{selector:":not(a)[routerLink]"}]}],On.ctorParameters=function(){return[{type:wn},{type:un},{type:void 0,decorators:[{type:le.h,args:["tabindex"]}]},{type:le._2},{type:le.v}]},On.propDecorators={queryParams:[{type:le.F}],fragment:[{type:le.F}],queryParamsHandling:[{type:le.F}],preserveFragment:[{type:le.F}],skipLocationChange:[{type:le.F}],replaceUrl:[{type:le.F}],routerLink:[{type:le.F}],preserveQueryParams:[{type:le.F}],onClick:[{type:le.A,args:["click"]}]};var Tn=function(){function t(t,e,n){var r=this;this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(function(t){t instanceof Me&&r.updateTargetUrlAndHref()})}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){Object(le._27)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onClick=function(t,e,n,r){if(0!==t||e||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var i={skipLocationChange:Zt(this.skipLocationChange),replaceUrl:Zt(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,i),!1},t.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Zt(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Zt(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();Tn.decorators=[{type:le.u,args:[{selector:"a[routerLink]"}]}],Tn.ctorParameters=function(){return[{type:wn},{type:un},{type:ce.h}]},Tn.propDecorators={target:[{type:le.z,args:["attr.target"]},{type:le.F}],queryParams:[{type:le.F}],fragment:[{type:le.F}],queryParamsHandling:[{type:le.F}],preserveFragment:[{type:le.F}],skipLocationChange:[{type:le.F}],replaceUrl:[{type:le.F}],href:[{type:le.z}],routerLink:[{type:le.F}],preserveQueryParams:[{type:le.F}],onClick:[{type:le.A,args:["click",["$event.button","$event.ctrlKey","$event.metaKey","$event.shiftKey"]]}]};var Pn=function(){function t(t,e,n,r){var i=this;this.router=t,this.element=e,this.renderer=n,this.cdr=r,this.classes=[],this.active=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(function(t){t instanceof Me&&i.update()})}return Object.defineProperty(t.prototype,"isActive",{get:function(){return this.active},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this.links.changes.subscribe(function(e){return t.update()}),this.linksWithHrefs.changes.subscribe(function(e){return t.update()}),this.update()},Object.defineProperty(t.prototype,"routerLinkActive",{set:function(t){var e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(function(t){return!!t})},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.update()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.update=function(){var t=this;if(this.links&&this.linksWithHrefs&&this.router.navigated){var e=this.hasActiveLinks();this.active!==e&&(this.classes.forEach(function(n){e?t.renderer.addClass(t.element.nativeElement,n):t.renderer.removeClass(t.element.nativeElement,n)}),Promise.resolve(e).then(function(e){return t.active=e}))}},t.prototype.isLinkActive=function(t){var e=this;return function(n){return t.isActive(n.urlTree,e.routerLinkActiveOptions.exact)}},t.prototype.hasActiveLinks=function(){return this.links.some(this.isLinkActive(this.router))||this.linksWithHrefs.some(this.isLinkActive(this.router))},t}();Pn.decorators=[{type:le.u,args:[{selector:"[routerLinkActive]",exportAs:"routerLinkActive"}]}],Pn.ctorParameters=function(){return[{type:wn},{type:le.v},{type:le._2},{type:le.l}]},Pn.propDecorators={links:[{type:le.t,args:[On,{descendants:!0}]}],linksWithHrefs:[{type:le.t,args:[Tn,{descendants:!0}]}],routerLinkActiveOptions:[{type:le.F}],routerLinkActive:[{type:le.F}]};var An=function(){function t(){this.outlet=null,this.route=null,this.resolver=null,this.children=new kn,this.attachRef=null}return t}(),kn=function(){function t(){this.contexts=new Map}return t.prototype.onChildOutletCreated=function(t,e){var n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)},t.prototype.onChildOutletDestroyed=function(t){var e=this.getContext(t);e&&(e.outlet=null)},t.prototype.onOutletDeactivated=function(){var t=this.contexts;return this.contexts=new Map,t},t.prototype.onOutletReAttached=function(t){this.contexts=t},t.prototype.getOrCreateContext=function(t){var e=this.getContext(t);return e||(e=new An,this.contexts.set(t,e)),e},t.prototype.getContext=function(t){return this.contexts.get(t)||null},t}(),Mn=function(){function t(t,e,n,r,i){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new le.x,this.deactivateEvents=new le.x,this.name=r||Be,t.onChildOutletCreated(this.name,this)}return t.prototype.ngOnDestroy=function(){this.parentContexts.onChildOutletDestroyed(this.name)},t.prototype.ngOnInit=function(){if(!this.activated){var t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}},Object.defineProperty(t.prototype,"locationInjector",{get:function(){return this.location.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locationFactoryResolver",{get:function(){return this.resolver},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRouteData",{get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}},enumerable:!0,configurable:!0}),t.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t},t.prototype.attach=function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)},t.prototype.deactivate=function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}},t.prototype.activateWith=function(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;var n=t._futureSnapshot,r=n._routeConfig.component;e=e||this.resolver;var i=e.resolveComponentFactory(r),o=this.parentContexts.getOrCreateContext(this.name).children,s=new Nn(t,o,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)},t}();Mn.decorators=[{type:le.u,args:[{selector:"router-outlet",exportAs:"outlet"}]}],Mn.ctorParameters=function(){return[{type:kn},{type:le._19},{type:le.q},{type:void 0,decorators:[{type:le.h,args:["name"]}]},{type:le.l}]},Mn.propDecorators={activateEvents:[{type:le.T,args:["activate"]}],deactivateEvents:[{type:le.T,args:["deactivate"]}]};var Nn=function(){function t(t,e,n){this.route=t,this.childContexts=e,this.parent=n}return t.prototype.get=function(t,e){return t===un?this.route:t===kn?this.childContexts:this.parent.get(t,e)},t}(),Rn=function(){function t(){}return t.prototype.preload=function(t,e){},t}(),In=function(){function t(){}return t.prototype.preload=function(t,e){return Se._catch.call(e(),function(){return Object(de.of)(null)})},t}(),jn=function(){function t(){}return t.prototype.preload=function(t,e){return Object(de.of)(null)},t}(),Dn=function(){function t(t,e,n,r,i){this.router=t,this.injector=r,this.preloadingStrategy=i;var o=function(e){return t.triggerEvent(new je(e))},s=function(e){return t.triggerEvent(new De(e))};this.loader=new gn(e,n,o,s)}return t.prototype.setUpPreloading=function(){var t=this,e=Ae.filter.call(this.router.events,function(t){return t instanceof Me});this.subscription=ve.concatMap.call(e,function(){return t.preload()}).subscribe(function(){})},t.prototype.preload=function(){var t=this.injector.get(le.P);return this.processRoutes(t,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){for(var n=[],r=0,i=e;r<i.length;r++){var o=i[r];if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var s=o._loadedConfig;n.push(this.processRoutes(s.module,s.routes))}else o.loadChildren&&!o.canLoad?n.push(this.preloadConfig(t,o)):o.children&&n.push(this.processRoutes(t,o.children))}return Te.mergeAll.call(Object(fe.from)(n))},t.prototype.preloadConfig=function(t,e){var n=this;return this.preloadingStrategy.preload(e,function(){var r=n.loader.load(t.injector,e);return _e.mergeMap.call(r,function(t){return e._loadedConfig=t,n.processRoutes(t.module,t.routes)})})},t}();Dn.decorators=[{type:le.C}],Dn.ctorParameters=function(){return[{type:wn},{type:le.O},{type:le.m},{type:le.E},{type:Rn}]};var Fn=[Mn,On,Tn,Pn],Ln=new le.D("ROUTER_CONFIGURATION"),Vn=new le.D("ROUTER_FORROOT_GUARD"),Un=[ce.g,{provide:Qe,useClass:Xe},{provide:wn,useFactory:re,deps:[le.g,Qe,kn,ce.g,le.E,le.O,le.m,mn,Ln,[bn,new le.S],[vn,new le.S]]},kn,{provide:un,useFactory:ie,deps:[wn]},{provide:le.O,useClass:le._9},Dn,jn,In,{provide:Ln,useValue:{enableTracing:!1}}],Bn=function(){function t(t,e){}return t.forRoot=function(e,n){return{ngModule:t,providers:[Un,ne(e),{provide:Vn,useFactory:ee,deps:[[wn,new le.S,new le._8]]},{provide:Ln,useValue:n||{}},{provide:ce.h,useFactory:te,deps:[ce.q,[new le.B(ce.a),new le.S],Ln]},{provide:Rn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:jn},{provide:le.Q,multi:!0,useFactory:$t},ae()]}},t.forChild=function(e){return{ngModule:t,providers:[ne(e)]}},t}();Bn.decorators=[{type:le.M,args:[{declarations:Fn,exports:Fn}]}],Bn.ctorParameters=function(){return[{type:void 0,decorators:[{type:le.S},{type:le.B,args:[Vn]}]},{type:wn,decorators:[{type:le.S}]}]};var Hn=function(){function t(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new he.Subject}return t.prototype.appInitializer=function(){var t=this;return this.injector.get(ce.f,Promise.resolve(null)).then(function(){var e=null,n=new Promise(function(t){return e=t}),r=t.injector.get(wn),i=t.injector.get(Ln);if(t.isLegacyDisabled(i)||t.isLegacyEnabled(i))e(!0);else if("disabled"===i.initialNavigation)r.setUpLocationChangeListener(),e(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '"+i.initialNavigation+"'");r.hooks.afterPreactivation=function(){return t.initNavigation?Object(de.of)(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()}return n})},t.prototype.bootstrapListener=function(t){var e=this.injector.get(Ln),n=this.injector.get(Dn),r=this.injector.get(wn),i=this.injector.get(le.g);t===i.components[0]&&(this.isLegacyEnabled(e)?r.initialNavigation():this.isLegacyDisabled(e)&&r.setUpLocationChangeListener(),n.setUpPreloading(),r.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},t.prototype.isLegacyEnabled=function(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation},t.prototype.isLegacyDisabled=function(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation},t}();Hn.decorators=[{type:le.C}],Hn.ctorParameters=function(){return[{type:le.E}]};var qn=new le.D("Router Initializer");new le._16("4.3.5")},function(t,e,n){"use strict";function r(){return D}function i(t){D||(D=t)}function o(){return z||(z=document.querySelector("base"))?z.getAttribute("href"):null}function s(t){return H||(H=document.createElement("a")),H.setAttribute("href",t),"/"===H.pathname.charAt(0)?H.pathname:"/"+H.pathname}function a(){return!!window.history.pushState}function u(t,e,n){return function(){n.get(j.e).donePromise.then(function(){var n=r();Array.prototype.slice.apply(n.querySelectorAll(e,"style[ng-transition]")).filter(function(e){return n.getAttribute(e,"ng-transition")===t}).forEach(function(t){return n.remove(t)})})}}function c(t,e){Z||(j._53.ng=Z=j._53.ng||{}),Z[t]=e}function l(t){return Object(j._25)(t)}function p(t,e){var n=(t||[]).concat(e||[]);return c(tt,l),c(et,Object.assign({},$,h(n||[]))),function(){return l}}function h(t){return t.reduce(function(t,e){return t[e.name]=e.token,t},{})}function f(t){return ht.replace(lt,t)}function d(t){return pt.replace(lt,t)}function v(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];Array.isArray(i)?v(t,i,n):(i=i.replace(lt,t),n.push(i))}return n}function y(t){return function(e){!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}function m(t,e){if(t.charCodeAt(0)===vt)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}function g(t){return t=String(t),t.match(Ot)||t.match(Tt)?t:(Object(j._27)()&&r().log("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function b(t){return t=String(t),t.split(",").map(function(t){return g(t.trim())}).join(", ")}function _(){if(Pt)return Pt;At=r();var t=At.createElement("template");if("content"in t)return t;var e=At.createHtmlDocument();if(null==(Pt=At.querySelector(e,"body"))){var n=At.createElement("html",e);Pt=At.createElement("body",e),At.appendChild(n,Pt),At.appendChild(e,n)}return Pt}function w(t){for(var e={},n=0,r=t.split(",");n<r.length;n++){e[r[n]]=!0}return e}function x(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n={},r=0,i=t;r<i.length;r++){var o=i[r];for(var s in o)o.hasOwnProperty(s)&&(n[s]=!0)}return n}function S(t,e){if(e&&At.contains(t,e))throw new Error("Failed to sanitize html because the element is clobbered: "+At.getOuterHTML(t));return e}function E(t){return t.replace(/&/g,"&amp;").replace(Ht,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(qt,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function C(t){At.attributeMap(t).forEach(function(e,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||At.removeAttribute(t,n)});for(var e=0,n=At.childNodesAsList(t);e<n.length;e++){var r=n[e];At.isElementNode(r)&&C(r)}}function O(t,e){try{var n=_(),r=e?String(e):"",i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,At.setInnerHTML(n,r),t.documentMode&&C(n),o=At.getInnerHTML(n)}while(r!==o);for(var s=new Bt,a=s.sanitizeChildren(At.getTemplateContent(n)||n),u=At.getTemplateContent(n)||n,c=0,l=At.childNodesAsList(u);c<l.length;c++){var p=l[c];At.removeChild(u,p)}return Object(j._27)()&&s.sanitizedSomething&&At.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),a}catch(t){throw Pt=null,t}}function T(t){for(var e=!0,n=!0,r=0;r<t.length;r++){var i=t.charAt(r);"'"===i&&n?e=!e:'"'===i&&e&&(n=!n)}return e&&n}function P(t){if(!(t=String(t).trim()))return"";var e=t.match(Wt);return e&&g(e[1])===e[1]||t.match(zt)&&T(t)?t:(Object(j._27)()&&r().log("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}function A(){q.makeCurrent(),Y.init()}function k(){return new j.w}function M(){return document}n.d(e,"a",function(){return re}),n.d(e,"j",function(){return ne}),n.d(e,"g",function(){return G}),n.d(e,"i",function(){return J}),n.d(e,"h",function(){return nt}),n.d(e,"c",function(){return it}),n.d(e,"d",function(){return ot}),n.d(e,"e",function(){return _t}),n.d(e,"f",function(){return wt}),n.d(e,"b",function(){return Kt}),n.d(e,"o",function(){return te}),n.d(e,"u",function(){return r}),n.d(e,"l",function(){return ft}),n.d(e,"k",function(){return gt}),n.d(e,"n",function(){return xt}),n.d(e,"p",function(){return Ct}),n.d(e,"m",function(){return ut}),n.d(e,"q",function(){return at}),n.d(e,"r",function(){return k}),n.d(e,"s",function(){return p}),n.d(e,"t",function(){return Gt});var N,R=n(41),I=n(30),j=n(12),D=null,F=function(){function t(){this.resourceLoaderType=null}return t.prototype.hasProperty=function(t,e){},t.prototype.setProperty=function(t,e,n){},t.prototype.getProperty=function(t,e){},t.prototype.invoke=function(t,e,n){},t.prototype.logError=function(t){},t.prototype.log=function(t){},t.prototype.logGroup=function(t){},t.prototype.logGroupEnd=function(){},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t.prototype.contains=function(t,e){},t.prototype.parse=function(t){},t.prototype.querySelector=function(t,e){},t.prototype.querySelectorAll=function(t,e){},t.prototype.on=function(t,e,n){},t.prototype.onAndCancel=function(t,e,n){},t.prototype.dispatchEvent=function(t,e){},t.prototype.createMouseEvent=function(t){},t.prototype.createEvent=function(t){},t.prototype.preventDefault=function(t){},t.prototype.isPrevented=function(t){},t.prototype.getInnerHTML=function(t){},t.prototype.getTemplateContent=function(t){},t.prototype.getOuterHTML=function(t){},t.prototype.nodeName=function(t){},t.prototype.nodeValue=function(t){},t.prototype.type=function(t){},t.prototype.content=function(t){},t.prototype.firstChild=function(t){},t.prototype.nextSibling=function(t){},t.prototype.parentElement=function(t){},t.prototype.childNodes=function(t){},t.prototype.childNodesAsList=function(t){},t.prototype.clearNodes=function(t){},t.prototype.appendChild=function(t,e){},t.prototype.removeChild=function(t,e){},t.prototype.replaceChild=function(t,e,n){},t.prototype.remove=function(t){},t.prototype.insertBefore=function(t,e,n){},t.prototype.insertAllBefore=function(t,e,n){},t.prototype.insertAfter=function(t,e,n){},t.prototype.setInnerHTML=function(t,e){},t.prototype.getText=function(t){},t.prototype.setText=function(t,e){},t.prototype.getValue=function(t){},t.prototype.setValue=function(t,e){},t.prototype.getChecked=function(t){},t.prototype.setChecked=function(t,e){},t.prototype.createComment=function(t){},t.prototype.createTemplate=function(t){},t.prototype.createElement=function(t,e){},t.prototype.createElementNS=function(t,e,n){},t.prototype.createTextNode=function(t,e){},t.prototype.createScriptTag=function(t,e,n){},t.prototype.createStyleElement=function(t,e){},t.prototype.createShadowRoot=function(t){},t.prototype.getShadowRoot=function(t){},t.prototype.getHost=function(t){},t.prototype.getDistributedNodes=function(t){},t.prototype.clone=function(t){},t.prototype.getElementsByClassName=function(t,e){},t.prototype.getElementsByTagName=function(t,e){},t.prototype.classList=function(t){},t.prototype.addClass=function(t,e){},t.prototype.removeClass=function(t,e){},t.prototype.hasClass=function(t,e){},t.prototype.setStyle=function(t,e,n){},t.prototype.removeStyle=function(t,e){},t.prototype.getStyle=function(t,e){},t.prototype.hasStyle=function(t,e,n){},t.prototype.tagName=function(t){},t.prototype.attributeMap=function(t){},t.prototype.hasAttribute=function(t,e){},t.prototype.hasAttributeNS=function(t,e,n){},t.prototype.getAttribute=function(t,e){},t.prototype.getAttributeNS=function(t,e,n){},t.prototype.setAttribute=function(t,e,n){},t.prototype.setAttributeNS=function(t,e,n,r){},t.prototype.removeAttribute=function(t,e){},t.prototype.removeAttributeNS=function(t,e,n){},t.prototype.templateAwareRoot=function(t){},t.prototype.createHtmlDocument=function(){},t.prototype.getBoundingClientRect=function(t){},t.prototype.getTitle=function(t){},t.prototype.setTitle=function(t,e){},t.prototype.elementMatches=function(t,e){},t.prototype.isTemplateElement=function(t){},t.prototype.isTextNode=function(t){},t.prototype.isCommentNode=function(t){},t.prototype.isElementNode=function(t){},t.prototype.hasShadowRoot=function(t){},t.prototype.isShadowRoot=function(t){},t.prototype.importIntoDoc=function(t){},t.prototype.adoptNode=function(t){},t.prototype.getHref=function(t){},t.prototype.getEventKey=function(t){},t.prototype.resolveAndSetHref=function(t,e,n){},t.prototype.supportsDOMEvents=function(){},t.prototype.supportsNativeShadowDOM=function(){},t.prototype.getGlobalEventTarget=function(t,e){},t.prototype.getHistory=function(){},t.prototype.getLocation=function(){},t.prototype.getBaseHref=function(t){},t.prototype.resetBaseElement=function(){},t.prototype.getUserAgent=function(){},t.prototype.setData=function(t,e,n){},t.prototype.getComputedStyle=function(t){},t.prototype.getData=function(t,e){},t.prototype.supportsWebAnimation=function(){},t.prototype.performanceNow=function(){},t.prototype.getAnimationPrefix=function(){},t.prototype.getTransitionEnd=function(){},t.prototype.supportsAnimation=function(){},t.prototype.supportsCookies=function(){},t.prototype.getCookie=function(t){},t.prototype.setCookie=function(t,e){},t}(),L=function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var n=e.createElement("div",document);if(null!=e.getStyle(n,"animationName"))e._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],i=0;i<r.length;i++)if(null!=e.getStyle(n,r[i]+"AnimationName")){e._animationPrefix="-"+r[i].toLowerCase()+"-";break}var o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(o).forEach(function(t){null!=e.getStyle(n,t)&&(e._transitionEnd=o[t])})}catch(t){e._animationPrefix=null,e._transitionEnd=null}return e}return R.a(e,t),e.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},e.prototype.resolveAndSetHref=function(t,e,n){t.href=null==n?e:e+"/../"+n},e.prototype.supportsDOMEvents=function(){return!0},e.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},e.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},e.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},e.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},e}(F),V={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},U={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},B={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"};j._53.Node&&(N=j._53.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var H,q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return R.a(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){i(new e)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,n){t[e]=n},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,n){t[e].apply(t,n)},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return V},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return N.call(t,e)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=document.createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&t instanceof HTMLTemplateElement?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),r=0;r<e.length;r++)n[r]=e[r];return n},e.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},e.prototype.appendChild=function(t,e){t.appendChild(e)},e.prototype.removeChild=function(t,e){t.removeChild(e)},e.prototype.replaceChild=function(t,e,n){t.replaceChild(e,n)},e.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},e.prototype.insertBefore=function(t,e,n){t.insertBefore(n,e)},e.prototype.insertAllBefore=function(t,e,n){n.forEach(function(n){return t.insertBefore(n,e)})},e.prototype.insertAfter=function(t,e,n){t.insertBefore(n,e.nextSibling)},e.prototype.setInnerHTML=function(t,e){t.innerHTML=e},e.prototype.getText=function(t){return t.textContent},e.prototype.setText=function(t,e){t.textContent=e},e.prototype.getValue=function(t){return t.value},e.prototype.setValue=function(t,e){t.value=e},e.prototype.getChecked=function(t){return t.checked},e.prototype.setChecked=function(t,e){t.checked=e},e.prototype.createComment=function(t){return document.createComment(t)},e.prototype.createTemplate=function(t){var e=document.createElement("template");return e.innerHTML=t,e},e.prototype.createElement=function(t,e){return void 0===e&&(e=document),e.createElement(t)},e.prototype.createElementNS=function(t,e,n){return void 0===n&&(n=document),n.createElementNS(t,e)},e.prototype.createTextNode=function(t,e){return void 0===e&&(e=document),e.createTextNode(t)},e.prototype.createScriptTag=function(t,e,n){void 0===n&&(n=document);var r=n.createElement("SCRIPT");return r.setAttribute(t,e),r},e.prototype.createStyleElement=function(t,e){void 0===e&&(e=document);var n=e.createElement("style");return this.appendChild(n,this.createTextNode(t)),n},e.prototype.createShadowRoot=function(t){return t.createShadowRoot()},e.prototype.getShadowRoot=function(t){return t.shadowRoot},e.prototype.getHost=function(t){return t.host},e.prototype.clone=function(t){return t.cloneNode(!0)},e.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},e.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},e.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},e.prototype.addClass=function(t,e){t.classList.add(e)},e.prototype.removeClass=function(t,e){t.classList.remove(e)},e.prototype.hasClass=function(t,e){return t.classList.contains(e)},e.prototype.setStyle=function(t,e,n){t.style[e]=n},e.prototype.removeStyle=function(t,e){t.style[e]=""},e.prototype.getStyle=function(t,e){return t.style[e]},e.prototype.hasStyle=function(t,e,n){var r=this.getStyle(t,e)||"";return n?r==n:r.length>0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r<n.length;r++){var i=n[r];e.set(i.name,i.value)}return e},e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},e.prototype.hasAttributeNS=function(t,e,n){return t.hasAttributeNS(e,n)},e.prototype.getAttribute=function(t,e){return t.getAttribute(e)},e.prototype.getAttributeNS=function(t,e,n){return t.getAttributeNS(e,n)},e.prototype.setAttribute=function(t,e,n){t.setAttribute(e,n)},e.prototype.setAttributeNS=function(t,e,n,r){t.setAttributeNS(e,n,r)},e.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},e.prototype.removeAttributeNS=function(t,e,n){t.removeAttributeNS(e,n)},e.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},e.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},e.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},e.prototype.getTitle=function(t){return document.title},e.prototype.setTitle=function(t,e){document.title=e||""},e.prototype.elementMatches=function(t,e){return t instanceof HTMLElement&&(t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e))},e.prototype.isTemplateElement=function(t){return t instanceof HTMLElement&&"TEMPLATE"==t.nodeName},e.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},e.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},e.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},e.prototype.hasShadowRoot=function(t){return null!=t.shadowRoot&&t instanceof HTMLElement},e.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},e.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},e.prototype.adoptNode=function(t){return document.adoptNode(t)},e.prototype.getHref=function(t){return t.href},e.prototype.getEventKey=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&B.hasOwnProperty(e)&&(e=B[e]))}return U[e]||e},e.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?document:"body"===e?document.body:null},e.prototype.getHistory=function(){return window.history},e.prototype.getLocation=function(){return window.location},e.prototype.getBaseHref=function(t){var e=o();return null==e?null:s(e)},e.prototype.resetBaseElement=function(){z=null},e.prototype.getUserAgent=function(){return window.navigator.userAgent},e.prototype.setData=function(t,e,n){this.setAttribute(t,"data-"+e,n)},e.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},e.prototype.getComputedStyle=function(t){return getComputedStyle(t)},e.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},e.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},e.prototype.supportsCookies=function(){return!0},e.prototype.getCookie=function(t){return Object(I.s)(document.cookie,t)},e.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},e}(L),z=null,W=I.d,K=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}return R.a(e,t),e.prototype._init=function(){this._location=r().getLocation(),this._history=r().getHistory()},Object.defineProperty(e.prototype,"location",{get:function(){return this._location},enumerable:!0,configurable:!0}),e.prototype.getBaseHrefFromDOM=function(){return r().getBaseHref(this._doc)},e.prototype.onPopState=function(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"pathname",{get:function(){return this._location.pathname},set:function(t){this._location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this._location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this._location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){a()?this._history.pushState(t,e,n):this._location.hash=n},e.prototype.replaceState=function(t,e,n){a()?this._history.replaceState(t,e,n):this._location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e}(I.q);K.decorators=[{type:j.C}],K.ctorParameters=function(){return[{type:void 0,decorators:[{type:j.B,args:[W]}]}]};var G=function(){function t(t){this._doc=t,this._dom=r()}return t.prototype.addTag=function(t,e){return void 0===e&&(e=!1),t?this._getOrCreateElement(t,e):null},t.prototype.addTags=function(t,e){var n=this;return void 0===e&&(e=!1),t?t.reduce(function(t,r){return r&&t.push(n._getOrCreateElement(r,e)),t},[]):[]},t.prototype.getTag=function(t){return t?this._dom.querySelector(this._doc,"meta["+t+"]"):null},t.prototype.getTags=function(t){if(!t)return[];var e=this._dom.querySelectorAll(this._doc,"meta["+t+"]");return e?[].slice.call(e):[]},t.prototype.updateTag=function(t,e){if(!t)return null;e=e||this._parseSelector(t);var n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)},t.prototype.removeTag=function(t){this.removeTagElement(this.getTag(t))},t.prototype.removeTagElement=function(t){t&&this._dom.remove(t)},t.prototype._getOrCreateElement=function(t,e){if(void 0===e&&(e=!1),!e){var n=this._parseSelector(t),r=this.getTag(n);if(r&&this._containsAttributes(t,r))return r}var i=this._dom.createElement("meta");this._setMetaElementAttributes(t,i);var o=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(o,i),i},t.prototype._setMetaElementAttributes=function(t,e){var n=this;return Object.keys(t).forEach(function(r){return n._dom.setAttribute(e,r,t[r])}),e},t.prototype._parseSelector=function(t){var e=t.name?"name":"property";return e+'="'+t[e]+'"'},t.prototype._containsAttributes=function(t,e){var n=this;return Object.keys(t).every(function(r){return n._dom.getAttribute(e,r)===t[r]})},t}();G.decorators=[{type:j.C}],G.ctorParameters=function(){return[{type:void 0,decorators:[{type:j.B,args:[W]}]}]};var Q=new j.D("TRANSITION_ID"),X=[{provide:j.d,useFactory:u,deps:[Q,W,j.E],multi:!0}],Y=function(){function t(){}return t.init=function(){Object(j._32)(new t)},t.prototype.addToWindow=function(t){j._53.getAngularTestability=function(e,n){void 0===n&&(n=!0);var r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},j._53.getAllAngularTestabilities=function(){return t.getAllTestabilities()},j._53.getAllAngularRootElements=function(){return t.getAllRootElements()};var e=function(t){var e=j._53.getAllAngularTestabilities(),n=e.length,r=!1,i=function(e){r=r||e,0==--n&&t(r)};e.forEach(function(t){t.whenStable(i)})};j._53.frameworkStabilizers||(j._53.frameworkStabilizers=[]),j._53.frameworkStabilizers.push(e)},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var i=t.getTestability(e);return null!=i?i:n?r().isShadowRoot(e)?this.findTestabilityInTree(t,r().getHost(e),!0):this.findTestabilityInTree(t,r().parentElement(e),!0):null},t}(),J=function(){function t(t){this._doc=t}return t.prototype.getTitle=function(){return r().getTitle(this._doc)},t.prototype.setTitle=function(t){r().setTitle(this._doc,t)},t}();J.decorators=[{type:j.C}],J.ctorParameters=function(){return[{type:void 0,decorators:[{type:j.B,args:[W]}]}]};var Z,$={ApplicationRef:j.g,NgZone:j.R},tt="probe",et="coreTokens",nt=function(){function t(t,e){this.name=t,this.token=e}return t}(),rt=[{provide:j.d,useFactory:p,deps:[[nt,new j.S],[j.Q,new j.S]],multi:!0}],it=new j.D("EventManagerPlugins"),ot=function(){function t(t,e){var n=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=n}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(t))return this._eventNameToPlugin.set(t,i),i}throw new Error("No event manager plugin found for event "+t)},t}();ot.decorators=[{type:j.C}],ot.ctorParameters=function(){return[{type:Array,decorators:[{type:j.B,args:[it]}]},{type:j.R}]};var st=function(){function t(t){this._doc=t}return t.prototype.supports=function(t){},t.prototype.addEventListener=function(t,e,n){},t.prototype.addGlobalEventListener=function(t,e,n){var i=r().getGlobalEventTarget(this._doc,t);if(!i)throw new Error("Unsupported event target "+i+" for event "+e);return this.addEventListener(i,e,n)},t}(),at=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,n=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))}),this.onStylesAdded(n)},t.prototype.onStylesAdded=function(t){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t}();at.decorators=[{type:j.C}],at.ctorParameters=function(){return[]};var ut=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(e.head),n}return R.a(e,t),e.prototype._addStylesToHost=function(t,e){var n=this;t.forEach(function(t){var r=n._doc.createElement("style");r.textContent=t,n._styleNodes.add(e.appendChild(r))})},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes.delete(t)},e.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach(function(n){return e._addStylesToHost(t,n)})},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return r().remove(t)})},e}(at);ut.decorators=[{type:j.C}],ut.ctorParameters=function(){return[{type:void 0,decorators:[{type:j.B,args:[W]}]}]};var ct={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/"},lt=/%COMP%/g,pt="_nghost-%COMP%",ht="_ngcontent-%COMP%",ft=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new dt(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case j._20.Emulated:var n=this.rendererByCompId.get(e.id);return n||(n=new yt(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n;case j._20.Native:return new mt(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var r=v(e.id,e.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t.prototype.begin=function(){},t.prototype.end=function(){},t}();ft.decorators=[{type:j.C}],ft.ctorParameters=function(){return[{type:ot},{type:ut}]};var dt=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){return e?document.createElementNS(ct[e],t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,n){t&&t.insertBefore(e,n)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t){var e="string"==typeof t?document.querySelector(t):t;if(!e)throw new Error('The selector "'+t+'" did not match any elements');return e.textContent="",e},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,n,r){if(r){e=r+":"+e;var i=ct[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var r=ct[n];r?t.removeAttributeNS(r,e):t.removeAttribute(n+":"+e)}else t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,n,r){r&j._4.DashCase?t.style.setProperty(e,n,r&j._4.Important?"important":""):t.style[e]=n},t.prototype.removeStyle=function(t,e,n){n&j._4.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,n){m(e,"property"),t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return m(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,y(n)):this.eventManager.addEventListener(t,e,y(n))},t}(),vt="@".charCodeAt(0),yt=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.component=r;var o=v(r.id,r.styles,[]);return n.addStyles(o),i.contentAttr=f(r.id),i.hostAttr=d(r.id),i}return R.a(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,n){var r=t.prototype.createElement.call(this,e,n);return t.prototype.setAttribute.call(this,r,this.contentAttr,""),r},e}(dt),mt=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;o.sharedStylesHost=n,o.hostEl=r,o.component=i,o.shadowRoot=r.createShadowRoot(),o.sharedStylesHost.addHost(o.shadowRoot);for(var s=v(i.id,i.styles,[]),a=0;a<s.length;a++){var u=document.createElement("style");u.textContent=s[a],o.shadowRoot.appendChild(u)}return o}return R.a(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,n){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.insertBefore=function(e,n,r){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),n,r)},e.prototype.removeChild=function(e,n){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(dt),gt=function(t){function e(e){return t.call(this,e)||this}return R.a(e,t),e.prototype.supports=function(t){return!0},e.prototype.addEventListener=function(t,e,n){return t.addEventListener(e,n,!1),function(){return t.removeEventListener(e,n,!1)}},e}(st);gt.decorators=[{type:j.C}],gt.ctorParameters=function(){return[{type:void 0,decorators:[{type:j.B,args:[W]}]}]};var bt={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},_t=new j.D("HammerGestureConfig"),wt=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(var n in this.overrides)e.get(n).set(this.overrides[n]);return e},t}();wt.decorators=[{type:j.C}],wt.ctorParameters=function(){return[]};var xt=function(t){function e(e,n){var r=t.call(this,e)||this;return r._config=n,r}return R.a(e,t),e.prototype.supports=function(t){if(!bt.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t))return!1;if(!window.Hammer)throw new Error("Hammer.js is not loaded, can not bind "+t+" event");return!0},e.prototype.addEventListener=function(t,e,n){var r=this,i=this.manager.getZone();return e=e.toLowerCase(),i.runOutsideAngular(function(){var o=r._config.buildHammer(t),s=function(t){i.runGuarded(function(){n(t)})};return o.on(e,s),function(){return o.off(e,s)}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e}(st);xt.decorators=[{type:j.C}],xt.ctorParameters=function(){return[{type:void 0,decorators:[{type:j.B,args:[W]}]},{type:wt,decorators:[{type:j.B,args:[_t]}]}]};var St=["alt","control","meta","shift"],Et={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Ct=function(t){function e(e){return t.call(this,e)||this}return R.a(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,i){var o=e.parseEventName(n),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return r().onAndCancel(t,o.domEventName,s)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=e._normalizeKey(n.pop()),o="";if(St.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=i,0!=n.length||0===i.length)return null;var s={};return s.domEventName=r,s.fullKey=o,s},e.getEventFullKey=function(t){var e="",n=r().getEventKey(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),St.forEach(function(r){if(r!=n){(0,Et[r])(t)&&(e+=r+".")}}),e+=n},e.eventCallback=function(t,n,r){return function(i){e.getEventFullKey(i)===t&&r.runGuarded(function(){return n(i)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(st);Ct.decorators=[{type:j.C}],Ct.ctorParameters=function(){return[{type:void 0,decorators:[{type:j.B,args:[W]}]}]};var Ot=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,Tt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,Pt=null,At=null,kt=w("area,br,col,hr,img,wbr"),Mt=w("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Nt=w("rp,rt"),Rt=x(Nt,Mt),It=x(Mt,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")),jt=x(Nt,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")),Dt=x(kt,It,jt,Rt),Ft=w("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Lt=w("srcset"),Vt=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"),Ut=x(Ft,Lt,Vt),Bt=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(At.isElementNode(e)?this.startElement(e):At.isTextNode(e)?this.chars(At.nodeValue(e)):this.sanitizedSomething=!0,At.firstChild(e))e=At.firstChild(e);else for(;e;){At.isElementNode(e)&&this.endElement(e);var n=S(e,At.nextSibling(e));if(n){e=n;break}e=S(e,At.parentElement(e))}return this.buf.join("")},t.prototype.startElement=function(t){var e=this,n=At.nodeName(t).toLowerCase();if(!Dt.hasOwnProperty(n))return void(this.sanitizedSomething=!0);this.buf.push("<"),this.buf.push(n),At.attributeMap(t).forEach(function(t,n){var r=n.toLowerCase();if(!Ut.hasOwnProperty(r))return void(e.sanitizedSomething=!0);Ft[r]&&(t=g(t)),Lt[r]&&(t=b(t)),e.buf.push(" "),e.buf.push(n),e.buf.push('="'),e.buf.push(E(t)),e.buf.push('"')}),this.buf.push(">")},t.prototype.endElement=function(t){var e=At.nodeName(t).toLowerCase();Dt.hasOwnProperty(e)&&!kt.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(E(t))},t}(),Ht=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,qt=/([^\#-~ |!])/g,zt=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Wt=/^url\(([^)]+)\)$/,Kt=function(){function t(){}return t.prototype.sanitize=function(t,e){},t.prototype.bypassSecurityTrustHtml=function(t){},t.prototype.bypassSecurityTrustStyle=function(t){},t.prototype.bypassSecurityTrustScript=function(t){},t.prototype.bypassSecurityTrustUrl=function(t){},t.prototype.bypassSecurityTrustResourceUrl=function(t){},t}(),Gt=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return R.a(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case j._6.NONE:return e;case j._6.HTML:return e instanceof Xt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),O(this._doc,String(e)));case j._6.STYLE:return e instanceof Yt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),P(e));case j._6.SCRIPT:if(e instanceof Jt)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case j._6.URL:return e instanceof $t||e instanceof Zt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),g(String(e)));case j._6.RESOURCE_URL:if(e instanceof $t)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof Qt)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new Xt(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new Yt(t)},e.prototype.bypassSecurityTrustScript=function(t){return new Jt(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new Zt(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new $t(t)},e}(Kt);Gt.decorators=[{type:j.C}],Gt.ctorParameters=function(){return[{type:void 0,decorators:[{type:j.B,args:[W]}]}]};var Qt=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.getTypeName=function(){},t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),Xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return R.a(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(Qt),Yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return R.a(e,t),e.prototype.getTypeName=function(){return"Style"},e}(Qt),Jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return R.a(e,t),e.prototype.getTypeName=function(){return"Script"},e}(Qt),Zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return R.a(e,t),e.prototype.getTypeName=function(){return"URL"},e}(Qt),$t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return R.a(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(Qt),te=[{provide:j.V,useValue:I.r},{provide:j.W,useValue:A,multi:!0},{provide:I.q,useClass:K},{provide:W,useFactory:M,deps:[]}],ee=[{provide:j._5,useExisting:Kt},{provide:Kt,useClass:Gt}],ne=Object(j._23)(j._29,"browser",te),re=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:j.c,useValue:e.appId},{provide:Q,useExisting:j.c},X]}},t}();re.decorators=[{type:j.M,args:[{providers:[ee,{provide:j.w,useFactory:k,deps:[]},{provide:it,useClass:gt,multi:!0},{provide:it,useClass:Ct,multi:!0},{provide:it,useClass:xt,multi:!0},{provide:_t,useClass:wt},ft,{provide:j._3,useExisting:ft},{provide:at,useExisting:ut},ut,j._14,ot,rt,G,J],exports:[I.b,j.f]}]}],re.ctorParameters=function(){return[{type:re,decorators:[{type:j.S},{type:j._8}]}]};var ie="undefined"!=typeof window&&window||{},oe=function(){function t(t,e){this.msPerTick=t,this.numTicks=e}return t}();(function(){function t(t){this.appRef=t.injector.get(j.g)}t.prototype.timeChangeDetection=function(t){var e=t&&t.record,n=null!=ie.console.profile;e&&n&&ie.console.profile("Change Detection");for(var i=r().performanceNow(),o=0;o<5||r().performanceNow()-i<500;)this.appRef.tick(),o++;var s=r().performanceNow();e&&n&&ie.console.profileEnd("Change Detection");var a=(s-i)/o;return ie.console.log("ran "+o+" change detection cycles"),ie.console.log(a.toFixed(2)+" ms per check"),new oe(a,o)}})(),function(){function t(){}t.all=function(){return function(t){return!0}},t.css=function(t){return function(e){return null!=e.nativeElement&&r().elementMatches(e.nativeElement,t)}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}}}(),new j._16("4.3.5")},function(t,e,n){"use strict";function r(t,e){var n;if(n="function"==typeof t?t:function(){return t},"function"==typeof e)return this.lift(new o(n,e));var r=Object.create(this,i.connectableObservableDescriptor);return r.source=this,r.subjectFactory=n,r}var i=n(142);e.multicast=r;var o=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}();e.MulticastOperator=o},,,,,,,,,,,,function(t,e,n){"use strict";function r(t,e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new s(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2);e.map=r;var s=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.thisArg))},t}();e.MapOperator=s;var a=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.count=0,this.thisArg=r||this}return i(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(o.Subscriber)},function(t,e,n){"use strict";function r(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),this.lift(new a(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(3),s=n(4);e.mergeAll=r;var a=function(){function t(t){this.concurrent=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.concurrent))},t}();e.MergeAllOperator=a;var u=function(t){function e(e,n){t.call(this,e),this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0}return i(e,t),e.prototype._next=function(t){this.active<this.concurrent?(this.active++,this.add(s.subscribeToResult(this,t))):this.buffer.push(t)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.OuterSubscriber);e.MergeAllSubscriber=u},function(t,e,n){"use strict";function r(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var n=t.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=t.Map;if(r)for(var i=Object.getOwnPropertyNames(r.prototype),o=0;o<i.length;++o){var s=i[o];if("entries"!==s&&"size"!==s&&r.prototype[s]===r.prototype.entries)return s}return"@@iterator"}var i=n(16);e.symbolIteratorPonyfill=r,e.iterator=r(i.root),e.$$iterator=e.iterator},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(16),o=n(222),s=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n,this.pending=!1}return r(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t,this.pending=!0;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),i.root.setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){return void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending?e:i.root.clearInterval(e)&&void 0||void 0},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(o.Action);e.AsyncAction=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(223),o=function(t){function e(){t.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return r(e,t),e.prototype.flush=function(t){var e=this.actions;if(this.active)return void e.push(t);var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}},e}(i.Scheduler);e.AsyncScheduler=o},function(t,e,n){"use strict";var r=n(0),i=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return r.Observable.of(this.value);case"E":return r.Observable.throw(this.error);case"C":return r.Observable.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();e.Notification=i},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){var e=t.call(this,"no elements in sequence");this.name=e.name="EmptyError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);e.EmptyError=i},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){var e=t.call(this,"argument out of range");this.name=e.name="ArgumentOutOfRangeError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);e.ArgumentOutOfRangeError=i},,,,,function(t,e,n){"use strict";function r(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return _.Get;case"POST":return _.Post;case"PUT":return _.Put;case"DELETE":return _.Delete;case"OPTIONS":return _.Options;case"HEAD":return _.Head;case"PATCH":return _.Patch}throw new Error('Invalid request method. The method "'+t+'" is not supported.')}function i(t){return"responseURL"in t?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}function o(t){for(var e=new Uint16Array(t.length),n=0,r=t.length;n<r;n++)e[n]=t.charCodeAt(n);return e.buffer}function s(t){void 0===t&&(t="");var e=new Map;if(t.length>0){t.split("&").forEach(function(t){var n=t.indexOf("="),r=-1==n?[t,""]:[t.slice(0,n),t.slice(n+1)],i=r[0],o=r[1],s=e.get(i)||[];s.push(o),e.set(i,s)})}return e}function a(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function u(){var t="object"==typeof window?window:{};return null===F&&(F=t[D]={}),F}function c(t){var e=new N;return Object.keys(t).forEach(function(n){var r=t[n];r&&Array.isArray(r)?r.forEach(function(t){return e.append(n,t.toString())}):e.append(n,r.toString())}),e}function l(t,e){return t.createConnection(e).response}function p(t,e,n,r){var i=t;return e?i.merge(new X({method:e.method||n,url:e.url||r,search:e.search,params:e.params,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType})):i.merge(new X({method:n,url:r}))}function h(){return new G}function f(t,e){return new rt(t,e)}function d(t,e){return new it(t,e)}n.d(e,"c",function(){return b}),n.d(e,"i",function(){return Q}),n.d(e,"a",function(){return Y}),n.d(e,"f",function(){return X}),n.d(e,"b",function(){return T}),n.d(e,"h",function(){return O}),n.d(e,"d",function(){return rt}),n.d(e,"e",function(){return ot}),n.d(e,"j",function(){return A}),n.d(e,"g",function(){return I}),n.d(e,"k",function(){return h}),n.d(e,"l",function(){return f});var v=n(41),y=n(12),m=n(0),g=(n.n(m),n(50)),b=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}();b.decorators=[{type:y.C}],b.ctorParameters=function(){return[]};var _={};_.Get=0,_.Post=1,_.Put=2,_.Delete=3,_.Options=4,_.Head=5,_.Patch=6,_[_.Get]="Get",_[_.Post]="Post",_[_.Put]="Put",_[_.Delete]="Delete",_[_.Options]="Options",_[_.Head]="Head",_[_.Patch]="Patch";var w={};w.Unsent=0,w.Open=1,w.HeadersReceived=2,w.Loading=3,w.Done=4,w.Cancelled=5,w[w.Unsent]="Unsent",w[w.Open]="Open",w[w.HeadersReceived]="HeadersReceived",w[w.Loading]="Loading",w[w.Done]="Done",w[w.Cancelled]="Cancelled";var x={};x.Basic=0,x.Cors=1,x.Default=2,x.Error=3,x.Opaque=4,x[x.Basic]="Basic",x[x.Cors]="Cors",x[x.Default]="Default",x[x.Error]="Error",x[x.Opaque]="Opaque";var S={};S.NONE=0,S.JSON=1,S.FORM=2,S.FORM_DATA=3,S.TEXT=4,S.BLOB=5,S.ARRAY_BUFFER=6,S[S.NONE]="NONE",S[S.JSON]="JSON",S[S.FORM]="FORM",S[S.FORM_DATA]="FORM_DATA",S[S.TEXT]="TEXT",S[S.BLOB]="BLOB",S[S.ARRAY_BUFFER]="ARRAY_BUFFER";var E={};E.Text=0,E.Json=1,E.ArrayBuffer=2,E.Blob=3,E[E.Text]="Text",E[E.Json]="Json",E[E.ArrayBuffer]="ArrayBuffer",E[E.Blob]="Blob";var C=function(){function t(e){var n=this;if(this._headers=new Map,this._normalizedNames=new Map,e)return e instanceof t?void e.forEach(function(t,e){t.forEach(function(t){return n.append(e,t)})}):void Object.keys(e).forEach(function(t){var r=Array.isArray(e[t])?e[t]:[e[t]];n.delete(t),r.forEach(function(e){return n.append(t,e)})})}return t.fromResponseHeaderString=function(e){var n=new t;return e.split("\n").forEach(function(t){var e=t.indexOf(":");if(e>0){var r=t.slice(0,e),i=t.slice(e+1).trim();n.set(r,i)}}),n},t.prototype.append=function(t,e){var n=this.getAll(t);null===n?this.set(t,e):n.push(e)},t.prototype.delete=function(t){var e=t.toLowerCase();this._normalizedNames.delete(e),this._headers.delete(e)},t.prototype.forEach=function(t){var e=this;this._headers.forEach(function(n,r){return t(n,e._normalizedNames.get(r),e._headers)})},t.prototype.get=function(t){var e=this.getAll(t);return null===e?null:e.length>0?e[0]:null},t.prototype.has=function(t){return this._headers.has(t.toLowerCase())},t.prototype.keys=function(){return Array.from(this._normalizedNames.values())},t.prototype.set=function(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)},t.prototype.values=function(){return Array.from(this._headers.values())},t.prototype.toJSON=function(){var t=this,e={};return this._headers.forEach(function(n,r){var i=[];n.forEach(function(t){return i.push.apply(i,t.split(","))}),e[t._normalizedNames.get(r)]=i}),e},t.prototype.getAll=function(t){return this.has(t)?this._headers.get(t.toLowerCase())||null:null},t.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},t.prototype.mayBeSetNormalizedName=function(t){var e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)},t}(),O=function(){function t(t){void 0===t&&(t={});var e=t.body,n=t.status,r=t.headers,i=t.statusText,o=t.type,s=t.url;this.body=null!=e?e:null,this.status=null!=n?n:null,this.headers=null!=r?r:null,this.statusText=null!=i?i:null,this.type=null!=o?o:null,this.url=null!=s?s:null}return t.prototype.merge=function(e){return new t({body:e&&null!=e.body?e.body:this.body,status:e&&null!=e.status?e.status:this.status,headers:e&&null!=e.headers?e.headers:this.headers,statusText:e&&null!=e.statusText?e.statusText:this.statusText,type:e&&null!=e.type?e.type:this.type,url:e&&null!=e.url?e.url:this.url})},t}(),T=function(t){function e(){return t.call(this,{status:200,statusText:"Ok",type:x.Default,headers:new C})||this}return v.a(e,t),e}(O);T.decorators=[{type:y.C}],T.ctorParameters=function(){return[]};var P=function(){function t(){}return t.prototype.createConnection=function(t){},t}(),A=(function(){function t(){}}(),function(){function t(){}return t.prototype.configureRequest=function(t){},t}()),k=function(t){return t>=200&&t<300},M=function(){function t(){}return t.prototype.encodeKey=function(t){return a(t)},t.prototype.encodeValue=function(t){return a(t)},t}(),N=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=new M),this.rawParams=t,this.queryEncoder=e,this.paramsMap=s(t)}return t.prototype.clone=function(){var e=new t("",this.queryEncoder);return e.appendAll(this),e},t.prototype.has=function(t){return this.paramsMap.has(t)},t.prototype.get=function(t){var e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null},t.prototype.getAll=function(t){return this.paramsMap.get(t)||[]},t.prototype.set=function(t,e){if(void 0===e||null===e)return void this.delete(t);var n=this.paramsMap.get(t)||[];n.length=0,n.push(e),this.paramsMap.set(t,n)},t.prototype.setAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0,r.push(t[0]),e.paramsMap.set(n,r)})},t.prototype.append=function(t,e){if(void 0!==e&&null!==e){var n=this.paramsMap.get(t)||[];n.push(e),this.paramsMap.set(t,n)}},t.prototype.appendAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){for(var r=e.paramsMap.get(n)||[],i=0;i<t.length;++i)r.push(t[i]);e.paramsMap.set(n,r)})},t.prototype.replaceAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0;for(var i=0;i<t.length;++i)r.push(t[i]);e.paramsMap.set(n,r)})},t.prototype.toString=function(){var t=this,e=[];return this.paramsMap.forEach(function(n,r){n.forEach(function(n){return e.push(t.queryEncoder.encodeKey(r)+"="+t.queryEncoder.encodeValue(n))})}),e.join("&")},t.prototype.delete=function(t){this.paramsMap.delete(t)},t}(),R=function(){function t(){}return t.prototype.json=function(){return"string"==typeof this._body?JSON.parse(this._body):this._body instanceof ArrayBuffer?JSON.parse(this.text()):this._body},t.prototype.text=function(t){if(void 0===t&&(t="legacy"),this._body instanceof N)return this._body.toString();if(this._body instanceof ArrayBuffer)switch(t){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: "+t)}return null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()},t.prototype.arrayBuffer=function(){return this._body instanceof ArrayBuffer?this._body:o(this.text())},t.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")},t}(),I=function(t){function e(e){var n=t.call(this)||this;return n._body=e.body,n.status=e.status,n.ok=n.status>=200&&n.status<=299,n.statusText=e.statusText,n.headers=e.headers,n.type=e.type,n.url=e.url,n}return v.a(e,t),e.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},e}(R),j=0,D="__ng_jsonp__",F=null,L=function(){function t(){}return t.prototype.build=function(t){var e=document.createElement("script");return e.src=t,e},t.prototype.nextRequestID=function(){return"__req"+j++},t.prototype.requestCallback=function(t){return D+"."+t+".finished"},t.prototype.exposeConnection=function(t,e){u()[t]=e},t.prototype.removeConnection=function(t){u()[t]=null},t.prototype.send=function(t){document.body.appendChild(t)},t.prototype.cleanup=function(t){t.parentNode&&t.parentNode.removeChild(t)},t}();L.decorators=[{type:y.C}],L.ctorParameters=function(){return[]};var V="JSONP injected script did not invoke callback.",U="JSONP requests must use GET request method.",B=function(){function t(){}return t.prototype.finished=function(t){},t}(),H=function(t){function e(e,n,r){var i=t.call(this)||this;if(i._dom=n,i.baseResponseOptions=r,i._finished=!1,e.method!==_.Get)throw new TypeError(U);return i.request=e,i.response=new m.Observable(function(t){i.readyState=w.Loading;var o=i._id=n.nextRequestID();n.exposeConnection(o,i);var s=n.requestCallback(i._id),a=e.url;a.indexOf("=JSONP_CALLBACK&")>-1?a=a.replace("=JSONP_CALLBACK&","="+s+"&"):a.lastIndexOf("=JSONP_CALLBACK")===a.length-"=JSONP_CALLBACK".length&&(a=a.substring(0,a.length-"=JSONP_CALLBACK".length)+"="+s);var u=i._script=n.build(a),c=function(e){if(i.readyState!==w.Cancelled){if(i.readyState=w.Done,n.cleanup(u),!i._finished){var o=new O({body:V,type:x.Error,url:a});return r&&(o=r.merge(o)),void t.error(new I(o))}var s=new O({body:i._responseData,url:a});i.baseResponseOptions&&(s=i.baseResponseOptions.merge(s)),t.next(new I(s)),t.complete()}},l=function(e){if(i.readyState!==w.Cancelled){i.readyState=w.Done,n.cleanup(u);var o=new O({body:e.message,type:x.Error});r&&(o=r.merge(o)),t.error(new I(o))}};return u.addEventListener("load",c),u.addEventListener("error",l),n.send(u),function(){i.readyState=w.Cancelled,u.removeEventListener("load",c),u.removeEventListener("error",l),i._dom.cleanup(u)}}),i}return v.a(e,t),e.prototype.finished=function(t){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==w.Cancelled&&(this._responseData=t)},e}(B),q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v.a(e,t),e}(P),z=function(t){function e(e,n){var r=t.call(this)||this;return r._browserJSONP=e,r._baseResponseOptions=n,r}return v.a(e,t),e.prototype.createConnection=function(t){return new H(t,this._browserJSONP,this._baseResponseOptions)},e}(q);z.decorators=[{type:y.C}],z.ctorParameters=function(){return[{type:L},{type:O}]};var W=/^\)\]\}',?\n/,K=function(){function t(t,e,n){var r=this;this.request=t,this.response=new m.Observable(function(o){var s=e.build();s.open(_[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(s.withCredentials=t.withCredentials);var a=function(){var e=1223===s.status?204:s.status,r=null;204!==e&&"string"==typeof(r=void 0===s.response?s.responseText:s.response)&&(r=r.replace(W,"")),0===e&&(e=r?200:0);var a=C.fromResponseHeaderString(s.getAllResponseHeaders()),u=i(s)||t.url,c=s.statusText||"OK",l=new O({body:r,status:e,headers:a,statusText:c,url:u});null!=n&&(l=n.merge(l));var p=new I(l);if(p.ok=k(e),p.ok)return o.next(p),void o.complete();o.error(p)},u=function(t){var e=new O({body:t,type:x.Error,status:s.status,statusText:s.statusText});null!=n&&(e=n.merge(e)),o.error(new I(e))};if(r.setDetectedContentType(t,s),null==t.headers&&(t.headers=new C),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach(function(t,e){return s.setRequestHeader(e,t.join(","))}),null!=t.responseType&&null!=s.responseType)switch(t.responseType){case E.ArrayBuffer:s.responseType="arraybuffer";break;case E.Json:s.responseType="json";break;case E.Text:s.responseType="text";break;case E.Blob:s.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return s.addEventListener("load",a),s.addEventListener("error",u),s.send(r.request.getBody()),function(){s.removeEventListener("load",a),s.removeEventListener("error",u),s.abort()}})}return t.prototype.setDetectedContentType=function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case S.NONE:break;case S.JSON:e.setRequestHeader("content-type","application/json");break;case S.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case S.TEXT:e.setRequestHeader("content-type","text/plain");break;case S.BLOB:var n=t.blob();n.type&&e.setRequestHeader("content-type",n.type)}},t}(),G=function(){function t(t,e){void 0===t&&(t="XSRF-TOKEN"),void 0===e&&(e="X-XSRF-TOKEN"),this._cookieName=t,this._headerName=e}return t.prototype.configureRequest=function(t){var e=Object(g.u)().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)},t}(),Q=function(){function t(t,e,n){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=n}return t.prototype.createConnection=function(t){return this._xsrfStrategy.configureRequest(t),new K(t,this._browserXHR,this._baseResponseOptions)},t}();Q.decorators=[{type:y.C}],Q.ctorParameters=function(){return[{type:b},{type:O},{type:A}]};var X=function(){function t(t){void 0===t&&(t={});var e=t.method,n=t.headers,i=t.body,o=t.url,s=t.search,a=t.params,u=t.withCredentials,c=t.responseType;this.method=null!=e?r(e):null,this.headers=null!=n?n:null,this.body=null!=i?i:null,this.url=null!=o?o:null,this.params=this._mergeSearchParams(a||s),this.withCredentials=null!=u?u:null,this.responseType=null!=c?c:null}return Object.defineProperty(t.prototype,"search",{get:function(){return this.params},set:function(t){this.params=t},enumerable:!0,configurable:!0}),t.prototype.merge=function(e){return new t({method:e&&null!=e.method?e.method:this.method,headers:e&&null!=e.headers?e.headers:new C(this.headers),body:e&&null!=e.body?e.body:this.body,url:e&&null!=e.url?e.url:this.url,params:e&&this._mergeSearchParams(e.params||e.search),withCredentials:e&&null!=e.withCredentials?e.withCredentials:this.withCredentials,responseType:e&&null!=e.responseType?e.responseType:this.responseType})},t.prototype._mergeSearchParams=function(t){return t?t instanceof N?t.clone():"string"==typeof t?new N(t):this._parseParams(t):this.params},t.prototype._parseParams=function(t){var e=this;void 0===t&&(t={});var n=new N;return Object.keys(t).forEach(function(r){var i=t[r];Array.isArray(i)?i.forEach(function(t){return e._appendParam(r,t,n)}):e._appendParam(r,i,n)}),n},t.prototype._appendParam=function(t,e,n){"string"!=typeof e&&(e=JSON.stringify(e)),n.append(t,e)},t}(),Y=function(t){function e(){return t.call(this,{method:_.Get,headers:new C})||this}return v.a(e,t),e}(X);Y.decorators=[{type:y.C}],Y.ctorParameters=function(){return[]};var J=function(t){function e(e){var n=t.call(this)||this,i=e.url;n.url=e.url;var o=e.params||e.search;if(o){var s=void 0;if(s="object"!=typeof o||o instanceof N?o.toString():c(o).toString(),s.length>0){var a="?";-1!=n.url.indexOf("?")&&(a="&"==n.url[n.url.length-1]?"":"&"),n.url=i+a+s}}return n._body=e.body,n.method=r(e.method),n.headers=new C(e.headers),n.contentType=n.detectContentType(),n.withCredentials=e.withCredentials,n.responseType=e.responseType,n}return v.a(e,t),e.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return S.JSON;case"application/x-www-form-urlencoded":return S.FORM;case"multipart/form-data":return S.FORM_DATA;case"text/plain":case"text/html":return S.TEXT;case"application/octet-stream":return this._body instanceof nt?S.ARRAY_BUFFER:S.BLOB;default:return this.detectContentTypeFromBody()}},e.prototype.detectContentTypeFromBody=function(){return null==this._body?S.NONE:this._body instanceof N?S.FORM:this._body instanceof tt?S.FORM_DATA:this._body instanceof et?S.BLOB:this._body instanceof nt?S.ARRAY_BUFFER:this._body&&"object"==typeof this._body?S.JSON:S.TEXT},e.prototype.getBody=function(){switch(this.contentType){case S.JSON:case S.FORM:return this.text();case S.FORM_DATA:return this._body;case S.TEXT:return this.text();case S.BLOB:return this.blob();case S.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},e}(R),Z=function(){},$="object"==typeof window?window:Z,tt=$.FormData||Z,et=$.Blob||Z,nt=$.ArrayBuffer||Z,rt=function(){function t(t,e){this._backend=t,this._defaultOptions=e}return t.prototype.request=function(t,e){var n;if("string"==typeof t)n=l(this._backend,new J(p(this._defaultOptions,e,_.Get,t)));else{if(!(t instanceof J))throw new Error("First argument must be a url string or Request instance.");n=l(this._backend,t)}return n},t.prototype.get=function(t,e){return this.request(new J(p(this._defaultOptions,e,_.Get,t)))},t.prototype.post=function(t,e,n){return this.request(new J(p(this._defaultOptions.merge(new X({body:e})),n,_.Post,t)))},t.prototype.put=function(t,e,n){return this.request(new J(p(this._defaultOptions.merge(new X({body:e})),n,_.Put,t)))},t.prototype.delete=function(t,e){return this.request(new J(p(this._defaultOptions,e,_.Delete,t)))},t.prototype.patch=function(t,e,n){return this.request(new J(p(this._defaultOptions.merge(new X({body:e})),n,_.Patch,t)))},t.prototype.head=function(t,e){return this.request(new J(p(this._defaultOptions,e,_.Head,t)))},t.prototype.options=function(t,e){return this.request(new J(p(this._defaultOptions,e,_.Options,t)))},t}();rt.decorators=[{type:y.C}],rt.ctorParameters=function(){return[{type:P},{type:X}]};var it=function(t){function e(e,n){return t.call(this,e,n)||this}return v.a(e,t),e.prototype.request=function(t,e){if("string"==typeof t&&(t=new J(p(this._defaultOptions,e,_.Get,t))),!(t instanceof J))throw new Error("First argument must be a url string or Request instance.");if(t.method!==_.Get)throw new Error("JSONP requests must use GET request method.");return l(this._backend,t)},e}(rt);it.decorators=[{type:y.C}],it.ctorParameters=function(){return[{type:P},{type:X}]};var ot=function(){function t(){}return t}();ot.decorators=[{type:y.M,args:[{providers:[{provide:rt,useFactory:f,deps:[Q,X]},b,{provide:X,useClass:Y},{provide:O,useClass:T},Q,{provide:A,useFactory:h}]}]}],ot.ctorParameters=function(){return[]};var st=function(){function t(){}return t}();st.decorators=[{type:y.M,args:[{providers:[{provide:it,useFactory:d,deps:[q,X]},L,{provide:X,useClass:Y},{provide:O,useClass:T},{provide:q,useClass:z}]}]}],st.ctorParameters=function(){return[]};new y._16("4.3.5")},,,function(t,e,n){"use strict";function r(t){return"function"==typeof t}e.isFunction=r},function(t,e,n){"use strict";var r=n(16),i=r.root.Symbol;e.rxSubscriber="function"==typeof i&&"function"==typeof i.for?i.for("rxSubscriber"):"@@rxSubscriber",e.$$rxSubscriber=e.rxSubscriber},function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}var i=n(16);e.getSymbolObservable=r,e.observable=r(i.root),e.$$observable=e.observable},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);e.ObjectUnsubscribedError=i},function(t,e,n){"use strict";function r(t,e){var n=!1;return arguments.length>=2&&(n=!0),this.lift(new s(t,e,n))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2);e.reduce=r;var s=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.accumulator,this.seed,this.hasSeed))},t}();e.ReduceOperator=s;var a=function(t){function e(e,n,r,i){t.call(this,e),this.accumulator=n,this.hasSeed=i,this.index=0,this.hasValue=!1,this.acc=r,this.hasSeed||this.index++}return i(e,t),e.prototype._next=function(t){this.hasValue||(this.hasValue=this.hasSeed)?this._tryReduce(t):(this.acc=t,this.hasValue=!0)},e.prototype._tryReduce=function(t){var e;try{e=this.accumulator(this.acc,t,this.index++)}catch(t){return void this.destination.error(t)}this.acc=e},e.prototype._complete=function(){(this.hasValue||this.hasSeed)&&this.destination.next(this.acc),this.destination.complete()},e}(o.Subscriber);e.ReduceSubscriber=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(10),o=n(13),s=function(t){function e(){t.apply(this,arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}return r(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),o.Subscription.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),o.Subscription.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(i.Subject);e.AsyncSubject=s},function(t,e,n){"use strict";function r(t){return!i.isArray(t)&&t-parseFloat(t)+1>=0}var i=n(31);e.isNumeric=r},function(t,e,n){"use strict";function r(t){return t instanceof Date&&!isNaN(+t)}e.isDate=r},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(10),o=n(164),s=n(13),a=n(102),u=n(81),c=n(143),l=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY),t.call(this),this.scheduler=r,this._events=[],this._bufferSize=e<1?1:e,this._windowTime=n<1?1:n}return r(e,t),e.prototype.next=function(e){var n=this._getNow();this._events.push(new p(n,e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._trimBufferThenGetEvents(),r=this.scheduler;if(this.closed)throw new u.ObjectUnsubscribedError;this.hasError?e=s.Subscription.EMPTY:this.isStopped?e=s.Subscription.EMPTY:(this.observers.push(t),e=new c.SubjectSubscription(this,t)),r&&t.add(t=new a.ObserveOnSubscriber(t,r));for(var i=n.length,o=0;o<i&&!t.closed;o++)t.next(n[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||o.queue).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,o=0;o<i&&!(t-r[o].time<n);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(i.Subject);e.ReplaySubject=l;var p=function(){function t(t,e){this.time=t,this.value=e}return t}()},,,,,,,,,,,function(t,e,n){"use strict";var r=n(0),i=n(63);r.Observable.prototype.map=i.map},function(t,e,n){"use strict";var r=n(0),i=n(145);r.Observable.prototype.catch=i._catch,r.Observable.prototype._catch=i._catch},function(t,e,n){"use strict";var r=n(148);e.fromPromise=r.PromiseObservable.create},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(0),o=function(t){function e(e,n){t.call(this),this.value=e,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return r(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.done,n=t.value,r=t.subscriber;if(e)return void r.complete();r.next(n),r.closed||(t.done=!0,this.schedule(t))},e.prototype._subscribe=function(t){var n=this.value,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{done:!1,value:n,subscriber:t});t.next(n),t.closed||t.complete()},e}(i.Observable);e.ScalarObservable=o},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(10),o=n(81),s=function(t){function e(e){t.call(this),this._value=e}return r(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.ObjectUnsubscribedError;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.Subject);e.BehaviorSubject=s},function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=0),this.lift(new a(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2),s=n(68);e.observeOn=r;var a=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.scheduler,this.delay))},t}();e.ObserveOnOperator=a;var u=function(t){function e(e,n,r){void 0===r&&(r=0),t.call(this,e),this.scheduler=n,this.delay=r}return i(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new c(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(s.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(s.Notification.createError(t))},e.prototype._complete=function(){this.scheduleMessage(s.Notification.createComplete())},e}(o.Subscriber);e.ObserveOnSubscriber=u;var c=function(){function t(t,e){this.notification=t,this.destination=e}return t}();e.ObserveOnMessage=c},function(t,e,n){"use strict";function r(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"number"==typeof e&&(n=e,e=null),this.lift(new a(t,e,n))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(4),s=n(3);e.mergeMap=r;var a=function(){function t(t,e,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector,this.concurrent))},t}();e.MergeMapOperator=a;var u=function(t){function e(e,n,r,i){void 0===i&&(i=Number.POSITIVE_INFINITY),t.call(this,e),this.project=n,this.resultSelector=r,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return i(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){this.add(o.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this.resultSelector?this._notifyResultSelector(t,e,n,r):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,n,r){var i;try{i=this.resultSelector(t,e,n,r)}catch(t){return void this.destination.error(t)}this.destination.next(i)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(s.OuterSubscriber);e.MergeMapSubscriber=u},function(t,e,n){"use strict";function r(t,e){return this.lift(new s(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2);e.filter=r;var s=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.predicate=n,this.thisArg=r,this.count=0,this.predicate=n}return i(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(o.Subscriber)},,,function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=null;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&s.isArray(t[0])&&(t=t[0].slice()),t.unshift(this),this.lift.call(new o.ArrayObservable(t),new l(n))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(32),s=n(31),a=n(3),u=n(4),c={};e.combineLatest=r;var l=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.project))},t}();e.CombineLatestOperator=l;var p=function(t){function e(e,n){t.call(this,e),this.project=n,this.active=0,this.values=[],this.observables=[]}return i(e,t),e.prototype._next=function(t){this.values.push(c),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(u.subscribeToResult(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.values,s=o[n],a=this.toRespond?s===c?--this.toRespond:this.toRespond:0;o[n]=e,0===a&&(this.project?this._tryProject(o):this.destination.next(o.slice()))},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(a.OuterSubscriber);e.CombineLatestSubscriber=p},function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return this.lift.call(i.apply(void 0,[this].concat(t)))}function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=null,r=t;return s.isScheduler(r[t.length-1])&&(n=r.pop()),null===n&&1===t.length&&t[0]instanceof o.Observable?t[0]:new a.ArrayObservable(t,n).lift(new u.MergeAllOperator(1))}var o=n(0),s=n(33),a=n(32),u=n(64);e.concat=r,e.concatStatic=i},function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return this.lift.call(i.apply(void 0,[this].concat(t)))}function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=t[t.length-1];return"function"==typeof n&&t.pop(),new s.ArrayObservable(t).lift(new h(n))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n(32),a=n(31),u=n(2),c=n(3),l=n(4),p=n(65);e.zipProto=r,e.zipStatic=i;var h=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.project))},t}();e.ZipOperator=h;var f=function(t){function e(e,n,r){void 0===r&&(r=Object.create(null)),t.call(this,e),this.iterators=[],this.active=0,this.project="function"==typeof n?n:null,this.values=r}return o(e,t),e.prototype._next=function(t){var e=this.iterators;a.isArray(t)?e.push(new v(t)):"function"==typeof t[p.iterator]?e.push(new d(t[p.iterator]())):e.push(new y(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(0===e)return void this.destination.complete();this.active=e;for(var n=0;n<e;n++){var r=t[n];r.stillUnsubscribed?this.add(r.subscribe(r,n)):this.active--}},e.prototype.notifyInactive=function(){0===--this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,r=0;r<e;r++){var i=t[r];if("function"==typeof i.hasValue&&!i.hasValue())return}for(var o=!1,s=[],r=0;r<e;r++){var i=t[r],a=i.next();if(i.hasCompleted()&&(o=!0),a.done)return void n.complete();s.push(a.value)}this.project?this._tryProject(s):n.next(s),o&&n.complete()},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(u.Subscriber);e.ZipSubscriber=f;var d=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return t&&t.done},t}(),v=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[p.iterator]=function(){return this},t.prototype.next=function(t){var e=this.index++,n=this.array;return e<this.length?{value:n[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),y=function(t){function e(e,n,r){t.call(this,e),this.parent=n,this.observable=r,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}return o(e,t),e.prototype[p.iterator]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return l.subscribeToResult(this,this.observable,this,e)},e}(c.OuterSubscriber)},,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(0),i=n(224);r.Observable.throw=i._throw},,function(t,e,n){"use strict";var r=n(228);e.forkJoin=r.ForkJoinObservable.create},function(t,e,n){"use strict";function r(t){return null!=t&&"object"==typeof t}e.isObject=r},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(e){t.call(this),this.errors=e;var n=Error.call(this,e?e.length+" errors occurred during unsubscription:\n  "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n  "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return r(e,t),e}(Error);e.UnsubscriptionError=i},function(t,e,n){"use strict";e.empty={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},function(t,e,n){"use strict";var r=n(138);e.merge=r.mergeStatic},function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return this.lift.call(i.apply(void 0,[this].concat(t)))}function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,i=t[t.length-1];return u.isScheduler(i)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof o.Observable?t[0]:new s.ArrayObservable(t,r).lift(new a.MergeAllOperator(n))}var o=n(0),s=n(32),a=n(64),u=n(33);e.merge=r,e.mergeStatic=i},function(t,e,n){"use strict";e.isArrayLike=function(t){return t&&"number"==typeof t.length}},function(t,e,n){"use strict";function r(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}e.isPromise=r},function(t,e,n){"use strict";function r(){return new s.Subject}function i(){return o.multicast.call(this,r).refCount()}var o=n(51),s=n(10);e.share=i},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(10),o=n(0),s=n(2),a=n(13),u=function(t){function e(e,n){t.call(this),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}return r(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,t=this._connection=new a.Subscription,t.add(this.source.subscribe(new l(this.getSubject(),this))),t.closed?(this._connection=null,t=a.Subscription.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return this.lift(new p(this))},e}(o.Observable);e.ConnectableObservable=u;var c=u.prototype;e.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:c._subscribe},_isComplete:{value:c._isComplete,writable:!0},getSubject:{value:c.getSubject},connect:{value:c.connect},refCount:{value:c.refCount}};var l=function(t){function e(e,n){t.call(this,e),this.connectable=n}return r(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.SubjectSubscriber),p=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new h(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),h=function(t){function e(e,n){t.call(this,e),this.connectable=n}return r(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(!t)return void(this.connection=null);this.connectable=null;var e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()},e}(s.Subscriber)},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(13),o=function(t){function e(e,n){t.call(this),this.subject=e,this.subscriber=n,this.closed=!1}return r(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(i.Subscription);e.SubjectSubscription=o},function(t,e,n){function r(t){var e=i[t];return e?n.e(e[1]).then(function(){return n(e[0])}):Promise.reject(new Error("Cannot find module '"+t+"'."))}var i={"./about/about.module.ngfactory":[660,3],"./customer/customer.module.ngfactory":[658,1],"./customers/customers.module.ngfactory":[657,0],"./orders/orders.module.ngfactory":[659,2]};r.keys=function(){return Object.keys(i)},r.id=144,t.exports=r},function(t,e,n){"use strict";function r(t){var e=new a(t),n=this.lift(e);return e.caught=n}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(3),s=n(4);e._catch=r;var a=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.selector,this.caught))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.selector=n,this.caught=r}return i(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(s.subscribeToResult(this,n))}},e}(o.OuterSubscriber)},function(t,e,n){"use strict";var r=n(147);e.from=r.FromObservable.create},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(31),o=n(139),s=n(140),a=n(148),u=n(226),c=n(32),l=n(227),p=n(65),h=n(0),f=n(102),d=n(80),v=function(t){function e(e,n){t.call(this,null),this.ish=e,this.scheduler=n}return r(e,t),e.create=function(t,n){if(null!=t){if("function"==typeof t[d.observable])return t instanceof h.Observable&&!n?t:new e(t,n);if(i.isArray(t))return new c.ArrayObservable(t,n);if(s.isPromise(t))return new a.PromiseObservable(t,n);if("function"==typeof t[p.iterator]||"string"==typeof t)return new u.IteratorObservable(t,n);if(o.isArrayLike(t))return new l.ArrayLikeObservable(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")},e.prototype._subscribe=function(t){var e=this.ish,n=this.scheduler;return null==n?e[d.observable]().subscribe(t):e[d.observable]().subscribe(new f.ObserveOnSubscriber(t,n,0))},e}(h.Observable);e.FromObservable=v},function(t,e,n){"use strict";function r(t){var e=t.value,n=t.subscriber;n.closed||(n.next(e),n.complete())}function i(t){var e=t.err,n=t.subscriber;n.closed||n.error(e)}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n(16),a=n(0),u=function(t){function e(e,n){t.call(this),this.promise=e,this.scheduler=n}return o(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e=this,n=this.promise,o=this.scheduler;if(null==o)this._isScalar?t.closed||(t.next(this.value),t.complete()):n.then(function(n){e.value=n,e._isScalar=!0,t.closed||(t.next(n),t.complete())},function(e){t.closed||t.error(e)}).then(null,function(t){s.root.setTimeout(function(){throw t})});else if(this._isScalar){if(!t.closed)return o.schedule(r,0,{value:this.value,subscriber:t})}else n.then(function(n){e.value=n,e._isScalar=!0,t.closed||t.add(o.schedule(r,0,{value:n,subscriber:t}))},function(e){t.closed||t.add(o.schedule(i,0,{err:e,subscriber:t}))}).then(null,function(t){s.root.setTimeout(function(){throw t})})},e}(a.Observable);e.PromiseObservable=u},function(t,e,n){"use strict";var r=n(32);e.of=r.ArrayObservable.of},function(t,e,n){"use strict";function r(t,e){return this.lift(new i.MergeMapOperator(t,e,1))}var i=n(103);e.concatMap=r},function(t,e,n){"use strict";function r(t,e){return this.lift(new s(t,e,this))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2);e.every=r;var s=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg,this.source))},t}(),a=function(t){function e(e,n,r,i){t.call(this,e),this.predicate=n,this.thisArg=r,this.source=i,this.index=0,this.thisArg=r||this}return i(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(o.Subscriber)},function(t,e,n){"use strict";function r(t,e,n){return this.lift(new a(t,e,n,this))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2),s=n(69);e.first=r;var a=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.index=0,this.hasCompleted=!1,this._emitted=!1}return i(e,t),e.prototype._next=function(t){var e=this.index++;this.predicate?this._tryPredicate(t,e):this._emit(t,e)},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}n&&this._emit(t,e)},e.prototype._emit=function(t,e){if(this.resultSelector)return void this._tryResultSelector(t,e);this._emitFinal(t)},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this._emitFinal(n)},e.prototype._emitFinal=function(t){var e=this.destination;this._emitted||(this._emitted=!0,e.next(t),e.complete(),this.hasCompleted=!0)},e.prototype._complete=function(){var t=this.destination;this.hasCompleted||void 0===this.defaultValue?this.hasCompleted||t.error(new s.EmptyError):(t.next(this.defaultValue),t.complete())},e}(o.Subscriber)},function(t,e,n){"use strict";function r(t,e,n){return this.lift(new a(t,e,n,this))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2),s=n(69);e.last=r;var a=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.hasValue=!1,this.index=0,void 0!==i&&(this.lastValue=i,this.hasValue=!0)}return i(e,t),e.prototype._next=function(t){var e=this.index++;if(this.predicate)this._tryPredicate(t,e);else{if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}if(n){if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this.lastValue=n,this.hasValue=!0},e.prototype._complete=function(){var t=this.destination;this.hasValue?(t.next(this.lastValue),t.complete()):t.error(new s.EmptyError)},e}(o.Subscriber)},function(t,e,n){"use strict";function r(){return this.lift(new i.MergeAllOperator(1))}var i=n(64);e.concatAll=r},,,,,,function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 1===t.length&&s.isArray(t[0])&&(t=t[0]),this.lift.call(i.apply(void 0,[this].concat(t)))}function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];if(1===t.length){if(!s.isArray(t[0]))return t[0];t=t[0]}return new a.ArrayObservable(t).lift(new l)}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n(31),a=n(32),u=n(3),c=n(4);e.race=r,e.raceStatic=i;var l=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new p(t))},t}();e.RaceOperator=l;var p=function(t){function e(e){t.call(this,e),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}return o(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n<e&&!this.hasFirst;n++){var r=t[n],i=c.subscribeToResult(this,r,r,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}},e.prototype.notifyNext=function(t,e,n,r,i){if(!this.hasFirst){this.hasFirst=!0;for(var o=0;o<this.subscriptions.length;o++)if(o!==n){var s=this.subscriptions[o];s.unsubscribe(),this.remove(s)}this.subscriptions=null}this.destination.next(e)},e}(u.OuterSubscriber);e.RaceSubscriber=p},function(t,e,n){"use strict";function r(){}e.noop=r},function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 1===t.length&&a.isArray(t[0])&&(t=t[0]),this.lift(new l(t))}function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=null;return 1===t.length&&a.isArray(t[0])&&(t=t[0]),n=t.shift(),new s.FromObservable(n,null).lift(new l(t))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n(147),a=n(31),u=n(3),c=n(4);e.onErrorResumeNext=r,e.onErrorResumeNextStatic=i;var l=function(){function t(t){this.nextSources=t}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.nextSources))},t}(),p=function(t){function e(e,n){t.call(this,e),this.destination=e,this.nextSources=n}return o(e,t),e.prototype.notifyError=function(t,e){this.subscribeToNextSource()},e.prototype.notifyComplete=function(t){this.subscribeToNextSource()},e.prototype._error=function(t){this.subscribeToNextSource()},e.prototype._complete=function(){this.subscribeToNextSource()},e.prototype.subscribeToNextSource=function(){var t=this.nextSources.shift();t?this.add(c.subscribeToResult(this,t)):this.destination.complete()},e}(u.OuterSubscriber)},function(t,e,n){"use strict";function r(){if(h.root.XMLHttpRequest)return new h.root.XMLHttpRequest;if(h.root.XDomainRequest)return new h.root.XDomainRequest;throw new Error("CORS is not supported by your browser")}function i(){if(h.root.XMLHttpRequest)return new h.root.XMLHttpRequest;var t=void 0;try{for(var e=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],n=0;n<3;n++)try{if(t=e[n],new h.root.ActiveXObject(t))break}catch(t){}return new h.root.ActiveXObject(t)}catch(t){throw new Error("XMLHttpRequest is not supported by your browser")}}function o(t,e){return void 0===e&&(e=null),new g({method:"GET",url:t,headers:e})}function s(t,e,n){return new g({method:"POST",url:t,body:e,headers:n})}function a(t,e){return new g({method:"DELETE",url:t,headers:e})}function u(t,e,n){return new g({method:"PUT",url:t,body:e,headers:n})}function c(t,e,n){return new g({method:"PATCH",url:t,body:e,headers:n})}function l(t,e){return new g({method:"GET",url:t,responseType:"json",headers:e}).lift(new m.MapOperator(function(t,e){return t.response},null))}var p=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},h=n(16),f=n(17),d=n(14),v=n(0),y=n(2),m=n(63);e.ajaxGet=o,e.ajaxPost=s,e.ajaxDelete=a,e.ajaxPut=u,e.ajaxPatch=c,e.ajaxGetJSON=l;var g=function(t){function e(e){t.call(this);var n={async:!0,createXHR:function(){return this.crossDomain?r.call(this):i()},crossDomain:!1,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof e)n.url=e;else for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);this.request=n}return p(e,t),e.prototype._subscribe=function(t){return new b(t,this.request)},e.create=function(){var t=function(t){return new e(t)};return t.get=o,t.post=s,t.delete=a,t.put=u,t.patch=c,t.getJSON=l,t}(),e}(v.Observable);e.AjaxObservable=g;var b=function(t){function e(e,n){t.call(this,e),this.request=n,this.done=!1;var r=n.headers=n.headers||{};n.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),"Content-Type"in r||h.root.FormData&&n.body instanceof h.root.FormData||void 0===n.body||(r["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),n.body=this.serializeBody(n.body,n.headers["Content-Type"]),this.send()}return p(e,t),e.prototype.next=function(t){this.done=!0;var e=this,n=e.xhr,r=e.request,i=e.destination,o=new _(t,n,r);i.next(o)},e.prototype.send=function(){var t=this,e=t.request,n=t.request,r=n.user,i=n.method,o=n.url,s=n.async,a=n.password,u=n.headers,c=n.body,l=e.createXHR,p=f.tryCatch(l).call(e);if(p===d.errorObject)this.error(d.errorObject.e);else{this.xhr=p,this.setupEvents(p,e);if((r?f.tryCatch(p.open).call(p,i,o,s,r,a):f.tryCatch(p.open).call(p,i,o,s))===d.errorObject)return this.error(d.errorObject.e),null;if(s&&(p.timeout=e.timeout,p.responseType=e.responseType),"withCredentials"in p&&(p.withCredentials=!!e.withCredentials),this.setHeaders(p,u),(c?f.tryCatch(p.send).call(p,c):f.tryCatch(p.send).call(p))===d.errorObject)return this.error(d.errorObject.e),null}return p},e.prototype.serializeBody=function(t,e){if(!t||"string"==typeof t)return t;if(h.root.FormData&&t instanceof h.root.FormData)return t;if(e){var n=e.indexOf(";");-1!==n&&(e=e.substring(0,n))}switch(e){case"application/x-www-form-urlencoded":return Object.keys(t).map(function(e){return encodeURI(e)+"="+encodeURI(t[e])}).join("&");case"application/json":return JSON.stringify(t);default:return t}},e.prototype.setHeaders=function(t,e){for(var n in e)e.hasOwnProperty(n)&&t.setRequestHeader(n,e[n])},e.prototype.setupEvents=function(t,e){function n(t){var e=n,r=e.subscriber,i=e.progressSubscriber,o=e.request;i&&i.error(t),r.error(new x(this,o))}function r(t){var e=r,n=e.subscriber,i=e.progressSubscriber,o=e.request;if(4===this.readyState){var s=1223===this.status?204:this.status,a="text"===this.responseType?this.response||this.responseText:this.response;0===s&&(s=a?200:0),200<=s&&s<300?(i&&i.complete(),n.next(t),n.complete()):(i&&i.error(t),n.error(new w("ajax error "+s,this,o)))}}var i=e.progressSubscriber;if(t.ontimeout=n,n.request=e,n.subscriber=this,n.progressSubscriber=i,t.upload&&"withCredentials"in t){if(i){var o;o=function(t){o.progressSubscriber.next(t)},h.root.XDomainRequest?t.onprogress=o:t.upload.onprogress=o,o.progressSubscriber=i}var s;s=function(t){var e=s,n=e.progressSubscriber,r=e.subscriber,i=e.request;n&&n.error(t),r.error(new w("ajax error",this,i))},t.onerror=s,s.request=e,s.subscriber=this,s.progressSubscriber=i}t.onreadystatechange=r,r.subscriber=this,r.progressSubscriber=i,r.request=e},e.prototype.unsubscribe=function(){var e=this,n=e.done,r=e.xhr;!n&&r&&4!==r.readyState&&"function"==typeof r.abort&&r.abort(),t.prototype.unsubscribe.call(this)},e}(y.Subscriber);e.AjaxSubscriber=b;var _=function(){function t(t,e,n){switch(this.originalEvent=t,this.xhr=e,this.request=n,this.status=e.status,this.responseType=e.responseType||n.responseType,this.responseType){case"json":this.response="response"in e?e.responseType?e.response:JSON.parse(e.response||e.responseText||"null"):JSON.parse(e.responseText||"null");break;case"xml":this.response=e.responseXML;break;case"text":default:this.response="response"in e?e.response:e.responseText}}return t}();e.AjaxResponse=_;var w=function(t){function e(e,n,r){t.call(this,e),this.message=e,this.xhr=n,this.request=r,this.status=n.status}return p(e,t),e}(Error);e.AjaxError=w;var x=function(t){function e(e,n){t.call(this,"ajax timeout",e,n)}return p(e,t),e}(w);e.AjaxTimeoutError=x},function(t,e,n){"use strict";var r=n(308),i=n(309);e.queue=new i.QueueScheduler(r.QueueAction)},function(t,e,n){"use strict";function r(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"number"==typeof e&&(n=e,e=null),this.lift(new a(t,e,n))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(3),s=n(4);e.mergeMapTo=r;var a=function(){function t(t,e,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.ish=t,this.resultSelector=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.ish,this.resultSelector,this.concurrent))},t}();e.MergeMapToOperator=a;var u=function(t){function e(e,n,r,i){void 0===i&&(i=Number.POSITIVE_INFINITY),t.call(this,e),this.ish=n,this.resultSelector=r,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return i(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.resultSelector,n=this.index++,r=this.ish,i=this.destination;this.active++,this._innerSub(r,i,e,t,n)}else this.buffer.push(t)},e.prototype._innerSub=function(t,e,n,r,i){this.add(s.subscribeToResult(this,t,r,i))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this,s=o.resultSelector,a=o.destination;s?this.trySelectResult(t,e,n,r):a.next(e)},e.prototype.trySelectResult=function(t,e,n,r){var i,o=this,s=o.resultSelector,a=o.destination;try{i=s(t,e,n,r)}catch(t){return void a.error(t)}a.next(i)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.OuterSubscriber);e.MergeMapToSubscriber=u},function(t,e,n){"use strict";function r(t,e){return this.lift(new u(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2),s=n(17),a=n(14);e.distinctUntilChanged=r;var u=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.compare,this.keySelector))},t}(),c=function(t){function e(e,n,r){t.call(this,e),this.keySelector=r,this.hasKey=!1,"function"==typeof n&&(this.compare=n)}return i(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e=this.keySelector,n=t;if(e&&(n=s.tryCatch(this.keySelector)(t))===a.errorObject)return this.destination.error(a.errorObject.e);var r=!1;if(this.hasKey){if((r=s.tryCatch(this.compare)(this.key,n))===a.errorObject)return this.destination.error(a.errorObject.e)}else this.hasKey=!0;!1===Boolean(r)&&(this.key=n,this.destination.next(t))},e}(o.Subscriber)},function(t,e,n){"use strict";function r(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return this.lift(new s(t,this,!1,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2);e.find=r;var s=function(){function t(t,e,n,r){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=r}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}();e.FindValueOperator=s;var a=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.source=r,this.yieldIndex=i,this.thisArg=o,this.index=0}return i(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){var e=this,n=e.predicate,r=e.thisArg,i=this.index++;try{n.call(r||this,t,i,this.source)&&this.notifyComplete(this.yieldIndex?i:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(o.Subscriber);e.FindValueSubscriber=a},function(t,e,n){"use strict";var r=n(449),i=n(452);e.asap=new i.AsapScheduler(r.AsapAction)},function(t,e,n){function r(t,e){this._id=t,this._clearFn=e}var i=Function.prototype.apply;e.setTimeout=function(){return new r(i.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new r(i.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(451),e.setImmediate=setImmediate,e.clearImmediate=clearImmediate},,function(t,e,n){"use strict";function r(t,n){return void 0===n&&(n=e.defaultThrottleConfig),this.lift(new a(t,n.leading,n.trailing))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(3),s=n(4);e.defaultThrottleConfig={leading:!0,trailing:!1},e.throttle=r;var a=function(){function t(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.durationSelector,this.leading,this.trailing))},t}(),u=function(t){function e(e,n,r,i){t.call(this,e),this.destination=e,this.durationSelector=n,this._leading=r,this._trailing=i,this._hasTrailingValue=!1}return i(e,t),e.prototype._next=function(t){if(this.throttled)this._trailing&&(this._hasTrailingValue=!0,this._trailingValue=t);else{var e=this.tryDurationSelector(t);e&&this.add(this.throttled=s.subscribeToResult(this,e)),this._leading&&(this.destination.next(t),this._trailing&&(this._hasTrailingValue=!0,this._trailingValue=t))}},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype._unsubscribe=function(){var t=this,e=t.throttled;t._trailingValue,t._hasTrailingValue,t._trailing;this._trailingValue=null,this._hasTrailingValue=!1,e&&(this.remove(e),this.throttled=null,e.unsubscribe())},e.prototype._sendTrailing=function(){var t=this,e=t.destination,n=t.throttled,r=t._trailing,i=t._trailingValue,o=t._hasTrailingValue;n&&r&&o&&(e.next(i),this._trailingValue=null,this._hasTrailingValue=!1)},e.prototype.notifyNext=function(t,e,n,r,i){this._sendTrailing(),this._unsubscribe()},e.prototype.notifyComplete=function(){this._sendTrailing(),this._unsubscribe()},e}(o.OuterSubscriber)},function(t,e,n){"use strict";function r(t){return void 0===t&&(t=s.async),this.lift(new u(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2),s=n(19);e.timeInterval=r;var a=function(){function t(t,e){this.value=t,this.interval=e}return t}();e.TimeInterval=a;var u=function(){function t(t){this.scheduler=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.scheduler))},t}(),c=function(t){function e(e,n){t.call(this,e),this.scheduler=n,this.lastTime=0,this.lastTime=n.now()}return i(e,t),e.prototype._next=function(t){var e=this.scheduler.now(),n=e-this.lastTime;this.lastTime=e,this.destination.next(new a(t,n))},e}(o.Subscriber)},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){var e=t.call(this,"Timeout has occurred");this.name=e.name="TimeoutError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);e.TimeoutError=i},function(t,e,n){"use strict";function r(t){return void 0===t&&(t=s.async),this.lift(new u(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2),s=n(19);e.timestamp=r;var a=function(){function t(t,e){this.value=t,this.timestamp=e}return t}();e.Timestamp=a;var u=function(){function t(t){this.scheduler=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.scheduler))},t}(),c=function(t){function e(e,n){t.call(this,e),this.scheduler=n}return i(e,t),e.prototype._next=function(t){var e=this.scheduler.now();this.destination.next(new a(t,e))},e}(o.Subscriber)},function(t,e,n){"use strict";var r=n(176),i=function(){function t(){this.subscriptions=[]}return t.prototype.logSubscribedFrame=function(){return this.subscriptions.push(new r.SubscriptionLog(this.scheduler.now())),this.subscriptions.length-1},t.prototype.logUnsubscribedFrame=function(t){var e=this.subscriptions,n=e[t];e[t]=new r.SubscriptionLog(n.subscribedFrame,this.scheduler.now())},t}();e.SubscriptionLoggable=i},function(t,e,n){"use strict";var r=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.subscribedFrame=t,this.unsubscribedFrame=e}return t}();e.SubscriptionLog=r},function(t,e,n){"use strict";function r(t,e){for(var n=0,r=e.length;n<r;n++)for(var i=e[n],o=Object.getOwnPropertyNames(i.prototype),s=0,a=o.length;s<a;s++){var u=o[s];t.prototype[u]=i.prototype[u]}}e.applyMixins=r},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(66),o=n(67),s=function(t){function e(e,n){var r=this;void 0===e&&(e=a),void 0===n&&(n=Number.POSITIVE_INFINITY),t.call(this,e,function(){return r.frame}),this.maxFrames=n,this.frame=0,this.index=-1}return r(e,t),e.prototype.flush=function(){for(var t,e,n=this,r=n.actions,i=n.maxFrames;(e=r.shift())&&(this.frame=e.delay)<=i&&!(t=e.execute(e.state,e.delay)););if(t){for(;e=r.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(o.AsyncScheduler);e.VirtualTimeScheduler=s;var a=function(t){function e(e,n,r){void 0===r&&(r=e.index+=1),t.call(this,e,n),this.scheduler=e,this.work=n,this.index=r,this.active=!0,this.index=e.index=r}return r(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(n,r)},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){void 0===n&&(n=0)},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(i.AsyncAction);e.VirtualAction=a},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(0),i=n(221);r.Observable.prototype.debounceTime=i.debounceTime},,function(t,e,n){"use strict";function r(t,e,n){if(t){if(t instanceof i.Subscriber)return t;if(t[o.rxSubscriber])return t[o.rxSubscriber]()}return t||e||n?new i.Subscriber(t,e,n):new i.Subscriber(s.empty)}var i=n(2),o=n(79),s=n(136);e.toSubscriber=r},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(2),o=function(t){function e(e,n,r){t.call(this),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}return r(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(i.Subscriber);e.InnerSubscriber=o},function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=a.async),this.lift(new u(t,e))}function i(t){t.debouncedNext()}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n(2),a=n(19);e.debounceTime=r;var u=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.dueTime,this.scheduler))},t}(),c=function(t){function e(e,n,r){t.call(this,e),this.dueTime=n,this.scheduler=r,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}return o(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(i,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){this.clearDebounce(),this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(s.Subscriber)},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(13),o=function(t){function e(e,n){t.call(this)}return r(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(i.Subscription);e.Action=o},function(t,e,n){"use strict";var r=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=Date.now?Date.now:function(){return+new Date},t}();e.Scheduler=r},function(t,e,n){"use strict";var r=n(225);e._throw=r.ErrorObservable.create},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(0),o=function(t){function e(e,n){t.call(this),this.error=e,this.scheduler=n}return r(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.error;t.subscriber.error(e)},e.prototype._subscribe=function(t){var n=this.error,r=this.scheduler;if(t.syncErrorThrowable=!0,r)return r.schedule(e.dispatch,0,{error:n,subscriber:t});t.error(n)},e}(i.Observable);e.ErrorObservable=o},function(t,e,n){"use strict";function r(t){var e=t[l.iterator];if(!e&&"string"==typeof t)return new h(t);if(!e&&void 0!==t.length)return new f(t);if(!e)throw new TypeError("object is not iterable");return t[l.iterator]()}function i(t){var e=+t.length;return isNaN(e)?0:0!==e&&o(e)?(e=s(e)*Math.floor(Math.abs(e)),e<=0?0:e>d?d:e):e}function o(t){return"number"==typeof t&&u.root.isFinite(t)}function s(t){var e=+t;return 0===e?e:isNaN(e)?e:e<0?-1:1}var a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=n(16),c=n(0),l=n(65),p=function(t){function e(e,n){if(t.call(this),this.scheduler=n,null==e)throw new Error("iterator cannot be null.");this.iterator=r(e)}return a(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.index,n=t.hasError,r=t.iterator,i=t.subscriber;if(n)return void i.error(t.error);var o=r.next();return o.done?void i.complete():(i.next(o.value),t.index=e+1,i.closed?void("function"==typeof r.return&&r.return()):void this.schedule(t))},e.prototype._subscribe=function(t){var n=this,r=n.iterator,i=n.scheduler;if(i)return i.schedule(e.dispatch,0,{index:0,iterator:r,subscriber:t});for(;;){var o=r.next();if(o.done){t.complete();break}if(t.next(o.value),t.closed){"function"==typeof r.return&&r.return();break}}},e}(c.Observable);e.IteratorObservable=p;var h=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=t.length),this.str=t,this.idx=e,this.len=n}return t.prototype[l.iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},t}(),f=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=i(t)),this.arr=t,this.idx=e,this.len=n}return t.prototype[l.iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},t}(),d=Math.pow(2,53)-1},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(0),o=n(100),s=n(43),a=function(t){function e(e,n){t.call(this),this.arrayLike=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return r(e,t),e.create=function(t,n){var r=t.length;return 0===r?new s.EmptyObservable:1===r?new o.ScalarObservable(t[0],n):new e(t,n)},e.dispatch=function(t){var e=t.arrayLike,n=t.index,r=t.length,i=t.subscriber;if(!i.closed){if(n>=r)return void i.complete();i.next(e[n]),t.index=n+1,this.schedule(t)}},e.prototype._subscribe=function(t){var n=this,r=n.arrayLike,i=n.scheduler,o=r.length;if(i)return i.schedule(e.dispatch,0,{arrayLike:r,index:0,length:o,subscriber:t});for(var s=0;s<o&&!t.closed;s++)t.next(r[s]);t.complete()},e}(i.Observable);e.ArrayLikeObservable=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(0),o=n(43),s=n(31),a=n(4),u=n(3),c=function(t){function e(e,n){t.call(this),this.sources=e,this.resultSelector=n}return r(e,t),e.create=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];if(null===t||0===arguments.length)return new o.EmptyObservable;var r=null;return"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&s.isArray(t[0])&&(t=t[0]),0===t.length?new o.EmptyObservable:new e(t,r)},e.prototype._subscribe=function(t){return new l(t,this.sources,this.resultSelector)},e}(i.Observable);e.ForkJoinObservable=c;var l=function(t){function e(e,n,r){t.call(this,e),this.sources=n,this.resultSelector=r,this.completed=0,this.haveValues=0;var i=n.length;this.total=i,this.values=new Array(i);for(var o=0;o<i;o++){var s=n[o],u=a.subscribeToResult(this,s,null,o);u&&(u.outerIndex=o,this.add(u))}}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e,i._hasValue||(i._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,n=this,r=n.haveValues,i=n.resultSelector,o=n.values,s=o.length;if(!t._hasValue)return void e.complete();if(++this.completed===s){if(r===s){var a=i?i.apply(this,o):o;e.next(a)}e.complete()}},e}(u.OuterSubscriber)},,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(n(50),n(247),n(12),n(30),n(75),n(49),n(249));n.n(r)},function(t,e,n){"use strict";var r=n(41),i=n(248),o=n(12),s=n(30),a=n(50),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype.get=function(t){var e,n,r=new Promise(function(t,r){e=t,n=r}),i=new XMLHttpRequest;return i.open("GET",t,!0),i.responseType="text",i.onload=function(){var r=i.response||i.responseText,o=1223===i.status?204:i.status;0===o&&(o=r?200:0),200<=o&&o<=300?e(r):n("Failed to load "+t)},i.onerror=function(){n("Failed to load "+t)},i.send(),r},e}(i.a);u.decorators=[{type:o.C}],u.ctorParameters=function(){return[]};var c=[a.o,{provide:o.i,useValue:{providers:[{provide:i.a,useClass:u}]},multi:!0},{provide:o.V,useValue:s.r}],l=function(t){function e(){var e=t.call(this)||this;if(e._cache=o._53.$templateCache,null==e._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.");return e}return r.a(e,t),e.prototype.get=function(t){return this._cache.hasOwnProperty(t)?Promise.resolve(this._cache[t]):Promise.reject("CachedResourceLoader: Did not find cached template for "+t)},e}(i.a);new o._16("4.3.5"),i.a,Object(o._23)(i.b,"browserDynamic",c)},function(t,e,n){"use strict";function r(t,e,n){void 0===n&&(n=null);var r=[],i=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=i(t);e&&r.push(e)}),r}function i(t){if(":"!=t[0])return[null,t];var e=t.indexOf(":",1);if(-1==e)throw new Error('Unsupported format "'+t+'" expecting ":namespace:name"');return[t.slice(1,e),t.slice(e+1)]}function o(t){return"ng-container"===i(t)[1]}function s(t){return"ng-content"===i(t)[1]}function a(t){return"ng-template"===i(t)[1]}function u(t){return null===t?null:i(t)[0]}function c(t,e){return t?":"+t+":"+e:e}function l(t){return mi[t.toLowerCase()]||gi}function p(t){return t.replace(Ei,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function h(t,e){return d(t,":",e)}function f(t,e){return d(t,".",e)}function d(t,e,n){var r=t.indexOf(e);return-1==r?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function v(t,e,n){return Array.isArray(t)?e.visitArray(t,n):_(t)?e.visitStringMap(t,n):null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t?e.visitPrimitive(t,n):e.visitOther(t,n)}function y(t){return null!==t&&void 0!==t}function m(t){return void 0===t?null:t}function g(t,e){var n=Error(t);return n[Ti]=!0,e&&(n[Pi]=e),n}function b(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function _(t){return"object"==typeof t&&null!==t&&Object.getPrototypeOf(t)===Ai}function w(t){for(var e="",n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r>=55296&&r<=56319&&t.length>n+1){var i=t.charCodeAt(n+1);i>=56320&&i<=57343&&(n++,r=(r-55296<<10)+i-56320+65536)}r<=127?e+=String.fromCharCode(r):r<=2047?e+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?e+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(e+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return e}function x(t){return t.replace(/\W/g,"_")}function S(t){if(!t||!t.reference)return null;var e=t.reference;if(e instanceof hi)return e.name;if(e.__anonymousType)return e.__anonymousType;var n=Object(Xr._74)(e);return n.indexOf("(")>=0?(n="anonymous_"+Ii++,e.__anonymousType=n):n=x(n),n}function E(t){var e=t.reference;return e instanceof hi?e.filePath:"./"+Object(Xr._74)(e)}function C(t,e){return"View_"+S({reference:t})+"_"+e}function O(t){return"RenderType_"+S({reference:t})}function T(t){return"HostView_"+S({reference:t})}function P(t){return S({reference:t})+"NgFactory"}function A(t){return null!=t.value?x(t.value):S(t.identifier)}function k(t){return null!=t.identifier?t.identifier.reference:t.value}function M(t,e,n){var r=_i.parse(e.selector)[0].getMatchingElementTemplate();return Li.create({isHost:!0,type:{reference:t,diDeps:[],lifecycleHooks:[]},template:new Fi({encapsulation:Xr._20.None,template:r,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null}),exportAs:null,changeDetection:Xr.k.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[],componentViewType:n,rendererType:{id:"__Host__",encapsulation:Xr._20.None,styles:[],data:{}},entryComponents:[],componentFactory:null})}function N(t){return t||[]}function R(t){return t.reduce(function(t,e){var n=Array.isArray(e)?R(e):e;return t.concat(n)},[])}function I(t){return t.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function j(t,e,n){var r;return r=n.isInline?e.type.reference instanceof hi?e.type.reference.filePath+"."+e.type.reference.name+".html":S(t)+"/"+S(e.type)+".html":n.templateUrl,I(r)}function D(t,e){var n=t.moduleUrl.split(/\/\\/g);return I("css/"+e+n[n.length-1]+".ngstyle.js")}function F(t){return I(S(t.type)+"/module.ngfactory.js")}function L(t,e){return I(S(t)+"/"+S(e.type)+".ngfactory.js")}function V(t){return t>=wo&&t<=Oo||t==Zo}function U(t){return Do<=t&&t<=Fo}function B(t){return t>=qo&&t<=Yo||t>=Lo&&t<=Bo}function H(t){return t>=qo&&t<=Wo||t>=Lo&&t<=Uo||U(t)}function q(){return function(t){return t}}function z(t,e){if(Object(Xr._27)()&&null!=e){if(!Array.isArray(e))throw new Error("Expected '"+t+"' to be an array of strings.");for(var n=0;n<e.length;n+=1)if("string"!=typeof e[n])throw new Error("Expected '"+t+"' to be an array of strings.")}}function W(t,e){if(!(null==e||Array.isArray(e)&&2==e.length))throw new Error("Expected '"+t+"' to be an array, [start, end].");if(Object(Xr._27)()&&null!=e){var n=e[0],r=e[1];ts.forEach(function(t){if(t.test(n)||t.test(r))throw new Error("['"+n+"', '"+r+"'] contains unusable interpolation symbol.")})}}function K(t,e){return new ss(t,rs.Character,e,String.fromCharCode(e))}function G(t,e){return new ss(t,rs.Identifier,0,e)}function Q(t,e){return new ss(t,rs.Keyword,0,e)}function X(t,e){return new ss(t,rs.Operator,0,e)}function Y(t,e){return new ss(t,rs.String,0,e)}function J(t,e){return new ss(t,rs.Number,e,"")}function Z(t,e){return new ss(t,rs.Error,0,e)}function $(t){return qo<=t&&t<=Yo||Lo<=t&&t<=Bo||t==Ho||t==Po}function tt(t){if(0==t.length)return!1;var e=new us(t);if(!$(e.peek))return!1;for(e.advance();e.peek!==_o;){if(!et(e.peek))return!1;e.advance()}return!0}function et(t){return B(t)||U(t)||t==Ho||t==Po}function nt(t){return t==zo||t==Vo}function rt(t){return t==Mo||t==ko}function it(t){return t===Ao||t===To||t===$o}function ot(t){switch(t){case Ko:return xo;case Wo:return Eo;case Go:return Co;case Qo:return wo;case Xo:return So;default:return t}}function st(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function at(t){var e=b(t.start)+"([\\s\\S]*?)"+b(t.end);return new RegExp(e,"g")}function ut(t,e){var n=E(e),r=null!=n?"in "+t+" "+S(e)+" in "+n:"in "+t+" "+S(e),i=new vs("",r);return new ys(new ds(i,-1,-1,-1),new ds(i,-1,-1,-1))}function ct(t,e,n){void 0===n&&(n=null);var r=[],i=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=i(t);e&&r.push(e)}),r}function lt(t,e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=ns),new Ms(new vs(t,e),n,r,i).tokenize()}function pt(t){return'Unexpected character "'+(t===_o?"EOF":String.fromCharCode(t))+'"'}function ht(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or  "&#x<hex>;" syntax'}function ft(t){return!V(t)||t===_o}function dt(t){return V(t)||t===jo||t===No||t===Ao||t===To||t===Io}function vt(t){return(t<qo||Yo<t)&&(t<Lo||Bo<t)&&(t<Do||t>Fo)}function yt(t){return t==Ro||t==_o||!H(t)}function mt(t){return t==Ro||t==_o||!B(t)}function gt(t,e,n){var r=!!n&&t.indexOf(n.start,e)==e;return t.charCodeAt(e)==Jo&&!r}function bt(t){return t===Io||B(t)||U(t)}function _t(t,e){return wt(t)==wt(e)}function wt(t){return t>=qo&&t<=Yo?t-qo+Lo:t}function xt(t){for(var e=[],n=void 0,r=0;r<t.length;r++){var i=t[r];n&&n.type==Cs.TEXT&&i.type==Cs.TEXT?(n.parts[0]+=i.parts[0],n.sourceSpan.end=i.sourceSpan.end):(n=i,e.push(n))}return e}function St(t,e){return t.length>0&&t[t.length-1]===e}function Et(t){return t.id||Tt(Ot(t.nodes).join("")+"["+t.meaning+"]")}function Ct(t){if(t.id)return t.id;var e=new Ls;return kt(t.nodes.map(function(t){return t.visit(e,null)}).join(""),t.meaning)}function Ot(t){return t.map(function(t){return t.visit(Fs,null)})}function Tt(t){var e=w(t),n=Vt(e,Vs.Big),r=8*e.length,i=new Array(80),o=[1732584193,4023233417,2562383102,271733878,3285377520],s=o[0],a=o[1],u=o[2],c=o[3],l=o[4];n[r>>5]|=128<<24-r%32,n[15+(r+64>>9<<4)]=r;for(var p=0;p<n.length;p+=16){for(var h=[s,a,u,c,l],f=h[0],d=h[1],v=h[2],y=h[3],m=h[4],g=0;g<80;g++){i[g]=g<16?n[p+g]:Ft(i[g-3]^i[g-8]^i[g-14]^i[g-16],1);var b=Pt(g,a,u,c),_=b[0],x=b[1],S=[Ft(s,5),_,l,x,i[g]].reduce(Rt);E=[c,u,Ft(a,30),s,S],l=E[0],c=E[1],u=E[2],a=E[3],s=E[4]}C=[Rt(s,f),Rt(a,d),Rt(u,v),Rt(c,y),Rt(l,m)],s=C[0],a=C[1],u=C[2],c=C[3],l=C[4]}return zt(Ht([s,a,u,c,l]));var E,C}function Pt(t,e,n,r){return t<20?[e&n|~e&r,1518500249]:t<40?[e^n^r,1859775393]:t<60?[e&n|e&r|n&r,2400959708]:[e^n^r,3395469782]}function At(t){var e=w(t),n=[Mt(e,0),Mt(e,102072)],r=n[0],i=n[1];return 0!=r||0!=i&&1!=i||(r^=319790063,i^=-1801410264),[r,i]}function kt(t,e){var n=At(t),r=n[0],i=n[1];if(e){var o=At(e),s=o[0],a=o[1];u=jt(Lt([r,i],1),[s,a]),r=u[0],i=u[1]}return Wt(Ht([2147483647&r,i]));var u}function Mt(t,e){var n,r=[2654435769,2654435769],i=r[0],o=r[1],s=t.length;for(n=0;n+12<=s;n+=12)i=Rt(i,Bt(t,n,Vs.Little)),o=Rt(o,Bt(t,n+4,Vs.Little)),e=Rt(e,Bt(t,n+8,Vs.Little)),a=Nt([i,o,e]),i=a[0],o=a[1],e=a[2];return i=Rt(i,Bt(t,n,Vs.Little)),o=Rt(o,Bt(t,n+4,Vs.Little)),e=Rt(e,s),e=Rt(e,Bt(t,n+8,Vs.Little)<<8),Nt([i,o,e])[2];var a}function Nt(t){var e=t[0],n=t[1],r=t[2];return e=Dt(e,n),e=Dt(e,r),e^=r>>>13,n=Dt(n,r),n=Dt(n,e),n^=e<<8,r=Dt(r,e),r=Dt(r,n),r^=n>>>13,e=Dt(e,n),e=Dt(e,r),e^=r>>>12,n=Dt(n,r),n=Dt(n,e),n^=e<<16,r=Dt(r,e),r=Dt(r,n),r^=n>>>5,e=Dt(e,n),e=Dt(e,r),e^=r>>>3,n=Dt(n,r),n=Dt(n,e),n^=e<<10,r=Dt(r,e),r=Dt(r,n),r^=n>>>15,[e,n,r]}function Rt(t,e){return It(t,e)[1]}function It(t,e){var n=(65535&t)+(65535&e),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function jt(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],s=It(r,o),a=s[0],u=s[1];return[Rt(Rt(n,i),a),u]}function Dt(t,e){var n=(65535&t)-(65535&e);return(t>>16)-(e>>16)+(n>>16)<<16|65535&n}function Ft(t,e){return t<<e|t>>>32-e}function Lt(t,e){var n=t[0],r=t[1];return[n<<e|r>>>32-e,r<<e|n>>>32-e]}function Vt(t,e){for(var n=Array(t.length+3>>>2),r=0;r<n.length;r++)n[r]=Bt(t,4*r,e);return n}function Ut(t,e){return e>=t.length?0:255&t.charCodeAt(e)}function Bt(t,e,n){var r=0;if(n===Vs.Big)for(var i=0;i<4;i++)r+=Ut(t,e+i)<<24-8*i;else for(var i=0;i<4;i++)r+=Ut(t,e+i)<<8*i;return r}function Ht(t){return t.reduce(function(t,e){return t+qt(e)},"")}function qt(t){for(var e="",n=0;n<4;n++)e+=String.fromCharCode(t>>>8*(3-n)&255);return e}function zt(t){for(var e="",n=0;n<t.length;n++){var r=Ut(t,n);e+=(r>>>4).toString(16)+(15&r).toString(16)}return e.toLowerCase()}function Wt(t){for(var e="",n="1",r=t.length-1;r>=0;r--)e=Kt(e,Gt(Ut(t,r),n)),n=Gt(256,n);return e.split("").reverse().join("")}function Kt(t,e){for(var n="",r=Math.max(t.length,e.length),i=0,o=0;i<r||o;i++){var s=o+ +(t[i]||0)+ +(e[i]||0);s>=10?(o=1,n+=s-10):(o=0,n+=s)}return n}function Gt(t,e){for(var n="",r=e;0!==t;t>>>=1)1&t&&(n=Kt(n,r)),r=Kt(r,r);return n}function Qt(t){var e=new Zs(Js,t);return function(t,n,r,i){return e.toI18nMessage(t,n,r,i)}}function Xt(t){return t.split($s)[2]}function Yt(t,e,n,r){return new aa(n,r).extract(t,e)}function Jt(t,e,n,r,i){return new aa(r,i).merge(t,e,n)}function Zt(t){return!!(t instanceof Es&&t.value&&t.value.startsWith("i18n"))}function $t(t){return!!(t instanceof Es&&t.value&&"/i18n"===t.value)}function te(t){return t.attrs.find(function(t){return t.name===ea})||null}function ee(t){if(!t)return{meaning:"",description:"",id:""};var e=t.indexOf(ia),n=t.indexOf(ra),r=e>-1?[t.slice(0,e),t.slice(e+2)]:[t,""],i=r[0],o=r[1],s=n>-1?[i.slice(0,n),i.slice(n+1)]:["",i];return{meaning:s[0],description:s[1],id:o}}function ne(t){return ca}function re(t){return t.map(function(t){return t.visit(da)}).join("")}function ie(t){return _a.reduce(function(t,e){return t.replace(e[0],e[1])},t)}function oe(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}function se(t){switch(t.toLowerCase()){case"br":case"b":case"i":case"u":return"fmt";case"img":return"image";case"a":return"link";default:return"other"}}function ae(t){return Ct(t)}function ue(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}function ce(t,e,n){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var r=n();return Object.defineProperty(t,e,{enumerable:!0,value:r}),r},set:function(t){throw new Error("Could not overwrite an XTB translation")}})}function le(t){switch(t=(t||"xlf").toLowerCase()){case"xmb":return new Aa;case"xtb":return new Na;case"xliff2":case"xlf2":return new Ca;case"xliff":case"xlf":default:return new wa}}function pe(t){return{identifier:{reference:t}}}function he(t,e){return pe(t.resolveExternalReference(e))}function fe(t){var e=new za;return new Ha(ct(e,t),e.isExpanded,e.errors)}function de(t,e){var n=t.cases.map(function(t){-1!=Ba.indexOf(t.value)||t.value.match(/^=\d+$/)||e.push(new qa(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+Ba.join(", ")));var n=fe(t.expression);return e.push.apply(e,n.errors),new Ss("ng-template",[new xs("ngPluralCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new xs("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new Ss("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function ve(t,e){var n=t.cases.map(function(t){var n=fe(t.expression);return e.push.apply(e,n.errors),"other"===t.value?new Ss("ng-template",[new xs("ngSwitchDefault","",t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new Ss("ng-template",[new xs("ngSwitchCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new xs("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new Ss("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function ye(t,e){var n=e.useExisting,r=e.useValue,i=e.deps;return{token:t.token,useClass:t.useClass,useExisting:n,useFactory:t.useFactory,useValue:r,deps:i,multi:t.multi}}function me(t,e){var n=e.eager,r=e.providers;return new ai(t.token,t.multiProvider,t.eager||n,r,t.providerType,t.lifecycleHooks,t.sourceSpan)}function ge(t,e,n){var r=new Map;return t.forEach(function(t){be([{token:{identifier:t.type},useClass:t.type}],t.isComponent?ui.Component:ui.Directive,!0,e,n,r)}),t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent})).forEach(function(t){be(t.providers,ui.PublicService,!1,e,n,r),be(t.viewProviders,ui.PrivateService,!1,e,n,r)}),r}function be(t,e,n,r,i,o){t.forEach(function(t){var s=o.get(k(t.token));if(null!=s&&!!s.multiProvider!=!!t.multi&&i.push(new Wa("Mixing multi and non multi provider is not possible for token "+A(s.token),r)),s)t.multi||(s.providers.length=0),s.providers.push(t);else{var a=t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[],u=!(t.useClass||t.useExisting||t.useFactory);s=new ai(t.token,!!t.multi,n||u,[t],e,a,r),o.set(k(t.token),s)}})}function _e(t){var e=1,n=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return xe(n,{meta:t,queryId:e++})}),n}function we(t,e){var n=t,r=new Map;return e.forEach(function(t,e){t.queries&&t.queries.forEach(function(t){return xe(r,{meta:t,queryId:n++})})}),r}function xe(t,e){e.meta.selectors.forEach(function(n){var r=t.get(k(n));r||(r=[],t.set(k(n),r)),r.push(e)})}function Se(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match($a);return null===e||"package"==e[1]||"asset"==e[1]}function Ee(t,e,n){var r=[],i=n.replace(Za,"").replace(Ja,function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=n[1]||n[2];return Se(o)?(r.push(t.resolve(e,o)),""):n[0]});return new Ya(i,r)}function Ce(t){return"@"==t[0]}function Oe(t,e,n,r){var i=[];return _i.parse(e).forEach(function(e){var o=e.element?[e.element]:t.allKnownElementNames(),s=new Set(e.notSelectors.filter(function(t){return t.isElementSelector()}).map(function(t){return t.element})),a=o.filter(function(t){return!s.has(t)});i.push.apply(i,a.map(function(e){return t.securityContext(e,n,r)}))}),0===i.length?[Xr._6.NONE]:Array.from(new Set(i)).sort()}function Te(t){var e=null,n=null,r=null,i=!1,o=null;t.attrs.forEach(function(t){var s=t.name.toLowerCase();s==iu?e=t.value:s==au?n=t.value:s==su?r=t.value:t.name==pu?i=!0:t.name==hu&&t.value.length>0&&(o=t.value)}),e=Pe(e);var a=t.name.toLowerCase(),u=fu.OTHER;return s(a)?u=fu.NG_CONTENT:a==cu?u=fu.STYLE:a==lu?u=fu.SCRIPT:a==ou&&r==uu&&(u=fu.STYLESHEET),new du(u,e,n,i,o)}function Pe(t){return null===t||0===t.length?"*":t}function Ae(t){return function(e){return-1===t.indexOf(e.msg)||(_u[e.msg]=(_u[e.msg]||0)+1,_u[e.msg]<=1)}}function ke(t){return t.trim().split(/\s+/g)}function Me(t,e){var n=new _i,r=i(t)[1];n.setElement(r);for(var o=0;o<e.length;o++){var s=e[o][0],a=i(s)[1],u=e[o][1];if(n.addAttribute(a,u),s.toLowerCase()==mu){ke(u).forEach(function(t){return n.addClassName(t)})}}return n}function Ne(t){return t instanceof bs&&0==t.value.trim().length}function Re(t){var e=new Map;return t.forEach(function(t){e.get(t.type.reference)||e.set(t.type.reference,t)}),Array.from(e.values())}function Ie(t){return t instanceof yo&&(t=t.ast),t instanceof Xi}function je(t,e,n){if(a(t.name))return!0;var r=i(t.name)[1];return!(r.toLowerCase()!==yu||!e||r.toLowerCase()!==yu)&&(n(bu,t.sourceSpan),!0)}function De(){return new Ru(".")}function Fe(t){var e=Ve(t);return e&&e[ju.Scheme]||""}function Le(t,e,n,r,i,o,s){var a=[];return null!=t&&a.push(t+":"),null!=n&&(a.push("//"),null!=e&&a.push(e+"@"),a.push(n),null!=r&&a.push(":"+r)),null!=i&&a.push(i),null!=o&&a.push("?"+o),null!=s&&a.push("#"+s),a.join("")}function Ve(t){return t.match(Iu)}function Ue(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",n="/"===t[t.length-1]?"/":"",r=t.split("/"),i=[],o=0,s=0;s<r.length;s++){var a=r[s];switch(a){case"":case".":break;case"..":i.length>0?i.pop():o++;break;default:i.push(a)}}if(""==e){for(;o-- >0;)i.unshift("..");0===i.length&&i.push(".")}return e+i.join("/")+n}function Be(t){var e=t[ju.Path];return e=null==e?"":Ue(e),t[ju.Path]=e,Le(t[ju.Scheme],t[ju.UserInfo],t[ju.Domain],t[ju.Port],e,t[ju.QueryData],t[ju.Fragment])}function He(t,e){var n=Ve(encodeURI(e)),r=Ve(t);if(null!=n[ju.Scheme])return Be(n);n[ju.Scheme]=r[ju.Scheme];for(var i=ju.Scheme;i<=ju.Port;i++)null==n[i]&&(n[i]=r[i]);if("/"==n[ju.Path][0])return Be(n);var o=r[ju.Path];null==o&&(o="/");var s=o.lastIndexOf("/");return o=o.substring(0,s+1)+n[ju.Path],n[ju.Path]=o,Be(n)}function qe(t){return t instanceof Xr.u}function ze(t,e){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return t[n];return null}function We(t,e){void 0===e&&(e=!1);var n=Qe(t,e);return n[0]+".ngfactory"+n[1]}function Ke(t){return t.replace(Uu,".")}function Ge(t){return Uu.test(t)}function Qe(t,e){if(void 0===e&&(e=!1),t.endsWith(".d.ts"))return[t.slice(0,-5),e?".ts":".d.ts"];var n=t.lastIndexOf(".");return-1!==n?[t.substring(0,n),t.substring(n)]:[t,""]}function Xe(t){return t.replace(Vu,"")+".ngsummary.json"}function Ye(t,e){void 0===e&&(e=!1);var n=Qe(Ke(t),e);return n[0]+".ngsummary"+n[1]}function Je(t){return t.replace(Bu,".")}function Ze(t){return t+"NgSummary"}function $e(t){return t.replace(Hu,"")}function tn(t,e,n){return t.hasLifecycleHook(n,nn(e))}function en(t,e){return zu.filter(function(n){return tn(t,n,e)})}function nn(t){switch(t){case qu.OnInit:return"ngOnInit";case qu.OnDestroy:return"ngOnDestroy";case qu.DoCheck:return"ngDoCheck";case qu.OnChanges:return"ngOnChanges";case qu.AfterContentInit:return"ngAfterContentInit";case qu.AfterContentChecked:return"ngAfterContentChecked";case qu.AfterViewInit:return"ngAfterViewInit";case qu.AfterViewChecked:return"ngAfterViewChecked"}}function rn(t){return t instanceof Xr.M}function on(t){return t instanceof Xr.X}function sn(t,e){if(void 0===e&&(e=[]),t)for(var n=0;n<t.length;n++){var r=Object(Xr._30)(t[n]);Array.isArray(r)?sn(r,e):e.push(r)}return e}function an(t){return t?Array.from(new Set(t)):[]}function un(t){return an(sn(t))}function cn(t){return t instanceof hi||t instanceof Xr._15}function ln(t,e){v(t,new Ju,e)}function pn(t){return t instanceof hi?t.name+" in "+t.filePath:Object(Xr._74)(t)}function hn(t){var e=Error("Can't compile synchronously as "+Object(Xr._74)(t)+" is still being loaded!");return e[Xr._41]=t,e}function fn(t){var e=new Zc;return e.visitAllStatements(t,null),e.varNames}function dn(t,e){if(!e)return t;var n=new $c(e);return t.visitStatement(n,null)}function vn(t,e){if(!e)return t;var n=new $c(e);return t.visitExpression(n,null)}function yn(t,e,n){return new pc(t,e,n)}function mn(t,e,n){return void 0===e&&(e=null),new _c(t,null,e,n)}function gn(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),null!=t?bn(mn(t,e,null),n):null}function bn(t,e){return void 0===e&&(e=null),null!=t?new nc(t,e):null}function _n(t,e,n){return new Mc(t,e,n)}function wn(t,e){return void 0===e&&(e=null),new Rc(t.map(function(t){return new Nc(t.key,t.value,t.quoted)}),e,null)}function xn(t,e){return new Sc(t,e)}function Sn(t,e){return new Ec(t,e)}function En(t,e,n,r){return new Tc(t,e,n,r)}function Cn(t,e,n){return new bc(t,e,n)}function On(t,e,n){return void 0===n&&(n=null),v(e,new tl(t),n)}function Tn(t,e){var n=0;e.eager||(n|=4096),e.providerType===ui.PrivateService&&(n|=8192),e.lifecycleHooks.forEach(function(t){t!==qu.OnDestroy&&e.providerType!==ui.Directive&&e.providerType!==ui.Component||(n|=Nn(t))});var r=e.multiProvider?Pn(t,n,e.providers):An(t,n,e.providerType,e.providers[0]);return{providerExpr:r.providerExpr,flags:r.flags,depsExpr:r.depsExpr,tokenExpr:kn(t,e.token)}}function Pn(t,e,n){function r(e,n){return n.map(function(n,r){var s="p"+e+"_"+r;return o.push(new Oc(s,oc)),i.push(Mn(t,n)),yn(s)})}var i=[],o=[],s=n.map(function(e,n){var i;if(e.useClass){var o=r(n,e.deps||e.useClass.diDeps);i=t.importExpr(e.useClass.reference).instantiate(o)}else if(e.useFactory){var o=r(n,e.deps||e.useFactory.diDeps);i=t.importExpr(e.useFactory.reference).callFn(o)}else if(e.useExisting){var o=r(n,[{token:e.useExisting}]);i=o[0]}else i=On(t,e.useValue);return i});return{providerExpr:En(o,[new Hc(_n(s))],sc),flags:1024|e,depsExpr:_n(i)}}function An(t,e,n,r){var i,o;return n===ui.Directive||n===ui.Component?(i=t.importExpr(r.useClass.reference),e|=16384,o=r.deps||r.useClass.diDeps):r.useClass?(i=t.importExpr(r.useClass.reference),e|=512,o=r.deps||r.useClass.diDeps):r.useFactory?(i=t.importExpr(r.useFactory.reference),e|=1024,o=r.deps||r.useFactory.diDeps):r.useExisting?(i=jc,e|=2048,o=[{token:r.useExisting}]):(i=On(t,r.useValue),e|=256,o=[]),{providerExpr:i,flags:e,depsExpr:_n(o.map(function(e){return Mn(t,e)}))}}function kn(t,e){return e.identifier?t.importExpr(e.identifier.reference):Cn(e.value)}function Mn(t,e){var n=e.isValue?On(t,e.value):kn(t,e.token),r=0;return e.isSkipSelf&&(r|=1),e.isOptional&&(r|=2),e.isValue&&(r|=8),0===r?n:_n([Cn(r),n])}function Nn(t){var e=0;switch(t){case qu.AfterContentChecked:e=2097152;break;case qu.AfterContentInit:e=1048576;break;case qu.AfterViewChecked:e=8388608;break;case qu.AfterViewInit:e=4194304;break;case qu.DoCheck:e=262144;break;case qu.OnChanges:e=524288;break;case qu.OnDestroy:e=131072;break;case qu.OnInit:e=65536}return e}function Rn(t,e,n,r){var i=r.map(function(t){return e.importExpr(t.componentFactory)}),o=he(t,Ua.ComponentFactoryResolver),s={diDeps:[{isValue:!0,value:_n(i)},{token:o,isSkipSelf:!0,isOptional:!0},{token:he(t,Ua.NgModuleRef)}],lifecycleHooks:[],reference:t.resolveExternalReference(Ua.CodegenComponentFactoryResolver)},a=An(e,n,ui.PrivateService,{token:o,multi:!1,useClass:s});return{providerExpr:a.providerExpr,flags:a.flags,depsExpr:a.depsExpr,tokenExpr:kn(e,o)}}function In(t){var e="";t=w(t);for(var n=0;n<t.length;){var r=t.charCodeAt(n++),i=t.charCodeAt(n++),o=t.charCodeAt(n++);e+=Dn(r>>2),e+=Dn((3&r)<<4|(isNaN(i)?0:i>>4)),e+=isNaN(i)?"=":Dn((15&i)<<2|o>>6),e+=isNaN(i)||isNaN(o)?"=":Dn(63&o)}return e}function jn(t){t=t<0?1+(-t<<1):t<<1;var e="";do{var n=31&t;t>>=5,t>0&&(n|=32),e+=Dn(n)}while(t>0);return e}function Dn(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return ol[t]}function Fn(t,e,n){if(void 0===n&&(n=!0),null==t)return null;var r=t.replace(sl,function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return"$"==t[0]?e?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":"\\"+t[0]});return n||!al.test(r)?"'"+r+"'":r}function Ln(t){for(var e="",n=0;n<t;n++)e+=ul;return e}function Vn(t){var e=new dl,n=hl.createRoot();return(Array.isArray(t)?t:[t]).forEach(function(t){if(t instanceof Lc)t.visitStatement(e,n);else if(t instanceof cc)t.visitExpression(e,n);else{if(!(t instanceof $u))throw new Error("Don't know how to print debug info for "+t);t.visitType(e,n)}}),n.toSource()}function Un(t,e){for(var n=0,r=e;n<r.length;n++){var i=r[n];vl[i.toLowerCase()]=t}}function Bn(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}function Hn(t){return t.replace(Bl,"")}function qn(t){var e=t.match(Hl);return e?e[0]:""}function zn(t,e){var n=Wn(t),r=0;return n.escapedString.replace(ql,function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var o=t[2],s="",a=t[4],u="";a&&a.startsWith("{"+Gl)&&(s=n.blocks[r++],a=a.substring(Gl.length+1),u="{");var c=e(new Ql(o,s));return""+t[1]+c.selector+t[3]+u+c.content+a})}function Wn(t){for(var e=t.split(zl),n=[],r=[],i=0,o=[],s=0;s<e.length;s++){var a=e[s];a==Kl&&i--,i>0?o.push(a):(o.length>0&&(r.push(o.join("")),n.push(Gl),o=[]),n.push(a)),a==Wl&&i++}return o.length>0&&(r.push(o.join("")),n.push(Gl)),new Xl(n.join(""),r)}function Kn(t){var e="styles";return t&&(e+="_"+S(t.type)),e}function Gn(t,e,n,r){t||(t=new op);var i=Qn({createLiteralArrayConverter:function(t){return function(t){return _n(t)}},createLiteralMapConverter:function(t){return function(e){return wn(t.map(function(t,n){return{key:t.key,value:e[n],quoted:t.quoted}}))}},createPipeConverter:function(t){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: "+t)}},n),o=new ip(t,e,r),s=[];rr(i.visit(o,np.Statement),s),$n(o.temporaryCount,r,s);var a=s.length-1,u=null;if(a>=0){var c=s[a],l=sr(c);l&&(u=or(r),s[a]=u.set(l.cast(oc).notIdentical(Cn(!1))).toDeclStmt(null,[Fc.Final]))}return new tp(s,u)}function Qn(t,e){return Yn(t,e)}function Xn(t,e,n,r){t||(t=new op);var i=ir(r),o=[],s=new ip(t,e,r),a=n.visit(s,np.Expression);if(s.temporaryCount)for(var u=0;u<s.temporaryCount;u++)o.push(Zn(r,u));return o.push(i.set(a).toDeclStmt(null,[Fc.Final])),new ep(o,i)}function Yn(t,e){var n=new rp(t);return e.visit(n)}function Jn(t,e){return"tmp_"+t+"_"+e}function Zn(t,e){return new Vc(Jn(t,e),jc)}function $n(t,e,n){for(var r=t-1;r>=0;r--)n.unshift(Zn(e,r))}function tr(t,e){if(t!==np.Statement)throw new Error("Expected a statement, but saw "+e)}function er(t,e){if(t!==np.Expression)throw new Error("Expected an expression, but saw "+e)}function nr(t,e){return t===np.Statement?e.toStmt():e}function rr(t,e){Array.isArray(t)?t.forEach(function(t){return rr(t,e)}):e.push(t)}function ir(t){return yn("currVal_"+t)}function or(t){return yn("pd_"+t)}function sr(t){return t instanceof Bc?t.expr:t instanceof Hc?t.value:null}function ar(t){var e=t[t.length-1];return e instanceof ii?e.hasViewContainer:e instanceof ri?o(e.name)&&e.children.length?ar(e.children):e.hasViewContainer:e instanceof ci}function ur(t,e){switch(t.type){case li.Attribute:return _n([Cn(1),Cn(t.name),Cn(t.securityContext)]);case li.Property:return _n([Cn(8),Cn(t.name),Cn(t.securityContext)]);case li.Animation:return _n([Cn(8|(e&&e.directive.isComponent?32:16)),Cn("@"+t.name),Cn(t.securityContext)]);case li.Class:return _n([Cn(2),Cn(t.name),jc]);case li.Style:return _n([Cn(4),Cn(t.name),Cn(t.unit)])}}function cr(t){var e=Object.create(null);return t.attrs.forEach(function(t){e[t.name]=t.value}),t.directives.forEach(function(t){Object.keys(t.directive.hostAttributes).forEach(function(n){var r=t.directive.hostAttributes[n],i=e[n];e[n]=null!=i?lr(n,i,r):r})}),_n(Object.keys(e).sort().map(function(t){return _n([Cn(t),Cn(e[t])])}))}function lr(t,e,n){return t==ap||t==up?e+" "+n:n}function pr(t,e){return e.length>10?fp.callFn([hp,Cn(t),Cn(1),_n(e)]):fp.callFn([hp,Cn(t),Cn(0)].concat(e))}function hr(t,e,n){return mn(Ua.unwrapValue).callFn([hp,Cn(t),Cn(e),n])}function fr(t,e){return void 0===e&&(e=new Map),t.forEach(function(t){var n=new Set,r=new Set,i=void 0;t instanceof ri?(fr(t.children,e),t.children.forEach(function(t){var i=e.get(t);i.staticQueryIds.forEach(function(t){return n.add(t)}),i.dynamicQueryIds.forEach(function(t){return r.add(t)})}),i=t.queryMatches):t instanceof ii&&(fr(t.children,e),t.children.forEach(function(t){var n=e.get(t);n.staticQueryIds.forEach(function(t){return r.add(t)}),n.dynamicQueryIds.forEach(function(t){return r.add(t)})}),i=t.queryMatches),i&&i.forEach(function(t){return n.add(t.queryId)}),r.forEach(function(t){return n.delete(t)}),e.set(t,{staticQueryIds:n,dynamicQueryIds:r})}),e}function dr(t){var e=new Set,n=new Set;return Array.from(t.values()).forEach(function(t){t.staticQueryIds.forEach(function(t){return e.add(t)}),t.dynamicQueryIds.forEach(function(t){return n.add(t)})}),n.forEach(function(t){return e.delete(t)}),{staticQueryIds:e,dynamicQueryIds:n}}function vr(t,e){return t.isAnimation?{name:"@"+t.name+"."+t.phase,target:e&&e.directive.isComponent?"component":null}:t}function yr(t,e,n){var r=0;return!n||!t.staticQueryIds.has(e)&&t.dynamicQueryIds.has(e)?r|=536870912:r|=268435456,r}function mr(t,e,n,r,i){var o=new bp(n,e),s=new _p(t,n);r.forEach(function(t){return o.addOrMergeSummary({symbol:t.symbol,metadata:t.metadata})});for(var a=0;a<o.symbols.length;a++){var u=o.symbols[a];if(e.isLibraryFile(u.filePath)){var c=e.resolveSummary(u);if(!c){var l=n.resolveSymbol(u);l&&(c={symbol:l.symbol,metadata:l.metadata})}c&&(c.type&&s.addLibType(c.type),o.addOrMergeSummary(c))}}i.forEach(function(t){var n=t.summary,r=t.metadata;if(s.addSourceType(n,r),o.addOrMergeSummary({symbol:n.type.reference,metadata:null,type:n}),n.summaryKind===ji.NgModule){var i=n;i.exportedDirectives.concat(i.exportedPipes).forEach(function(t){var n=t.reference;if(e.isLibraryFile(n.filePath)){var r=e.resolveSummary(n);r&&o.addOrMergeSummary(r)}})}});var p=o.serialize(),h=p.json,f=p.exportAs;return s.serialize(f),{json:h,exportAs:f}}function gr(t,e){return new wp(t).deserialize(e)}function br(t,e){return _r(t,e,jc)}function _r(t,e,n){var r=Ze(e.name);t.statements.push(En([],[new Hc(n)],new rc(oc)).toDeclStmt(r,[Fc.Final,Fc.Exported]))}function wr(t,e){t.statements.push(mn(e).toStmt())}function xr(t,e,n,r){e.dependencies.forEach(function(e){e.setValue(t.getStaticSymbol(Sr(e.moduleUrl,n,r),e.name))})}function Sr(t,e,n){return t+(e?".shim":"")+".ngstyle"+n}function Er(t,e,n){var r=Pr(t,e,n);return Or(t,r.ngModules,r.symbolsMissingModule,n)}function Cr(t,e,n){var r=Er(t,e,n);if(r.symbolsMissingModule&&r.symbolsMissingModule.length){throw g(r.symbolsMissingModule.map(function(t){return"Cannot determine the module for class "+t.name+" in "+t.filePath+"! Add "+t.name+" to the NgModule to fix it."}).join("\n"))}return r}function Or(t,e,n,r){var i=new Map;e.forEach(function(t){return i.set(t.type.reference,t)});var o=new Map,s=new Map,a=new Map,u=new Map,c=new Map,l=new Set;t.forEach(function(t){var e=t.filePath;l.add(e),r.isInjectable(t)&&c.set(e,(c.get(e)||[]).concat(t))}),e.forEach(function(t){var e=t.type.reference.filePath;l.add(e),s.set(e,(s.get(e)||[]).concat(t.type.reference)),t.declaredDirectives.forEach(function(e){var n=e.reference.filePath;l.add(n),a.set(n,(a.get(n)||[]).concat(e.reference)),o.set(e.reference,t)}),t.declaredPipes.forEach(function(e){var n=e.reference.filePath;l.add(n),u.set(n,(u.get(n)||[]).concat(e.reference)),o.set(e.reference,t)})});var p=[];return l.forEach(function(t){var e=a.get(t)||[],n=u.get(t)||[],r=s.get(t)||[],i=c.get(t)||[];p.push({srcUrl:t,directives:e,pipes:n,ngModules:r,injectables:i})}),{ngModuleByPipeOrDirective:o,files:p,ngModules:e,symbolsMissingModule:n}}function Tr(t,e,n){var r=[];return e.filter(function(t){return n.isSourceFile(t)}).forEach(function(e){t.getSymbolsOf(e).forEach(function(e){var n=t.resolveSymbol(e),i=n.metadata;i&&"error"!=i.__symbolic&&r.push(n.symbol)})}),r}function Pr(t,e,n){var r=new Map,i=[],o=new Set,s=function(t){if(r.has(t)||!e.isSourceFile(t.filePath))return!1;var i=n.getNgModuleMetadata(t,!1);return i&&(r.set(i.type.reference,i),i.declaredDirectives.forEach(function(t){return o.add(t.reference)}),i.declaredPipes.forEach(function(t){return o.add(t.reference)}),i.transitiveModule.modules.forEach(function(t){return s(t.reference)})),!!i};t.forEach(function(t){s(t)||!n.isDirective(t)&&!n.isPipe(t)||i.push(t)});var a=i.filter(function(t){return!o.has(t)});return{ngModules:Array.from(r.values()),symbolsMissingModule:a}}function Ar(t){return t&&"ignore"==t.__symbolic}function kr(t){switch(t.message){case"Reference to non-exported class":if(t.context&&t.context.className)return"Reference to a non-exported class "+t.context.className+". Consider exporting the class";break;case"Variable not initialized":return"Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler";case"Destructuring not supported":return"Referencing an exported destructured variable or constant is not supported by the template compiler. Consider simplifying this to avoid destructuring";case"Could not resolve type":if(t.context&&t.context.typeName)return"Could not resolve type "+t.context.typeName;break;case"Function call not supported":return(t.context&&t.context.name?"Calling function '"+t.context.name+"', f":"F")+"unction calls are not supported. Consider replacing the function or lambda with a reference to an exported function";case"Reference to a local symbol":if(t.context&&t.context.name)return"Reference to a local (non-exported) symbol '"+t.context.name+"'. Consider exporting the symbol"}return t.message}function Mr(t){return"Error encountered resolving symbol values statically. "+kr(t)}function Nr(t,e){if(!t)return{};var n={};return Object.keys(t).forEach(function(r){var i=e(t[r],r);Ar(i)||(Sp.test(r)?Object.defineProperty(n,r,{enumerable:!1,configurable:!0,value:i}):n[r]=i)}),n}function Rr(t){return null===t||"function"!=typeof t&&"object"!=typeof t}function Ir(t,e,n,r){var i=new Error(t);return i.fileName=e,i.line=n,i.column=r,i}function jr(t){return t.startsWith("___")?t.substr(1):t}function Dr(t){var e=new Ip(null,null,null,new Map);(new Dp).visitAllStatements(t,e);var n={};return e.exports.forEach(function(t){n[t]=e.vars.get(t)}),n}function Fr(t,e,n,r,i){for(var o=r.createChildWihtLocalVars(),s=0;s<t.length;s++)o.vars.set(t[s],e[s]);var a=i.visitAllStatements(n,o);return a?a.value:null}function Lr(t,e,n){var r={};t.getters.forEach(function(i){r[i.name]={configurable:!1,get:function(){var r=new Ip(e,this,t.name,e.vars);return Fr([],[],i.body,r,n)}}}),t.methods.forEach(function(i){var o=i.params.map(function(t){return t.name});r[i.name]={writable:!1,configurable:!1,value:function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var a=new Ip(e,this,t.name,e.vars);return Fr(o,r,i.body,a,n)}}});var i=t.constructorMethod.params.map(function(t){return t.name}),o=function(){for(var r=this,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=new Ip(e,this,t.name,e.vars);t.fields.forEach(function(t){r[t.name]=void 0}),Fr(i,o,t.constructorMethod.body,a,n)},s=t.parent?t.parent.visitExpression(n,e):Object;return o.prototype=Object.create(s.prototype,r),o}function Vr(t,e,n,r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return Fr(t,i,e,n,r)}}function Ur(t,e,n){var r=e.toSource()+"\n//# sourceURL="+t,i=[],o=[];for(var s in n)i.push(s),o.push(n[s]);if(Object(Xr._27)()){var a=(new(Function.bind.apply(Function,[void 0].concat(i.concat("return null;"))))).toString(),u=a.slice(0,a.indexOf("return null;")).split("\n").length-1;r+="\n"+e.toSourceMapGenerator(t,t,u).toJsComment()}return(new(Function.bind.apply(Function,[void 0].concat(i.concat(r))))).apply(void 0,o)}function Br(t,e){var n=new Up,r=hl.createRoot();return n.visitAllStatements(e,r),n.createReturnStmt(r),Ur(t,r,n.getArgs())}function Hr(t){if(!t.isComponent)throw new Error("Could not compile '"+S(t.type)+"' because it is not a component.")}function qr(t,e){return void 0===e&&(e=[]),t().forEach(function(t){"function"==typeof t?qr(t,e):e.push(t)}),e}function zr(){return{statements:[],genFilePath:"",importExpr:function(t){return mn({name:S(t),moduleName:null,runtime:t})}}}function Wr(t){return{useJit:Kr(t.map(function(t){return t.useJit})),defaultEncapsulation:Kr(t.map(function(t){return t.defaultEncapsulation})),providers:Gr(t.map(function(t){return t.providers})),missingTranslation:Kr(t.map(function(t){return t.missingTranslation})),enableLegacyTemplate:Kr(t.map(function(t){return t.enableLegacyTemplate}))}}function Kr(t){for(var e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e]}function Gr(t){var e=[];return t.forEach(function(t){return t&&e.push.apply(e,t)}),e}n.d(e,"b",function(){return Jp}),n.d(e,"a",function(){return Mu});var Qr=n(41),Xr=n(12),Yr=(new Xr._16("4.3.5"),function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}()),Jr=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitBoundText(this,e)},t}(),Zr=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitAttr(this,e)},t}(),$r=function(){function t(t,e,n,r,i,o){this.name=t,this.type=e,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===li.Animation},enumerable:!0,configurable:!0}),t}(),ti=function(){function t(t,e,n,r,i){this.name=t,this.target=e,this.phase=n,this.handler=r,this.sourceSpan=i}return t.calcFullName=function(t,e,n){return e?e+":"+t:n?"@"+t+"."+n:t},t.prototype.visit=function(t,e){return t.visitEvent(this,e)},Object.defineProperty(t.prototype,"fullName",{get:function(){return t.calcFullName(this.name,this.target,this.phase)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return!!this.phase},enumerable:!0,configurable:!0}),t}(),ei=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitReference(this,e)},t}(),ni=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitVariable(this,e)},t}(),ri=function(){function t(t,e,n,r,i,o,s,a,u,c,l,p,h){this.name=t,this.attrs=e,this.inputs=n,this.outputs=r,this.references=i,this.directives=o,this.providers=s,this.hasViewContainer=a,this.queryMatches=u,this.children=c,this.ngContentIndex=l,this.sourceSpan=p,this.endSourceSpan=h}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),ii=function(){function t(t,e,n,r,i,o,s,a,u,c,l){this.attrs=t,this.outputs=e,this.references=n,this.variables=r,this.directives=i,this.providers=o,this.hasViewContainer=s,this.queryMatches=a,this.children=u,this.ngContentIndex=c,this.sourceSpan=l}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}(),oi=function(){function t(t,e,n,r){this.directiveName=t,this.templateName=e,this.value=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitDirectiveProperty(this,e)},t}(),si=function(){function t(t,e,n,r,i,o){this.directive=t,this.inputs=e,this.hostProperties=n,this.hostEvents=r,this.contentQueryStartId=i,this.sourceSpan=o}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),ai=function(){function t(t,e,n,r,i,o,s){this.token=t,this.multiProvider=e,this.eager=n,this.providers=r,this.providerType=i,this.lifecycleHooks=o,this.sourceSpan=s}return t.prototype.visit=function(t,e){return null},t}(),ui={};ui.PublicService=0,ui.PrivateService=1,ui.Component=2,ui.Directive=3,ui.Builtin=4,ui[ui.PublicService]="PublicService",ui[ui.PrivateService]="PrivateService",ui[ui.Component]="Component",ui[ui.Directive]="Directive",ui[ui.Builtin]="Builtin";var ci=function(){function t(t,e,n){this.index=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitNgContent(this,e)},t}(),li={};li.Property=0,li.Attribute=1,li.Class=2,li.Style=3,li.Animation=4,li[li.Property]="Property",li[li.Attribute]="Attribute",li[li.Class]="Class",li[li.Style]="Style",li[li.Animation]="Animation";var pi=function(){function t(){}return t.prototype.visitNgContent=function(t,e){},t.prototype.visitEmbeddedTemplate=function(t,e){},t.prototype.visitElement=function(t,e){},t.prototype.visitReference=function(t,e){},t.prototype.visitVariable=function(t,e){},t.prototype.visitEvent=function(t,e){},t.prototype.visitElementProperty=function(t,e){},t.prototype.visitAttr=function(t,e){},t.prototype.visitBoundText=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitDirective=function(t,e){},t.prototype.visitDirectiveProperty=function(t,e){},t}(),hi=(function(t){function e(){return t.call(this)||this}Qr.a(e,t),e.prototype.visitEmbeddedTemplate=function(t,e){return this.visitChildren(e,function(e){e(t.attrs),e(t.references),e(t.variables),e(t.directives),e(t.providers),e(t.children)})},e.prototype.visitElement=function(t,e){return this.visitChildren(e,function(e){e(t.attrs),e(t.inputs),e(t.outputs),e(t.references),e(t.directives),e(t.providers),e(t.children)})},e.prototype.visitDirective=function(t,e){return this.visitChildren(e,function(e){e(t.inputs),e(t.hostProperties),e(t.hostEvents)})},e.prototype.visitChildren=function(t,e){function n(e){e&&e.length&&i.push(r(o,e,t))}var i=[],o=this;return e(n),[].concat.apply([],i)}}(pi),function(){function t(t,e,n){this.filePath=t,this.name=e,this.members=n}return t.prototype.assertNoMembers=function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got "+JSON.stringify(this)+".")},t}()),fi=function(){function t(){this.cache=new Map}return t.prototype.get=function(t,e,n){n=n||[];var r=n.length?"."+n.join("."):"",i='"'+t+'".'+e+r,o=this.cache.get(i);return o||(o=new hi(t,e,n),this.cache.set(i,o)),o},t}(),di={};di.RAW_TEXT=0,di.ESCAPABLE_RAW_TEXT=1,di.PARSABLE_DATA=2,di[di.RAW_TEXT]="RAW_TEXT",di[di.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",di[di.PARSABLE_DATA]="PARSABLE_DATA";var vi={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",alefsym:"ℵ",Alpha:"Α",alpha:"α",amp:"&",and:"∧",ang:"∠",apos:"'",Aring:"Å",aring:"å",asymp:"≈",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",bdquo:"„",Beta:"Β",beta:"β",brvbar:"¦",bull:"•",cap:"∩",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",Chi:"Χ",chi:"χ",circ:"ˆ",clubs:"♣",cong:"≅",copy:"©",crarr:"↵",cup:"∪",curren:"¤",dagger:"†",Dagger:"‡",darr:"↓",dArr:"⇓",deg:"°",Delta:"Δ",delta:"δ",diams:"♦",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",empty:"∅",emsp:" ",ensp:" ",Epsilon:"Ε",epsilon:"ε",equiv:"≡",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",exist:"∃",fnof:"ƒ",forall:"∀",frac12:"½",frac14:"¼",frac34:"¾",frasl:"⁄",Gamma:"Γ",gamma:"γ",ge:"≥",gt:">",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",image:"ℑ",infin:"∞",int:"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ï",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"←",lArr:"⇐",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"◊",lrm:"‎",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Μ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Ν",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Œ",oelig:"œ",Ograve:"Ò",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Π",pi:"π",piv:"ϖ",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"∏",prop:"∝",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"”",real:"ℜ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"ρ",rlm:"‏",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Š",scaron:"š",sdot:"⋅",sect:"§",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sim:"∼",spades:"♠",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"τ",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"˜",times:"×",trade:"™",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",Uuml:"Ü",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"‍",zwnj:"‌"},yi=function(){function t(t){var e=void 0===t?{}:t,n=e.closedByChildren,r=e.requiredParents,i=e.implicitNamespacePrefix,o=e.contentType,s=void 0===o?di.PARSABLE_DATA:o,a=e.closedByParent,u=void 0!==a&&a,c=e.isVoid,l=void 0!==c&&c,p=e.ignoreFirstLf,h=void 0!==p&&p,f=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,n&&n.length>0&&n.forEach(function(t){return f.closedByChildren[t]=!0}),this.isVoid=l,this.closedByParent=u||l,r&&r.length>0&&(this.requiredParents={},this.parentToAdd=r[0],r.forEach(function(t){return f.requiredParents[t]=!0})),this.implicitNamespacePrefix=i||null,this.contentType=s,this.ignoreFirstLf=h}return t.prototype.requireExtraParent=function(t){if(!this.requiredParents)return!1;if(!t)return!0;var e=t.toLowerCase();return!("template"===e||"ng-template"===t)&&1!=this.requiredParents[e]},t.prototype.isClosedByChild=function(t){return this.isVoid||t.toLowerCase()in this.closedByChildren},t}(),mi={base:new yi({isVoid:!0}),meta:new yi({isVoid:!0}),area:new yi({isVoid:!0}),embed:new yi({isVoid:!0}),link:new yi({isVoid:!0}),img:new yi({isVoid:!0}),input:new yi({isVoid:!0}),param:new yi({isVoid:!0}),hr:new yi({isVoid:!0}),br:new yi({isVoid:!0}),source:new yi({isVoid:!0}),track:new yi({isVoid:!0}),wbr:new yi({isVoid:!0}),p:new yi({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new yi({closedByChildren:["tbody","tfoot"]}),tbody:new yi({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new yi({closedByChildren:["tbody"],closedByParent:!0}),tr:new yi({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new yi({closedByChildren:["td","th"],closedByParent:!0}),th:new yi({closedByChildren:["td","th"],closedByParent:!0}),col:new yi({requiredParents:["colgroup"],isVoid:!0}),svg:new yi({implicitNamespacePrefix:"svg"}),math:new yi({implicitNamespacePrefix:"math"}),li:new yi({closedByChildren:["li"],closedByParent:!0}),dt:new yi({closedByChildren:["dt","dd"]}),dd:new yi({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new yi({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new yi({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new yi({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new yi({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new yi({closedByChildren:["optgroup"],closedByParent:!0}),option:new yi({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new yi({ignoreFirstLf:!0}),listing:new yi({ignoreFirstLf:!0}),style:new yi({contentType:di.RAW_TEXT}),script:new yi({contentType:di.RAW_TEXT}),title:new yi({contentType:di.ESCAPABLE_RAW_TEXT}),textarea:new yi({contentType:di.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},gi=new yi,bi=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),_i=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var n,r=[],i=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},o=new t,s=o,a=!1;for(bi.lastIndex=0;n=bi.exec(e);){if(n[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new t,o.notSelectors.push(s)}if(n[2]&&s.setElement(n[2]),n[3]&&s.addClassName(n[3]),n[4]&&s.addAttribute(n[4],n[6]),n[7]&&(a=!1,s=o),n[8]){if(a)throw new Error("Multiple selectors in :not are not supported");i(r,o),o=s=new t}}return i(r,o),r},t.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},t.prototype.hasElementSelector=function(){return!!this.element},t.prototype.setElement=function(t){void 0===t&&(t=null),this.element=t},t.prototype.getMatchingElementTemplate=function(){for(var t=this.element||"div",e=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",n="",r=0;r<this.attrs.length;r+=2){n+=" "+this.attrs[r]+(""!==this.attrs[r+1]?'="'+this.attrs[r+1]+'"':"")}return l(t).isVoid?"<"+t+e+n+"/>":"<"+t+e+n+"></"+t+">"},t.prototype.addAttribute=function(t,e){void 0===e&&(e=""),this.attrs.push(t,e&&e.toLowerCase()||"")},t.prototype.addClassName=function(t){this.classNames.push(t.toLowerCase())},t.prototype.toString=function(){var t=this.element||"";if(this.classNames&&this.classNames.forEach(function(e){return t+="."+e}),this.attrs)for(var e=0;e<this.attrs.length;e+=2){var n=this.attrs[e],r=this.attrs[e+1];t+="["+n+(r?"="+r:"")+"]"}return this.notSelectors.forEach(function(e){return t+=":not("+e+")"}),t},t}(),wi=function(){function t(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}return t.createNotMatcher=function(e){var n=new t;return n.addSelectables(e,null),n},t.prototype.addSelectables=function(t,e){var n=null;t.length>1&&(n=new xi(t),this._listContexts.push(n));for(var r=0;r<t.length;r++)this._addSelectable(t[r],e,n)},t.prototype._addSelectable=function(t,e,n){var r=this,i=t.element,o=t.classNames,s=t.attrs,a=new Si(t,e,n);if(i){var u=0===s.length&&0===o.length;u?this._addTerminal(r._elementMap,i,a):r=this._addPartial(r._elementPartialMap,i)}if(o)for(var c=0;c<o.length;c++){var u=0===s.length&&c===o.length-1,l=o[c];u?this._addTerminal(r._classMap,l,a):r=this._addPartial(r._classPartialMap,l)}if(s)for(var c=0;c<s.length;c+=2){var u=c===s.length-2,p=s[c],h=s[c+1];if(u){var f=r._attrValueMap,d=f.get(p);d||(d=new Map,f.set(p,d)),this._addTerminal(d,h,a)}else{var v=r._attrValuePartialMap,y=v.get(p);y||(y=new Map,v.set(p,y)),r=this._addPartial(y,h)}}},t.prototype._addTerminal=function(t,e,n){var r=t.get(e);r||(r=[],t.set(e,r)),r.push(n)},t.prototype._addPartial=function(e,n){var r=e.get(n);return r||(r=new t,e.set(n,r)),r},t.prototype.match=function(t,e){for(var n=!1,r=t.element,i=t.classNames,o=t.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,r,t,e)||n,n=this._matchPartial(this._elementPartialMap,r,t,e)||n,i)for(var s=0;s<i.length;s++){var a=i[s];n=this._matchTerminal(this._classMap,a,t,e)||n,n=this._matchPartial(this._classPartialMap,a,t,e)||n}if(o)for(var s=0;s<o.length;s+=2){var u=o[s],c=o[s+1],l=this._attrValueMap.get(u);c&&(n=this._matchTerminal(l,"",t,e)||n),n=this._matchTerminal(l,c,t,e)||n;var p=this._attrValuePartialMap.get(u);c&&(n=this._matchPartial(p,"",t,e)||n),n=this._matchPartial(p,c,t,e)||n}return n},t.prototype._matchTerminal=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var i=t.get(e)||[],o=t.get("*");if(o&&(i=i.concat(o)),0===i.length)return!1;for(var s,a=!1,u=0;u<i.length;u++)s=i[u],a=s.finalize(n,r)||a;return a},t.prototype._matchPartial=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var i=t.get(e);return!!i&&i.match(n,r)},t}(),xi=function(){function t(t){this.selectors=t,this.alreadyMatched=!1}return t}(),Si=function(){function t(t,e,n){this.selector=t,this.cbContext=e,this.listContext=n,this.notSelectors=t.notSelectors}return t.prototype.finalize=function(t,e){var n=!0;if(this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched)){n=!wi.createNotMatcher(this.notSelectors).match(t,null)}return!n||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),n},t}(),Ei=/-+([a-z0-9])/g,Ci=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return t.map(function(t){return v(t,n,e)})},t.prototype.visitStringMap=function(t,e){var n=this,r={};return Object.keys(t).forEach(function(i){r[i]=v(t[i],n,e)}),r},t.prototype.visitPrimitive=function(t,e){return t},t.prototype.visitOther=function(t,e){return t},t}(),Oi={assertSync:function(t){if(Object(Xr._58)(t))throw new Error("Illegal state: value cannot be a promise");return t},then:function(t,e){return Object(Xr._58)(t)?t.then(e):e(t)},all:function(t){return t.some(Xr._58)?Promise.all(t):t}},Ti="ngSyntaxError",Pi="ngParseErrors",Ai=Object.getPrototypeOf({}),ki=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/,Mi=(function(){function t(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.name=t,this.definitions=e}}(),function(){function t(){}return t}()),Ni=(function(t){function e(e,n){var r=t.call(this)||this;return r.stateNameExpr=e,r.styles=n,r}Qr.a(e,t)}(Mi),function(t){function e(e,n){var r=t.call(this)||this;return r.stateChangeExpr=e,r.steps=n,r}Qr.a(e,t)}(Mi),function(){function t(){}return t}()),Ri=(function(t){function e(e){void 0===e&&(e=[]);var n=t.call(this)||this;return n.steps=e,n}Qr.a(e,t)}(Ni),function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this)||this;return r.offset=e,r.styles=n,r}Qr.a(e,t)}(Ni),function(t){function e(e,n){void 0===e&&(e=0),void 0===n&&(n=null);var r=t.call(this)||this;return r.timings=e,r.styles=n,r}Qr.a(e,t)}(Ni),function(t){function e(e){void 0===e&&(e=null);var n=t.call(this)||this;return n.steps=e,n}return Qr.a(e,t),e}(Ni)),Ii=(function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}Qr.a(e,t)}(Ri),function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}Qr.a(e,t)}(Ri),0),ji={};ji.Pipe=0,ji.Directive=1,ji.NgModule=2,ji.Injectable=3,ji[ji.Pipe]="Pipe",ji[ji.Directive]="Directive",ji[ji.NgModule]="NgModule",ji[ji.Injectable]="Injectable";var Di=function(){function t(t){var e=void 0===t?{}:t,n=e.moduleUrl,r=e.styles,i=e.styleUrls;this.moduleUrl=n||null,this.styles=N(r),this.styleUrls=N(i)}return t}(),Fi=function(){function t(t){var e=t.encapsulation,n=t.template,r=t.templateUrl,i=t.styles,o=t.styleUrls,s=t.externalStylesheets,a=t.animations,u=t.ngContentSelectors,c=t.interpolation,l=t.isInline;if(this.encapsulation=e,this.template=n,this.templateUrl=r,this.styles=N(i),this.styleUrls=N(o),this.externalStylesheets=N(s),this.animations=a?R(a):[],this.ngContentSelectors=u||[],c&&2!=c.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=c,this.isInline=l}return t.prototype.toSummary=function(){return{animations:this.animations.map(function(t){return t.name}),ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},t}(),Li=function(){function t(t){var e=t.isHost,n=t.type,r=t.isComponent,i=t.selector,o=t.exportAs,s=t.changeDetection,a=t.inputs,u=t.outputs,c=t.hostListeners,l=t.hostProperties,p=t.hostAttributes,h=t.providers,f=t.viewProviders,d=t.queries,v=t.viewQueries,y=t.entryComponents,m=t.template,g=t.componentViewType,b=t.rendererType,_=t.componentFactory;this.isHost=!!e,this.type=n,this.isComponent=r,this.selector=i,this.exportAs=o,this.changeDetection=s,this.inputs=a,this.outputs=u,this.hostListeners=c,this.hostProperties=l,this.hostAttributes=p,this.providers=N(h),this.viewProviders=N(f),this.queries=N(d),this.viewQueries=N(v),this.entryComponents=N(y),this.template=m,this.componentViewType=g,this.rendererType=b,this.componentFactory=_}return t.create=function(e){var n=e.isHost,r=e.type,i=e.isComponent,o=e.selector,s=e.exportAs,a=e.changeDetection,u=e.inputs,c=e.outputs,l=e.host,p=e.providers,f=e.viewProviders,d=e.queries,v=e.viewQueries,y=e.entryComponents,m=e.template,g=e.componentViewType,b=e.rendererType,_=e.componentFactory,w={},x={},S={};null!=l&&Object.keys(l).forEach(function(t){var e=l[t],n=t.match(ki);null===n?S[t]=e:null!=n[1]?x[n[1]]=e:null!=n[2]&&(w[n[2]]=e)});var E={};null!=u&&u.forEach(function(t){var e=h(t,[t,t]);E[e[0]]=e[1]});var C={};return null!=c&&c.forEach(function(t){var e=h(t,[t,t]);C[e[0]]=e[1]}),new t({isHost:n,type:r,isComponent:!!i,selector:o,exportAs:s,changeDetection:a,inputs:E,outputs:C,hostListeners:w,hostProperties:x,hostAttributes:S,providers:p,viewProviders:f,queries:d,viewQueries:v,entryComponents:y,template:m,componentViewType:g,rendererType:b,componentFactory:_})},t.prototype.toSummary=function(){return{summaryKind:ji.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}},t}(),Vi=function(){function t(t){var e=t.type,n=t.name,r=t.pure;this.type=e,this.name=n,this.pure=!!r}return t.prototype.toSummary=function(){return{summaryKind:ji.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),Ui=function(){function t(t){var e=t.type,n=t.providers,r=t.declaredDirectives,i=t.exportedDirectives,o=t.declaredPipes,s=t.exportedPipes,a=t.entryComponents,u=t.bootstrapComponents,c=t.importedModules,l=t.exportedModules,p=t.schemas,h=t.transitiveModule,f=t.id;this.type=e||null,this.declaredDirectives=N(r),this.exportedDirectives=N(i),this.declaredPipes=N(o),this.exportedPipes=N(s),this.providers=N(n),this.entryComponents=N(a),this.bootstrapComponents=N(u),this.importedModules=N(c),this.exportedModules=N(l),this.schemas=N(p),this.id=f||null,this.transitiveModule=h||null}return t.prototype.toSummary=function(){var t=this.transitiveModule;return{summaryKind:ji.NgModule,type:this.type,entryComponents:t.entryComponents,providers:t.providers,modules:t.modules,exportedDirectives:t.exportedDirectives,exportedPipes:t.exportedPipes}},t}(),Bi=function(){function t(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return t.prototype.addProvider=function(t,e){this.providers.push({provider:t,module:e})},t.prototype.addDirective=function(t){this.directivesSet.has(t.reference)||(this.directivesSet.add(t.reference),this.directives.push(t))},t.prototype.addExportedDirective=function(t){this.exportedDirectivesSet.has(t.reference)||(this.exportedDirectivesSet.add(t.reference),this.exportedDirectives.push(t))},t.prototype.addPipe=function(t){this.pipesSet.has(t.reference)||(this.pipesSet.add(t.reference),this.pipes.push(t))},t.prototype.addExportedPipe=function(t){this.exportedPipesSet.has(t.reference)||(this.exportedPipesSet.add(t.reference),this.exportedPipes.push(t))},t.prototype.addModule=function(t){this.modulesSet.has(t.reference)||(this.modulesSet.add(t.reference),this.modules.push(t))},t.prototype.addEntryComponent=function(t){this.entryComponentsSet.has(t.componentType)||(this.entryComponentsSet.add(t.componentType),this.entryComponents.push(t))},t}(),Hi=function(){function t(t,e){var n=e.useClass,r=e.useValue,i=e.useExisting,o=e.useFactory,s=e.deps,a=e.multi;this.token=t,this.useClass=n||null,this.useValue=r,this.useExisting=i,this.useFactory=o||null,this.dependencies=s||null,this.multi=!!a}return t}(),qi=function(){function t(){}return t.prototype.parameters=function(t){},t.prototype.annotations=function(t){},t.prototype.propMetadata=function(t){},t.prototype.hasLifecycleHook=function(t,e){},t.prototype.componentModuleUrl=function(t,e){},t.prototype.resolveExternalReference=function(t){},t}(),zi=function(){function t(t){var e=void 0===t?{}:t,n=e.defaultEncapsulation,r=void 0===n?Xr._20.Emulated:n,i=e.useJit,o=void 0===i||i,s=e.missingTranslation,a=e.enableLegacyTemplate;this.defaultEncapsulation=r,this.useJit=!!o,this.missingTranslation=s||null,this.enableLegacyTemplate=!1!==a}return t}(),Wi=function(){function t(t,e,n,r){this.input=e,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+t+" "+n+" ["+e+"] in "+r}return t}(),Ki=function(){function t(t,e){this.start=t,this.end=e}return t}(),Gi=function(){function t(t){this.span=t}return t.prototype.visit=function(t,e){return void 0===e&&(e=null),null},t.prototype.toString=function(){return"AST"},t}(),Qi=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.prefix=n,o.uninterpretedExpression=r,o.location=i,o}return Qr.a(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitQuote(this,e)},e.prototype.toString=function(){return"Quote"},e}(Gi),Xi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qr.a(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(Gi),Yi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qr.a(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(Gi),Ji=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return Qr.a(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(Gi),Zi=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.condition=n,o.trueExp=r,o.falseExp=i,o}return Qr.a(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(Gi),$i=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i}return Qr.a(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(Gi),to=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.value=i,o}return Qr.a(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(Gi),eo=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i}return Qr.a(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(Gi),no=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.obj=n,i.key=r,i}return Qr.a(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(Gi),ro=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.obj=n,o.key=r,o.value=i,o}return Qr.a(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(Gi),io=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.exp=n,o.name=r,o.args=i,o}return Qr.a(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(Gi),oo=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return Qr.a(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(Gi),so=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return Qr.a(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(Gi),ao=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keys=n,i.values=r,i}return Qr.a(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(Gi),uo=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.strings=n,i.expressions=r,i}return Qr.a(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(Gi),co=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.operation=n,o.left=r,o.right=i,o}return Qr.a(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(Gi),lo=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return Qr.a(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(Gi),po=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return Qr.a(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitNonNullAssert(this,e)},e}(Gi),ho=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.args=i,o}return Qr.a(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(Gi),fo=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.args=i,o}return Qr.a(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(Gi),vo=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.target=n,i.args=r,i}return Qr.a(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(Gi),yo=function(t){function e(e,n,r,i){var o=t.call(this,new Ki(0,null==n?0:n.length))||this;return o.ast=e,o.source=n,o.location=r,o.errors=i,o}return Qr.a(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),this.ast.visit(t,e)},e.prototype.toString=function(){return this.source+" in "+this.location},e}(Gi),mo=function(){function t(t,e,n,r,i){this.span=t,this.key=e,this.keyIsVar=n,this.name=r,this.expression=i}return t}(),go=(function(){function t(){}t.prototype.visitBinary=function(t,e){},t.prototype.visitChain=function(t,e){},t.prototype.visitConditional=function(t,e){},t.prototype.visitFunctionCall=function(t,e){},t.prototype.visitImplicitReceiver=function(t,e){},t.prototype.visitInterpolation=function(t,e){},t.prototype.visitKeyedRead=function(t,e){},t.prototype.visitKeyedWrite=function(t,e){},t.prototype.visitLiteralArray=function(t,e){},t.prototype.visitLiteralMap=function(t,e){},t.prototype.visitLiteralPrimitive=function(t,e){},t.prototype.visitMethodCall=function(t,e){},t.prototype.visitPipe=function(t,e){},t.prototype.visitPrefixNot=function(t,e){},t.prototype.visitNonNullAssert=function(t,e){},t.prototype.visitPropertyRead=function(t,e){},t.prototype.visitPropertyWrite=function(t,e){},t.prototype.visitQuote=function(t,e){},t.prototype.visitSafeMethodCall=function(t,e){},t.prototype.visitSafePropertyRead=function(t,e){}}(),function(){function t(){}return t.prototype.visitBinary=function(t,e){return t.left.visit(this),t.right.visit(this),null},t.prototype.visitChain=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this),null},t.prototype.visitPipe=function(t,e){return t.exp.visit(this),this.visitAll(t.args,e),null},t.prototype.visitFunctionCall=function(t,e){return t.target.visit(this),this.visitAll(t.args,e),null},t.prototype.visitImplicitReceiver=function(t,e){return null},t.prototype.visitInterpolation=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitKeyedRead=function(t,e){return t.obj.visit(this),t.key.visit(this),null},t.prototype.visitKeyedWrite=function(t,e){return t.obj.visit(this),t.key.visit(this),t.value.visit(this),null},t.prototype.visitLiteralArray=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitLiteralMap=function(t,e){return this.visitAll(t.values,e)},t.prototype.visitLiteralPrimitive=function(t,e){return null},t.prototype.visitMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitPrefixNot=function(t,e){return t.expression.visit(this),null},t.prototype.visitNonNullAssert=function(t,e){return t.expression.visit(this),null},t.prototype.visitPropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitPropertyWrite=function(t,e){return t.receiver.visit(this),t.value.visit(this),null},t.prototype.visitSafePropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitSafeMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitAll=function(t,e){var n=this;return t.forEach(function(t){return t.visit(n,e)}),null},t.prototype.visitQuote=function(t,e){return null},t}()),bo=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t,e){return t},t.prototype.visitInterpolation=function(t,e){return new uo(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t,e){return new oo(t.span,t.value)},t.prototype.visitPropertyRead=function(t,e){return new $i(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t,e){return new to(t.span,t.receiver.visit(this),t.name,t.value.visit(this))},t.prototype.visitSafePropertyRead=function(t,e){return new eo(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t,e){return new ho(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t,e){return new fo(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t,e){return new vo(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t,e){return new so(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t,e){return new ao(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t,e){return new co(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t,e){return new lo(t.span,t.expression.visit(this))},t.prototype.visitNonNullAssert=function(t,e){return new po(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t,e){return new Zi(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t,e){return new io(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t,e){return new no(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t,e){return new ro(t.span,t.obj.visit(this),t.key.visit(this),t.value.visit(this))},t.prototype.visitAll=function(t){for(var e=new Array(t.length),n=0;n<t.length;++n)e[n]=t[n].visit(this);return e},t.prototype.visitChain=function(t,e){return new Ji(t.span,this.visitAll(t.expressions))},t.prototype.visitQuote=function(t,e){return new Qi(t.span,t.prefix,t.uninterpretedExpression,t.location)},t}(),_o=0,wo=9,xo=10,So=11,Eo=12,Co=13,Oo=32,To=34,Po=36,Ao=39,ko=43,Mo=45,No=47,Ro=59,Io=61,jo=62,Do=48,Fo=57,Lo=65,Vo=69,Uo=70,Bo=90,Ho=95,qo=97,zo=101,Wo=102,Ko=110,Go=114,Qo=116,Xo=118,Yo=122,Jo=123,Zo=160,$o=96,ts=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],es=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(W("interpolation",e),new t(e[0],e[1])):ns},t}(),ns=new es("{{","}}"),rs={};rs.Character=0,rs.Identifier=1,rs.Keyword=2,rs.String=3,rs.Operator=4,rs.Number=5,rs.Error=6,rs[rs.Character]="Character",rs[rs.Identifier]="Identifier",rs[rs.Keyword]="Keyword",rs[rs.String]="String",rs[rs.Operator]="Operator",rs[rs.Number]="Number",rs[rs.Error]="Error";var is=["var","let","as","null","undefined","true","false","if","else","this"],os=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new us(t),n=[],r=e.scanToken();null!=r;)n.push(r),r=e.scanToken();return n},t}();os.decorators=[{type:q}],os.ctorParameters=function(){return[]};var ss=function(){function t(t,e,n,r){this.index=t,this.type=e,this.numValue=n,this.strValue=r}return t.prototype.isCharacter=function(t){return this.type==rs.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==rs.Number},t.prototype.isString=function(){return this.type==rs.String},t.prototype.isOperator=function(t){return this.type==rs.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==rs.Identifier},t.prototype.isKeyword=function(){return this.type==rs.Keyword},t.prototype.isKeywordLet=function(){return this.type==rs.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==rs.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==rs.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==rs.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==rs.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==rs.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==rs.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==rs.Error},t.prototype.toNumber=function(){return this.type==rs.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case rs.Character:case rs.Identifier:case rs.Keyword:case rs.Operator:case rs.String:case rs.Error:return this.strValue;case rs.Number:return this.numValue.toString();default:return null}},t}(),as=new ss(-1,rs.Character,0,""),us=function(){function t(t){this.input=t,this.peek=0,this.index=-1,this.length=t.length,this.advance()}return t.prototype.advance=function(){this.peek=++this.index>=this.length?_o:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,n=this.peek,r=this.index;n<=Oo;){if(++r>=e){n=_o;break}n=t.charCodeAt(r)}if(this.peek=n,this.index=r,r>=e)return null;if($(n))return this.scanIdentifier();if(U(n))return this.scanNumber(r);var i=r;switch(n){case 46:return this.advance(),U(this.peek)?this.scanNumber(i):K(i,46);case 40:case 41:case Jo:case 125:case 91:case 93:case 44:case 58:case Ro:return this.scanCharacter(i,n);case Ao:case To:return this.scanString();case 35:case ko:case Mo:case 42:case No:case 37:case 94:return this.scanOperator(i,String.fromCharCode(n));case 63:return this.scanComplexOperator(i,"?",46,".");case 60:case jo:return this.scanComplexOperator(i,String.fromCharCode(n),Io,"=");case 33:case Io:return this.scanComplexOperator(i,String.fromCharCode(n),Io,"=",Io,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case Zo:for(;V(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(n)+"]",0)},t.prototype.scanCharacter=function(t,e){return this.advance(),K(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),X(t,e)},t.prototype.scanComplexOperator=function(t,e,n,r,i,o){this.advance();var s=e;return this.peek==n&&(this.advance(),s+=r),null!=i&&this.peek==i&&(this.advance(),s+=o),X(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();et(this.peek);)this.advance();var e=this.input.substring(t,this.index);return is.indexOf(e)>-1?Q(t,e):G(t,e)},t.prototype.scanNumber=function(t){var e=this.index===t;for(this.advance();;){if(U(this.peek));else if(46==this.peek)e=!1;else{if(!nt(this.peek))break;if(this.advance(),rt(this.peek)&&this.advance(),!U(this.peek))return this.error("Invalid exponent",-1);e=!1}this.advance()}var n=this.input.substring(t,this.index);return J(t,e?st(n):parseFloat(n))},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var n="",r=this.index,i=this.input;this.peek!=e;)if(92==this.peek){n+=i.substring(r,this.index),this.advance();var o=void 0;if(this.peek=this.peek,117==this.peek){var s=i.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);o=parseInt(s,16);for(var a=0;a<5;a++)this.advance()}else o=ot(this.peek),this.advance();n+=String.fromCharCode(o),r=this.index}else{if(this.peek==_o)return this.error("Unterminated quote",0);this.advance()}var u=i.substring(r,this.index);return this.advance(),Y(t,n+u)},t.prototype.error=function(t,e){var n=this.index+e;return Z(n,"Lexer Error: "+t+" at column "+n+" in expression ["+this.input+"]")},t}(),cs=function(){function t(t,e,n){this.strings=t,this.expressions=e,this.offsets=n}return t}(),ls=function(){function t(t,e,n){this.templateBindings=t,this.warnings=e,this.errors=n}return t}(),ps=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,n){void 0===n&&(n=ns),this._checkNoInterpolation(t,e,n);var r=this._stripComments(t),i=this._lexer.tokenize(this._stripComments(t)),o=new hs(t,e,i,r.length,!0,this.errors,t.length-r.length).parseChain();return new yo(o,t,e,this.errors)},t.prototype.parseBinding=function(t,e,n){void 0===n&&(n=ns);var r=this._parseBindingAst(t,e,n);return new yo(r,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,n){void 0===n&&(n=ns);var r=this._parseBindingAst(t,e,n),i=fs.check(r);return i.length>0&&this._reportError("Host binding expression cannot contain "+i.join(" "),t,e),new yo(r,t,e,this.errors)},t.prototype._reportError=function(t,e,n,r){this.errors.push(new Wi(t,e,n,r))},t.prototype._parseBindingAst=function(t,e,n){var r=this._parseQuote(t,e);if(null!=r)return r;this._checkNoInterpolation(t,e,n);var i=this._stripComments(t),o=this._lexer.tokenize(i);return new hs(t,e,o,i.length,!1,this.errors,t.length-i.length).parseChain()},t.prototype._parseQuote=function(t,e){if(null==t)return null;var n=t.indexOf(":");if(-1==n)return null;var r=t.substring(0,n).trim();if(!tt(r))return null;var i=t.substring(n+1);return new Qi(new Ki(0,t.length),r,i,e)},t.prototype.parseTemplateBindings=function(t,e,n){var r=this._lexer.tokenize(e);if(t){var i=this._lexer.tokenize(t).map(function(t){return t.index=0,t});r.unshift.apply(r,i)}return new hs(e,n,r,e.length,!1,this.errors,0).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,n){void 0===n&&(n=ns);var r=this.splitInterpolation(t,e,n);if(null==r)return null;for(var i=[],o=0;o<r.expressions.length;++o){var s=r.expressions[o],a=this._stripComments(s),u=this._lexer.tokenize(a),c=new hs(t,e,u,a.length,!1,this.errors,r.offsets[o]+(s.length-a.length)).parseChain();i.push(c)}return new yo(new uo(new Ki(0,null==t?0:t.length),r.strings,i),t,e,this.errors)},t.prototype.splitInterpolation=function(t,e,n){void 0===n&&(n=ns);var r=at(n),i=t.split(r);if(i.length<=1)return null;for(var o=[],s=[],a=[],u=0,c=0;c<i.length;c++){var l=i[c];c%2==0?(o.push(l),u+=l.length):l.trim().length>0?(u+=n.start.length,s.push(l),a.push(u),u+=l.length+n.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",t,"at column "+this._findInterpolationErrorColumn(i,c,n)+" in",e),s.push("$implict"),a.push(u))}return new cs(o,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new yo(new oo(new Ki(0,null==t?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return null!=e?t.substring(0,e).trim():t},t.prototype._commentStart=function(t){for(var e=null,n=0;n<t.length-1;n++){var r=t.charCodeAt(n),i=t.charCodeAt(n+1);if(r===No&&i==No&&null==e)return n;e===r?e=null:null==e&&it(r)&&(e=r)}return null},t.prototype._checkNoInterpolation=function(t,e,n){var r=at(n),i=t.split(r);i.length>1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(i,1,n)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,n){for(var r="",i=0;i<e;i++)r+=i%2==0?t[i]:""+n.start+t[i]+n.end;return r.length},t}();ps.decorators=[{type:q}],ps.ctorParameters=function(){return[{type:os}]};var hs=function(){function t(t,e,n,r,i,o,s){this.input=t,this.location=e,this.tokens=n,this.inputLength=r,this.parseAction=i,this.errors=o,this.offset=s,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.index=0}return t.prototype.peek=function(t){var e=this.index+t;return e<this.tokens.length?this.tokens[e]:as},Object.defineProperty(t.prototype,"next",{get:function(){return this.peek(0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputIndex",{get:function(){return this.index<this.tokens.length?this.next.index+this.offset:this.inputLength+this.offset},enumerable:!0,configurable:!0}),t.prototype.span=function(t){return new Ki(t,this.inputIndex)},t.prototype.advance=function(){this.index++},t.prototype.optionalCharacter=function(t){return!!this.next.isCharacter(t)&&(this.advance(),!0)},t.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},t.prototype.peekKeywordAs=function(){return this.next.isKeywordAs()},t.prototype.expectCharacter=function(t){this.optionalCharacter(t)||this.error("Missing expected "+String.fromCharCode(t))},t.prototype.optionalOperator=function(t){return!!this.next.isOperator(t)&&(this.advance(),!0)},t.prototype.expectOperator=function(t){this.optionalOperator(t)||this.error("Missing expected operator "+t)},t.prototype.expectIdentifierOrKeyword=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier or keyword"),"")},t.prototype.expectIdentifierOrKeywordOrString=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()||t.isString()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier, keyword, or string"),"")},t.prototype.parseChain=function(){for(var t=[],e=this.inputIndex;this.index<this.tokens.length;){var n=this.parsePipe();if(t.push(n),this.optionalCharacter(Ro))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(Ro););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==t.length?new Xi(this.span(e)):1==t.length?t[0]:new Ji(this.span(e),t)},t.prototype.parsePipe=function(){var t=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var e=this.expectIdentifierOrKeyword(),n=[];this.optionalCharacter(58);)n.push(this.parseExpression());t=new io(this.span(t.span.start),t,e,n)}while(this.optionalOperator("|"))}return t},t.prototype.parseExpression=function(){return this.parseConditional()},t.prototype.parseConditional=function(){var t=this.inputIndex,e=this.parseLogicalOr();if(this.optionalOperator("?")){var n=this.parsePipe(),r=void 0;if(this.optionalCharacter(58))r=this.parsePipe();else{var i=this.inputIndex,o=this.input.substring(t,i);this.error("Conditional expression "+o+" requires all 3 expressions"),r=new Xi(this.span(t))}return new Zi(this.span(t),e,n,r)}return e},t.prototype.parseLogicalOr=function(){for(var t=this.parseLogicalAnd();this.optionalOperator("||");){var e=this.parseLogicalAnd();t=new co(this.span(t.span.start),"||",t,e)}return t},t.prototype.parseLogicalAnd=function(){for(var t=this.parseEquality();this.optionalOperator("&&");){var e=this.parseEquality();t=new co(this.span(t.span.start),"&&",t,e)}return t},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==rs.Operator;){var e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();var n=this.parseRelational();t=new co(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==rs.Operator;){var e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();var n=this.parseAdditive();t=new co(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==rs.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var n=this.parseMultiplicative();t=new co(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==rs.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();t=new co(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==rs.Operator){var t=this.inputIndex,e=this.next.strValue,n=void 0;switch(e){case"+":return this.advance(),this.parsePrefix();case"-":return this.advance(),n=this.parsePrefix(),new co(this.span(t),e,new oo(new Ki(t,t),0),n);case"!":return this.advance(),n=this.parsePrefix(),new lo(this.span(t),n)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(46))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(91)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(93),this.optionalOperator("=")){var n=this.parseConditional();t=new ro(this.span(t.span.start),t,e,n)}else t=new no(this.span(t.span.start),t,e)}else if(this.optionalCharacter(40)){this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(41),t=new vo(this.span(t.span.start),t,r)}else{if(!this.optionalOperator("!"))return t;t=new po(this.span(t.span.start),t)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(40)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),e}if(this.next.isKeywordNull())return this.advance(),new oo(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new oo(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new oo(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new oo(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new Yi(this.span(t));if(this.optionalCharacter(91)){this.rbracketsExpected++;var n=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new so(this.span(t),n)}if(this.next.isCharacter(Jo))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new Yi(this.span(t)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new oo(this.span(t),r)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new oo(this.span(t),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new Xi(this.span(t))):(this.error("Unexpected token "+this.next),new Xi(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do{e.push(this.parsePipe())}while(this.optionalCharacter(44));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],n=this.inputIndex;if(this.expectCharacter(Jo),!this.optionalCharacter(125)){this.rbracesExpected++;do{var r=this.next.isString(),i=this.expectIdentifierOrKeywordOrString();t.push({key:i,quoted:r}),this.expectCharacter(58),e.push(this.parsePipe())}while(this.optionalCharacter(44));this.rbracesExpected--,this.expectCharacter(125)}return new ao(this.span(n),t,e)},t.prototype.parseAccessMemberOrMethodCall=function(t,e){void 0===e&&(e=!1);var n=t.span.start,r=this.expectIdentifierOrKeyword();if(this.optionalCharacter(40)){this.rparensExpected++;var i=this.parseCallArguments();this.expectCharacter(41),this.rparensExpected--;var o=this.span(n);return e?new fo(o,t,r,i):new ho(o,t,r,i)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new Xi(this.span(n))):new eo(this.span(n),t,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new Xi(this.span(n));var s=this.parseConditional();return new to(this.span(n),t,r,s)}return new $i(this.span(n),t,r)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(41))return[];var t=[];do{t.push(this.parsePipe())}while(this.optionalCharacter(44));return t},t.prototype.expectTemplateBindingKey=function(){var t="",e=!1;do{t+=this.expectIdentifierOrKeywordOrString(),(e=this.optionalOperator("-"))&&(t+="-")}while(e);return t.toString()},t.prototype.parseTemplateBindings=function(){for(var t=[],e=null,n=[];this.index<this.tokens.length;){var r=this.inputIndex,i=this.peekKeywordLet();i&&this.advance();var o=this.expectTemplateBindingKey(),s=o;i||(null==e?e=s:s=e+s[0].toUpperCase()+s.substring(1)),this.optionalCharacter(58);var a=null,u=null;if(i)a=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.peekKeywordAs()){var c=this.inputIndex;this.advance(),a=o,s=this.expectTemplateBindingKey(),i=!0}else if(this.next!==as&&!this.peekKeywordLet()){var l=this.inputIndex,p=this.parsePipe(),h=this.input.substring(l-this.offset,this.inputIndex-this.offset);u=new yo(p,h,this.location,this.errors)}if(t.push(new mo(this.span(r),s,i,a,u)),this.peekKeywordAs()&&!i){var c=this.inputIndex;this.advance();var f=this.expectTemplateBindingKey();t.push(new mo(this.span(c),f,!0,s,null))}this.optionalCharacter(Ro)||this.optionalCharacter(44)}return new ls(t,n,this.errors)},t.prototype.error=function(t,e){void 0===e&&(e=null),this.errors.push(new Wi(t,this.input,this.locationText(e),this.location)),this.skip()},t.prototype.locationText=function(t){return void 0===t&&(t=null),null==t&&(t=this.index),t<this.tokens.length?"at column "+(this.tokens[t].index+1)+" in":"at the end of the expression"},t.prototype.skip=function(){for(var t=this.next;this.index<this.tokens.length&&!t.isCharacter(Ro)&&(this.rparensExpected<=0||!t.isCharacter(41))&&(this.rbracesExpected<=0||!t.isCharacter(125))&&(this.rbracketsExpected<=0||!t.isCharacter(93));)this.next.isError()&&this.errors.push(new Wi(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next},t}(),fs=function(){function t(){this.errors=[]}return t.check=function(e){var n=new t;return e.visit(n),n.errors},t.prototype.visitImplicitReceiver=function(t,e){},t.prototype.visitInterpolation=function(t,e){},t.prototype.visitLiteralPrimitive=function(t,e){},t.prototype.visitPropertyRead=function(t,e){},t.prototype.visitPropertyWrite=function(t,e){},t.prototype.visitSafePropertyRead=function(t,e){},t.prototype.visitMethodCall=function(t,e){},t.prototype.visitSafeMethodCall=function(t,e){},t.prototype.visitFunctionCall=function(t,e){},t.prototype.visitLiteralArray=function(t,e){this.visitAll(t.expressions)},t.prototype.visitLiteralMap=function(t,e){this.visitAll(t.values)},t.prototype.visitBinary=function(t,e){},t.prototype.visitPrefixNot=function(t,e){},t.prototype.visitNonNullAssert=function(t,e){},t.prototype.visitConditional=function(t,e){},t.prototype.visitPipe=function(t,e){this.errors.push("pipes")},t.prototype.visitKeyedRead=function(t,e){},t.prototype.visitKeyedWrite=function(t,e){},t.prototype.visitAll=function(t){var e=this;return t.map(function(t){return t.visit(e)})},t.prototype.visitChain=function(t,e){},t.prototype.visitQuote=function(t,e){},t}(),ds=function(){function t(t,e,n,r){this.file=t,this.offset=e,this.line=n,this.col=r}return t.prototype.toString=function(){return null!=this.offset?this.file.url+"@"+this.line+":"+this.col:this.file.url},t.prototype.moveBy=function(e){for(var n=this.file.content,r=n.length,i=this.offset,o=this.line,s=this.col;i>0&&e<0;){i--,e++;var a=n.charCodeAt(i);if(a==xo){o--;var u=n.substr(0,i-1).lastIndexOf(String.fromCharCode(xo));s=u>0?i-u:i}else s--}for(;i<r&&e>0;){var a=n.charCodeAt(i);i++,e--,a==xo?(o++,s=0):s++}return new t(this.file,i,o,s)},t.prototype.getContext=function(t,e){var n=this.file.content,r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);for(var i=r,o=0,s=0;o<t&&r>0&&(r--,o++,"\n"!=n[r]||++s!=e););for(o=0,s=0;o<t&&i<n.length-1&&(i++,o++,"\n"!=n[i]||++s!=e););return{before:n.substring(r,this.offset),after:n.substring(this.offset,i+1)}}return null},t}(),vs=function(){function t(t,e){this.content=t,this.url=e}return t}(),ys=function(){function t(t,e,n){void 0===n&&(n=null),this.start=t,this.end=e,this.details=n}return t.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},t}(),ms={};ms.WARNING=0,ms.ERROR=1,ms[ms.WARNING]="WARNING",ms[ms.ERROR]="ERROR";var gs=function(){function t(t,e,n){void 0===n&&(n=ms.ERROR),this.span=t,this.msg=e,this.level=n}return t.prototype.contextualMessage=function(){var t=this.span.start.getContext(100,3);return t?' ("'+t.before+"["+ms[this.level]+" ->]"+t.after+'")':""},t.prototype.toString=function(){var t=this.span.details?", "+this.span.details:"";return""+this.msg+this.contextualMessage()+": "+this.span.start+t},t}(),bs=(function(){function t(t,e){void 0===e&&(e=-1),this.path=t,this.position=e}Object.defineProperty(t.prototype,"empty",{get:function(){return!this.path||!this.path.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"head",{get:function(){return this.path[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tail",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t.prototype.parentOf=function(t){return t&&this.path[this.path.indexOf(t)-1]},t.prototype.childOf=function(t){return this.path[this.path.indexOf(t)+1]},t.prototype.first=function(t){for(var e=this.path.length-1;e>=0;e--){var n=this.path[e];if(n instanceof t)return n}},t.prototype.push=function(t){this.path.push(t)},t.prototype.pop=function(){return this.path.pop()}}(),function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}()),_s=function(){function t(t,e,n,r,i){this.switchValue=t,this.type=e,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansion(this,e)},t}(),ws=function(){function t(t,e,n,r,i){this.value=t,this.expression=e,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansionCase(this,e)},t}(),xs=function(){function t(t,e,n,r){this.name=t,this.value=e,this.sourceSpan=n,this.valueSpan=r}return t.prototype.visit=function(t,e){return t.visitAttribute(this,e)},t}(),Ss=function(){function t(t,e,n,r,i,o){void 0===i&&(i=null),void 0===o&&(o=null),this.name=t,this.attrs=e,this.children=n,this.sourceSpan=r,this.startSourceSpan=i,this.endSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),Es=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}(),Cs=(function(){function t(){}t.prototype.visitElement=function(t,e){this.visitChildren(e,function(e){e(t.attrs),e(t.children)})},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){return this.visitChildren(e,function(e){e(t.cases)})},t.prototype.visitExpansionCase=function(t,e){},t.prototype.visitChildren=function(t,e){function n(e){e&&r.push(ct(i,e,t))}var r=[],i=this;return e(n),[].concat.apply([],r)}}(),{});Cs.TAG_OPEN_START=0,Cs.TAG_OPEN_END=1,Cs.TAG_OPEN_END_VOID=2,Cs.TAG_CLOSE=3,Cs.TEXT=4,Cs.ESCAPABLE_RAW_TEXT=5,Cs.RAW_TEXT=6,Cs.COMMENT_START=7,Cs.COMMENT_END=8,Cs.CDATA_START=9,Cs.CDATA_END=10,Cs.ATTR_NAME=11,Cs.ATTR_VALUE=12,Cs.DOC_TYPE=13,Cs.EXPANSION_FORM_START=14,Cs.EXPANSION_CASE_VALUE=15,Cs.EXPANSION_CASE_EXP_START=16,Cs.EXPANSION_CASE_EXP_END=17,Cs.EXPANSION_FORM_END=18,Cs.EOF=19,Cs[Cs.TAG_OPEN_START]="TAG_OPEN_START",Cs[Cs.TAG_OPEN_END]="TAG_OPEN_END",Cs[Cs.TAG_OPEN_END_VOID]="TAG_OPEN_END_VOID",Cs[Cs.TAG_CLOSE]="TAG_CLOSE",Cs[Cs.TEXT]="TEXT",Cs[Cs.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",Cs[Cs.RAW_TEXT]="RAW_TEXT",Cs[Cs.COMMENT_START]="COMMENT_START",Cs[Cs.COMMENT_END]="COMMENT_END",Cs[Cs.CDATA_START]="CDATA_START",Cs[Cs.CDATA_END]="CDATA_END",Cs[Cs.ATTR_NAME]="ATTR_NAME",Cs[Cs.ATTR_VALUE]="ATTR_VALUE",Cs[Cs.DOC_TYPE]="DOC_TYPE",Cs[Cs.EXPANSION_FORM_START]="EXPANSION_FORM_START",Cs[Cs.EXPANSION_CASE_VALUE]="EXPANSION_CASE_VALUE",Cs[Cs.EXPANSION_CASE_EXP_START]="EXPANSION_CASE_EXP_START",Cs[Cs.EXPANSION_CASE_EXP_END]="EXPANSION_CASE_EXP_END",Cs[Cs.EXPANSION_FORM_END]="EXPANSION_FORM_END",Cs[Cs.EOF]="EOF";var Os=function(){function t(t,e,n){this.type=t,this.parts=e,this.sourceSpan=n}return t}(),Ts=function(t){function e(e,n,r){var i=t.call(this,r,e)||this;return i.tokenType=n,i}return Qr.a(e,t),e}(gs),Ps=function(){function t(t,e){this.tokens=t,this.errors=e}return t}(),As=/\r\n?/g,ks=function(){function t(t){this.error=t}return t}(),Ms=function(){function t(t,e,n,r){void 0===r&&(r=ns),this._file=t,this._getTagDefinition=e,this._tokenizeIcu=n,this._interpolationConfig=r,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=t.content,this._length=t.content.length,this._advance()}return t.prototype._processCarriageReturns=function(t){return t.replace(As,"\n")},t.prototype.tokenize=function(){for(;this._peek!==_o;){var t=this._getLocation();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(t):this._attemptCharCode(Mo)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(No)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(t){if(!(t instanceof ks))throw t;this.errors.push(t.error)}}return this._beginToken(Cs.EOF),this._endToken([]),new Ps(xt(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(gt(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(bt(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(125===this._peek){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},t.prototype._getLocation=function(){return new ds(this._file,this._index,this._line,this._column)},t.prototype._getSpan=function(t,e){return void 0===t&&(t=this._getLocation()),void 0===e&&(e=this._getLocation()),new ys(t,e)},t.prototype._beginToken=function(t,e){void 0===e&&(e=this._getLocation()),this._currentTokenStart=e,this._currentTokenType=t},t.prototype._endToken=function(t,e){void 0===e&&(e=this._getLocation());var n=new Os(this._currentTokenType,t,new ys(this._currentTokenStart,e));return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n},t.prototype._createError=function(t,e){this._isInExpansionForm()&&(t+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var n=new Ts(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new ks(n)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(pt(_o),this._getSpan());this._peek===xo?(this._line++,this._column=0):this._peek!==xo&&this._peek!==Co&&this._column++,this._index++,this._peek=this._index>=this._length?_o:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?_o:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t&&(this._advance(),!0)},t.prototype._attemptCharCodeCaseInsensitive=function(t){return!!_t(this._peek,t)&&(this._advance(),!0)},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(pt(this._peek),this._getSpan(e,e))},t.prototype._attemptStr=function(t){var e=t.length;if(this._index+e>this._length)return!1;for(var n=this._savePosition(),r=0;r<e;r++)if(!this._attemptCharCode(t.charCodeAt(r)))return this._restorePosition(n),!1;return!0},t.prototype._attemptStrCaseInsensitive=function(t){for(var e=0;e<t.length;e++)if(!this._attemptCharCodeCaseInsensitive(t.charCodeAt(e)))return!1;return!0},t.prototype._requireStr=function(t){var e=this._getLocation();if(!this._attemptStr(t))throw this._createError(pt(this._peek),this._getSpan(e))},t.prototype._attemptCharCodeUntilFn=function(t){for(;!t(this._peek);)this._advance()},t.prototype._requireCharCodeUntilFn=function(t,e){var n=this._getLocation();if(this._attemptCharCodeUntilFn(t),this._index-n.offset<e)throw this._createError(pt(this._peek),this._getSpan(n,n))},t.prototype._attemptUntilChar=function(t){for(;this._peek!==t;)this._advance()},t.prototype._readChar=function(t){if(t&&38===this._peek)return this._decodeEntity();var e=this._index;return this._advance(),this._input[e]},t.prototype._decodeEntity=function(){var t=this._getLocation();if(this._advance(),!this._attemptCharCode(35)){var e=this._savePosition();if(this._attemptCharCodeUntilFn(mt),this._peek!=Ro)return this._restorePosition(e),"&";this._advance();var n=this._input.substring(t.offset+1,this._index-1),r=vi[n];if(!r)throw this._createError(ht(n),this._getSpan(t));return r}var i=this._attemptCharCode(120)||this._attemptCharCode(88),o=this._getLocation().offset;if(this._attemptCharCodeUntilFn(yt),this._peek!=Ro)throw this._createError(pt(this._peek),this._getSpan());this._advance();var s=this._input.substring(o,this._index-1);try{var a=parseInt(s,i?16:10);return String.fromCharCode(a)}catch(e){var u=this._input.substring(t.offset+1,this._index-1);throw this._createError(ht(u),this._getSpan(t))}},t.prototype._consumeRawText=function(t,e,n){var r,i=this._getLocation();this._beginToken(t?Cs.ESCAPABLE_RAW_TEXT:Cs.RAW_TEXT,i);for(var o=[];;){if(r=this._getLocation(),this._attemptCharCode(e)&&n())break;for(this._index>r.offset&&o.push(this._input.substring(r.offset,this._index));this._peek!==e;)o.push(this._readChar(t))}return this._endToken([this._processCarriageReturns(o.join(""))],r)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(Cs.COMMENT_START,t),this._requireCharCode(Mo),this._endToken([]);var n=this._consumeRawText(!1,Mo,function(){return e._attemptStr("->")});this._beginToken(Cs.COMMENT_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(Cs.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,93,function(){return e._attemptStr("]>")});this._beginToken(Cs.CDATA_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(Cs.DOC_TYPE,t),this._attemptUntilChar(jo),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t=this._index,e=null;58!==this._peek&&!vt(this._peek);)this._advance();var n;return 58===this._peek?(this._advance(),e=this._input.substring(t,this._index-1),n=this._index):n=t,this._requireCharCodeUntilFn(dt,this._index===n?1:0),[e,this._input.substring(n,this._index)]},t.prototype._consumeTagOpen=function(t){var e,n,r=this._savePosition();try{if(!B(this._peek))throw this._createError(pt(this._peek),this._getSpan());var i=this._index;for(this._consumeTagOpenStart(t),e=this._input.substring(i,this._index),n=e.toLowerCase(),this._attemptCharCodeUntilFn(ft);this._peek!==No&&this._peek!==jo;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(ft),this._attemptCharCode(Io)&&(this._attemptCharCodeUntilFn(ft),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(ft);this._consumeTagOpenEnd()}catch(e){if(e instanceof ks)return this._restorePosition(r),this._beginToken(Cs.TEXT,t),void this._endToken(["<"]);throw e}var o=this._getTagDefinition(e).contentType;o===di.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):o===di.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var n=this,r=this._consumeRawText(e,60,function(){return!!n._attemptCharCode(No)&&(n._attemptCharCodeUntilFn(ft),!!n._attemptStrCaseInsensitive(t)&&(n._attemptCharCodeUntilFn(ft),n._attemptCharCode(jo)))});this._beginToken(Cs.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(Cs.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(Cs.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){this._beginToken(Cs.ATTR_VALUE);var t;if(this._peek===Ao||this._peek===To){var e=this._peek;this._advance();for(var n=[];this._peek!==e;)n.push(this._readChar(!0));t=n.join(""),this._advance()}else{var r=this._index;this._requireCharCodeUntilFn(dt,1),t=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(No)?Cs.TAG_OPEN_END_VOID:Cs.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(jo),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(Cs.TAG_CLOSE,t),this._attemptCharCodeUntilFn(ft);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(ft),this._requireCharCode(jo),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(Cs.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(Jo),this._endToken([]),this._expansionCaseStack.push(Cs.EXPANSION_FORM_START),this._beginToken(Cs.RAW_TEXT,this._getLocation());var t=this._readUntil(44);this._endToken([t],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(ft),this._beginToken(Cs.RAW_TEXT,this._getLocation());var e=this._readUntil(44);this._endToken([e],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(ft)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(Cs.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(Jo).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(ft),this._beginToken(Cs.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(Jo),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(ft),this._expansionCaseStack.push(Cs.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(Cs.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(125),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(ft),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(Cs.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(Cs.TEXT,t);var e=[];do{this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(e.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(e.push(this._interpolationConfig.end),this._inInterpolation=!1):e.push(this._readChar(!0))}while(!this._isTextEnd());this._endToken([this._processCarriageReturns(e.join(""))])},t.prototype._isTextEnd=function(){if(60===this._peek||this._peek===_o)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(gt(this._input,this._index,this._interpolationConfig))return!0;if(125===this._peek&&this._isInExpansionCase())return!0}return!1},t.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},t.prototype._readUntil=function(t){var e=this._index;return this._attemptUntilChar(t),this._input.substring(e,this._index)},t.prototype._restorePosition=function(t){this._peek=t[0],this._index=t[1],this._column=t[2],this._line=t[3];var e=t[4];e<this.tokens.length&&(this.tokens=this.tokens.slice(0,e))},t.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Cs.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Cs.EXPANSION_FORM_START},t}(),Ns=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.elementName=e,i}return Qr.a(e,t),e.create=function(t,n,r){return new e(t,n,r)},e}(gs),Rs=function(){function t(t,e){this.rootNodes=t,this.errors=e}return t}(),Is=function(){function t(t){this.getTagDefinition=t}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=ns);var i=lt(t,e,this.getTagDefinition,n,r),o=new js(i.tokens,this.getTagDefinition).build();return new Rs(o.rootNodes,i.errors.concat(o.errors))},t}(),js=function(){function t(t,e){this.tokens=t,this.getTagDefinition=e,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return t.prototype.build=function(){for(;this._peek.type!==Cs.EOF;)this._peek.type===Cs.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===Cs.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===Cs.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===Cs.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===Cs.TEXT||this._peek.type===Cs.RAW_TEXT||this._peek.type===Cs.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===Cs.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new Rs(this._rootNodes,this._errors)},t.prototype._advance=function(){var t=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],t},t.prototype._advanceIf=function(t){return this._peek.type===t?this._advance():null},t.prototype._consumeCdata=function(t){this._consumeText(this._advance()),this._advanceIf(Cs.CDATA_END)},t.prototype._consumeComment=function(t){var e=this._advanceIf(Cs.RAW_TEXT);this._advanceIf(Cs.COMMENT_END);var n=null!=e?e.parts[0].trim():null;this._addToParent(new Es(n,t.sourceSpan))},t.prototype._consumeExpansion=function(t){for(var e=this._advance(),n=this._advance(),r=[];this._peek.type===Cs.EXPANSION_CASE_VALUE;){var i=this._parseExpansionCase();if(!i)return;r.push(i)}if(this._peek.type!==Cs.EXPANSION_FORM_END)return void this._errors.push(Ns.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));var o=new ys(t.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new _s(e.parts[0],n.parts[0],r,o,e.sourceSpan)),this._advance()},t.prototype._parseExpansionCase=function(){var e=this._advance();if(this._peek.type!==Cs.EXPANSION_CASE_EXP_START)return this._errors.push(Ns.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var n=this._advance(),r=this._collectExpansionExpTokens(n);if(!r)return null;var i=this._advance();r.push(new Os(Cs.EOF,[],i.sourceSpan));var o=new t(r,this.getTagDefinition).build();if(o.errors.length>0)return this._errors=this._errors.concat(o.errors),null;var s=new ys(e.sourceSpan.start,i.sourceSpan.end),a=new ys(n.sourceSpan.start,i.sourceSpan.end);return new ws(e.parts[0],o.rootNodes,s,e.sourceSpan,a)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],n=[Cs.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==Cs.EXPANSION_FORM_START&&this._peek.type!==Cs.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===Cs.EXPANSION_CASE_EXP_END){if(!St(n,Cs.EXPANSION_CASE_EXP_START))return this._errors.push(Ns.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return e}if(this._peek.type===Cs.EXPANSION_FORM_END){if(!St(n,Cs.EXPANSION_FORM_START))return this._errors.push(Ns.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===Cs.EOF)return this._errors.push(Ns.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;e.push(this._advance())}},t.prototype._consumeText=function(t){var e=t.parts[0];if(e.length>0&&"\n"==e[0]){var n=this._getParentElement();null!=n&&0==n.children.length&&this.getTagDefinition(n.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new bs(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){var t=this._getParentElement();t&&this.getTagDefinition(t.name).isVoid&&this._elementStack.pop()},t.prototype._consumeStartTag=function(t){for(var e=t.parts[0],n=t.parts[1],r=[];this._peek.type===Cs.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(e,n,this._getParentElement()),o=!1;if(this._peek.type===Cs.TAG_OPEN_END_VOID){this._advance(),o=!0;var s=this.getTagDefinition(i);s.canSelfClose||null!==u(i)||s.isVoid||this._errors.push(Ns.create(i,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===Cs.TAG_OPEN_END&&(this._advance(),o=!1);var a=this._peek.sourceSpan.start,c=new ys(t.sourceSpan.start,a),l=new Ss(i,r,[],c,c,void 0);this._pushElement(l),o&&(this._popElement(i),l.endSourceSpan=c)},t.prototype._pushElement=function(t){var e=this._getParentElement();e&&this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop();var n=this.getTagDefinition(t.name),r=this._getParentElementSkippingContainers(),i=r.parent,o=r.container;if(i&&n.requireExtraParent(i.name)){var s=new Ss(n.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(i,o,s)}this._addToParent(t),this._elementStack.push(t)},t.prototype._consumeEndTag=function(t){var e=this._getElementFullName(t.parts[0],t.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=t.sourceSpan),this.getTagDefinition(e).isVoid)this._errors.push(Ns.create(e,t.sourceSpan,'Void elements do not have end tags "'+t.parts[1]+'"'));else if(!this._popElement(e)){var n='Unexpected closing tag "'+e+'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags';this._errors.push(Ns.create(e,t.sourceSpan,n))}},t.prototype._popElement=function(t){for(var e=this._elementStack.length-1;e>=0;e--){var n=this._elementStack[e];if(n.name==t)return this._elementStack.splice(e,this._elementStack.length-e),!0;if(!this.getTagDefinition(n.name).closedByParent)return!1}return!1},t.prototype._consumeAttr=function(t){var e=c(t.parts[0],t.parts[1]),n=t.sourceSpan.end,r="",i=void 0;if(this._peek.type===Cs.ATTR_VALUE){var o=this._advance();r=o.parts[0],n=o.sourceSpan.end,i=o.sourceSpan}return new xs(e,r,new ys(t.sourceSpan.start,n),i)},t.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},t.prototype._getParentElementSkippingContainers=function(){for(var t=null,e=this._elementStack.length-1;e>=0;e--){if(!o(this._elementStack[e].name))return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:null,container:t}},t.prototype._addToParent=function(t){var e=this._getParentElement();null!=e?e.children.push(t):this._rootNodes.push(t)},t.prototype._insertBeforeContainer=function(t,e,n){if(e){if(t){var r=t.children.indexOf(e);t.children[r]=n}else this._rootNodes.push(n);n.children.push(e),this._elementStack.splice(this._elementStack.indexOf(e),0,n)}else this._addToParent(n),this._elementStack.push(n)},t.prototype._getElementFullName=function(t,e,n){return null==t&&null==(t=this.getTagDefinition(e).implicitNamespacePrefix)&&null!=n&&(t=u(n.name)),c(t,e)},t}(),Ds=function(){function t(){}return t.prototype.visitText=function(t,e){return t.value},t.prototype.visitContainer=function(t,e){var n=this;return"["+t.children.map(function(t){return t.visit(n)}).join(", ")+"]"},t.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+t.expression+", "+t.type+", "+r.join(", ")+"}"},t.prototype.visitTagPlaceholder=function(t,e){var n=this;return t.isVoid?'<ph tag name="'+t.startName+'"/>':'<ph tag name="'+t.startName+'">'+t.children.map(function(t){return t.visit(n)}).join(", ")+'</ph name="'+t.closeName+'">'},t.prototype.visitPlaceholder=function(t,e){return t.value?'<ph name="'+t.name+'">'+t.value+"</ph>":'<ph name="'+t.name+'"/>'},t.prototype.visitIcuPlaceholder=function(t,e){return'<ph icu name="'+t.name+'">'+t.value.visit(this)+"</ph>"},t}(),Fs=new Ds,Ls=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qr.a(e,t),e.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+t.type+", "+r.join(", ")+"}"},e}(Ds),Vs={};Vs.Little=0,Vs.Big=1,Vs[Vs.Little]="Little",Vs[Vs.Big]="Big";var Us=function(){function t(t,e,n,r,i,o){this.nodes=t,this.placeholders=e,this.placeholderToMessage=n,this.meaning=r,this.description=i,this.id=o,t.length?this.sources=[{filePath:t[0].sourceSpan.start.file.url,startLine:t[0].sourceSpan.start.line+1,startCol:t[0].sourceSpan.start.col+1,endLine:t[t.length-1].sourceSpan.end.line+1,endCol:t[0].sourceSpan.start.col+1}]:this.sources=[]}return t}(),Bs=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Hs=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),qs=function(){function t(t,e,n,r){this.expression=t,this.type=e,this.cases=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitIcu(this,e)},t}(),zs=function(){function t(t,e,n,r,i,o,s){this.tag=t,this.attrs=e,this.startName=n,this.closeName=r,this.children=i,this.isVoid=o,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),Ws=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitPlaceholder(this,e)},t}(),Ks=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitIcuPlaceholder(this,e)},t}(),Gs=function(){function t(){}return t.prototype.visitText=function(t,e){return new Bs(t.value,t.sourceSpan)},t.prototype.visitContainer=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new Hs(r,t.sourceSpan)},t.prototype.visitIcu=function(t,e){var n=this,r={};Object.keys(t.cases).forEach(function(i){return r[i]=t.cases[i].visit(n,e)});var i=new qs(t.expression,t.type,r,t.sourceSpan);return i.expressionPlaceholder=t.expressionPlaceholder,i},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new zs(t.tag,t.attrs,t.startName,t.closeName,r,t.isVoid,t.sourceSpan)},t.prototype.visitPlaceholder=function(t,e){return new Ws(t.value,t.name,t.sourceSpan)},t.prototype.visitIcuPlaceholder=function(t,e){return new Ks(t.value,t.name,t.sourceSpan)},t}(),Qs=function(){function t(){}return t.prototype.visitText=function(t,e){},t.prototype.visitContainer=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitIcu=function(t,e){var n=this;Object.keys(t.cases).forEach(function(e){t.cases[e].visit(n)})},t.prototype.visitTagPlaceholder=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitPlaceholder=function(t,e){},t.prototype.visitIcuPlaceholder=function(t,e){},t}(),Xs={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},Ys=function(){function t(){this._placeHolderNameCounts={},this._signatureToName={}}return t.prototype.getStartTagPlaceholderName=function(t,e,n){var r=this._hashTag(t,e,n);if(this._signatureToName[r])return this._signatureToName[r];var i=t.toUpperCase(),o=Xs[i]||"TAG_"+i,s=this._generateUniqueName(n?o:"START_"+o);return this._signatureToName[r]=s,s},t.prototype.getCloseTagPlaceholderName=function(t){var e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];var n=t.toUpperCase(),r=Xs[n]||"TAG_"+n,i=this._generateUniqueName("CLOSE_"+r);return this._signatureToName[e]=i,i},t.prototype.getPlaceholderName=function(t,e){var n=t.toUpperCase(),r="PH: "+n+"="+e;if(this._signatureToName[r])return this._signatureToName[r];var i=this._generateUniqueName(n);return this._signatureToName[r]=i,i},t.prototype.getUniquePlaceholder=function(t){return this._generateUniqueName(t.toUpperCase())},t.prototype._hashTag=function(t,e,n){return"<"+t+Object.keys(e).sort().map(function(t){return" "+t+"="+e[t]}).join("")+(n?"/>":"></"+t+">")},t.prototype._hashClosingTag=function(t){return this._hashTag("/"+t,{},!1)},t.prototype._generateUniqueName=function(t){if(!this._placeHolderNameCounts.hasOwnProperty(t))return this._placeHolderNameCounts[t]=1,t;var e=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=e+1,t+"_"+e},t}(),Js=new ps(new os),Zs=function(){function t(t,e){this._expressionParser=t,this._interpolationConfig=e}return t.prototype.toI18nMessage=function(t,e,n,r){this._isIcu=1==t.length&&t[0]instanceof _s,this._icuDepth=0,this._placeholderRegistry=new Ys,this._placeholderToContent={},this._placeholderToMessage={};var i=ct(this,t,{});return new Us(i,this._placeholderToContent,this._placeholderToMessage,e,n,r)},t.prototype.visitElement=function(t,e){var n=ct(this,t.children),r={};t.attrs.forEach(function(t){r[t.name]=t.value});var i=l(t.name).isVoid,o=this._placeholderRegistry.getStartTagPlaceholderName(t.name,r,i);this._placeholderToContent[o]=t.sourceSpan.toString();var s="";return i||(s=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[s]="</"+t.name+">"),new zs(t.name,r,o,s,n,i,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitExpansion=function(e,n){var r=this;this._icuDepth++;var i={},o=new qs(e.switchValue,e.type,i,e.sourceSpan);if(e.cases.forEach(function(t){i[t.value]=new Hs(t.expression.map(function(t){return t.visit(r,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var s=this._placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return o.expressionPlaceholder=s,this._placeholderToContent[s]=e.switchValue,o}var a=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),u=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[a]=u.toI18nMessage([e],"","",""),new Ks(o,a,e.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Unreachable code")},t.prototype._visitTextWithInterpolation=function(t,e){var n=this._expressionParser.splitInterpolation(t,e.start.toString(),this._interpolationConfig);if(!n)return new Bs(t,e);for(var r=[],i=new Hs(r,e),o=this._interpolationConfig,s=o.start,a=o.end,u=0;u<n.strings.length-1;u++){var c=n.expressions[u],l=Xt(c)||"INTERPOLATION",p=this._placeholderRegistry.getPlaceholderName(l,c);n.strings[u].length&&r.push(new Bs(n.strings[u],e)),r.push(new Ws(c,p,e)),this._placeholderToContent[p]=s+c+a}var h=n.strings.length-1;return n.strings[h].length&&r.push(new Bs(n.strings[h],e)),i},t}(),$s=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g,ta=function(t){function e(e,n){return t.call(this,e,n)||this}return Qr.a(e,t),e}(gs),ea="i18n",na=/^i18n:?/,ra="|",ia="@@",oa=function(){function t(t,e){this.messages=t,this.errors=e}return t}(),sa={};sa.Extract=0,sa.Merge=1,sa[sa.Extract]="Extract",sa[sa.Merge]="Merge";var aa=function(){function t(t,e){this._implicitTags=t,this._implicitAttrs=e}return t.prototype.extract=function(t,e){var n=this;return this._init(sa.Extract,e),t.forEach(function(t){return t.visit(n,null)}),this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new oa(this._messages,this._errors)},t.prototype.merge=function(t,e,n){this._init(sa.Merge,n),this._translations=e;var r=new Ss("wrapper",[],t,void 0,void 0,void 0),i=r.visit(this,null);return this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Rs(i.children,this._errors)},t.prototype.visitExpansionCase=function(t,e){var n=ct(this,t.expression,e);if(this._mode===sa.Merge)return new ws(t.value,n,t.sourceSpan,t.valueSourceSpan,t.expSourceSpan)},t.prototype.visitExpansion=function(t,e){this._mayBeAddBlockChildren(t);var n=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([t]),this._inIcu=!0);var r=ct(this,t.cases,e);return this._mode===sa.Merge&&(t=new _s(t.switchValue,t.type,r,t.sourceSpan,t.switchValueSourceSpan)),this._inIcu=n,t},t.prototype.visitComment=function(t,e){var n=Zt(t);if(n&&this._isInTranslatableSection)return void this._reportError(t,"Could not start a block inside a translatable section");var r=$t(t);if(r&&!this._inI18nBlock)return void this._reportError(t,"Trying to close an unopened block");if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(r){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(t,this._blockChildren),this._inI18nBlock=!1;var i=this._addMessage(this._blockChildren,this._blockMeaningAndDesc),o=this._translateMessage(t,i);return ct(this,o)}return void this._reportError(t,"I18N blocks should not cross element boundaries")}}else n&&(this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(na,"").trim(),this._openTranslatableSection(t))},t.prototype.visitText=function(t,e){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(t),t},t.prototype.visitElement=function(t,e){var n=this;this._mayBeAddBlockChildren(t),this._depth++;var r=this._inI18nNode,i=this._inImplicitNode,o=[],s=void 0,a=te(t),u=a?a.value:"",c=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,l=!i&&c;if(this._inImplicitNode=i||c,this._isInTranslatableSection||this._inIcu)(a||l)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==sa.Extract&&ct(this,t.children);else{if(a||l){this._inI18nNode=!0;var p=this._addMessage(t.children,u);s=this._translateMessage(t,p)}if(this._mode==sa.Extract){var h=a||l;h&&this._openTranslatableSection(t),ct(this,t.children),h&&this._closeTranslatableSection(t,t.children)}}if(this._mode===sa.Merge){(s||t.children).forEach(function(t){var r=t.visit(n,e);r&&!n._isInTranslatableSection&&(o=o.concat(r))})}if(this._visitAttributesOf(t),this._depth--,this._inI18nNode=r,this._inImplicitNode=i,this._mode===sa.Merge){var f=this._translateAttributes(t);return new Ss(t.name,f,o,t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}return null},t.prototype.visitAttribute=function(t,e){throw new Error("unreachable code")},t.prototype._init=function(t,e){this._mode=t,this._inI18nBlock=!1,this._inI18nNode=!1,this._depth=0,this._inIcu=!1,this._msgCountAtSectionStart=void 0,this._errors=[],this._messages=[],this._inImplicitNode=!1,this._createI18nMessage=Qt(e)},t.prototype._visitAttributesOf=function(t){var e=this,n={},r=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith("i18n-")}).forEach(function(t){return n[t.name.slice("i18n-".length)]=t.value}),t.attrs.forEach(function(t){t.name in n?e._addMessage([t],n[t.name]):r.some(function(e){return t.name===e})&&e._addMessage([t])})},t.prototype._addMessage=function(t,e){if(0==t.length||1==t.length&&t[0]instanceof xs&&!t[0].value)return null;var n=ee(e),r=n.meaning,i=n.description,o=n.id,s=this._createI18nMessage(t,r,i,o);return this._messages.push(s),s},t.prototype._translateMessage=function(t,e){if(e&&this._mode===sa.Merge){var n=this._translations.get(e);if(n)return n;this._reportError(t,'Translation unavailable for message id="'+this._translations.digest(e)+'"')}return[]},t.prototype._translateAttributes=function(t){var e=this,n=t.attrs,r={};n.forEach(function(t){t.name.startsWith("i18n-")&&(r[t.name.slice("i18n-".length)]=ee(t.value))});var i=[];return n.forEach(function(n){if(n.name!==ea&&!n.name.startsWith("i18n-"))if(n.value&&""!=n.value&&r.hasOwnProperty(n.name)){var o=r[n.name],s=o.meaning,a=o.description,u=o.id,c=e._createI18nMessage([n],s,a,u),l=e._translations.get(c);if(l)if(0==l.length)i.push(new xs(n.name,"",n.sourceSpan));else if(l[0]instanceof bs){var p=l[0].value;i.push(new xs(n.name,p,n.sourceSpan))}else e._reportError(t,'Unexpected translation for attribute "'+n.name+'" (id="'+(u||e._translations.digest(c))+'")');else e._reportError(t,'Translation unavailable for attribute "'+n.name+'" (id="'+(u||e._translations.digest(c))+'")')}else i.push(n)}),i},t.prototype._mayBeAddBlockChildren=function(t){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(t)},t.prototype._openTranslatableSection=function(t){this._isInTranslatableSection?this._reportError(t,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(t.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),t.prototype._closeTranslatableSection=function(t,e){if(!this._isInTranslatableSection)return void this._reportError(t,"Unexpected section end");var n=this._msgCountAtSectionStart;if(1==e.reduce(function(t,e){return t+(e instanceof Es?0:1)},0))for(var r=this._messages.length-1;r>=n;r--){var i=this._messages[r].nodes;if(!(1==i.length&&i[0]instanceof Bs)){this._messages.splice(r,1);break}}this._msgCountAtSectionStart=void 0},t.prototype._reportError=function(t,e){this._errors.push(new ta(t.sourceSpan,e))},t}(),ua=function(){function t(){this.closedByParent=!1,this.contentType=di.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return t.prototype.requireExtraParent=function(t){return!1},t.prototype.isClosedByChild=function(t){return!1},t}(),ca=new ua,la=function(t){function e(){return t.call(this,ne)||this}return Qr.a(e,t),e.prototype.parse=function(e,n,r){return void 0===r&&(r=!1),t.prototype.parse.call(this,e,n,r)},e}(Is),pa=function(){function t(){}return t.prototype.write=function(t,e){},t.prototype.load=function(t,e){},t.prototype.digest=function(t){},t.prototype.createNameMapper=function(t){return null},t}(),ha=function(t){function e(e,n){var r=t.call(this)||this;return r.mapName=n,r.internalToPublic={},r.publicToNextId={},r.publicToInternal={},e.nodes.forEach(function(t){return t.visit(r)}),r}return Qr.a(e,t),e.prototype.toPublicName=function(t){return this.internalToPublic.hasOwnProperty(t)?this.internalToPublic[t]:null},e.prototype.toInternalName=function(t){return this.publicToInternal.hasOwnProperty(t)?this.publicToInternal[t]:null},e.prototype.visitText=function(t,e){return null},e.prototype.visitTagPlaceholder=function(e,n){this.visitPlaceholderName(e.startName),t.prototype.visitTagPlaceholder.call(this,e,n),this.visitPlaceholderName(e.closeName)},e.prototype.visitPlaceholder=function(t,e){this.visitPlaceholderName(t.name)},e.prototype.visitIcuPlaceholder=function(t,e){this.visitPlaceholderName(t.name)},e.prototype.visitPlaceholderName=function(t){if(t&&!this.internalToPublic.hasOwnProperty(t)){var e=this.mapName(t);if(this.publicToInternal.hasOwnProperty(e)){var n=this.publicToNextId[e];this.publicToNextId[e]=n+1,e=e+"_"+n}else this.publicToNextId[e]=1;this.internalToPublic[t]=e,this.publicToInternal[e]=t}},e}(Qs),fa=function(){function t(){}return t.prototype.visitTag=function(t){var e=this,n=this._serializeAttributes(t.attrs);if(0==t.children.length)return"<"+t.name+n+"/>";var r=t.children.map(function(t){return t.visit(e)});return"<"+t.name+n+">"+r.join("")+"</"+t.name+">"},t.prototype.visitText=function(t){return t.value},t.prototype.visitDeclaration=function(t){return"<?xml"+this._serializeAttributes(t.attrs)+" ?>"},t.prototype._serializeAttributes=function(t){var e=Object.keys(t).map(function(e){return e+'="'+t[e]+'"'}).join(" ");return e.length>0?" "+e:""},t.prototype.visitDoctype=function(t){return"<!DOCTYPE "+t.rootTag+" [\n"+t.dtd+"\n]>"},t}(),da=new fa,va=function(){function t(t){var e=this;this.attrs={},Object.keys(t).forEach(function(n){e.attrs[n]=ie(t[n])})}return t.prototype.visit=function(t){return t.visitDeclaration(this)},t}(),ya=function(){function t(t,e){this.rootTag=t,this.dtd=e}return t.prototype.visit=function(t){return t.visitDoctype(this)},t}(),ma=function(){function t(t,e,n){void 0===e&&(e={}),void 0===n&&(n=[]);var r=this;this.name=t,this.children=n,this.attrs={},Object.keys(e).forEach(function(t){r.attrs[t]=ie(e[t])})}return t.prototype.visit=function(t){return t.visitTag(this)},t}(),ga=function(){function t(t){this.value=ie(t)}return t.prototype.visit=function(t){return t.visitText(this)},t}(),ba=function(t){function e(e){return void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))||this}return Qr.a(e,t),e}(ga),_a=[[/&/g,"&amp;"],[/"/g,"&quot;"],[/'/g,"&apos;"],[/</g,"&lt;"],[/>/g,"&gt;"]],wa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qr.a(e,t),e.prototype.write=function(t,e){var n=new xa,r=[];t.forEach(function(t){var e=[];t.sources.forEach(function(t){var n=new ma("context-group",{purpose:"location"});n.children.push(new ba(10),new ma("context",{"context-type":"sourcefile"},[new ga(t.filePath)]),new ba(10),new ma("context",{"context-type":"linenumber"},[new ga(""+t.startLine)]),new ba(8)),e.push(new ba(8),n)});var i=new ma("trans-unit",{id:t.id,datatype:"html"});(o=i.children).push.apply(o,[new ba(8),new ma("source",{},n.serialize(t.nodes))].concat(e)),t.description&&i.children.push(new ba(8),new ma("note",{priority:"1",from:"description"},[new ga(t.description)])),t.meaning&&i.children.push(new ba(8),new ma("note",{priority:"1",from:"meaning"},[new ga(t.meaning)])),i.children.push(new ba(6)),r.push(new ba(6),i);var o});var i=new ma("body",{},r.concat([new ba(4)])),o=new ma("file",{"source-language":e||"en",datatype:"plaintext",original:"ng2.template"},[new ba(4),i,new ba(2)]),s=new ma("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new ba(2),o,new ba]);return re([new va({version:"1.0",encoding:"UTF-8"}),new ba,s,new ba])},e.prototype.load=function(t,e){var n=new Sa,r=n.parse(t,e),i=r.locale,o=r.msgIdToHtml,s=r.errors,a={},u=new Ea;if(Object.keys(o).forEach(function(t){var n=u.convert(o[t],e),r=n.i18nNodes,i=n.errors;s.push.apply(s,i),a[t]=r}),s.length)throw new Error("xliff parse errors:\n"+s.join("\n"));return{locale:i,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Et(t)},e}(pa),xa=function(){function t(){}return t.prototype.visitText=function(t,e){return[new ga(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new ga("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new ga(e+" {")].concat(t.cases[e].visit(n),[new ga("} ")]))}),r.push(new ga("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=oe(t.tag),r=new ma("x",{id:t.startName,ctype:n});if(t.isVoid)return[r];var i=new ma("x",{id:t.closeName,ctype:n});return[r].concat(this.serialize(t.children),[i])},t.prototype.visitPlaceholder=function(t,e){return[new ma("x",{id:t.name})]},t.prototype.visitIcuPlaceholder=function(t,e){return[new ma("x",{id:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Sa=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new la).parse(t,e,!1);return this._errors=n.errors,ct(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"trans-unit":this._unitMlString=null;var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(ct(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,'<trans-unit> misses the "id" attribute');break;case"source":break;case"target":var i=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content,a=s.slice(i,o);this._unitMlString=a;break;case"file":var u=t.attrs.find(function(t){return"target-language"===t.name});u&&(this._locale=u.value),ct(this,t.children,null);break;default:ct(this,t.children,null)}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new ta(t.sourceSpan,e))},t}(),Ea=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new la).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:ct(this,n.rootNodes),errors:this._errors}},t.prototype.visitText=function(t,e){return new Bs(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){if("x"===t.name){var n=t.attrs.find(function(t){return"id"===t.name});if(n)return new Ws("",n.value,t.sourceSpan);this._addError(t,'<x> misses the "id" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitExpansion=function(t,e){var n={};return ct(this,t.cases).forEach(function(e){n[e.value]=new Hs(e.nodes,t.sourceSpan)}),new qs(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:ct(this,t.expression)}},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new ta(t.sourceSpan,e))},t}(),Ca=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qr.a(e,t),e.prototype.write=function(t,e){var n=new Oa,r=[];t.forEach(function(t){var e=new ma("unit",{id:t.id}),i=new ma("notes");(t.description||t.meaning)&&(t.description&&i.children.push(new ba(8),new ma("note",{category:"description"},[new ga(t.description)])),t.meaning&&i.children.push(new ba(8),new ma("note",{category:"meaning"},[new ga(t.meaning)]))),t.sources.forEach(function(t){i.children.push(new ba(8),new ma("note",{category:"location"},[new ga(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),i.children.push(new ba(6)),e.children.push(new ba(6),i);var o=new ma("segment");o.children.push(new ba(8),new ma("source",{},n.serialize(t.nodes)),new ba(6)),e.children.push(new ba(6),o,new ba(4)),r.push(new ba(4),e)});var i=new ma("file",{original:"ng.template",id:"ngi18n"},r.concat([new ba(2)])),o=new ma("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:e||"en"},[new ba(2),i,new ba]);return re([new va({version:"1.0",encoding:"UTF-8"}),new ba,o,new ba])},e.prototype.load=function(t,e){var n=new Ta,r=n.parse(t,e),i=r.locale,o=r.msgIdToHtml,s=r.errors,a={},u=new Pa;if(Object.keys(o).forEach(function(t){var n=u.convert(o[t],e),r=n.i18nNodes,i=n.errors;s.push.apply(s,i),a[t]=r}),s.length)throw new Error("xliff2 parse errors:\n"+s.join("\n"));return{locale:i,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Ct(t)},e}(pa),Oa=function(){function t(){}return t.prototype.visitText=function(t,e){return[new ga(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new ga("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new ga(e+" {")].concat(t.cases[e].visit(n),[new ga("} ")]))}),r.push(new ga("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=se(t.tag);if(t.isVoid){return[new ma("ph",{id:(this._nextPlaceholderId++).toString(),equiv:t.startName,type:r,disp:"<"+t.tag+"/>"})]}var i=new ma("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:t.startName,equivEnd:t.closeName,type:r,dispStart:"<"+t.tag+">",dispEnd:"</"+t.tag+">"}),o=[].concat.apply([],t.children.map(function(t){return t.visit(n)}));return o.length?o.forEach(function(t){return i.children.push(t)}):i.children.push(new ga("")),[i]},t.prototype.visitPlaceholder=function(t,e){var n=(this._nextPlaceholderId++).toString();return[new ma("ph",{id:n,equiv:t.name,disp:"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(t,e){var n=Object.keys(t.value.cases).map(function(t){return t+" {...}"}).join(" "),r=(this._nextPlaceholderId++).toString();return[new ma("ph",{id:r,equiv:t.name,disp:"{"+t.value.expression+", "+t.value.type+", "+n+"}"})]},t.prototype.serialize=function(t){var e=this;return this._nextPlaceholderId=0,[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Ta=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new la).parse(t,e,!1);return this._errors=n.errors,ct(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"unit":this._unitMlString=null;var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(ct(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,'<unit> misses the "id" attribute');break;case"source":break;case"target":var i=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content,a=s.slice(i,o);this._unitMlString=a;break;case"xliff":var u=t.attrs.find(function(t){return"trgLang"===t.name});u&&(this._locale=u.value);var c=t.attrs.find(function(t){return"version"===t.name});if(c){var l=c.value;"2.0"!==l?this._addError(t,"The XLIFF file version "+l+" is not compatible with XLIFF 2.0 serializer"):ct(this,t.children,null)}break;default:ct(this,t.children,null)}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new ta(t.sourceSpan,e))},t}(),Pa=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new la).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],ct(this,n.rootNodes)),errors:this._errors}},t.prototype.visitText=function(t,e){return new Bs(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){var n=this;switch(t.name){case"ph":var r=t.attrs.find(function(t){return"equiv"===t.name});if(r)return[new Ws("",r.value,t.sourceSpan)];this._addError(t,'<ph> misses the "equiv" attribute');break;case"pc":var i=t.attrs.find(function(t){return"equivStart"===t.name}),o=t.attrs.find(function(t){return"equivEnd"===t.name});if(i){if(o){var s=i.value,a=o.value,u=[];return u.concat.apply(u,[new Ws("",s,t.sourceSpan)].concat(t.children.map(function(t){return t.visit(n,null)}),[new Ws("",a,t.sourceSpan)]))}this._addError(t,'<ph> misses the "equivEnd" attribute')}else this._addError(t,'<ph> misses the "equivStart" attribute');break;default:this._addError(t,"Unexpected tag")}return null},t.prototype.visitExpansion=function(t,e){var n={};return ct(this,t.cases).forEach(function(e){n[e.value]=new Hs(e.nodes,t.sourceSpan)}),new qs(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:[].concat.apply([],ct(this,t.expression))}},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new ta(t.sourceSpan,e))},t}(),Aa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qr.a(e,t),e.prototype.write=function(t,e){var n=new Ma,r=new ka,i=new ma("messagebundle");return t.forEach(function(t){var e={id:t.id};t.description&&(e.desc=t.description),t.meaning&&(e.meaning=t.meaning);var n=[];t.sources.forEach(function(t){n.push(new ma("source",{},[new ga(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),i.children.push(new ba(2),new ma("msg",e,n.concat(r.serialize(t.nodes))))}),i.children.push(new ba),re([new va({version:"1.0",encoding:"UTF-8"}),new ba,new ya("messagebundle",'<!ELEMENT messagebundle (msg)*>\n<!ATTLIST messagebundle class CDATA #IMPLIED>\n\n<!ELEMENT msg (#PCDATA|ph|source)*>\n<!ATTLIST msg id CDATA #IMPLIED>\n<!ATTLIST msg seq CDATA #IMPLIED>\n<!ATTLIST msg name CDATA #IMPLIED>\n<!ATTLIST msg desc CDATA #IMPLIED>\n<!ATTLIST msg meaning CDATA #IMPLIED>\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\n<!ATTLIST msg xml:space (default|preserve) "default">\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\n\n<!ELEMENT source (#PCDATA)>\n\n<!ELEMENT ph (#PCDATA|ex)*>\n<!ATTLIST ph name CDATA #REQUIRED>\n\n<!ELEMENT ex (#PCDATA)>'),new ba,n.addDefaultExamples(i),new ba])},e.prototype.load=function(t,e){throw new Error("Unsupported")},e.prototype.digest=function(t){return ae(t)},e.prototype.createNameMapper=function(t){return new ha(t,ue)},e}(pa),ka=function(){function t(){}return t.prototype.visitText=function(t,e){return[new ga(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new ga("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new ga(e+" {")].concat(t.cases[e].visit(n),[new ga("} ")]))}),r.push(new ga("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=new ma("ex",{},[new ga("<"+t.tag+">")]),r=new ma("ph",{name:t.startName},[n]);if(t.isVoid)return[r];var i=new ma("ex",{},[new ga("</"+t.tag+">")]),o=new ma("ph",{name:t.closeName},[i]);return[r].concat(this.serialize(t.children),[o])},t.prototype.visitPlaceholder=function(t,e){return[new ma("ph",{name:t.name})]},t.prototype.visitIcuPlaceholder=function(t,e){return[new ma("ph",{name:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Ma=function(){function t(){}return t.prototype.addDefaultExamples=function(t){return t.visit(this),t},t.prototype.visitTag=function(t){var e=this;if("ph"===t.name){if(!t.children||0==t.children.length){var n=new ga(t.attrs.name||"...");t.children=[new ma("ex",{},[n])]}}else t.children&&t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitText=function(t){},t.prototype.visitDeclaration=function(t){},t.prototype.visitDoctype=function(t){},t}(),Na=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qr.a(e,t),e.prototype.write=function(t,e){throw new Error("Unsupported")},e.prototype.load=function(t,e){var n=new Ra,r=n.parse(t,e),i=r.locale,o=r.msgIdToHtml,s=r.errors,a={},u=new Ia;if(Object.keys(o).forEach(function(t){ce(a,t,function(){var n=u.convert(o[t],e),r=n.i18nNodes,i=n.errors;if(i.length)throw new Error("xtb parse errors:\n"+i.join("\n"));return r})}),s.length)throw new Error("xtb parse errors:\n"+s.join("\n"));return{locale:i,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return ae(t)},e.prototype.createNameMapper=function(t){return new ha(t,ue)},e}(pa),Ra=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._bundleDepth=0,this._msgIdToHtml={};var n=(new la).parse(t,e,!1);return this._errors=n.errors,ct(this,n.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"translationbundle":this._bundleDepth++,this._bundleDepth>1&&this._addError(t,"<translationbundle> elements can not be nested");var n=t.attrs.find(function(t){return"lang"===t.name});n&&(this._locale=n.value),ct(this,t.children,null),this._bundleDepth--;break;case"translation":var r=t.attrs.find(function(t){return"id"===t.name});if(r){var i=r.value;if(this._msgIdToHtml.hasOwnProperty(i))this._addError(t,"Duplicated translations for msg "+i);else{var o=t.startSourceSpan.end.offset,s=t.endSourceSpan.start.offset,a=t.startSourceSpan.start.file.content,u=a.slice(o,s);this._msgIdToHtml[i]=u}}else this._addError(t,'<translation> misses the "id" attribute');break;default:this._addError(t,"Unexpected tag")}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new ta(t.sourceSpan,e))},t}(),Ia=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new la).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:ct(this,n.rootNodes),errors:this._errors}},t.prototype.visitText=function(t,e){return new Bs(t.value,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){var n={};return ct(this,t.cases).forEach(function(e){n[e.value]=new Hs(e.nodes,t.sourceSpan)}),new qs(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:ct(this,t.expression)}},t.prototype.visitElement=function(t,e){if("ph"===t.name){var n=t.attrs.find(function(t){return"name"===t.name});if(n)return new Ws("",n.value,t.sourceSpan);this._addError(t,'<ph> misses the "name" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new ta(t.sourceSpan,e))},t}(),ja=function(t){function e(){return t.call(this,l)||this}return Qr.a(e,t),e.prototype.parse=function(e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=ns),t.prototype.parse.call(this,e,n,r,i)},e}(Is);ja.decorators=[{type:q}],ja.ctorParameters=function(){return[]};var Da=function(){function t(t,e,n,r,i,o){void 0===t&&(t={}),void 0===i&&(i=Xr.J.Warning),this._i18nNodesByMsgId=t,this.digest=n,this.mapperFactory=r,this._i18nToHtml=new Fa(t,e,n,r,i,o)}return t.load=function(e,n,r,i,o){var s=r.load(e,n),a=s.locale;return new t(s.i18nNodesByMsgId,a,function(t){return r.digest(t)},function(t){return r.createNameMapper(t)},i,o)},t.prototype.get=function(t){var e=this._i18nToHtml.convert(t);if(e.errors.length)throw new Error(e.errors.join("\n"));return e.nodes},t.prototype.has=function(t){return this.digest(t)in this._i18nNodesByMsgId},t}(),Fa=function(){function t(t,e,n,r,i,o){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this._locale=e,this._digest=n,this._mapperFactory=r,this._missingTranslationStrategy=i,this._console=o,this._contextStack=[],this._errors=[]}return t.prototype.convert=function(t){this._contextStack.length=0,this._errors.length=0;var e=this._convertToText(t),n=t.nodes[0].sourceSpan.start.file.url,r=(new ja).parse(e,n,!0);return{nodes:r.rootNodes,errors:this._errors.concat(r.errors)}},t.prototype.visitText=function(t,e){return t.value},t.prototype.visitContainer=function(t,e){var n=this;return t.children.map(function(t){return t.visit(n)}).join("")},t.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+(this._srcMsg.placeholders.hasOwnProperty(t.expression)?this._srcMsg.placeholders[t.expression]:t.expression)+", "+t.type+", "+r.join(" ")+"}"},t.prototype.visitPlaceholder=function(t,e){var n=this._mapper(t.name);return this._srcMsg.placeholders.hasOwnProperty(n)?this._srcMsg.placeholders[n]:this._srcMsg.placeholderToMessage.hasOwnProperty(n)?this._convertToText(this._srcMsg.placeholderToMessage[n]):(this._addError(t,'Unknown placeholder "'+t.name+'"'),"")},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=""+t.tag,i=Object.keys(t.attrs).map(function(e){return e+'="'+t.attrs[e]+'"'}).join(" ");return t.isVoid?"<"+r+" "+i+"/>":"<"+r+" "+i+">"+t.children.map(function(t){return t.visit(n)}).join("")+"</"+r+">"},t.prototype.visitIcuPlaceholder=function(t,e){return this._convertToText(this._srcMsg.placeholderToMessage[t.name])},t.prototype._convertToText=function(t){var e,n=this,r=this._digest(t),i=this._mapperFactory?this._mapperFactory(t):null;if(this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=t,this._i18nNodesByMsgId.hasOwnProperty(r))e=this._i18nNodesByMsgId[r],this._mapper=function(t){return i?i.toInternalName(t):t};else{if(this._missingTranslationStrategy===Xr.J.Error){var o=this._locale?' for locale "'+this._locale+'"':"";this._addError(t.nodes[0],'Missing translation for message "'+r+'"'+o)}else if(this._console&&this._missingTranslationStrategy===Xr.J.Warning){var o=this._locale?' for locale "'+this._locale+'"':"";this._console.warn('Missing translation for message "'+r+'"'+o)}e=t.nodes,this._mapper=function(t){return t}}var s=e.map(function(t){return t.visit(n)}).join(""),a=this._contextStack.pop();return this._srcMsg=a.msg,this._mapper=a.mapper,s},t.prototype._addError=function(t,e){this._errors.push(new ta(t.sourceSpan,e))},t}(),La=function(){function t(t,e,n,r,i){if(void 0===r&&(r=Xr.J.Warning),this._htmlParser=t,e){var o=le(n);this._translationBundle=Da.load(e,"i18n",o,r,i)}else this._translationBundle=new Da({},null,Et,void 0,r,i)}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=ns);var i=this._htmlParser.parse(t,e,n,r);return i.errors.length?new Rs(i.rootNodes,i.errors):Jt(i.rootNodes,this._translationBundle,r,[],{})},t}(),Va="@angular/core",Ua=function(){function t(){}return t}();Ua.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleName:Va,runtime:Xr.a},Ua.ElementRef={name:"ElementRef",moduleName:Va,runtime:Xr.v},Ua.NgModuleRef={name:"NgModuleRef",moduleName:Va,runtime:Xr.P},Ua.ViewContainerRef={name:"ViewContainerRef",moduleName:Va,runtime:Xr._19},Ua.ChangeDetectorRef={name:"ChangeDetectorRef",moduleName:Va,runtime:Xr.l},Ua.QueryList={name:"QueryList",moduleName:Va,runtime:Xr.Z},Ua.TemplateRef={name:"TemplateRef",moduleName:Va,runtime:Xr._13},Ua.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleName:Va,runtime:Xr._37},Ua.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleName:Va,runtime:Xr.q},Ua.ComponentFactory={name:"ComponentFactory",moduleName:Va,runtime:Xr.p},Ua.ComponentRef={name:"ComponentRef",moduleName:Va,runtime:Xr.r},Ua.NgModuleFactory={name:"NgModuleFactory",moduleName:Va,runtime:Xr.N},Ua.createModuleFactory={name:"ɵcmf",moduleName:Va,runtime:Xr._45},Ua.moduleDef={name:"ɵmod",moduleName:Va,runtime:Xr._63},Ua.moduleProviderDef={name:"ɵmpd",moduleName:Va,runtime:Xr._64},Ua.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleName:Va,runtime:Xr._73},Ua.Injector={name:"Injector",moduleName:Va,runtime:Xr.E},Ua.ViewEncapsulation={name:"ViewEncapsulation",moduleName:Va,runtime:Xr._20},Ua.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:Va,runtime:Xr.k},Ua.SecurityContext={name:"SecurityContext",moduleName:Va,runtime:Xr._6},Ua.LOCALE_ID={name:"LOCALE_ID",moduleName:Va,runtime:Xr.I},Ua.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleName:Va,runtime:Xr._12},Ua.inlineInterpolate={name:"ɵinlineInterpolate",moduleName:Va,runtime:Xr._54},Ua.interpolate={name:"ɵinterpolate",moduleName:Va,runtime:Xr._55},Ua.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleName:Va,runtime:Xr._39},Ua.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleName:Va,runtime:Xr._40},Ua.Renderer={name:"Renderer",moduleName:Va,runtime:Xr._1},Ua.viewDef={name:"ɵvid",moduleName:Va,runtime:Xr._77},Ua.elementDef={name:"ɵeld",moduleName:Va,runtime:Xr._49},Ua.anchorDef={name:"ɵand",moduleName:Va,runtime:Xr._43},Ua.textDef={name:"ɵted",moduleName:Va,runtime:Xr._75},Ua.directiveDef={name:"ɵdid",moduleName:Va,runtime:Xr._47},Ua.providerDef={name:"ɵprd",moduleName:Va,runtime:Xr._71},Ua.queryDef={name:"ɵqud",moduleName:Va,runtime:Xr._72},Ua.pureArrayDef={name:"ɵpad",moduleName:Va,runtime:Xr._67},Ua.pureObjectDef={name:"ɵpod",moduleName:Va,runtime:Xr._69},Ua.purePipeDef={name:"ɵppd",moduleName:Va,runtime:Xr._70},Ua.pipeDef={name:"ɵpid",moduleName:Va,runtime:Xr._68},Ua.nodeValue={name:"ɵnov",moduleName:Va,runtime:Xr._66},Ua.ngContentDef={name:"ɵncd",moduleName:Va,runtime:Xr._65},Ua.unwrapValue={name:"ɵunv",moduleName:Va,runtime:Xr._76},Ua.createRendererType2={name:"ɵcrt",moduleName:Va,runtime:Xr._46},Ua.RendererType2={name:"RendererType2",moduleName:Va,runtime:null},Ua.ViewDefinition={name:"ɵViewDefinition",moduleName:Va,runtime:null},Ua.createComponentFactory={name:"ɵccf",moduleName:Va,runtime:Xr._44};var Ba=["zero","one","two","few","many","other"],Ha=function(){function t(t,e,n){this.nodes=t,this.expanded=e,this.errors=n}return t}(),qa=function(t){function e(e,n){return t.call(this,e,n)||this}return Qr.a(e,t),e}(gs),za=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t,e){return new Ss(t.name,t.attrs,ct(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t,e){return t},t.prototype.visitText=function(t,e){return t},t.prototype.visitComment=function(t,e){return t},t.prototype.visitExpansion=function(t,e){return this.isExpanded=!0,"plural"==t.type?de(t,this.errors):ve(t,this.errors)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Should not be reached")},t}(),Wa=function(t){function e(e,n){return t.call(this,n,e)||this}return Qr.a(e,t),e}(gs),Ka=function(){function t(t,e){var n=this;this.reflector=t,this.component=e,this.errors=[],this.viewQueries=_e(e),this.viewProviders=new Map,e.viewProviders.forEach(function(t){null==n.viewProviders.get(k(t.token))&&n.viewProviders.set(k(t.token),!0)})}return t}(),Ga=function(){function t(t,e,n,r,i,o,s,a,u){var c=this;this.viewContext=t,this._parent=e,this._isViewRoot=n,this._directiveAsts=r,this._sourceSpan=u,this._transformedProviders=new Map,this._seenProviders=new Map,this._hasViewContainer=!1,this._queriedTokens=new Map,this._attrs={},i.forEach(function(t){return c._attrs[t.name]=t.value});var l=r.map(function(t){return t.directive});if(this._allProviders=ge(l,u,t.errors),this._contentQueries=we(a,l),Array.from(this._allProviders.values()).forEach(function(t){c._addQueryReadsTo(t.token,t.token,c._queriedTokens)}),s){var p=he(this.viewContext.reflector,Ua.TemplateRef);this._addQueryReadsTo(p,p,this._queriedTokens)}o.forEach(function(t){var e=t.value||he(c.viewContext.reflector,Ua.ElementRef);c._addQueryReadsTo({value:t.name},e,c._queriedTokens)}),this._queriedTokens.get(this.viewContext.reflector.resolveExternalReference(Ua.ViewContainerRef))&&(this._hasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){(t.eager||c._queriedTokens.get(k(t.token)))&&c._getOrCreateLocalProvider(t.providerType,t.token,!0)})}return t.prototype.afterElement=function(){var t=this;Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.providerType,e.token,!1)})},Object.defineProperty(t.prototype,"transformProviders",{get:function(){var t=[],e=[];return this._transformedProviders.forEach(function(n){n.eager?e.push(n):t.push(n)}),t.concat(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedDirectiveAsts",{get:function(){var t=this.transformProviders.map(function(t){return t.token.identifier}),e=this._directiveAsts.slice();return e.sort(function(e,n){return t.indexOf(e.directive.type)-t.indexOf(n.directive.type)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryMatches",{get:function(){var t=[];return this._queriedTokens.forEach(function(e){t.push.apply(t,e)}),t},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(t,e,n){this._getQueriesFor(t).forEach(function(t){var r=t.meta.read||e,i=k(r),o=n.get(i);o||(o=[],n.set(i,o)),o.push({queryId:t.queryId,value:r})})},t.prototype._getQueriesFor=function(t){for(var e,n=[],r=this,i=0;null!==r;)e=r._contentQueries.get(k(t)),e&&n.push.apply(n,e.filter(function(t){return t.meta.descendants||i<=1})),r._directiveAsts.length>0&&i++,r=r._parent;return e=this.viewContext.viewQueries.get(k(t)),e&&n.push.apply(n,e),n},t.prototype._getOrCreateLocalProvider=function(t,e,n){var r=this,i=this._allProviders.get(k(e));if(!i||(t===ui.Directive||t===ui.PublicService)&&i.providerType===ui.PrivateService||(t===ui.PrivateService||t===ui.PublicService)&&i.providerType===ui.Builtin)return null;var o=this._transformedProviders.get(k(e));if(o)return o;if(null!=this._seenProviders.get(k(e)))return this.viewContext.errors.push(new Wa("Cannot instantiate cyclic dependency! "+A(e),this._sourceSpan)),null;this._seenProviders.set(k(e),!0);var s=i.providers.map(function(t){var e=t.useValue,o=t.useExisting,s=void 0;if(null!=t.useExisting){var a=r._getDependency(i.providerType,{token:t.useExisting},n);null!=a.token?o=a.token:(o=null,e=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;s=u.map(function(t){return r._getDependency(i.providerType,t,n)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return r._getDependency(i.providerType,t,n)})}return ye(t,{useExisting:o,useValue:e,deps:s})});return o=me(i,{eager:n,providers:s}),this._transformedProviders.set(k(e),o),o},t.prototype._getLocalDependency=function(t,e,n){if(void 0===n&&(n=!1),e.isAttribute){var r=this._attrs[e.token.value];return{isValue:!0,value:null==r?null:r}}if(null!=e.token){if(t===ui.Directive||t===ui.Component){if(k(e.token)===this.viewContext.reflector.resolveExternalReference(Ua.Renderer)||k(e.token)===this.viewContext.reflector.resolveExternalReference(Ua.ElementRef)||k(e.token)===this.viewContext.reflector.resolveExternalReference(Ua.ChangeDetectorRef)||k(e.token)===this.viewContext.reflector.resolveExternalReference(Ua.TemplateRef))return e;k(e.token)===this.viewContext.reflector.resolveExternalReference(Ua.ViewContainerRef)&&(this._hasViewContainer=!0)}if(k(e.token)===this.viewContext.reflector.resolveExternalReference(Ua.Injector))return e;if(null!=this._getOrCreateLocalProvider(t,e.token,n))return e}return null},t.prototype._getDependency=function(t,e,n){void 0===n&&(n=!1);var r=this,i=n,o=null;if(e.isSkipSelf||(o=this._getLocalDependency(t,e,n)),e.isSelf)!o&&e.isOptional&&(o={isValue:!0,value:null});else{for(;!o&&r._parent;){var s=r;r=r._parent,s._isViewRoot&&(i=!1),o=r._getLocalDependency(ui.PublicService,e,i)}o||(o=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===k(e.token)||null!=this.viewContext.viewProviders.get(k(e.token))?e:e.isOptional?o={isValue:!0,value:null}:null)}return o||this.viewContext.errors.push(new Wa("No provider for "+A(e.token),this._sourceSpan)),o},t}(),Qa=function(){function t(t,e,n,r){var i=this;this.reflector=t,this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,e.transitiveModule.modules.forEach(function(t){be([{token:{identifier:t},useClass:t}],ui.PublicService,!0,r,i._errors,i._allProviders)}),be(e.transitiveModule.providers.map(function(t){return t.provider}).concat(n),ui.PublicService,!1,r,this._errors,this._allProviders)}return t.prototype.parse=function(){var t=this;if(Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.token,e.eager)}),this._errors.length>0){var e=this._errors.join("\n");throw new Error("Provider parse errors:\n"+e)}var n=[],r=[];return this._transformedProviders.forEach(function(t){t.eager?r.push(t):n.push(t)}),n.concat(r)},t.prototype._getOrCreateLocalProvider=function(t,e){var n=this,r=this._allProviders.get(k(t));if(!r)return null;var i=this._transformedProviders.get(k(t));if(i)return i;if(null!=this._seenProviders.get(k(t)))return this._errors.push(new Wa("Cannot instantiate cyclic dependency! "+A(t),r.sourceSpan)),null;this._seenProviders.set(k(t),!0);var o=r.providers.map(function(t){var i=t.useValue,o=t.useExisting,s=void 0;if(null!=t.useExisting){var a=n._getDependency({token:t.useExisting},e,r.sourceSpan);null!=a.token?o=a.token:(o=null,i=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;s=u.map(function(t){return n._getDependency(t,e,r.sourceSpan)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return n._getDependency(t,e,r.sourceSpan)})}return ye(t,{useExisting:o,useValue:i,deps:s})});return i=me(r,{eager:e,providers:o}),this._transformedProviders.set(k(t),i),i},t.prototype._getDependency=function(t,e,n){void 0===e&&(e=!1);var r=!1;t.isSkipSelf||null==t.token||(k(t.token)===this.reflector.resolveExternalReference(Ua.Injector)||k(t.token)===this.reflector.resolveExternalReference(Ua.ComponentFactoryResolver)?r=!0:null!=this._getOrCreateLocalProvider(t.token,e)&&(r=!0));var i=t;return t.isSelf&&!r&&(t.isOptional?i={isValue:!0,value:null}:this._errors.push(new Wa("No provider for "+A(t.token),n))),i},t}(),Xa=function(){function t(){}return t.prototype.hasProperty=function(t,e,n){},t.prototype.hasElement=function(t,e){},t.prototype.securityContext=function(t,e,n){},t.prototype.allKnownElementNames=function(){},t.prototype.getMappedPropName=function(t){},t.prototype.getDefaultComponentElementName=function(){},t.prototype.validateProperty=function(t){},t.prototype.validateAttribute=function(t){},t.prototype.normalizeAnimationStyleProperty=function(t){},t.prototype.normalizeAnimationStyleValue=function(t,e,n){},t}(),Ya=function(){function t(t,e){this.style=t,this.styleUrls=e}return t}(),Ja=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,Za=/\/\*[\s\S]+?\*\//g,$a=/^([^:\/?#]+):/,tu={};tu.DEFAULT=0,tu.LITERAL_ATTR=1,tu.ANIMATION=2,tu[tu.DEFAULT]="DEFAULT",tu[tu.LITERAL_ATTR]="LITERAL_ATTR",tu[tu.ANIMATION]="ANIMATION";var eu=function(){function t(t,e,n,r){this.name=t,this.expression=e,this.type=n,this.sourceSpan=r}return Object.defineProperty(t.prototype,"isLiteral",{get:function(){return this.type===tu.LITERAL_ATTR},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===tu.ANIMATION},enumerable:!0,configurable:!0}),t}(),nu=function(){function t(t,e,n,r,i){var o=this;this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=n,this._targetErrors=i,this.pipesByName=new Map,this._usedPipes=new Map,r.forEach(function(t){return o.pipesByName.set(t.name,t)})}return t.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},t.prototype.createDirectiveHostPropertyAsts=function(t,e,n){var r=this;if(t.hostProperties){var i=[];return Object.keys(t.hostProperties).forEach(function(e){var o=t.hostProperties[e];"string"==typeof o?r.parsePropertyBinding(e,o,!0,n,[],i):r._reportError('Value of the host property binding "'+e+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",n)}),i.map(function(t){return r.createElementPropertyAst(e,t)})}return null},t.prototype.createDirectiveHostEventAsts=function(t,e){var n=this;if(t.hostListeners){var r=[];return Object.keys(t.hostListeners).forEach(function(i){var o=t.hostListeners[i];"string"==typeof o?n.parseEvent(i,o,e,[],r):n._reportError('Value of the host listener "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",e)}),r}return null},t.prototype.parseInterpolation=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseInterpolation(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),this._checkPipes(r,e),r}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype.parseInlineTemplateBinding=function(t,e,n,r,i,o){for(var s=this._parseTemplateBindings(t,e,n),a=0;a<s.length;a++){var u=s[a];u.keyIsVar?o.push(new ni(u.key,u.name,n)):u.expression?this._parsePropertyAst(u.key,u.expression,n,r,i):(r.push([u.key,""]),this.parseLiteralAttr(u.key,null,n,r,i))}},t.prototype._parseTemplateBindings=function(t,e,n){var r=this,i=n.start.toString();try{var o=this._exprParser.parseTemplateBindings(t,e,i);return this._reportExpressionParserErrors(o.errors,n),o.templateBindings.forEach(function(t){t.expression&&r._checkPipes(t.expression,n)}),o.warnings.forEach(function(t){r._reportError(t,n,ms.WARNING)}),o.templateBindings}catch(t){return this._reportError(""+t,n),[]}},t.prototype.parseLiteralAttr=function(t,e,n,r,i){Ce(t)?(t=t.substring(1),e&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',n,ms.ERROR),this._parseAnimation(t,e,n,r,i)):i.push(new eu(t,this._exprParser.wrapLiteralPrimitive(e,""),tu.LITERAL_ATTR,n))},t.prototype.parsePropertyBinding=function(t,e,n,r,i,o){var s=!1;t.startsWith("animate-")?(s=!0,t=t.substring("animate-".length)):Ce(t)&&(s=!0,t=t.substring(1)),s?this._parseAnimation(t,e,r,i,o):this._parsePropertyAst(t,this._parseBinding(e,n,r),r,i,o)},t.prototype.parsePropertyInterpolation=function(t,e,n,r,i){var o=this.parseInterpolation(e,n);return!!o&&(this._parsePropertyAst(t,o,n,r,i),!0)},t.prototype._parsePropertyAst=function(t,e,n,r,i){r.push([t,e.source]),i.push(new eu(t,e,tu.DEFAULT,n))},t.prototype._parseAnimation=function(t,e,n,r,i){var o=this._parseBinding(e||"null",!1,n);r.push([t,o.source]),i.push(new eu(t,o,tu.ANIMATION,n))},t.prototype._parseBinding=function(t,e,n){var r=n.start.toString();try{var i=e?this._exprParser.parseSimpleBinding(t,r,this._interpolationConfig):this._exprParser.parseBinding(t,r,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,n),this._checkPipes(i,n),i}catch(t){return this._reportError(""+t,n),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype.createElementPropertyAst=function(t,e){if(e.isAnimation)return new $r(e.name,li.Animation,Xr._6.NONE,e.expression,null,e.sourceSpan);var n=null,r=void 0,i=null,o=e.name.split("."),s=void 0;if(o.length>1)if("attr"==o[0]){i=o[1],this._validatePropertyOrAttributeName(i,e.sourceSpan,!0),s=Oe(this._schemaRegistry,t,i,!0);var a=i.indexOf(":");if(a>-1){var u=i.substring(0,a),l=i.substring(a+1);i=c(u,l)}r=li.Attribute}else"class"==o[0]?(i=o[1],r=li.Class,s=[Xr._6.NONE]):"style"==o[0]&&(n=o.length>2?o[2]:null,i=o[1],r=li.Style,s=[Xr._6.STYLE]);return null===i&&(i=this._schemaRegistry.getMappedPropName(e.name),s=Oe(this._schemaRegistry,t,i,!1),r=li.Property,this._validatePropertyOrAttributeName(i,e.sourceSpan,!1)),new $r(i,r,s[0],e.expression,n,e.sourceSpan)},t.prototype.parseEvent=function(t,e,n,r,i){Ce(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,n,i)):this._parseEvent(t,e,n,r,i)},t.prototype._parseAnimationEvent=function(t,e,n,r){var i=f(t,[t,""]),o=i[0],s=i[1].toLowerCase();if(s)switch(s){case"start":case"done":var a=this._parseAction(e,n);r.push(new ti(o,null,s,a,n));break;default:this._reportError('The provided animation output phase value "'+s+'" for "@'+o+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+o+") is missing its phase value name (start or done are currently supported)",n)},t.prototype._parseEvent=function(t,e,n,r,i){var o=h(t,[null,t]),s=o[0],a=o[1],u=this._parseAction(e,n);r.push([t,u.source]),i.push(new ti(a,s,null,u,n))},t.prototype._parseAction=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseAction(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),!r||r.ast instanceof Xi?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",n)):(this._checkPipes(r,e),r)}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._reportError=function(t,e,n){void 0===n&&(n=ms.ERROR),this._targetErrors.push(new gs(e,t,n))},t.prototype._reportExpressionParserErrors=function(t,e){for(var n=0,r=t;n<r.length;n++){var i=r[n];this._reportError(i.message,e)}},t.prototype._checkPipes=function(t,e){var n=this;if(t){var r=new ru;t.visit(r),r.pipes.forEach(function(t,r){var i=n.pipesByName.get(r);i?n._usedPipes.set(r,i):n._reportError("The pipe '"+r+"' could not be found",new ys(e.start.moveBy(t.span.start),e.start.moveBy(t.span.end)))})}},t.prototype._validatePropertyOrAttributeName=function(t,e,n){var r=n?this._schemaRegistry.validateAttribute(t):this._schemaRegistry.validateProperty(t);r.error&&this._reportError(r.msg,e,ms.ERROR)},t}(),ru=function(t){function e(){var e=t.apply(this,arguments)||this;return e.pipes=new Map,e}return Qr.a(e,t),e.prototype.visitPipe=function(t,e){return this.pipes.set(t.name,t),t.exp.visit(this),this.visitAll(t.args,e),null},e}(go),iu="select",ou="link",su="rel",au="href",uu="stylesheet",cu="style",lu="script",pu="ngNonBindable",hu="ngProjectAs",fu={};fu.NG_CONTENT=0,fu.STYLE=1,fu.STYLESHEET=2,fu.SCRIPT=3,fu.OTHER=4,fu[fu.NG_CONTENT]="NG_CONTENT",fu[fu.STYLE]="STYLE",fu[fu.STYLESHEET]="STYLESHEET",fu[fu.SCRIPT]="SCRIPT",fu[fu.OTHER]="OTHER";var du=function(){function t(t,e,n,r,i){this.type=t,this.selectAttr=e,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i}return t}(),vu=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,yu="template",mu="class",gu=_i.parse("*")[0],bu="The <template> element is deprecated. Use <ng-template> instead",_u={},wu=new Xr.D("TemplateTransforms"),xu=function(t){function e(e,n,r){return t.call(this,n,e,r)||this}return Qr.a(e,t),e}(gs),Su=function(){function t(t,e,n){this.templateAst=t,this.usedPipes=e,this.errors=n}return t}(),Eu=function(){function t(t,e,n,r,i,o,s){this._config=t,this._reflector=e,this._exprParser=n,this._schemaRegistry=r,this._htmlParser=i,this._console=o,this.transforms=s}return t.prototype.parse=function(t,e,n,r,i,o){var s=this.tryParse(t,e,n,r,i,o),a=s.errors.filter(function(t){return t.level===ms.WARNING}).filter(Ae(["The template attribute is deprecated. Use an ng-template element instead.",bu])),u=s.errors.filter(function(t){return t.level===ms.ERROR});if(a.length>0&&this._console.warn("Template parse warnings:\n"+a.join("\n")),u.length>0){throw g("Template parse errors:\n"+u.join("\n"),u)}return{template:s.templateAst,pipes:s.usedPipes}},t.prototype.tryParse=function(t,e,n,r,i,o){return this.tryParseHtml(this.expandHtml(this._htmlParser.parse(e,o,!0,this.getInterpolationConfig(t))),t,n,r,i)},t.prototype.tryParseHtml=function(t,e,n,i,o){var s,a=t.errors,u=[];if(t.rootNodes.length>0){var c=Re(n),l=Re(i),p=new Ka(this._reflector,e),h=void 0;e.template&&e.template.interpolation&&(h={start:e.template.interpolation[0],end:e.template.interpolation[1]});var f=new nu(this._exprParser,h,this._schemaRegistry,l,a),d=new Cu(this._reflector,this._config,p,c,f,this._schemaRegistry,o,a);s=ct(d,t.rootNodes,Au),a.push.apply(a,p.errors),u.push.apply(u,f.getUsedPipes())}else s=[];return this._assertNoReferenceDuplicationOnTemplate(s,a),a.length>0?new Su(s,u,a):(this.transforms&&this.transforms.forEach(function(t){s=r(t,s)}),new Su(s,u,a))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var n=t.errors;if(0==n.length||e){var r=fe(t.rootNodes);n.push.apply(n,r.errors),t=new Rs(r.nodes,n)}return t},t.prototype.getInterpolationConfig=function(t){if(t.template)return es.fromArray(t.template.interpolation)},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,e){var n=[];t.filter(function(t){return!!t.references}).forEach(function(t){return t.references.forEach(function(t){var r=t.name;if(n.indexOf(r)<0)n.push(r);else{var i=new xu('Reference "#'+r+'" is defined several times',t.sourceSpan,ms.ERROR);e.push(i)}})})},t}();Eu.decorators=[{type:q}],Eu.ctorParameters=function(){return[{type:zi},{type:qi},{type:ps},{type:Xa},{type:La},{type:Xr._38},{type:Array,decorators:[{type:Xr.S},{type:Xr.B,args:[wu]}]}]};var Cu=function(){function t(t,e,n,r,i,o,s,a){var u=this;this.reflector=t,this.config=e,this.providerViewContext=n,this._bindingParser=i,this._schemaRegistry=o,this._schemas=s,this._targetErrors=a,this.selectorMatcher=new wi,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=n.component.viewQueries.length+1,r.forEach(function(t,e){var n=_i.parse(t.selector);u.selectorMatcher.addSelectables(n,t),u.directivesIndex.set(t,e)})}return t.prototype.visitExpansion=function(t,e){return null},t.prototype.visitExpansionCase=function(t,e){return null},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(gu),r=this._bindingParser.parseInterpolation(t.value,t.sourceSpan);return r?new Jr(r,n,t.sourceSpan):new Yr(t.value,n,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return new Zr(t.name,t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitElement=function(t,e){var n=this,r=this.contentQueryStartId,i=t.name,o=Te(t);if(o.type===fu.SCRIPT||o.type===fu.STYLE)return null;if(o.type===fu.STYLESHEET&&Se(o.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=!1,v=[],y=je(t,this.config.enableLegacyTemplate,function(t,e){return n._reportError(t,e,ms.WARNING)});t.attrs.forEach(function(t){var e,r,i=n._parseAttr(y,t,s,a,l,u,c),o=n._normalizeAttributeName(t.name);n.config.enableLegacyTemplate&&"template"==o?(n._reportError("The template attribute is deprecated. Use an ng-template element instead.",t.sourceSpan,ms.WARNING),e=t.value):o.startsWith("*")&&(e=t.value,r=o.substring("*".length)+":");var m=null!=e;m&&(d&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),d=!0,n._bindingParser.parseInlineTemplateBinding(r,e,t.sourceSpan,h,p,f)),i||m||(v.push(n.visitAttribute(t,null)),s.push([t.name,t.value]))});var m=Me(i,s),g=this._parseDirectives(this.selectorMatcher,m),b=g.directives,_=g.matchElement,w=[],x=new Set,S=this._createDirectiveAsts(y,t.name,b,a,u,t.sourceSpan,w,x),E=this._createElementPropertyAsts(t.name,a,x),C=e.isTemplateElement||d,O=new Ga(this.providerViewContext,e.providerContext,C,S,v,w,y,r,t.sourceSpan),T=ct(o.nonBindable?ku:this,t.children,Pu.create(y,S,y?e.providerContext:O));O.afterElement();var P,A=null!=o.projectAs?_i.parse(o.projectAs)[0]:m,k=e.findNgContentIndex(A);if(o.type===fu.NG_CONTENT)t.children&&!t.children.every(Ne)&&this._reportError("<ng-content> element cannot have content.",t.sourceSpan),P=new ci(this.ngContentCount++,d?null:k,t.sourceSpan);else if(y)this._assertAllEventsPublishedByDirectives(S,l),this._assertNoComponentsNorElementBindingsOnTemplate(S,E,t.sourceSpan),P=new ii(v,l,w,c,O.transformedDirectiveAsts,O.transformProviders,O.transformedHasViewContainer,O.queryMatches,T,d?null:k,t.sourceSpan);else{this._assertElementExists(_,t),this._assertOnlyOneComponent(S,t.sourceSpan);var M=d?null:e.findNgContentIndex(A);P=new ri(i,v,E,l,w,O.transformedDirectiveAsts,O.transformProviders,O.transformedHasViewContainer,O.queryMatches,T,d?null:M,t.sourceSpan,t.endSourceSpan||null)}if(d){var N=this.contentQueryStartId,R=Me(yu,h),I=this._parseDirectives(this.selectorMatcher,R).directives,j=new Set,D=this._createDirectiveAsts(!0,t.name,I,p,[],t.sourceSpan,[],j),F=this._createElementPropertyAsts(t.name,p,j);this._assertNoComponentsNorElementBindingsOnTemplate(D,F,t.sourceSpan);var L=new Ga(this.providerViewContext,e.providerContext,e.isTemplateElement,D,[],[],!0,N,t.sourceSpan);L.afterElement(),P=new ii([],[],[],f,L.transformedDirectiveAsts,L.transformProviders,L.transformedHasViewContainer,L.queryMatches,[P],k,t.sourceSpan)}return P},t.prototype._parseAttr=function(t,e,n,r,i,o,s){var a=this._normalizeAttributeName(e.name),u=e.value,c=e.sourceSpan,l=a.match(vu),p=!1;if(null!==l)if(p=!0,null!=l[1])this._bindingParser.parsePropertyBinding(l[7],u,!1,c,n,r);else if(l[2])if(t){var h=l[7];this._parseVariable(h,u,c,s)}else this._reportError('"let-" is only supported on template elements.',c);else if(l[3]){var h=l[7];this._parseReference(h,u,c,o)}else l[4]?this._bindingParser.parseEvent(l[7],u,c,n,i):l[5]?(this._bindingParser.parsePropertyBinding(l[7],u,!1,c,n,r),this._parseAssignmentEvent(l[7],u,c,n,i)):l[6]?this._bindingParser.parseLiteralAttr(a,u,c,n,r):l[8]?(this._bindingParser.parsePropertyBinding(l[8],u,!1,c,n,r),this._parseAssignmentEvent(l[8],u,c,n,i)):l[9]?this._bindingParser.parsePropertyBinding(l[9],u,!1,c,n,r):l[10]&&this._bindingParser.parseEvent(l[10],u,c,n,i);else p=this._bindingParser.parsePropertyInterpolation(a,u,c,n,r);return p||this._bindingParser.parseLiteralAttr(a,u,c,n,r),p},t.prototype._normalizeAttributeName=function(t){return/^data-/i.test(t)?t.substring(5):t},t.prototype._parseVariable=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',n),r.push(new ni(t,e,n))},t.prototype._parseReference=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',n),r.push(new Tu(t,e,n))},t.prototype._parseAssignmentEvent=function(t,e,n,r,i){this._bindingParser.parseEvent(t+"Change",e+"=$event",n,r,i)},t.prototype._parseDirectives=function(t,e){var n=this,r=new Array(this.directivesIndex.size),i=!1;return t.match(e,function(t,e){r[n.directivesIndex.get(e)]=e,i=i||t.hasElementSelector()}),{directives:r.filter(function(t){return!!t}),matchElement:i}},t.prototype._createDirectiveAsts=function(t,e,n,r,i,o,s,a){var u=this,c=new Set,l=null,p=n.map(function(t){var n=new ys(o.start,o.end,"Directive "+S(t.type));t.isComponent&&(l=t);var p=[],h=u._bindingParser.createDirectiveHostPropertyAsts(t,e,n);h=u._checkPropertiesInSchema(e,h);var f=u._bindingParser.createDirectiveHostEventAsts(t,n);u._createDirectivePropertyAsts(t.inputs,r,p,a),i.forEach(function(e){(0===e.value.length&&t.isComponent||t.exportAs==e.value)&&(s.push(new ei(e.name,pe(t.type.reference),e.sourceSpan)),c.add(e.name))});var d=u.contentQueryStartId;return u.contentQueryStartId+=t.queries.length,new si(t,p,h,f,d,n)});return i.forEach(function(e){if(e.value.length>0)c.has(e.name)||u._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!l){var n=null;t&&(n=he(u.reflector,Ua.TemplateRef)),s.push(new ei(e.name,n,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,n,r){if(t){var i=new Map;e.forEach(function(t){var e=i.get(t.name);e&&!e.isLiteral||i.set(t.name,t)}),Object.keys(t).forEach(function(e){var o=t[e],s=i.get(o);s&&(r.add(s.name),Ie(s.expression)||n.push(new oi(e,s.name,s.expression,s.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(t,e,n){var r=this,i=[];return e.forEach(function(e){e.isLiteral||n.has(e.name)||i.push(r._bindingParser.createElementPropertyAst(t,e))}),this._checkPropertiesInSchema(t,i)},t.prototype._findComponentDirectives=function(t){return t.filter(function(t){return t.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(t){return this._findComponentDirectives(t).map(function(t){return S(t.directive.type)})},t.prototype._assertOnlyOneComponent=function(t,e){var n=this._findComponentDirectiveNames(t);n.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: "+n.join(","),e)},t.prototype._assertElementExists=function(t,e){var n=e.name.replace(/^:xhtml:/,"");if(!t&&!this._schemaRegistry.hasElement(n,this._schemas)){var r="'"+n+"' is not a known element:\n";r+="1. If '"+n+"' is an Angular component, then verify that it is part of this module.\n",n.indexOf("-")>-1?r+="2. If '"+n+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.":r+="2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",this._reportError(r,e.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,n){var r=this,i=this._findComponentDirectiveNames(t);i.length>0&&this._reportError("Components on an embedded template: "+i.join(","),n),e.forEach(function(t){r._reportError("Property binding "+t.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".',n)})},t.prototype._assertAllEventsPublishedByDirectives=function(t,e){var n=this,r=new Set;t.forEach(function(t){Object.keys(t.directive.outputs).forEach(function(e){var n=t.directive.outputs[e];r.add(n)})}),e.forEach(function(t){null==t.target&&r.has(t.name)||n._reportError("Event binding "+t.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".',t.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(t,e){var n=this;return e.filter(function(e){if(e.type===li.Property&&!n._schemaRegistry.hasProperty(t,e.name,n._schemas)){var r="Can't bind to '"+e.name+"' since it isn't a known property of '"+t+"'.";t.startsWith("ng-")?r+="\n1. If '"+e.name+"' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.":t.indexOf("-")>-1&&(r+="\n1. If '"+t+"' is an Angular component and it has '"+e.name+"' input, then verify that it is part of this module.\n2. If '"+t+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component."),n._reportError(r,e.sourceSpan)}return!Ie(e.value)})},t.prototype._reportError=function(t,e,n){void 0===n&&(n=ms.ERROR),this._targetErrors.push(new gs(e,t,n))},t}(),Ou=function(){function t(){}return t.prototype.visitElement=function(t,e){var n=Te(t);if(n.type===fu.SCRIPT||n.type===fu.STYLE||n.type===fu.STYLESHEET)return null;var r=t.attrs.map(function(t){return[t.name,t.value]}),i=Me(t.name,r),o=e.findNgContentIndex(i),s=ct(this,t.children,Au);return new ri(t.name,ct(this,t.attrs),[],[],[],[],[],!1,[],s,o,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return new Zr(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(gu);return new Yr(t.value,n,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),Tu=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t}(),Pu=function(){function t(t,e,n,r){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=n,this.providerContext=r}return t.create=function(e,n,r){var i=new wi,o=null,s=n.find(function(t){return t.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u<a.length;u++){var c=a[u];"*"===c?o=u:i.addSelectables(_i.parse(a[u]),u)}return new t(e,i,o,r)},t.prototype.findNgContentIndex=function(t){var e=[];return this._ngContentIndexMatcher.match(t,function(t,n){e.push(n)}),e.sort(),null!=this._wildcardNgContentIndex&&e.push(this._wildcardNgContentIndex),e.length>0?e[0]:null},t}(),Au=new Pu(!0,new wi,null,null),ku=new Ou,Mu=function(){function t(){}return t.prototype.get=function(t){return""},t}(),Nu={provide:Xr.U,useValue:"/"},Ru=function(){function t(t){void 0===t&&(t=null),this._packagePrefix=t}return t.prototype.resolve=function(t,e){var n=e;null!=t&&t.length>0&&(n=He(t,n));var r=Ve(n),i=this._packagePrefix;if(null!=i&&null!=r&&"package"==r[ju.Scheme]){var o=r[ju.Path];return i=i.replace(/\/+$/,""),o=o.replace(/^\/+/,""),i+"/"+o}return n},t}();Ru.decorators=[{type:q}],Ru.ctorParameters=function(){return[{type:void 0,decorators:[{type:Xr.B,args:[Xr.U]}]}]};var Iu=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),ju={};ju.Scheme=1,ju.UserInfo=2,ju.Domain=3,ju.Port=4,ju.Path=5,ju.QueryData=6,ju.Fragment=7,ju[ju.Scheme]="Scheme",ju[ju.UserInfo]="UserInfo",ju[ju.Domain]="Domain",ju[ju.Port]="Port",ju[ju.Path]="Path",ju[ju.QueryData]="QueryData",ju[ju.Fragment]="Fragment";var Du=function(){function t(t,e,n,r){this._resourceLoader=t,this._urlResolver=e,this._htmlParser=n,this._config=r,this._resourceLoaderCache=new Map}return t.prototype.clearCache=function(){this._resourceLoaderCache.clear()},t.prototype.clearCacheFor=function(t){var e=this;if(t.isComponent){var n=t.template;this._resourceLoaderCache.delete(n.templateUrl),n.externalStylesheets.forEach(function(t){e._resourceLoaderCache.delete(t.moduleUrl)})}},t.prototype._fetch=function(t){var e=this._resourceLoaderCache.get(t);return e||(e=this._resourceLoader.get(t),this._resourceLoaderCache.set(t,e)),e},t.prototype.normalizeTemplate=function(t){var e=this;if(y(t.template)){if(y(t.templateUrl))throw g("'"+Object(Xr._74)(t.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof t.template)throw g("The template specified for component "+Object(Xr._74)(t.componentType)+" is not a string")}else{if(!y(t.templateUrl))throw g("No template specified for component "+Object(Xr._74)(t.componentType));if("string"!=typeof t.templateUrl)throw g("The templateUrl specified for component "+Object(Xr._74)(t.componentType)+" is not a string")}return Oi.then(this.normalizeTemplateOnly(t),function(t){return e.normalizeExternalStylesheets(t)})},t.prototype.normalizeTemplateOnly=function(t){var e,n,r=this;return null!=t.template?(e=t.template,n=t.moduleUrl):(n=this._urlResolver.resolve(t.moduleUrl,t.templateUrl),e=this._fetch(n)),Oi.then(e,function(e){return r.normalizeLoadedTemplate(t,e,n)})},t.prototype.normalizeLoadedTemplate=function(t,e,n){var r=!!t.template,i=es.fromArray(t.interpolation),o=this._htmlParser.parse(e,j({reference:t.ngModuleType},{type:{reference:t.componentType}},{isInline:r,templateUrl:n}),!0,i);if(o.errors.length>0){throw g("Template parse errors:\n"+o.errors.join("\n"))}var s=this.normalizeStylesheet(new Di({styles:t.styles,styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})),a=new Fu;ct(a,o.rootNodes);var u=this.normalizeStylesheet(new Di({styles:a.styles,styleUrls:a.styleUrls,moduleUrl:n})),c=t.encapsulation;null==c&&(c=this._config.defaultEncapsulation);var l=s.styles.concat(u.styles),p=s.styleUrls.concat(u.styleUrls);return c===Xr._20.Emulated&&0===l.length&&0===p.length&&(c=Xr._20.None),new Fi({encapsulation:c,template:e,templateUrl:n,styles:l,styleUrls:p,ngContentSelectors:a.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:r,externalStylesheets:[]})},t.prototype.normalizeExternalStylesheets=function(t){return Oi.then(this._loadMissingExternalStylesheets(t.styleUrls),function(e){return new Fi({encapsulation:t.encapsulation,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,externalStylesheets:e,ngContentSelectors:t.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:t.isInline})})},t.prototype._loadMissingExternalStylesheets=function(t,e){var n=this;return void 0===e&&(e=new Map),Oi.then(Oi.all(t.filter(function(t){return!e.has(t)}).map(function(t){return Oi.then(n._fetch(t),function(r){var i=n.normalizeStylesheet(new Di({styles:[r],moduleUrl:t}));return e.set(t,i),n._loadMissingExternalStylesheets(i.styleUrls,e)})})),function(t){return Array.from(e.values())})},t.prototype.normalizeStylesheet=function(t){var e=this,n=t.moduleUrl,r=t.styleUrls.filter(Se).map(function(t){return e._urlResolver.resolve(n,t)}),i=t.styles.map(function(t){var i=Ee(e._urlResolver,n,t);return r.push.apply(r,i.styleUrls),i.style});return new Di({styles:i,styleUrls:r,moduleUrl:n})},t}();Du.decorators=[{type:q}],Du.ctorParameters=function(){return[{type:Mu},{type:Ru},{type:ja},{type:zi}]};var Fu=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t,e){var n=Te(t);switch(n.type){case fu.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case fu.STYLE:var r="";t.children.forEach(function(t){t instanceof bs&&(r+=t.value)}),this.styles.push(r);break;case fu.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,ct(this,t.children),n.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t,e){ct(this,t.cases)},t.prototype.visitExpansionCase=function(t,e){ct(this,t.expression)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return null},t.prototype.visitText=function(t,e){return null},t}(),Lu=function(){function t(t){this._reflector=t}return t.prototype.isDirective=function(t){var e=this._reflector.annotations(Object(Xr._30)(t));return e&&e.some(qe)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=this._reflector.annotations(Object(Xr._30)(t));if(n){var r=ze(n,qe);if(r){var i=this._reflector.propMetadata(t);return this._mergeWithPropertyMetadata(r,i,t)}}if(e)throw new Error("No Directive annotation found on "+Object(Xr._74)(t));return null},t.prototype._mergeWithPropertyMetadata=function(t,e,n){var r=[],i=[],o={},s={};return Object.keys(e).forEach(function(t){var n=ze(e[t],function(t){return t instanceof Xr.F});n&&(n.bindingPropertyName?r.push(t+": "+n.bindingPropertyName):r.push(t));var a=ze(e[t],function(t){return t instanceof Xr.T});a&&(a.bindingPropertyName?i.push(t+": "+a.bindingPropertyName):i.push(t)),e[t].filter(function(t){return t&&t instanceof Xr.z}).forEach(function(e){if(e.hostPropertyName){var n=e.hostPropertyName[0];if("("===n)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===n)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");o["["+e.hostPropertyName+"]"]=t}else o["["+t+"]"]=t}),e[t].filter(function(t){return t&&t instanceof Xr.A}).forEach(function(e){var n=e.args||[];o["("+e.eventName+")"]=t+"("+n.join(",")+")"});var u=ze(e[t],function(t){return t instanceof Xr.Y});u&&(s[t]=u)}),this._merge(t,r,i,o,s,n)},t.prototype._extractPublicName=function(t){return h(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,n=[],r=t.length-1;r>=0;r--){var i=t[r],o=this._extractPublicName(i);e.has(o)||(e.add(o),n.push(i))}return n.reverse()},t.prototype._merge=function(t,e,n,r,i,o){var s=this._dedupeBindings(t.inputs?t.inputs.concat(e):e),a=this._dedupeBindings(t.outputs?t.outputs.concat(n):n),u=t.host?Object.assign({},t.host,r):r,c=t.queries?Object.assign({},t.queries,i):i;return t instanceof Xr.o?new Xr.o({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,moduleId:t.moduleId,queries:c,changeDetection:t.changeDetection,providers:t.providers,viewProviders:t.viewProviders,entryComponents:t.entryComponents,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,encapsulation:t.encapsulation,animations:t.animations,interpolation:t.interpolation}):new Xr.u({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,queries:c,providers:t.providers})},t}();Lu.decorators=[{type:q}],Lu.ctorParameters=function(){return[{type:qi}]};var Vu=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,Uu=/\.ngfactory\.|\.ngsummary\./,Bu=/\.ngsummary\./,Hu=/NgSummary$/,qu={};qu.OnInit=0,qu.OnDestroy=1,qu.DoCheck=2,qu.OnChanges=3,qu.AfterContentInit=4,qu.AfterContentChecked=5,qu.AfterViewInit=6,qu.AfterViewChecked=7,qu[qu.OnInit]="OnInit",qu[qu.OnDestroy]="OnDestroy",qu[qu.DoCheck]="DoCheck",qu[qu.OnChanges]="OnChanges",qu[qu.AfterContentInit]="AfterContentInit",qu[qu.AfterContentChecked]="AfterContentChecked",qu[qu.AfterViewInit]="AfterViewInit",qu[qu.AfterViewChecked]="AfterViewChecked";var zu=[qu.OnInit,qu.OnDestroy,qu.DoCheck,qu.OnChanges,qu.AfterContentInit,qu.AfterContentChecked,qu.AfterViewInit,qu.AfterViewChecked],Wu=function(){function t(t){this._reflector=t}return t.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(rn)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=ze(this._reflector.annotations(t),rn);if(n)return n;if(e)throw new Error("No NgModule metadata found for '"+Object(Xr._74)(t)+"'.");return null},t}();Wu.decorators=[{type:q}],Wu.ctorParameters=function(){return[{type:qi}]};var Ku=function(){function t(t){this._reflector=t}return t.prototype.isPipe=function(t){var e=this._reflector.annotations(Object(Xr._30)(t));return e&&e.some(on)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=this._reflector.annotations(Object(Xr._30)(t));if(n){var r=ze(n,on);if(r)return r}if(e)throw new Error("No Pipe decorator found on "+Object(Xr._74)(t));return null},t}();Ku.decorators=[{type:q}],Ku.ctorParameters=function(){return[{type:qi}]};var Gu=function(){function t(){}return t.prototype.isLibraryFile=function(t){},t.prototype.getLibraryFileName=function(t){},t.prototype.resolveSummary=function(t){},t.prototype.getSymbolsOf=function(t){},t.prototype.getImportAs=function(t){},t.prototype.addSummary=function(t){},t}(),Qu=function(){function t(){this._summaries=new Map}return t.prototype.isLibraryFile=function(t){return!1},t.prototype.getLibraryFileName=function(t){return null},t.prototype.resolveSummary=function(t){return this._summaries.get(t)||null},t.prototype.getSymbolsOf=function(t){return[]},t.prototype.getImportAs=function(t){return t},t.prototype.addSummary=function(t){this._summaries.set(t.symbol,t)},t}();Qu.decorators=[{type:q}],Qu.ctorParameters=function(){return[]};var Xu=new Xr.D("ErrorCollector"),Yu=function(){function t(t,e,n,r,i,o,s,a,u,c,l){this._config=t,this._ngModuleResolver=e,this._directiveResolver=n,this._pipeResolver=r,this._summaryResolver=i,this._schemaRegistry=o,this._directiveNormalizer=s,this._console=a,this._staticSymbolCache=u,this._reflector=c,this._errorCollector=l,this._nonNormalizedDirectiveCache=new Map,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map}return t.prototype.getReflector=function(){return this._reflector},t.prototype.clearCacheFor=function(t){var e=this._directiveCache.get(t);this._directiveCache.delete(t),this._nonNormalizedDirectiveCache.delete(t),this._summaryCache.delete(t),this._pipeCache.delete(t),this._ngModuleOfTypes.delete(t),this._ngModuleCache.clear(),e&&this._directiveNormalizer.clearCacheFor(e)},t.prototype.clearCache=function(){this._directiveCache.clear(),this._nonNormalizedDirectiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},t.prototype._createProxyClass=function(t,e){var n=null,r=function(){if(!n)throw new Error("Illegal state: Class "+e+" for type "+Object(Xr._74)(t)+" is not compiled yet!");return n.apply(this,arguments)};return r.setDelegate=function(t){n=t,r.prototype=t.prototype},r.overriddenName=e,r},t.prototype.getGeneratedClass=function(t,e){return t instanceof hi?this._staticSymbolCache.get(We(t.filePath),e):this._createProxyClass(t,e)},t.prototype.getComponentViewClass=function(t){return this.getGeneratedClass(t,C(t,0))},t.prototype.getHostComponentViewClass=function(t){return this.getGeneratedClass(t,T(t))},t.prototype.getHostComponentType=function(t){var e=S({reference:t})+"_Host";if(t instanceof hi)return this._staticSymbolCache.get(t.filePath,e);var n=function(){};return n.overriddenName=e,n},t.prototype.getRendererType=function(t){return t instanceof hi?this._staticSymbolCache.get(We(t.filePath),O(t)):{}},t.prototype.getComponentFactory=function(t,e,n,r){if(e instanceof hi)return this._staticSymbolCache.get(We(e.filePath),P(e));var i=this.getHostComponentViewClass(e);return Object(Xr._44)(t,e,i,n,r,[])},t.prototype.initComponentFactory=function(t,e){t instanceof hi||(n=t.ngContentSelectors).push.apply(n,e);var n},t.prototype._loadSummary=function(t,e){var n=this._summaryCache.get(t);if(!n){var r=this._summaryResolver.resolveSummary(t);n=r?r.type:null,this._summaryCache.set(t,n||null)}return n&&n.summaryKind===e?n:null},t.prototype.loadDirectiveMetadata=function(t,e,n){var r=this;if(this._directiveCache.has(e))return null;e=Object(Xr._30)(e);var i=this.getNonNormalizedDirectiveMetadata(e),o=i.annotation,s=i.metadata,a=function(t){var n=new Li({isHost:!1,type:s.type,isComponent:s.isComponent,selector:s.selector,exportAs:s.exportAs,changeDetection:s.changeDetection,inputs:s.inputs,outputs:s.outputs,hostListeners:s.hostListeners,hostProperties:s.hostProperties,hostAttributes:s.hostAttributes,providers:s.providers,viewProviders:s.viewProviders,queries:s.queries,viewQueries:s.viewQueries,entryComponents:s.entryComponents,componentViewType:s.componentViewType,rendererType:s.rendererType,componentFactory:s.componentFactory,template:t});return t&&r.initComponentFactory(s.componentFactory,t.ngContentSelectors),r._directiveCache.set(e,n),r._summaryCache.set(e,n.toSummary()),null};if(s.isComponent){var u=s.template,c=this._directiveNormalizer.normalizeTemplate({ngModuleType:t,componentType:e,moduleUrl:this._reflector.componentModuleUrl(e,o),encapsulation:u.encapsulation,template:u.template,templateUrl:u.templateUrl,styles:u.styles,styleUrls:u.styleUrls,animations:u.animations,interpolation:u.interpolation});return Object(Xr._58)(c)&&n?(this._reportError(hn(e),e),null):Oi.then(c,a)}return a(null),null},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var e=this;if(!(t=Object(Xr._30)(t)))return null;var n=this._nonNormalizedDirectiveCache.get(t);if(n)return n;var r=this._directiveResolver.resolve(t,!1);if(!r)return null;var i=void 0;if(r instanceof Xr.o){z("styles",r.styles),z("styleUrls",r.styleUrls),W("interpolation",r.interpolation);var o=r.animations;i=new Fi({encapsulation:m(r.encapsulation),template:m(r.template),templateUrl:m(r.templateUrl),styles:r.styles||[],styleUrls:r.styleUrls||[],animations:o||[],interpolation:m(r.interpolation),isInline:!!r.template,externalStylesheets:[],ngContentSelectors:[]})}var s=null,a=[],u=[],c=r.selector;r instanceof Xr.o?(s=r.changeDetection,r.viewProviders&&(a=this._getProvidersMetadata(r.viewProviders,u,'viewProviders for "'+pn(t)+'"',[],t)),r.entryComponents&&(u=un(r.entryComponents).map(function(t){return e._getEntryComponentMetadata(t)}).concat(u)),c||(c=this._schemaRegistry.getDefaultComponentElementName())):c||(this._reportError(g("Directive "+pn(t)+" has no selector, please add it!"),t),c="error");var l=[];null!=r.providers&&(l=this._getProvidersMetadata(r.providers,u,'providers for "'+pn(t)+'"',[],t));var p=[],h=[];null!=r.queries&&(p=this._getQueriesMetadata(r.queries,!1,t),h=this._getQueriesMetadata(r.queries,!0,t));var f=Li.create({isHost:!1,selector:c,exportAs:m(r.exportAs),isComponent:!!i,type:this._getTypeMetadata(t),template:i,changeDetection:s,inputs:r.inputs||[],outputs:r.outputs||[],host:r.host||{},providers:l||[],viewProviders:a||[],queries:p||[],viewQueries:h||[],entryComponents:u,componentViewType:i?this.getComponentViewClass(t):null,rendererType:i?this.getRendererType(t):null,componentFactory:null});return i&&(f.componentFactory=this.getComponentFactory(c,t,f.inputs,f.outputs)),n={metadata:f,annotation:r},this._nonNormalizedDirectiveCache.set(t,n),n},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(g("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+pn(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,ji.Directive);return e||this._reportError(g("Illegal state: Could not load the summary for directive "+pn(t)+"."),t),e},t.prototype.isDirective=function(t){return!!this._loadSummary(t,ji.Directive)||this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return!!this._loadSummary(t,ji.Pipe)||this._pipeResolver.isPipe(t)},t.prototype.isNgModule=function(t){return!!this._loadSummary(t,ji.NgModule)||this._ngModuleResolver.isNgModule(t)},t.prototype.getNgModuleSummary=function(t){var e=this._loadSummary(t,ji.NgModule);if(!e){var n=this.getNgModuleMetadata(t,!1);e=n?n.toSummary():null,e&&this._summaryCache.set(t,e)}return e},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=this.getNgModuleMetadata(t,n),o=[];return i&&(i.declaredDirectives.forEach(function(n){var i=r.loadDirectiveMetadata(t,n.reference,e);i&&o.push(i)}),i.declaredPipes.forEach(function(t){return r._loadPipeMetadata(t.reference)})),Promise.all(o)},t.prototype.getNgModuleMetadata=function(t,e){var n=this;void 0===e&&(e=!0),t=Object(Xr._30)(t);var r=this._ngModuleCache.get(t);if(r)return r;var i=this._ngModuleResolver.resolve(t,e);if(!i)return null;var o=[],s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[];i.imports&&un(i.imports).forEach(function(e){var r=void 0;if(cn(e))r=e;else if(e&&e.ngModule){var i=e;r=i.ngModule,i.providers&&l.push.apply(l,n._getProvidersMetadata(i.providers,p,"provider for the NgModule '"+pn(r)+"'",[],e))}if(!r)return void n._reportError(g("Unexpected value '"+pn(e)+"' imported by the module '"+pn(t)+"'"),t);if(!n._checkSelfImport(t,r)){var o=n.getNgModuleSummary(r);if(!o)return void n._reportError(g("Unexpected "+n._getTypeDescriptor(e)+" '"+pn(e)+"' imported by the module '"+pn(t)+"'. Please add a @NgModule annotation."),t);u.push(o)}}),i.exports&&un(i.exports).forEach(function(e){if(!cn(e))return void n._reportError(g("Unexpected value '"+pn(e)+"' exported by the module '"+pn(t)+"'"),t);var r=n.getNgModuleSummary(e);r?c.push(r):s.push(n._getIdentifierMetadata(e))});var d=this._getTransitiveNgModuleMetadata(u,c);i.declarations&&un(i.declarations).forEach(function(e){if(!cn(e))return void n._reportError(g("Unexpected value '"+pn(e)+"' declared by the module '"+pn(t)+"'"),t);var r=n._getIdentifierMetadata(e);if(n.isDirective(e))d.addDirective(r),o.push(r),n._addTypeToModule(e,t);else{if(!n.isPipe(e))return void n._reportError(g("Unexpected "+n._getTypeDescriptor(e)+" '"+pn(e)+"' declared by the module '"+pn(t)+"'. Please add a @Pipe/@Directive/@Component annotation."),t);d.addPipe(r),d.pipes.push(r),a.push(r),n._addTypeToModule(e,t)}});var v=[],y=[];return s.forEach(function(e){if(d.directivesSet.has(e.reference))v.push(e),d.addExportedDirective(e);else{if(!d.pipesSet.has(e.reference))return void n._reportError(g("Can't export "+n._getTypeDescriptor(e.reference)+" "+pn(e.reference)+" from "+pn(t)+" as it was neither declared nor imported!"),t);y.push(e),d.addExportedPipe(e)}}),i.providers&&l.push.apply(l,this._getProvidersMetadata(i.providers,p,"provider for the NgModule '"+pn(t)+"'",[],t)),i.entryComponents&&p.push.apply(p,un(i.entryComponents).map(function(t){return n._getEntryComponentMetadata(t)})),i.bootstrap&&un(i.bootstrap).forEach(function(e){if(!cn(e))return void n._reportError(g("Unexpected value '"+pn(e)+"' used in the bootstrap property of module '"+pn(t)+"'"),t);h.push(n._getIdentifierMetadata(e))}),p.push.apply(p,h.map(function(t){return n._getEntryComponentMetadata(t.reference)})),i.schemas&&f.push.apply(f,un(i.schemas)),r=new Ui({type:this._getTypeMetadata(t),providers:l,entryComponents:p,bootstrapComponents:h,schemas:f,declaredDirectives:o,exportedDirectives:v,declaredPipes:a,exportedPipes:y,importedModules:u,exportedModules:c,transitiveModule:d,id:i.id||null}),p.forEach(function(t){return d.addEntryComponent(t)}),l.forEach(function(t){return d.addProvider(t,r.type)}),d.addModule(r.type),this._ngModuleCache.set(t,r),r},t.prototype._checkSelfImport=function(t,e){return t===e&&(this._reportError(g("'"+pn(t)+"' module can't import itself"),t),!0)},t.prototype._getTypeDescriptor=function(t){return this.isDirective(t)?"directive":this.isPipe(t)?"pipe":this.isNgModule(t)?"module":t.provide?"provider":"value"},t.prototype._addTypeToModule=function(t,e){var n=this._ngModuleOfTypes.get(t);if(n&&n!==e)return void this._reportError(g("Type "+pn(t)+" is part of the declarations of 2 modules: "+pn(n)+" and "+pn(e)+"! Please consider moving "+pn(t)+" to a higher module that imports "+pn(n)+" and "+pn(e)+". You can also create a new NgModule that exports and includes "+pn(t)+" then import that NgModule in "+pn(n)+" and "+pn(e)+"."),e);this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var n=new Bi,r=new Map;return t.concat(e).forEach(function(t){t.modules.forEach(function(t){return n.addModule(t)}),t.entryComponents.forEach(function(t){return n.addEntryComponent(t)});var e=new Set;t.providers.forEach(function(t){var i=k(t.provider.token),o=r.get(i);o||(o=new Set,r.set(i,o));var s=t.module.reference;!e.has(i)&&o.has(s)||(o.add(s),e.add(i),n.addProvider(t.provider,t.module))})}),e.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addExportedDirective(t)}),t.exportedPipes.forEach(function(t){return n.addExportedPipe(t)})}),t.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addDirective(t)}),t.exportedPipes.forEach(function(t){return n.addPipe(t)})}),n},t.prototype._getIdentifierMetadata=function(t){return t=Object(Xr._30)(t),{reference:t}},t.prototype.isInjectable=function(t){return this._reflector.annotations(t).some(function(t){return t.constructor===Xr.C})},t.prototype.getInjectableSummary=function(t){return{summaryKind:ji.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype._getInjectableMetadata=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,ji.Injectable);return n?n.type:this._getTypeMetadata(t,e)},t.prototype._getTypeMetadata=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=!0);var r=this._getIdentifierMetadata(t);return{reference:r.reference,diDeps:this._getDependenciesMetadata(r.reference,e,n),lifecycleHooks:en(this._reflector,r.reference)}},t.prototype._getFactoryMetadata=function(t,e){return void 0===e&&(e=null),t=Object(Xr._30)(t),{reference:t,diDeps:this._getDependenciesMetadata(t,e)}},t.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(g("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+pn(t)+"."),t),e||null},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,ji.Pipe);return e||this._reportError(g("Illegal state: Could not load the summary for pipe "+pn(t)+"."),t),e},t.prototype.getOrLoadPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||(e=this._loadPipeMetadata(t)),e},t.prototype._loadPipeMetadata=function(t){t=Object(Xr._30)(t);var e=this._pipeResolver.resolve(t),n=new Vi({type:this._getTypeMetadata(t),name:e.name,pure:!!e.pure});return this._pipeCache.set(t,n),this._summaryCache.set(t,n.toSummary()),n},t.prototype._getDependenciesMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=!1,o=e||this._reflector.parameters(t)||[],s=o.map(function(t){var e=!1,n=!1,o=!1,s=!1,a=!1,u=null;return Array.isArray(t)?t.forEach(function(t){t instanceof Xr.y?n=!0:t instanceof Xr._7?o=!0:t instanceof Xr._8?s=!0:t instanceof Xr.S?a=!0:t instanceof Xr.h?(e=!0,u=t.attributeName):t instanceof Xr.B?u=t.token:t instanceof Xr.D?u=t:cn(t)&&null==u&&(u=t)}):u=t,null==u?(i=!0,null):{isAttribute:e,isHost:n,isSelf:o,isSkipSelf:s,isOptional:a,token:r._getTokenMetadata(u)}});if(i){var a=s.map(function(t){return t?pn(t.token):"?"}).join(", "),u="Can't resolve all parameters for "+pn(t)+": ("+a+").";n?this._reportError(g(u),t):this._console.warn("Warning: "+u+" This will become an error in Angular v5.x")}return s},t.prototype._getTokenMetadata=function(t){t=Object(Xr._30)(t);return"string"==typeof t?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,e,n,r,i){var o=this;return void 0===r&&(r=[]),t.forEach(function(s,a){if(Array.isArray(s))o._getProvidersMetadata(s,e,n,r);else{s=Object(Xr._30)(s);var u=void 0;if(s&&"object"==typeof s&&s.hasOwnProperty("provide"))o._validateProvider(s),u=new Hi(s.provide,s);else{if(!cn(s)){if(void 0===s)return void o._reportError(g("Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files."));var c=t.reduce(function(t,e,n){return n<a?t.push(""+pn(e)):n==a?t.push("?"+pn(e)+"?"):n==a+1&&t.push("..."),t},[]).join(", ");return void o._reportError(g("Invalid "+(n||"provider")+" - only instances of Provider and Type are allowed, got: ["+c+"]"),i)}u=new Hi(s,{useClass:s})}u.token===o._reflector.resolveExternalReference(Ua.ANALYZE_FOR_ENTRY_COMPONENTS)?e.push.apply(e,o._getEntryComponentsFromProvider(u,i)):r.push(o.getProviderMetadata(u))}}),r},t.prototype._validateProvider=function(t){t.hasOwnProperty("useClass")&&null==t.useClass&&this._reportError(g("Invalid provider for "+pn(t.provide)+". useClass cannot be "+t.useClass+".\n           Usually it happens when:\n           1. There's a circular dependency (might be caused by using index.ts (barrel) files).\n           2. Class was used before it was declared. Use forwardRef in this case."))},t.prototype._getEntryComponentsFromProvider=function(t,e){var n=this,r=[],i=[];return t.useFactory||t.useExisting||t.useClass?(this._reportError(g("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),e),[]):t.multi?(ln(t.useValue,i),i.forEach(function(t){var e=n._getEntryComponentMetadata(t.reference,!1);e&&r.push(e)}),r):(this._reportError(g("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),e),[])},t.prototype._getEntryComponentMetadata=function(t,e){void 0===e&&(e=!0);var n=this.getNonNormalizedDirectiveMetadata(t);if(n&&n.metadata.isComponent)return{componentType:t,componentFactory:n.metadata.componentFactory};var r=this._loadSummary(t,ji.Directive);if(r&&r.isComponent)return{componentType:t,componentFactory:r.componentFactory};if(e)throw g(t.name+" cannot be used as an entry component.");return null},t.prototype.getProviderMetadata=function(t){var e=void 0,n=null,r=null,i=this._getTokenMetadata(t.token);return t.useClass?(n=this._getInjectableMetadata(t.useClass,t.dependencies),e=n.diDeps,t.token===t.useClass&&(i={identifier:n})):t.useFactory&&(r=this._getFactoryMetadata(t.useFactory,t.dependencies),e=r.diDeps),{token:i,useClass:n,useValue:t.useValue,useFactory:r,useExisting:t.useExisting?this._getTokenMetadata(t.useExisting):void 0,deps:e,multi:t.multi}},t.prototype._getQueriesMetadata=function(t,e,n){var r=this,i=[];return Object.keys(t).forEach(function(o){var s=t[o];s.isViewQuery===e&&i.push(r._getQueryMetadata(s,o,n))}),i},t.prototype._queryVarBindings=function(t){return t.split(/\s*,\s*/)},t.prototype._getQueryMetadata=function(t,e,n){var r,i=this;return"string"==typeof t.selector?r=this._queryVarBindings(t.selector).map(function(t){return i._getTokenMetadata(t)}):t.selector?r=[this._getTokenMetadata(t.selector)]:(this._reportError(g("Can't construct a query for the property \""+e+'" of "'+pn(n)+"\" since the query selector wasn't defined."),n),r=[]),{selectors:r,first:t.first,descendants:t.descendants,propertyName:e,read:t.read?this._getTokenMetadata(t.read):null}},t.prototype._reportError=function(t,e,n){if(!this._errorCollector)throw t;this._errorCollector(t,e),n&&this._errorCollector(t,n)},t}();Yu.decorators=[{type:q}],Yu.ctorParameters=function(){return[{type:zi},{type:Wu},{type:Lu},{type:Ku},{type:Gu},{type:Xa},{type:Du},{type:Xr._38},{type:fi,decorators:[{type:Xr.S}]},{type:qi},{type:void 0,decorators:[{type:Xr.S},{type:Xr.B,args:[Xu]}]}]};var Ju=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qr.a(e,t),e.prototype.visitOther=function(t,e){e.push({reference:t})},e}(Ci),Zu={};Zu.Const=0,Zu[Zu.Const]="Const";var $u=function(){function t(t){void 0===t&&(t=null),this.modifiers=t,t||(this.modifiers=[])}return t.prototype.visitType=function(t,e){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),tc={};tc.Dynamic=0,tc.Bool=1,tc.String=2,tc.Int=3,tc.Number=4,tc.Function=5,tc.Inferred=6,tc[tc.Dynamic]="Dynamic",tc[tc.Bool]="Bool",tc[tc.String]="String",tc[tc.Int]="Int",tc[tc.Number]="Number",tc[tc.Function]="Function",tc[tc.Inferred]="Inferred";var ec=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.name=e,r}return Qr.a(e,t),e.prototype.visitType=function(t,e){return t.visitBuiltintType(this,e)},e}($u),nc=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.value=e,r}return Qr.a(e,t),e.prototype.visitType=function(t,e){return t.visitExpressionType(this,e)},e}($u),rc=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.of=e,r}return Qr.a(e,t),e.prototype.visitType=function(t,e){return t.visitArrayType(this,e)},e}($u),ic=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.valueType=e||null,r}return Qr.a(e,t),e.prototype.visitType=function(t,e){return t.visitMapType(this,e)},e}($u),oc=new ec(tc.Dynamic),sc=new ec(tc.Inferred),ac=new ec(tc.Bool),uc=(new ec(tc.Int),new ec(tc.Number),new ec(tc.String),new ec(tc.Function),{});uc.Equals=0,uc.NotEquals=1,uc.Identical=2,uc.NotIdentical=3,uc.Minus=4,uc.Plus=5,uc.Divide=6,uc.Multiply=7,uc.Modulo=8,uc.And=9,uc.Or=10,uc.Lower=11,uc.LowerEquals=12,uc.Bigger=13,uc.BiggerEquals=14,uc[uc.Equals]="Equals",uc[uc.NotEquals]="NotEquals",uc[uc.Identical]="Identical",uc[uc.NotIdentical]="NotIdentical",uc[uc.Minus]="Minus",uc[uc.Plus]="Plus",uc[uc.Divide]="Divide",uc[uc.Multiply]="Multiply",uc[uc.Modulo]="Modulo",uc[uc.And]="And",uc[uc.Or]="Or",uc[uc.Lower]="Lower",uc[uc.LowerEquals]="LowerEquals",uc[uc.Bigger]="Bigger",uc[uc.BiggerEquals]="BiggerEquals";var cc=function(){function t(t,e){this.type=t||null,this.sourceSpan=e||null}return t.prototype.visitExpression=function(t,e){},t.prototype.prop=function(t,e){return new Ac(this,t,null,e)},t.prototype.key=function(t,e,n){return new kc(this,t,e,n)},t.prototype.callMethod=function(t,e,n){return new yc(this,t,e,null,n)},t.prototype.callFn=function(t,e){return new mc(this,t,null,e)},t.prototype.instantiate=function(t,e,n){return new gc(this,t,e,n)},t.prototype.conditional=function(t,e,n){return void 0===e&&(e=null),new xc(this,t,e,null,n)},t.prototype.equals=function(t,e){return new Pc(uc.Equals,this,t,null,e)},t.prototype.notEquals=function(t,e){return new Pc(uc.NotEquals,this,t,null,e)},t.prototype.identical=function(t,e){return new Pc(uc.Identical,this,t,null,e)},t.prototype.notIdentical=function(t,e){return new Pc(uc.NotIdentical,this,t,null,e)},t.prototype.minus=function(t,e){return new Pc(uc.Minus,this,t,null,e)},t.prototype.plus=function(t,e){return new Pc(uc.Plus,this,t,null,e)},t.prototype.divide=function(t,e){return new Pc(uc.Divide,this,t,null,e)},t.prototype.multiply=function(t,e){return new Pc(uc.Multiply,this,t,null,e)},t.prototype.modulo=function(t,e){return new Pc(uc.Modulo,this,t,null,e)},t.prototype.and=function(t,e){return new Pc(uc.And,this,t,null,e)},t.prototype.or=function(t,e){return new Pc(uc.Or,this,t,null,e)},t.prototype.lower=function(t,e){return new Pc(uc.Lower,this,t,null,e)},t.prototype.lowerEquals=function(t,e){return new Pc(uc.LowerEquals,this,t,null,e)},t.prototype.bigger=function(t,e){return new Pc(uc.Bigger,this,t,null,e)},t.prototype.biggerEquals=function(t,e){return new Pc(uc.BiggerEquals,this,t,null,e)},t.prototype.isBlank=function(t){return this.equals(Dc,t)},t.prototype.cast=function(t,e){return new Cc(this,t,e)},t.prototype.toStmt=function(){return new Bc(this,null)},t}(),lc={};lc.This=0,lc.Super=1,lc.CatchError=2,lc.CatchStack=3,lc[lc.This]="This",lc[lc.Super]="Super",lc[lc.CatchError]="CatchError",lc[lc.CatchStack]="CatchStack";var pc=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return"string"==typeof e?(i.name=e,i.builtin=null):(i.name=null,i.builtin=e),i}return Qr.a(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadVarExpr(this,e)},e.prototype.set=function(t){if(!this.name)throw new Error("Built in variable "+this.builtin+" can not be assigned to.");return new hc(this.name,t,null,this.sourceSpan)},e}(cc),hc=function(t){function e(e,n,r,i){var o=t.call(this,r||n.type,i)||this;return o.name=e,o.value=n,o}return Qr.a(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteVarExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return new Vc(this.name,this.value,t,e,this.sourceSpan)},e}(cc),fc=function(t){function e(e,n,r,i,o){var s=t.call(this,i||r.type,o)||this;return s.receiver=e,s.index=n,s.value=r,s}return Qr.a(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteKeyExpr(this,e)},e}(cc),dc=function(t){function e(e,n,r,i,o){var s=t.call(this,i||r.type,o)||this;return s.receiver=e,s.name=n,s.value=r,s}return Qr.a(e,t),e.prototype.visitExpression=function(t,e){return t.visitWritePropExpr(this,e)},e}(cc),vc={};vc.ConcatArray=0,vc.SubscribeObservable=1,vc.Bind=2,vc[vc.ConcatArray]="ConcatArray",vc[vc.SubscribeObservable]="SubscribeObservable",vc[vc.Bind]="Bind";var yc=function(t){function e(e,n,r,i,o){var s=t.call(this,i,o)||this;return s.receiver=e,s.args=r,"string"==typeof n?(s.name=n,s.builtin=null):(s.name=null,s.builtin=n),s}return Qr.a(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeMethodExpr(this,e)},e}(cc),mc=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.fn=e,o.args=n,o}return Qr.a(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeFunctionExpr(this,e)},e}(cc),gc=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.classExpr=e,o.args=n,o}return Qr.a(e,t),e.prototype.visitExpression=function(t,e){return t.visitInstantiateExpr(this,e)},e}(cc),bc=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.value=e,i}return Qr.a(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralExpr(this,e)},e}(cc),_c=function(t){function e(e,n,r,i){void 0===r&&(r=null);var o=t.call(this,n,i)||this;return o.value=e,o.typeParams=r,o}return Qr.a(e,t),e.prototype.visitExpression=function(t,e){return t.visitExternalExpr(this,e)},e}(cc),wc=function(){function t(t,e,n){this.moduleName=t,this.name=e,this.runtime=n}return t}(),xc=function(t){function e(e,n,r,i,o){void 0===r&&(r=null);var s=t.call(this,i||n.type,o)||this;return s.condition=e,s.falseCase=r,s.trueCase=n,s}return Qr.a(e,t),e.prototype.visitExpression=function(t,e){return t.visitConditionalExpr(this,e)},e}(cc),Sc=function(t){function e(e,n){var r=t.call(this,ac,n)||this;return r.condition=e,r}return Qr.a(e,t),e.prototype.visitExpression=function(t,e){return t.visitNotExpr(this,e)},e}(cc),Ec=function(t){function e(e,n){var r=t.call(this,e.type,n)||this;return r.condition=e,r}return Qr.a(e,t),e.prototype.visitExpression=function(t,e){return t.visitAssertNotNullExpr(this,e)},e}(cc),Cc=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.value=e,i}return Qr.a(e,t),e.prototype.visitExpression=function(t,e){return t.visitCastExpr(this,e)},e}(cc),Oc=function(){function t(t,e){void 0===e&&(e=null),this.name=t,this.type=e}return t}(),Tc=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.params=e,o.statements=n,o}return Qr.a(e,t),e.prototype.visitExpression=function(t,e){return t.visitFunctionExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===e&&(e=null),new Uc(t,this.params,this.statements,this.type,e,this.sourceSpan)},e}(cc),Pc=function(t){function e(e,n,r,i,o){var s=t.call(this,i||n.type,o)||this;return s.operator=e,s.rhs=r,s.lhs=n,s}return Qr.a(e,t),e.prototype.visitExpression=function(t,e){return t.visitBinaryOperatorExpr(this,e)},e}(cc),Ac=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.receiver=e,o.name=n,o}return Qr.a(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadPropExpr(this,e)},e.prototype.set=function(t){return new dc(this.receiver,this.name,t,null,this.sourceSpan)},e}(cc),kc=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.receiver=e,o.index=n,o}return Qr.a(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadKeyExpr(this,e)},e.prototype.set=function(t){return new fc(this.receiver,this.index,t,null,this.sourceSpan)},e}(cc),Mc=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.entries=e,i}return Qr.a(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralArrayExpr(this,e)},e}(cc),Nc=function(){function t(t,e,n){this.key=t,this.value=e,this.quoted=n}return t}(),Rc=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.entries=e,i.valueType=null,n&&(i.valueType=n.valueType),i}return Qr.a(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralMapExpr(this,e)},e}(cc),Ic=function(t){function e(e,n){var r=t.call(this,e[e.length-1].type,n)||this;return r.parts=e,r}return Qr.a(e,t),e.prototype.visitExpression=function(t,e){return t.visitCommaExpr(this,e)},e}(cc),jc=(new pc(lc.This,null,null),new pc(lc.Super,null,null),new pc(lc.CatchError,null,null),new pc(lc.CatchStack,null,null),new bc(null,null,null)),Dc=new bc(null,sc,null),Fc={};Fc.Final=0,Fc.Private=1,Fc.Exported=2,Fc[Fc.Final]="Final",Fc[Fc.Private]="Private",Fc[Fc.Exported]="Exported";var Lc=function(){function t(t,e){this.modifiers=t||[],this.sourceSpan=e||null}return t.prototype.visitStatement=function(t,e){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),Vc=function(t){function e(e,n,r,i,o){void 0===i&&(i=null);var s=t.call(this,i,o)||this;return s.name=e,s.value=n,s.type=r||n.type,s}return Qr.a(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareVarStmt(this,e)},e}(Lc),Uc=function(t){function e(e,n,r,i,o,s){void 0===o&&(o=null);var a=t.call(this,o,s)||this;return a.name=e,a.params=n,a.statements=r,a.type=i||null,a}return Qr.a(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareFunctionStmt(this,e)},e}(Lc),Bc=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.expr=e,r}return Qr.a(e,t),e.prototype.visitStatement=function(t,e){return t.visitExpressionStmt(this,e)},e}(Lc),Hc=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.value=e,r}return Qr.a(e,t),e.prototype.visitStatement=function(t,e){return t.visitReturnStmt(this,e)},e}(Lc),qc=function(){function t(t,e){this.modifiers=e,e||(this.modifiers=[]),this.type=t||null}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),zc=function(t){function e(e,n,r,i,o){void 0===o&&(o=null);var s=t.call(this,i,o)||this;return s.name=e,s.params=n,s.body=r,s}return Qr.a(e,t),e}(qc),Wc=function(t){function e(e,n,r,i){void 0===i&&(i=null);var o=t.call(this,r,i)||this;return o.name=e,o.body=n,o}return Qr.a(e,t),e}(qc),Kc=function(t){function e(e,n,r,i,o,s,a,u){void 0===a&&(a=null);var c=t.call(this,a,u)||this;return c.name=e,c.parent=n,c.fields=r,c.getters=i,c.constructorMethod=o,c.methods=s,c}return Qr.a(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareClassStmt(this,e)},e}(Lc),Gc=function(t){function e(e,n,r,i){void 0===r&&(r=[]);var o=t.call(this,null,i)||this;return o.condition=e,o.trueCase=n,o.falseCase=r,o}return Qr.a(e,t),e.prototype.visitStatement=function(t,e){return t.visitIfStmt(this,e)},e}(Lc),Qc=(function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.comment=e,r}Qr.a(e,t),e.prototype.visitStatement=function(t,e){return t.visitCommentStmt(this,e)}}(Lc),function(t){function e(e,n,r){var i=t.call(this,null,r)||this;return i.bodyStmts=e,i.catchStmts=n,i}return Qr.a(e,t),e.prototype.visitStatement=function(t,e){return t.visitTryCatchStmt(this,e)},e}(Lc)),Xc=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.error=e,r}return Qr.a(e,t),e.prototype.visitStatement=function(t,e){return t.visitThrowStmt(this,e)},e}(Lc),Yc=function(){function t(){}return t.prototype.transformExpr=function(t,e){return t},t.prototype.transformStmt=function(t,e){return t},t.prototype.visitReadVarExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitWriteVarExpr=function(t,e){return this.transformExpr(new hc(t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWriteKeyExpr=function(t,e){return this.transformExpr(new fc(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWritePropExpr=function(t,e){return this.transformExpr(new dc(t.receiver.visitExpression(this,e),t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeMethodExpr=function(t,e){var n=t.builtin||t.name;return this.transformExpr(new yc(t.receiver.visitExpression(this,e),n,this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeFunctionExpr=function(t,e){return this.transformExpr(new mc(t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInstantiateExpr=function(t,e){return this.transformExpr(new gc(t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitExternalExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitConditionalExpr=function(t,e){return this.transformExpr(new xc(t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitNotExpr=function(t,e){return this.transformExpr(new Sc(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitAssertNotNullExpr=function(t,e){return this.transformExpr(new Ec(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCastExpr=function(t,e){return this.transformExpr(new Cc(t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitFunctionExpr=function(t,e){return this.transformExpr(new Tc(t.params,this.visitAllStatements(t.statements,e),t.type,t.sourceSpan),e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return this.transformExpr(new Pc(t.operator,t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitReadPropExpr=function(t,e){return this.transformExpr(new Ac(t.receiver.visitExpression(this,e),t.name,t.type,t.sourceSpan),e)},t.prototype.visitReadKeyExpr=function(t,e){return this.transformExpr(new kc(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralArrayExpr=function(t,e){return this.transformExpr(new Mc(this.visitAllExpressions(t.entries,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r=t.entries.map(function(t){return new Nc(t.key,t.value.visitExpression(n,e),t.quoted)}),i=new ic(t.valueType,null);return this.transformExpr(new Rc(r,i,t.sourceSpan),e)},t.prototype.visitCommaExpr=function(t,e){return this.transformExpr(new Ic(this.visitAllExpressions(t.parts,e),t.sourceSpan),e)},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return this.transformStmt(new Vc(t.name,t.value.visitExpression(this,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.transformStmt(new Uc(t.name,t.params,this.visitAllStatements(t.statements,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitExpressionStmt=function(t,e){return this.transformStmt(new Bc(t.expr.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitReturnStmt=function(t,e){return this.transformStmt(new Hc(t.value.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitDeclareClassStmt=function(t,e){var n=this,r=t.parent.visitExpression(this,e),i=t.getters.map(function(t){return new Wc(t.name,n.visitAllStatements(t.body,e),t.type,t.modifiers)}),o=t.constructorMethod&&new zc(t.constructorMethod.name,t.constructorMethod.params,this.visitAllStatements(t.constructorMethod.body,e),t.constructorMethod.type,t.constructorMethod.modifiers),s=t.methods.map(function(t){return new zc(t.name,t.params,n.visitAllStatements(t.body,e),t.type,t.modifiers)});return this.transformStmt(new Kc(t.name,r,t.fields,i,o,s,t.modifiers,t.sourceSpan),e)},t.prototype.visitIfStmt=function(t,e){return this.transformStmt(new Gc(t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t.sourceSpan),e)},t.prototype.visitTryCatchStmt=function(t,e){return this.transformStmt(new Qc(this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t.sourceSpan),e)},t.prototype.visitThrowStmt=function(t,e){return this.transformStmt(new Xc(t.error.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCommentStmt=function(t,e){return this.transformStmt(t,e)},t.prototype.visitAllStatements=function(t,e){var n=this;return t.map(function(t){return t.visitStatement(n,e)})},t}(),Jc=function(){function t(){}return t.prototype.visitReadVarExpr=function(t,e){return t},t.prototype.visitWriteVarExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitWriteKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitWritePropExpr=function(t,e){return t.receiver.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitInvokeMethodExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInstantiateExpr=function(t,e){return t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitLiteralExpr=function(t,e){return t},t.prototype.visitExternalExpr=function(t,e){return t},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t},t.prototype.visitNotExpr=function(t,e){return t.condition.visitExpression(this,e),t},t.prototype.visitAssertNotNullExpr=function(t,e){return t.condition.visitExpression(this,e),t},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitFunctionExpr=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitBinaryOperatorExpr=function(t,e){return t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),t},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e),t},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return t.entries.forEach(function(t){return t.value.visitExpression(n,e)}),t},t.prototype.visitCommaExpr=function(t,e){this.visitAllExpressions(t.parts,e)},t.prototype.visitAllExpressions=function(t,e){var n=this;t.forEach(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),t},t.prototype.visitReturnStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareClassStmt=function(t,e){var n=this;return t.parent.visitExpression(this,e),t.getters.forEach(function(t){return n.visitAllStatements(t.body,e)}),t.constructorMethod&&this.visitAllStatements(t.constructorMethod.body,e),t.methods.forEach(function(t){return n.visitAllStatements(t.body,e)}),t},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t},t.prototype.visitTryCatchStmt=function(t,e){return this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t},t.prototype.visitThrowStmt=function(t,e){return t.error.visitExpression(this,e),t},t.prototype.visitCommentStmt=function(t,e){return t},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}(),Zc=function(t){function e(){var e=t.apply(this,arguments)||this;return e.varNames=new Set,e}return Qr.a(e,t),e.prototype.visitDeclareFunctionStmt=function(t,e){return t},e.prototype.visitDeclareClassStmt=function(t,e){return t},e.prototype.visitReadVarExpr=function(t,e){return t.name&&this.varNames.add(t.name),null},e}(Jc),$c=function(t){function e(e){var n=t.call(this)||this;return n.sourceSpan=e,n}return Qr.a(e,t),e.prototype._clone=function(t){var e=Object.create(t.constructor.prototype);for(var n in t)e[n]=t[n];return e},e.prototype.transformExpr=function(t,e){return t.sourceSpan||(t=this._clone(t),t.sourceSpan=this.sourceSpan),t},e.prototype.transformStmt=function(t,e){return t.sourceSpan||(t=this._clone(t),t.sourceSpan=this.sourceSpan),t},e}(Yc),tl=function(){function t(t){this.ctx=t}return t.prototype.visitArray=function(t,e){var n=this;return _n(t.map(function(t){return v(t,n,null)}),e)},t.prototype.visitStringMap=function(t,e){var n=this,r=[],i=new Set(t&&t.$quoted$);return Object.keys(t).forEach(function(e){r.push(new Nc(e,v(t[e],n,null),i.has(e)))}),new Rc(r,e)},t.prototype.visitPrimitive=function(t,e){return Cn(t,e)},t.prototype.visitOther=function(t,e){return t instanceof cc?t:this.ctx.importExpr(t)},t}(),el=function(){function t(t){this.ngModuleFactoryVar=t}return t}(),nl=yn("_l"),rl=function(){function t(t){this.reflector=t}return t.prototype.compile=function(t,e,n){var r=ut("NgModule",e.type),i=e.transitiveModule.entryComponents,o=e.bootstrapComponents,s=new Qa(this.reflector,e,n,r),a=[Rn(this.reflector,t,0,i)].concat(s.parse().map(function(e){return Tn(t,e)})).map(function(t){var e=t.providerExpr,n=t.depsExpr,r=t.flags,i=t.tokenExpr;return mn(Ua.moduleProviderDef).callFn([Cn(r),i,e,n])}),u=mn(Ua.moduleDef).callFn([_n(a)]),c=En([new Oc(nl.name)],[new Hc(u)],sc),l=S(e.type)+"NgFactory";if(this._createNgModuleFactory(t,e.type.reference,mn(Ua.createModuleFactory).callFn([t.importExpr(e.type.reference),_n(o.map(function(e){return t.importExpr(e.reference)})),c])),e.id){var p=mn(Ua.RegisterModuleFactoryFn).callFn([Cn(e.id),yn(l)]).toStmt();t.statements.push(p)}return new el(l)},t.prototype.createStub=function(t,e){this._createNgModuleFactory(t,e,jc)},t.prototype._createNgModuleFactory=function(t,e,n){var r=S({reference:e})+"NgFactory",i=yn(r).set(n).toDeclStmt(gn(Ua.NgModuleFactory,[bn(t.importExpr(e))],[Zu.Const]),[Fc.Final,Fc.Exported]);t.statements.push(i)},t}();rl.decorators=[{type:q}],rl.ctorParameters=function(){return[{type:qi}]};var il=function(){function t(t){void 0===t&&(t=null),this.file=t,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return t.prototype.addSource=function(t,e){return void 0===e&&(e=null),this.sourcesContent.has(t)||this.sourcesContent.set(t,e),this},t.prototype.addLine=function(){return this.lines.push([]),this.lastCol0=0,this},t.prototype.addMapping=function(t,e,n,r){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=e&&!this.sourcesContent.has(e))throw new Error('Unknown source file "'+e+'"');if(null==t)throw new Error("The column in the generated code must be provided");if(t<this.lastCol0)throw new Error("Mapping should be added in output order");if(e&&(null==n||null==r))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=t,this.currentLine.push({col0:t,sourceUrl:e,sourceLine0:n,sourceCol0:r}),this},Object.defineProperty(t.prototype,"currentLine",{get:function(){return this.lines.slice(-1)[0]},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){var t=this;if(!this.hasMappings)return null;var e=new Map,n=[],r=[];Array.from(this.sourcesContent.keys()).forEach(function(i,o){e.set(i,o),n.push(i),r.push(t.sourcesContent.get(i)||null)});var i="",o=0,s=0,a=0,u=0;return this.lines.forEach(function(t){o=0,i+=t.map(function(t){var n=jn(t.col0-o);return o=t.col0,null!=t.sourceUrl&&(n+=jn(e.get(t.sourceUrl)-s),s=e.get(t.sourceUrl),n+=jn(t.sourceLine0-a),a=t.sourceLine0,n+=jn(t.sourceCol0-u),u=t.sourceCol0),n}).join(","),i+=";"}),i=i.slice(0,-1),{file:this.file||"",version:3,sourceRoot:"",sources:n,sourcesContent:r,mappings:i}},t.prototype.toJsComment=function(){return this.hasMappings?"//# sourceMappingURL=data:application/json;base64,"+In(JSON.stringify(this,null,0)):""},t}(),ol="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sl=/'|\\|\n|\r|\$/g,al=/^[$A-Z_][0-9A-Z_$]*$/i,ul="  ",cl=yn("error",null,null),ll=yn("stack",null,null),pl=function(){function t(t){this.indent=t,this.partsLength=0,this.parts=[],this.srcSpans=[]}return t}(),hl=function(){function t(t){this._indent=t,this._classes=[],this._preambleLineCount=0,this._lines=[new pl(t)]}return t.createRoot=function(){return new t(0)},Object.defineProperty(t.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),t.prototype.println=function(t,e){void 0===e&&(e=""),this.print(t||null,e,!0)},t.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},t.prototype.lineLength=function(){return this._currentLine.indent*ul.length+this._currentLine.partsLength},t.prototype.print=function(t,e,n){void 0===n&&(n=!1),e.length>0&&(this._currentLine.parts.push(e),this._currentLine.partsLength+=e.length,this._currentLine.srcSpans.push(t&&t.sourceSpan||null)),n&&this._lines.push(new pl(this._indent))},t.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},t.prototype.incIndent=function(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},t.prototype.decIndent=function(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},t.prototype.pushClass=function(t){this._classes.push(t)},t.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(t.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.toSource=function(){return this.sourceLines.map(function(t){return t.parts.length>0?Ln(t.indent)+t.parts.join(""):""}).join("\n")},t.prototype.toSourceMapGenerator=function(t,e,n){void 0===n&&(n=0);for(var r=new il(e),i=!1,o=function(){i||(r.addSource(t," ").addMapping(0,t,0,0),i=!0)},s=0;s<n;s++)r.addLine(),o();return this.sourceLines.forEach(function(t,e){r.addLine();for(var n=t.srcSpans,s=t.parts,a=t.indent*ul.length,u=0;u<n.length&&!n[u];)a+=s[u].length,u++;for(u<n.length&&0===e&&0===a?i=!0:o();u<n.length;){var c=n[u],l=c.start.file,p=c.start.line,h=c.start.col;for(r.addSource(l.url,l.content).addMapping(a,l.url,p,h),a+=s[u].length,u++;u<n.length&&(c===n[u]||!n[u]);)a+=s[u].length,u++}}),r},t.prototype.setPreambleLineCount=function(t){return this._preambleLineCount=t},t.prototype.spanOf=function(t,e){var n=this._lines[t-this._preambleLineCount];if(n)for(var r=e-n.indent,i=0;i<n.parts.length;i++){var o=n.parts[i];if(o.length>r)return n.srcSpans[i];r-=o.length}return null},Object.defineProperty(t.prototype,"sourceLines",{get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines},enumerable:!0,configurable:!0}),t}(),fl=function(){function t(t){this._escapeDollarInStrings=t}return t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitReturnStmt=function(t,e){return e.print(t,"return "),t.value.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCastExpr=function(t,e){},t.prototype.visitDeclareClassStmt=function(t,e){},t.prototype.visitIfStmt=function(t,e){e.print(t,"if ("),t.condition.visitExpression(this,e),e.print(t,") {");var n=null!=t.falseCase&&t.falseCase.length>0;return t.trueCase.length<=1&&!n?(e.print(t," "),this.visitAllStatements(t.trueCase,e),e.removeEmptyLastLine(),e.print(t," ")):(e.println(),e.incIndent(),this.visitAllStatements(t.trueCase,e),e.decIndent(),n&&(e.println(t,"} else {"),e.incIndent(),this.visitAllStatements(t.falseCase,e),e.decIndent())),e.println(t,"}"),null},t.prototype.visitTryCatchStmt=function(t,e){},t.prototype.visitThrowStmt=function(t,e){return e.print(t,"throw "),t.error.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCommentStmt=function(t,e){return t.comment.split("\n").forEach(function(n){e.println(t,"// "+n)}),null},t.prototype.visitDeclareVarStmt=function(t,e){},t.prototype.visitWriteVarExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),e.print(t,t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWriteKeyExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"] = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWritePropExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"."+t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitInvokeMethodExpr=function(t,e){t.receiver.visitExpression(this,e);var n=t.name;return null!=t.builtin&&null==(n=this.getBuiltinMethodName(t.builtin))?null:(e.print(t,"."+n+"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null)},t.prototype.getBuiltinMethodName=function(t){},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(null!=t.builtin)switch(t.builtin){case lc.Super:n="super";break;case lc.This:n="this";break;case lc.CatchError:n=cl.name;break;case lc.CatchStack:n=ll.name;break;default:throw new Error("Unknown builtin variable "+t.builtin)}return e.print(t,n),null},t.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),t.classExpr.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitLiteralExpr=function(t,e){var n=t.value;return"string"==typeof n?e.print(t,Fn(n,this._escapeDollarInStrings)):e.print(t,""+n),null},t.prototype.visitExternalExpr=function(t,e){},t.prototype.visitConditionalExpr=function(t,e){return e.print(t,"("),t.condition.visitExpression(this,e),e.print(t,"? "),t.trueCase.visitExpression(this,e),e.print(t,": "),t.falseCase.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitNotExpr=function(t,e){return e.print(t,"!"),t.condition.visitExpression(this,e),null},t.prototype.visitAssertNotNullExpr=function(t,e){return t.condition.visitExpression(this,e),null},t.prototype.visitFunctionExpr=function(t,e){},t.prototype.visitDeclareFunctionStmt=function(t,e){},t.prototype.visitBinaryOperatorExpr=function(t,e){var n;switch(t.operator){case uc.Equals:n="==";break;case uc.Identical:n="===";break;case uc.NotEquals:n="!=";break;case uc.NotIdentical:n="!==";break;case uc.And:n="&&";break;case uc.Or:n="||";break;case uc.Plus:n="+";break;case uc.Minus:n="-";break;case uc.Divide:n="/";break;case uc.Multiply:n="*";break;case uc.Modulo:n="%";break;case uc.Lower:n="<";break;case uc.LowerEquals:n="<=";break;case uc.Bigger:n=">";break;case uc.BiggerEquals:n=">=";break;default:throw new Error("Unknown operator "+t.operator)}return e.print(t,"("),t.lhs.visitExpression(this,e),e.print(t," "+n+" "),t.rhs.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"."),e.print(t,t.name),null},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"]"),null},t.prototype.visitLiteralArrayExpr=function(t,e){return e.print(t,"["),this.visitAllExpressions(t.entries,e,","),e.print(t,"]"),null},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return e.print(t,"{"),this.visitAllObjects(function(r){e.print(t,Fn(r.key,n._escapeDollarInStrings,r.quoted)+":"),r.value.visitExpression(n,e)},t.entries,e,","),e.print(t,"}"),null},t.prototype.visitCommaExpr=function(t,e){return e.print(t,"("),this.visitAllExpressions(t.parts,e,","),e.print(t,")"),null},t.prototype.visitAllExpressions=function(t,e,n){var r=this;this.visitAllObjects(function(t){return t.visitExpression(r,e)},t,e,n)},t.prototype.visitAllObjects=function(t,e,n,r){for(var i=!1,o=0;o<e.length;o++)o>0&&(n.lineLength()>80?(n.print(null,r,!0),i||(n.incIndent(),n.incIndent(),i=!0)):n.print(null,r,!1)),t(e[o]);i&&(n.decIndent(),n.decIndent())},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}(),dl=(function(){function t(){}t.prototype.emitStatementsAndContext=function(t,e,n,r,i){void 0===r&&(r=""),void 0===i&&(i=!0);var o=new dl,s=hl.createRoot();o.visitAllStatements(n,s);var a=r?r.split("\n"):[];o.reexports.forEach(function(t,e){var n=t.map(function(t){return t.name+" as "+t.as}).join(",");a.push("export {"+n+"} from '"+e+"';")}),o.importsWithPrefixes.forEach(function(t,e){a.push("import * as "+t+" from '"+e+"';")});var u=i?s.toSourceMapGenerator(t,e,a.length).toJsComment():"",c=a.concat([s.toSource(),u]);return u&&c.push(""),s.setPreambleLineCount(a.length),{sourceText:c.join("\n"),context:s}},t.prototype.emitStatements=function(t,e,n,r){return void 0===r&&(r=""),this.emitStatementsAndContext(t,e,n,r).sourceText}}(),function(t){function e(){var e=t.call(this,!1)||this;return e.typeExpression=0,e.importsWithPrefixes=new Map,e.reexports=new Map,e}return Qr.a(e,t),e.prototype.visitType=function(t,e,n){void 0===n&&(n="any"),t?(this.typeExpression++,t.visitType(this,e),this.typeExpression--):e.print(null,n)},e.prototype.visitLiteralExpr=function(e,n){var r=e.value;return null==r&&e.type!=sc?(n.print(e,"("+r+" as any)"),null):t.prototype.visitLiteralExpr.call(this,e,n)},e.prototype.visitLiteralArrayExpr=function(e,n){0===e.entries.length&&n.print(e,"(");var r=t.prototype.visitLiteralArrayExpr.call(this,e,n);return 0===e.entries.length&&n.print(e," as any[])"),r},e.prototype.visitExternalExpr=function(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null},e.prototype.visitAssertNotNullExpr=function(e,n){var r=t.prototype.visitAssertNotNullExpr.call(this,e,n);return n.print(e,"!"),r},e.prototype.visitDeclareVarStmt=function(t,e){if(t.hasModifier(Fc.Exported)&&t.value instanceof _c&&!t.type){var n=t.value.value,r=n.name,i=n.moduleName;if(i){var o=this.reexports.get(i);return o||(o=[],this.reexports.set(i,o)),o.push({name:r,as:t.name}),null}}return t.hasModifier(Fc.Exported)&&e.print(t,"export "),t.hasModifier(Fc.Final)?e.print(t,"const"):e.print(t,"var"),e.print(t," "+t.name),this._printColonType(t.type,e),e.print(t," = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return e.print(t,"(<"),t.type.visitType(this,e),e.print(t,">"),t.value.visitExpression(this,e),e.print(t,")"),null},e.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),this.typeExpression++,t.classExpr.visitExpression(this,e),this.typeExpression--,e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),t.hasModifier(Fc.Exported)&&e.print(t,"export "),e.print(t,"class "+t.name),null!=t.parent&&(e.print(t," extends "),this.typeExpression++,t.parent.visitExpression(this,e),this.typeExpression--),e.println(t," {"),e.incIndent(),t.fields.forEach(function(t){return n._visitClassField(t,e)}),null!=t.constructorMethod&&this._visitClassConstructor(t,e),t.getters.forEach(function(t){return n._visitClassGetter(t,e)}),t.methods.forEach(function(t){return n._visitClassMethod(t,e)}),e.decIndent(),e.println(t,"}"),e.popClass(),null},e.prototype._visitClassField=function(t,e){t.hasModifier(Fc.Private)&&e.print(null,"/*private*/ "),e.print(null,t.name),this._printColonType(t.type,e),e.println(null,";")},e.prototype._visitClassGetter=function(t,e){t.hasModifier(Fc.Private)&&e.print(null,"private "),e.print(null,"get "+t.name+"()"),this._printColonType(t.type,e),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype._visitClassConstructor=function(t,e){e.print(t,"constructor("),this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.constructorMethod.body,e),e.decIndent(),e.println(t,"}")},e.prototype._visitClassMethod=function(t,e){t.hasModifier(Fc.Private)&&e.print(null,"private "),e.print(null,t.name+"("),this._visitParams(t.params,e),e.print(null,")"),this._printColonType(t.type,e,"void"),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," => {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return t.hasModifier(Fc.Exported)&&e.print(t,"export "),e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+cl.name+") {"),e.incIndent();var n=[ll.set(cl.prop("stack",null)).toDeclStmt(null,[Fc.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitBuiltintType=function(t,e){var n;switch(t.name){case tc.Bool:n="boolean";break;case tc.Dynamic:n="any";break;case tc.Function:n="Function";break;case tc.Number:case tc.Int:n="number";break;case tc.String:n="string";break;default:throw new Error("Unsupported builtin type "+t.name)}return e.print(null,n),null},e.prototype.visitExpressionType=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitArrayType=function(t,e){return this.visitType(t.of,e),e.print(null,"[]"),null},e.prototype.visitMapType=function(t,e){return e.print(null,"{[key: string]:"),this.visitType(t.valueType,e),e.print(null,"}"),null},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case vc.ConcatArray:e="concat";break;case vc.SubscribeObservable:e="subscribe";break;case vc.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e.prototype._visitParams=function(t,e){var n=this;this.visitAllObjects(function(t){e.print(null,t.name),n._printColonType(t.type,e)},t,e,",")},e.prototype._visitIdentifier=function(t,e,n){var r=this,i=t.name,o=t.moduleName;if(o){var s=this.importsWithPrefixes.get(o);null==s&&(s="i"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(o,s)),n.print(null,s+".")}if(n.print(null,i),this.typeExpression>0){(e||[]).length>0&&(n.print(null,"<"),this.visitAllObjects(function(t){return t.visitType(r,n)},e,n,","),n.print(null,">"))}},e.prototype._printColonType=function(t,e,n){t!==sc&&(e.print(null,":"),this.visitType(t,e,n))},e}(fl)),vl={};Un(Xr._6.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Un(Xr._6.STYLE,["*|style"]),Un(Xr._6.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","img|srcset","input|src","ins|cite","q|cite","source|src","source|srcset","track|src","video|poster","video|src"]),Un(Xr._6.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"]);var yl="boolean",ml="number",gl="string",bl="object",_l=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|"],wl={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},xl=function(t){function e(){var e=t.call(this)||this;return e._schema={},_l.forEach(function(t){var n={},r=t.split("|"),i=r[0],o=r[1],s=o.split(","),a=i.split("^"),u=a[0],c=a[1];u.split(",").forEach(function(t){return e._schema[t.toLowerCase()]=n});var l=c&&e._schema[c.toLowerCase()];l&&Object.keys(l).forEach(function(t){n[t]=l[t]}),s.forEach(function(t){if(t.length>0)switch(t[0]){case"*":break;case"!":n[t.substring(1)]=yl;break;case"#":n[t.substring(1)]=ml;break;case"%":n[t.substring(1)]=bl;break;default:n[t]=gl}})}),e}return Qr.a(e,t),e.prototype.hasProperty=function(t,e,n){if(n.some(function(t){return t.name===Xr.L.name}))return!0;if(t.indexOf("-")>-1){if(o(t)||s(t))return!1;if(n.some(function(t){return t.name===Xr.j.name}))return!0}return!!(this._schema[t.toLowerCase()]||this._schema.unknown)[e]},e.prototype.hasElement=function(t,e){if(e.some(function(t){return t.name===Xr.L.name}))return!0;if(t.indexOf("-")>-1){if(o(t)||s(t))return!0;if(e.some(function(t){return t.name===Xr.j.name}))return!0}return!!this._schema[t.toLowerCase()]},e.prototype.securityContext=function(t,e,n){n&&(e=this.getMappedPropName(e)),t=t.toLowerCase(),e=e.toLowerCase();var r=vl[t+"|"+e];return r||((r=vl["*|"+e])||Xr._6.NONE)},e.prototype.getMappedPropName=function(t){return wl[t]||t},e.prototype.getDefaultComponentElementName=function(){return"ng-component"},e.prototype.validateProperty=function(t){if(t.toLowerCase().startsWith("on")){return{error:!0,msg:"Binding to event property '"+t+"' is disallowed for security reasons, please use ("+t.slice(2)+")=...\nIf '"+t+"' is a directive input, make sure the directive is imported by the current module."}}return{error:!1}},e.prototype.validateAttribute=function(t){if(t.toLowerCase().startsWith("on")){return{error:!0,msg:"Binding to event attribute '"+t+"' is disallowed for security reasons, please use ("+t.slice(2)+")=..."}}return{error:!1}},e.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},e.prototype.normalizeAnimationStyleProperty=function(t){return p(t)},e.prototype.normalizeAnimationStyleValue=function(t,e,n){var r="",i=n.toString().trim(),o=null;if(Bn(t)&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&(o="Please provide a CSS unit value for "+e+":"+n)}return{error:o,value:i+r}},e}(Xa);xl.decorators=[{type:q}],xl.ctorParameters=function(){return[]};var Sl=function(){function t(){this.strictStyling=!0}return t.prototype.shimCssText=function(t,e,n){void 0===n&&(n="");var r=qn(t);return t=Hn(t),t=this._insertDirectives(t),this._scopeCssText(t,e,n)+r},t.prototype._insertDirectives=function(t){return t=this._insertPolyfillDirectivesInCssText(t),this._insertPolyfillRulesInCssText(t)},t.prototype._insertPolyfillDirectivesInCssText=function(t){return t.replace(Cl,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[2]+"{"})},t.prototype._insertPolyfillRulesInCssText=function(t){return t.replace(Ol,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0].replace(t[1],"").replace(t[2],"");return t[4]+n})},t.prototype._scopeCssText=function(t,e,n){var r=this._extractUnscopedRulesFromCssText(t);return t=this._insertPolyfillHostInCssText(t),t=this._convertColonHost(t),t=this._convertColonHostContext(t),t=this._convertShadowDOMSelectors(t),e&&(t=this._scopeSelectors(t,e,n)),t=t+"\n"+r,t.trim()},t.prototype._extractUnscopedRulesFromCssText=function(t){var e,n="";for(Tl.lastIndex=0;null!==(e=Tl.exec(t));){n+=e[0].replace(e[2],"").replace(e[1],e[4])+"\n\n"}return n},t.prototype._convertColonHost=function(t){return this._convertColonRule(t,Ml,this._colonHostPartReplacer)},t.prototype._convertColonHostContext=function(t){return this._convertColonRule(t,Nl,this._colonHostContextPartReplacer)},t.prototype._convertColonRule=function(t,e,n){return t.replace(e,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t[2]){for(var r=t[2].split(","),i=[],o=0;o<r.length;o++){var s=r[o].trim();if(!s)break;i.push(n(Rl,s,t[3]))}return i.join(",")}return Rl+t[3]})},t.prototype._colonHostContextPartReplacer=function(t,e,n){return e.indexOf(Pl)>-1?this._colonHostPartReplacer(t,e,n):t+e+n+", "+e+" "+t+n},t.prototype._colonHostPartReplacer=function(t,e,n){return t+e.replace(Pl,"")+n},t.prototype._convertShadowDOMSelectors=function(t){return jl.reduce(function(t,e){return t.replace(e," ")},t)},t.prototype._scopeSelectors=function(t,e,n){var r=this;return zn(t,function(t){var i=t.selector,o=t.content;return"@"!=t.selector[0]?i=r._scopeSelector(t.selector,e,n,r.strictStyling):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(o=r._scopeSelectors(t.content,e,n)),new Ql(i,o)})},t.prototype._scopeSelector=function(t,e,n,r){var i=this;return t.split(",").map(function(t){return t.trim().split(Dl)}).map(function(t){var o=t[0],s=t.slice(1);return[function(t){return i._selectorNeedsScoping(t,e)?r?i._applyStrictSelectorScope(t,e,n):i._applySelectorScope(t,e,n):t}(o)].concat(s).join(" ")}).join(", ")},t.prototype._selectorNeedsScoping=function(t,e){return!this._makeScopeMatcher(e).test(t)},t.prototype._makeScopeMatcher=function(t){var e=/\[/g,n=/\]/g;return t=t.replace(e,"\\[").replace(n,"\\]"),new RegExp("^("+t+")"+Fl,"m")},t.prototype._applySelectorScope=function(t,e,n){return this._applySimpleSelectorScope(t,e,n)},t.prototype._applySimpleSelectorScope=function(t,e,n){if(Ll.lastIndex=0,Ll.test(t)){var r=this.strictStyling?"["+n+"]":e;return t.replace(Il,function(t,e){return e.replace(/([^:]*)(:*)(.*)/,function(t,e,n,i){return e+r+n+i})}).replace(Ll,r+" ")}return e+" "+t},t.prototype._applyStrictSelectorScope=function(t,e,n){var r=this,i=/\[is=([^\]]*)\]/g;e=e.replace(i,function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e[0]});var o="["+e+"]",s=function(t){var i=t.trim();if(!i)return"";if(t.indexOf(Rl)>-1)i=r._applySimpleSelectorScope(t,e,n);else{var s=t.replace(Ll,"");if(s.length>0){var a=s.match(/([^:]*)(:*)(.*)/);a&&(i=a[1]+o+a[2]+a[3])}}return i},a=new El(t);t=a.content();for(var u,c="",l=0,p=/( |>|\+|~(?!=))\s*/g,h=t.indexOf(Rl);null!==(u=p.exec(t));){var f=u[1],d=t.slice(l,u.index).trim();c+=(l>=h?s(d):d)+" "+f+" ",l=p.lastIndex}return c+=s(t.substring(l)),a.restore(c)},t.prototype._insertPolyfillHostInCssText=function(t){return t.replace(Ul,Al).replace(Vl,Pl)},t}(),El=function(){function t(t){var e=this;this.placeholders=[],this.index=0,t=t.replace(/(\[[^\]]*\])/g,function(t,n){var r="__ph-"+e.index+"__";return e.placeholders.push(n),e.index++,r}),this._content=t.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(t,n,r){var i="__ph-"+e.index+"__";return e.placeholders.push(r),e.index++,n+i})}return t.prototype.restore=function(t){var e=this;return t.replace(/__ph-(\d+)__/g,function(t,n){return e.placeholders[+n]})},t.prototype.content=function(){return this._content},t}(),Cl=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,Ol=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Tl=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Pl="-shadowcsshost",Al="-shadowcsscontext",kl=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Ml=new RegExp("("+Pl+kl,"gim"),Nl=new RegExp("("+Al+kl,"gim"),Rl=Pl+"-no-combinator",Il=/-shadowcsshost-no-combinator([^\s]*)/,jl=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Dl=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,Fl="([>\\s~+[.,{:][\\s\\S]*)?$",Ll=/-shadowcsshost/gim,Vl=/:host/gim,Ul=/:host-context/gim,Bl=/\/\*\s*[\s\S]*?\*\//g,Hl=/\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//,ql=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,zl=/([{}])/g,Wl="{",Kl="}",Gl="%BLOCK%",Ql=function(){function t(t,e){this.selector=t,this.content=e}return t}(),Xl=function(){function t(t,e){this.escapedString=t,this.blocks=e}return t}(),Yl=function(){function t(t,e,n){this.name=t,this.moduleUrl=e,this.setValue=n}return t}(),Jl=function(){function t(t,e,n,r,i){this.outputCtx=t,this.stylesVar=e,this.dependencies=n,this.isShimmed=r,this.meta=i}return t}(),Zl=function(){function t(t){this._urlResolver=t,this._shadowCss=new Sl}return t.prototype.compileComponent=function(t,e){var n=e.template;return this._compileStyles(t,e,new Di({styles:n.styles,styleUrls:n.styleUrls,moduleUrl:E(e.type)}),!0)},t.prototype.compileStyles=function(t,e,n){return this._compileStyles(t,e,n,!1)},t.prototype.needsStyleShim=function(t){return t.template.encapsulation===Xr._20.Emulated},t.prototype._compileStyles=function(t,e,n,r){var i=this,o=this.needsStyleShim(e),s=n.styles.map(function(t){return Cn(i._shimIfNeeded(t,o))}),a=[];n.styleUrls.forEach(function(e){var n=s.length;s.push(null),a.push(new Yl(Kn(null),e,function(e){return s[n]=t.importExpr(e)}))});var u=Kn(r?e:null),c=yn(u).set(_n(s,new rc(oc,[Zu.Const]))).toDeclStmt(null,r?[Fc.Final]:[Fc.Final,Fc.Exported]);return t.statements.push(c),new Jl(t,u,a,o,n)},t.prototype._shimIfNeeded=function(t,e){return e?this._shadowCss.shimCssText(t,"_ngcontent-%COMP%","_nghost-%COMP%"):t},t}();Zl.decorators=[{type:q}],Zl.ctorParameters=function(){return[{type:Ru}]};var $l=function(){function t(){}return t}();$l.event=yn("$event");var tp=function(){function t(t,e){this.stmts=t,this.allowDefault=e}return t}(),ep=function(){function t(t,e){this.stmts=t,this.currValExpr=e}return t}(),np={};np.Statement=0,np.Expression=1,np[np.Statement]="Statement",np[np.Expression]="Expression";var rp=function(t){function e(e){var n=t.call(this)||this;return n._converterFactory=e,n}return Qr.a(e,t),e.prototype.visitPipe=function(t,e){var n=this,r=[t.exp].concat(t.args).map(function(t){return t.visit(n,e)});return new sp(t.span,r,this._converterFactory.createPipeConverter(t.name,r.length))},e.prototype.visitLiteralArray=function(t,e){var n=this,r=t.expressions.map(function(t){return t.visit(n,e)});return new sp(t.span,r,this._converterFactory.createLiteralArrayConverter(t.expressions.length))},e.prototype.visitLiteralMap=function(t,e){var n=this,r=t.values.map(function(t){return t.visit(n,e)});return new sp(t.span,r,this._converterFactory.createLiteralMapConverter(t.keys))},e}(bo),ip=function(){function t(t,e,n){this._localResolver=t,this._implicitReceiver=e,this.bindingId=n,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0}return t.prototype.visitBinary=function(t,e){var n;switch(t.operation){case"+":n=uc.Plus;break;case"-":n=uc.Minus;break;case"*":n=uc.Multiply;break;case"/":n=uc.Divide;break;case"%":n=uc.Modulo;break;case"&&":n=uc.And;break;case"||":n=uc.Or;break;case"==":n=uc.Equals;break;case"!=":n=uc.NotEquals;break;case"===":n=uc.Identical;break;case"!==":n=uc.NotIdentical;break;case"<":n=uc.Lower;break;case">":n=uc.Bigger;break;case"<=":n=uc.LowerEquals;break;case">=":n=uc.BiggerEquals;break;default:throw new Error("Unsupported operation "+t.operation)}return nr(e,new Pc(n,this._visit(t.left,np.Expression),this._visit(t.right,np.Expression)))},t.prototype.visitChain=function(t,e){return tr(e,t),this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return nr(e,this._visit(t.condition,np.Expression).conditional(this._visit(t.trueExp,np.Expression),this._visit(t.falseExp,np.Expression)))},t.prototype.visitPipe=function(t,e){throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: "+t.name)},t.prototype.visitFunctionCall=function(t,e){var n,r=this.visitAll(t.args,np.Expression);return n=t instanceof sp?t.converter(r):this._visit(t.target,np.Expression).callFn(r),nr(e,n)},t.prototype.visitImplicitReceiver=function(t,e){return er(e,t),this._implicitReceiver},t.prototype.visitInterpolation=function(t,e){er(e,t);for(var n=[Cn(t.expressions.length)],r=0;r<t.strings.length-1;r++)n.push(Cn(t.strings[r])),n.push(this._visit(t.expressions[r],np.Expression));return n.push(Cn(t.strings[t.strings.length-1])),t.expressions.length<=9?mn(Ua.inlineInterpolate).callFn(n):mn(Ua.interpolate).callFn([n[0],_n(n.slice(1))])},t.prototype.visitKeyedRead=function(t,e){var n=this.leftMostSafeNode(t);return n?this.convertSafeAccess(t,n,e):nr(e,this._visit(t.obj,np.Expression).key(this._visit(t.key,np.Expression)))},t.prototype.visitKeyedWrite=function(t,e){var n=this._visit(t.obj,np.Expression),r=this._visit(t.key,np.Expression),i=this._visit(t.value,np.Expression);return nr(e,n.key(r).set(i))},t.prototype.visitLiteralArray=function(t,e){throw new Error("Illegal State: literal arrays should have been converted into functions")},t.prototype.visitLiteralMap=function(t,e){throw new Error("Illegal State: literal maps should have been converted into functions")},t.prototype.visitLiteralPrimitive=function(t,e){return nr(e,Cn(t.value))},t.prototype._getLocal=function(t){return this._localResolver.getLocal(t)},t.prototype.visitMethodCall=function(t,e){var n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);var r=this.visitAll(t.args,np.Expression),i=null,o=this._visit(t.receiver,np.Expression);if(o===this._implicitReceiver){var s=this._getLocal(t.name);s&&(i=s.callFn(r))}return null==i&&(i=o.callMethod(t.name,r)),nr(e,i)},t.prototype.visitPrefixNot=function(t,e){return nr(e,xn(this._visit(t.expression,np.Expression)))},t.prototype.visitNonNullAssert=function(t,e){return nr(e,Sn(this._visit(t.expression,np.Expression)))},t.prototype.visitPropertyRead=function(t,e){var n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);var r=null,i=this._visit(t.receiver,np.Expression);return i===this._implicitReceiver&&(r=this._getLocal(t.name)),null==r&&(r=i.prop(t.name)),nr(e,r)},t.prototype.visitPropertyWrite=function(t,e){var n=this._visit(t.receiver,np.Expression);if(n===this._implicitReceiver){if(this._getLocal(t.name))throw new Error("Cannot assign to a reference or variable!")}return nr(e,n.prop(t.name).set(this._visit(t.value,np.Expression)))},t.prototype.visitSafePropertyRead=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitSafeMethodCall=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitAll=function(t,e){var n=this;return t.map(function(t){return n._visit(t,e)})},t.prototype.visitQuote=function(t,e){throw new Error("Quotes are not supported for evaluation!\n        Statement: "+t.uninterpretedExpression+" located at "+t.location)},t.prototype._visit=function(t,e){var n=this._resultMap.get(t);return n||(this._nodeMap.get(t)||t).visit(this,e)},t.prototype.convertSafeAccess=function(t,e,n){var r=this._visit(e.receiver,np.Expression),i=void 0;this.needsTemporary(e.receiver)&&(i=this.allocateTemporary(),r=i.set(r),this._resultMap.set(e.receiver,i));var o=r.isBlank();e instanceof fo?this._nodeMap.set(e,new ho(e.span,e.receiver,e.name,e.args)):this._nodeMap.set(e,new $i(e.span,e.receiver,e.name));var s=this._visit(t,np.Expression);return this._nodeMap.delete(e),i&&this.releaseTemporary(i),nr(n,o.conditional(Cn(null),s))},t.prototype.leftMostSafeNode=function(t){var e=this,n=function(t,n){return(e._nodeMap.get(n)||n).visit(t)};return t.visit({visitBinary:function(t){return null},visitChain:function(t){return null},visitConditional:function(t){return null},visitFunctionCall:function(t){return null},visitImplicitReceiver:function(t){return null},visitInterpolation:function(t){return null},visitKeyedRead:function(t){return n(this,t.obj)},visitKeyedWrite:function(t){return null},visitLiteralArray:function(t){return null},visitLiteralMap:function(t){return null},visitLiteralPrimitive:function(t){return null},visitMethodCall:function(t){return n(this,t.receiver)},visitPipe:function(t){return null},visitPrefixNot:function(t){return null},visitNonNullAssert:function(t){return null},visitPropertyRead:function(t){return n(this,t.receiver)},visitPropertyWrite:function(t){return null},visitQuote:function(t){return null},visitSafeMethodCall:function(t){return n(this,t.receiver)||t},visitSafePropertyRead:function(t){return n(this,t.receiver)||t}})},t.prototype.needsTemporary=function(t){var e=this,n=function(t,n){return n&&(e._nodeMap.get(n)||n).visit(t)},r=function(t,e){return e.some(function(e){return n(t,e)})};return t.visit({visitBinary:function(t){return n(this,t.left)||n(this,t.right)},visitChain:function(t){return!1},visitConditional:function(t){return n(this,t.condition)||n(this,t.trueExp)||n(this,t.falseExp)},visitFunctionCall:function(t){return!0},visitImplicitReceiver:function(t){return!1},visitInterpolation:function(t){return r(this,t.expressions)},visitKeyedRead:function(t){return!1},visitKeyedWrite:function(t){return!1},visitLiteralArray:function(t){return!0},visitLiteralMap:function(t){return!0},visitLiteralPrimitive:function(t){return!1},visitMethodCall:function(t){return!0},visitPipe:function(t){return!0},visitPrefixNot:function(t){return n(this,t.expression)},visitNonNullAssert:function(t){return n(this,t.expression)},visitPropertyRead:function(t){return!1},visitPropertyWrite:function(t){return!1},visitQuote:function(t){return!1},visitSafeMethodCall:function(t){return!0},visitSafePropertyRead:function(t){return!1}})},t.prototype.allocateTemporary=function(){var t=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new pc(Jn(this.bindingId,t))},t.prototype.releaseTemporary=function(t){if(this._currentTemporary--,t.name!=Jn(this.bindingId,this._currentTemporary))throw new Error("Temporary "+t.name+" released out of order")},t}(),op=function(){function t(){}return t.prototype.getLocal=function(t){return t===$l.event.name?$l.event:null},t}(),sp=function(t){function e(e,n,r){var i=t.call(this,e,null,n)||this;return i.args=n,i.converter=r,i}return Qr.a(e,t),e}(vo),ap="class",up="style",cp=function(){function t(t,e){this.viewClassVar=t,this.rendererTypeVar=e}return t}(),lp=function(){function t(t,e,n){this._config=t,this._reflector=e,this._schemaRegistry=n}return t.prototype.compileComponent=function(t,e,n,r,i){var o=this,s=0,a=fr(n),u=void 0;if(!e.isHost){var c=e.template,l=[];c.animations&&c.animations.length&&l.push(new Nc("animation",On(t,c.animations),!0));var p=yn(O(e.type.reference));u=p.name,t.statements.push(p.set(mn(Ua.createRendererType2).callFn([new Rc([new Nc("encapsulation",Cn(c.encapsulation),!1),new Nc("styles",r,!1),new Nc("data",new Rc(l),!1)])])).toDeclStmt(gn(Ua.RendererType2),[Fc.Final,Fc.Exported]))}var h=function(n){var r=s++;return new mp(o._reflector,t,n,e,r,i,a,h)},f=h(null);return f.visitAll([],n),(d=t.statements).push.apply(d,f.build()),new cp(f.viewName,u);var d},t}();lp.decorators=[{type:q}],lp.ctorParameters=function(){return[{type:zi},{type:qi},{type:Xa}]};var pp=yn("_l"),hp=yn("_v"),fp=yn("_ck"),dp=yn("_co"),vp=yn("en"),yp=yn("ad"),mp=function(){function t(t,e,n,r,i,o,s,a){this.reflector=t,this.outputCtx=e,this.parent=n,this.component=r,this.embeddedViewIndex=i,this.usedPipes=o,this.staticQueryIds=s,this.viewBuilderFactory=a,this.nodes=[],this.purePipeNodeIndices=Object.create(null),this.refNodeIndices=Object.create(null),this.variables=[],this.children=[],this.compType=this.embeddedViewIndex>0?oc:bn(e.importExpr(this.component.type.reference))}return Object.defineProperty(t.prototype,"viewName",{get:function(){return C(this.component.type.reference,this.embeddedViewIndex)},enumerable:!0,configurable:!0}),t.prototype.visitAll=function(t,e){var n=this;if(this.variables=t,this.parent||this.usedPipes.forEach(function(t){t.pure&&(n.purePipeNodeIndices[t.name]=n._createPipe(null,t))}),!this.parent){var i=dr(this.staticQueryIds);this.component.viewQueries.forEach(function(t,e){var r=e+1,o=t.first?0:1,s=134217728|yr(i,r,t.first);n.nodes.push(function(){return{sourceSpan:null,nodeFlags:s,nodeDef:mn(Ua.queryDef).callFn([Cn(s),Cn(r),new Rc([new Nc(t.propertyName,Cn(o),!1)])])}})})}r(this,e),this.parent&&(0===e.length||ar(e))&&this.nodes.push(function(){return{sourceSpan:null,nodeFlags:1,nodeDef:mn(Ua.anchorDef).callFn([Cn(0),jc,jc,Cn(0)])}})},t.prototype.build=function(t){void 0===t&&(t=[]),this.children.forEach(function(e){return e.build(t)});var e=this._createNodeExpressions(),n=e.updateRendererStmts,r=e.updateDirectivesStmts,i=e.nodeDefExprs,o=this._createUpdateFn(n),s=this._createUpdateFn(r),a=0;this.parent||this.component.changeDetection!==Xr.k.OnPush||(a|=2);var u=new Uc(this.viewName,[new Oc(pp.name)],[new Hc(mn(Ua.viewDef).callFn([Cn(a),_n(i),s,o]))],gn(Ua.ViewDefinition),0===this.embeddedViewIndex?[Fc.Exported]:[]);return t.push(u),t},t.prototype._createUpdateFn=function(t){var e;if(t.length>0){var n=[];!this.component.isHost&&fn(t).has(dp.name)&&n.push(dp.set(hp.prop("component")).toDeclStmt(this.compType)),e=En([new Oc(fp.name,sc),new Oc(hp.name,sc)],n.concat(t),sc)}else e=jc;return e},t.prototype.visitNgContent=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:8,nodeDef:mn(Ua.ngContentDef).callFn([Cn(t.ngContentIndex),Cn(t.index)])}})},t.prototype.visitText=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:mn(Ua.textDef).callFn([Cn(t.ngContentIndex),_n([Cn(t.value)])])}})},t.prototype.visitBoundText=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var i=t.value,o=i.ast,s=o.expressions.map(function(e,i){return n._preprocessUpdateExpression({nodeIndex:r,bindingIndex:i,sourceSpan:t.sourceSpan,context:dp,value:e})});this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:mn(Ua.textDef).callFn([Cn(t.ngContentIndex),_n(o.strings.map(function(t){return Cn(t)}))]),updateRenderer:s}}},t.prototype.visitEmbeddedTemplate=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var i=this._visitElementOrTemplate(r,t),o=i.flags,s=i.queryMatchesExpr,a=i.hostEvents,u=this.viewBuilderFactory(this);this.children.push(u),u.visitAll(t.variables,t.children);var c=this.nodes.length-r-1;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|o,nodeDef:mn(Ua.anchorDef).callFn([Cn(o),s,Cn(t.ngContentIndex),Cn(c),n._createElementHandleEventFn(r,a),yn(u.viewName)])}}},t.prototype.visitElement=function(t,e){var n=this,i=this.nodes.length;this.nodes.push(null);var s=o(t.name)?null:t.name,a=this._visitElementOrTemplate(i,t),u=a.flags,c=a.usedEvents,l=a.queryMatchesExpr,p=a.hostBindings,h=a.hostEvents,f=[],d=[],v=[];if(s){var y=t.inputs.map(function(t){return{context:dp,inputAst:t,dirAst:null}}).concat(p);y.length&&(d=y.map(function(t,e){return n._preprocessUpdateExpression({context:t.context,nodeIndex:i,bindingIndex:e,sourceSpan:t.inputAst.sourceSpan,value:t.inputAst.value})}),f=y.map(function(t){return ur(t.inputAst,t.dirAst)})),v=c.map(function(t){var e=t[0],n=t[1];return _n([Cn(e),Cn(n)])})}r(this,t.children);var m=this.nodes.length-i-1,g=t.directives.find(function(t){return t.directive.isComponent}),b=jc,_=jc;g&&(_=this.outputCtx.importExpr(g.directive.componentViewType),b=this.outputCtx.importExpr(g.directive.rendererType)),this.nodes[i]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|u,nodeDef:mn(Ua.elementDef).callFn([Cn(u),l,Cn(t.ngContentIndex),Cn(m),Cn(s),s?cr(t):jc,f.length?_n(f):jc,v.length?_n(v):jc,n._createElementHandleEventFn(i,h),_,b]),updateRenderer:d}}},t.prototype._visitElementOrTemplate=function(t,e){var n=this,r=0;e.hasViewContainer&&(r|=16777216);var i=new Map;e.outputs.forEach(function(t){var e=vr(t,null),n=e.name,r=e.target;i.set(Object(Xr._50)(r,n),[r,n])}),e.directives.forEach(function(t){t.hostEvents.forEach(function(e){var n=vr(e,t),r=n.name,o=n.target;i.set(Object(Xr._50)(o,r),[o,r])})});var o=[],s=[];this._visitComponentFactoryResolverProvider(e.directives),e.providers.forEach(function(r,a){var u=void 0,c=void 0;if(e.directives.forEach(function(t,e){t.directive.type.reference===k(r.token)&&(u=t,c=e)}),u){var l=n._visitDirective(r,u,c,t,e.references,e.queryMatches,i,n.staticQueryIds.get(e)),p=l.hostBindings,h=l.hostEvents;o.push.apply(o,p),s.push.apply(s,h)}else n._visitProvider(r,e.queryMatches)});var a=[];return e.queryMatches.forEach(function(t){var e=void 0;k(t.value)===n.reflector.resolveExternalReference(Ua.ElementRef)?e=0:k(t.value)===n.reflector.resolveExternalReference(Ua.ViewContainerRef)?e=3:k(t.value)===n.reflector.resolveExternalReference(Ua.TemplateRef)&&(e=2),null!=e&&a.push(_n([Cn(t.queryId),Cn(e)]))}),e.references.forEach(function(e){var r=void 0;e.value?k(e.value)===n.reflector.resolveExternalReference(Ua.TemplateRef)&&(r=2):r=1,null!=r&&(n.refNodeIndices[e.name]=t,a.push(_n([Cn(e.name),Cn(r)])))}),e.outputs.forEach(function(t){s.push({context:dp,eventAst:t,dirAst:null})}),{flags:r,usedEvents:Array.from(i.values()),queryMatchesExpr:a.length?_n(a):jc,hostBindings:o,hostEvents:s}},t.prototype._visitDirective=function(t,e,n,r,i,o,s,a){var u=this,c=this.nodes.length;this.nodes.push(null),e.directive.queries.forEach(function(t,n){var r=e.contentQueryStartId+n,i=67108864|yr(a,r,t.first),o=t.first?0:1;u.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:i,nodeDef:mn(Ua.queryDef).callFn([Cn(i),Cn(r),new Rc([new Nc(t.propertyName,Cn(o),!1)])])}})});var l=this.nodes.length-c-1,p=this._visitProviderOrDirective(t,o),h=p.flags,f=p.queryMatchExprs,d=p.providerExpr,v=p.depsExpr;i.forEach(function(e){e.value&&k(e.value)===k(t.token)&&(u.refNodeIndices[e.name]=c,f.push(_n([Cn(e.name),Cn(4)])))}),e.directive.isComponent&&(h|=32768);var y=e.inputs.map(function(t,e){var n=_n([Cn(e),Cn(t.directiveName)]);return new Nc(t.directiveName,n,!1)}),m=[],g=e.directive;Object.keys(g.outputs).forEach(function(t){var e=g.outputs[t];s.has(e)&&m.push(new Nc(t,Cn(e),!1))});var b=[];(e.inputs.length||(327680&h)>0)&&(b=e.inputs.map(function(t,e){return u._preprocessUpdateExpression({nodeIndex:c,bindingIndex:e,sourceSpan:t.sourceSpan,context:dp,value:t.value})}));var _=mn(Ua.nodeValue).callFn([hp,Cn(c)]),w=e.hostProperties.map(function(t){return{context:_,dirAst:e,inputAst:t}}),x=e.hostEvents.map(function(t){return{context:_,eventAst:t,dirAst:e}});return this.nodes[c]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:16384|h,nodeDef:mn(Ua.directiveDef).callFn([Cn(h),f.length?_n(f):jc,Cn(l),d,v,y.length?new Rc(y):jc,m.length?new Rc(m):jc]),updateDirectives:b,directive:e.directive.type}},{hostBindings:w,hostEvents:x}},t.prototype._visitProvider=function(t,e){this._addProviderNode(this._visitProviderOrDirective(t,e))},t.prototype._visitComponentFactoryResolverProvider=function(t){var e=t.find(function(t){return t.directive.isComponent});if(e&&e.directive.entryComponents.length){var n=Rn(this.reflector,this.outputCtx,8192,e.directive.entryComponents),r=n.providerExpr,i=n.depsExpr,o=n.flags,s=n.tokenExpr;this._addProviderNode({providerExpr:r,depsExpr:i,flags:o,tokenExpr:s,queryMatchExprs:[],sourceSpan:e.sourceSpan})}},t.prototype._addProviderNode=function(t){this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:t.flags,nodeDef:mn(Ua.providerDef).callFn([Cn(t.flags),t.queryMatchExprs.length?_n(t.queryMatchExprs):jc,t.tokenExpr,t.providerExpr,t.depsExpr])}})},t.prototype._visitProviderOrDirective=function(t,e){var n=[];e.forEach(function(e){k(e.value)===k(t.token)&&n.push(_n([Cn(e.queryId),Cn(4)]))});var r=Tn(this.outputCtx,t),i=r.providerExpr,o=r.depsExpr,s=r.flags,a=r.tokenExpr;return{flags:0|s,queryMatchExprs:n,providerExpr:i,depsExpr:o,tokenExpr:a,sourceSpan:t.sourceSpan}},t.prototype.getLocal=function(t){if(t==$l.event.name)return $l.event;for(var e=hp,n=this;n;n=n.parent,e=e.prop("parent").cast(oc)){var r=n.refNodeIndices[t];if(null!=r)return mn(Ua.nodeValue).callFn([e,Cn(r)]);var i=n.variables.find(function(e){return e.name===t});if(i){var o=i.value||"$implicit";return e.prop("context").prop(o)}}return null},t.prototype.createLiteralArrayConverter=function(t,e){if(0===e){var n=mn(Ua.EMPTY_ARRAY);return function(){return n}}var r=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:32,nodeDef:mn(Ua.pureArrayDef).callFn([Cn(e)])}}),function(t){return pr(r,t)}},t.prototype.createLiteralMapConverter=function(t,e){if(0===e.length){var n=mn(Ua.EMPTY_MAP);return function(){return n}}var r=wn(e.map(function(t,e){return Object.assign({},t,{value:Cn(e)})})),i=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:64,nodeDef:mn(Ua.pureObjectDef).callFn([r])}}),function(t){return pr(i,t)}},t.prototype.createPipeConverter=function(t,e,n){var r=this.usedPipes.find(function(t){return t.name===e});if(r.pure){var i=this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:128,nodeDef:mn(Ua.purePipeDef).callFn([Cn(n)])}});for(var o=hp,s=this;s.parent;)s=s.parent,o=o.prop("parent").cast(oc);var a=s.purePipeNodeIndices[e],u=mn(Ua.nodeValue).callFn([o,Cn(a)]);return function(e){return hr(t.nodeIndex,t.bindingIndex,pr(i,[u].concat(e)))}}var c=this._createPipe(t.sourceSpan,r),l=mn(Ua.nodeValue).callFn([hp,Cn(c)]);return function(e){return hr(t.nodeIndex,t.bindingIndex,l.callMethod("transform",e))}},t.prototype._createPipe=function(t,e){var n=this,r=this.nodes.length,i=0;e.type.lifecycleHooks.forEach(function(t){t===qu.OnDestroy&&(i|=Nn(t))});var o=e.type.diDeps.map(function(t){return Mn(n.outputCtx,t)});return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:16,nodeDef:mn(Ua.pipeDef).callFn([Cn(i),n.outputCtx.importExpr(e.type.reference),_n(o)])}}),r},t.prototype._preprocessUpdateExpression=function(t){var e=this;return{nodeIndex:t.nodeIndex,bindingIndex:t.bindingIndex,sourceSpan:t.sourceSpan,context:t.context,value:Qn({createLiteralArrayConverter:function(n){return e.createLiteralArrayConverter(t.sourceSpan,n)},createLiteralMapConverter:function(n){return e.createLiteralMapConverter(t.sourceSpan,n)},createPipeConverter:function(n,r){return e.createPipeConverter(t,n,r)}},t.value)}},t.prototype._createNodeExpressions=function(){function t(t,r,i,o){var s=[],a=i.map(function(t){var r=t.sourceSpan,i=t.context,o=t.value,a=""+n++,u=i===dp?e:null,c=Xn(u,i,o,a),l=c.stmts,p=c.currValExpr;return s.push.apply(s,l.map(function(t){return dn(t,r)})),vn(p,r)});return(i.length||o)&&s.push(dn(pr(t,a).toStmt(),r)),s}var e=this,n=0,r=[],i=[],o=this.nodes.map(function(e,n){var o=e(),s=o.nodeDef,a=o.nodeFlags,u=o.updateDirectives,c=o.updateRenderer,l=o.sourceSpan;return c&&r.push.apply(r,t(n,l,c,!1)),u&&i.push.apply(i,t(n,l,u,(327680&a)>0)),vn(3&a?new Ic([pp.callFn([]).callFn([]),s]):s,l)});return{updateRendererStmts:r,updateDirectivesStmts:i,nodeDefExprs:o}},t.prototype._createElementHandleEventFn=function(t,e){var n=this,r=[],i=0;e.forEach(function(t){var e=t.context,o=t.eventAst,s=t.dirAst,a=""+i++,u=e===dp?n:null,c=Gn(u,e,o.handler,a),l=c.stmts,p=c.allowDefault,h=l;p&&h.push(yp.set(p.and(yp)).toStmt());var f=vr(o,s),d=f.target,v=f.name,y=Object(Xr._50)(d,v);r.push(dn(new Gc(Cn(y).identical(vp),h),o.sourceSpan))});var o;if(r.length>0){var s=[yp.set(Cn(!0)).toDeclStmt(ac)];!this.component.isHost&&fn(r).has(dp.name)&&s.push(dp.set(hp.prop("component")).toDeclStmt(this.compType)),o=En([new Oc(hp.name,sc),new Oc(vp.name,sc),new Oc($l.event.name,sc)],s.concat(r,[new Hc(yp)]),sc)}else o=jc;return o},t.prototype.visitDirective=function(t,e){},t.prototype.visitDirectiveProperty=function(t,e){},t.prototype.visitReference=function(t,e){},t.prototype.visitVariable=function(t,e){},t.prototype.visitEvent=function(t,e){},t.prototype.visitElementProperty=function(t,e){},t.prototype.visitAttr=function(t,e){},t}(),gp=function(){function t(t,e,n){this.srcFileUrl=t,this.genFileUrl=e,"string"==typeof n?(this.source=n,this.stmts=null):(this.source=null,this.stmts=n)}return t}(),bp=function(t){function e(e,n){var r=t.call(this)||this;return r.symbolResolver=e,r.summaryResolver=n,r.symbols=[],r.indexBySymbol=new Map,r.processedSummaryBySymbol=new Map,r.processedSummaries=[],r}return Qr.a(e,t),e.prototype.addOrMergeSummary=function(t){var e=t.metadata;if(e&&"class"===e.__symbolic){var n={};Object.keys(e).forEach(function(t){"decorators"!==t&&(n[t]=e[t])}),e=n}var r=this.processedSummaryBySymbol.get(t.symbol);r||(r=this.processValue({symbol:t.symbol}),this.processedSummaries.push(r),this.processedSummaryBySymbol.set(t.symbol,r)),null==r.metadata&&null!=e&&(r.metadata=this.processValue(e)),null==r.type&&null!=t.type&&(r.type=this.processValue(t.type))},e.prototype.serialize=function(){var t=this,e=[];return{json:JSON.stringify({summaries:this.processedSummaries,symbols:this.symbols.map(function(n,r){n.assertNoMembers();var i=void 0;return t.summaryResolver.isLibraryFile(n.filePath)&&(i=n.name+"_"+r,e.push({symbol:n,exportAs:i})),{__symbol:r,name:n.name,filePath:t.summaryResolver.getLibraryFileName(n.filePath),importAs:i}})}),exportAs:e}},e.prototype.processValue=function(t){return v(t,this,null)},e.prototype.visitOther=function(t,e){if(t instanceof hi){var n=this.symbolResolver.getStaticSymbol(t.filePath,t.name),r=this.indexBySymbol.get(n);return null==r&&(r=this.indexBySymbol.size,this.indexBySymbol.set(n,r),this.symbols.push(n)),{__symbol:r,members:t.members}}},e}(Ci),_p=function(){function t(t,e){this.outputCtx=t,this.symbolResolver=e,this.data=new Map}return t.prototype.addSourceType=function(t,e){this.data.set(t.type.reference,{summary:t,metadata:e,isLibrary:!1})},t.prototype.addLibType=function(t){this.data.set(t.type.reference,{summary:t,metadata:null,isLibrary:!0})},t.prototype.serialize=function(t){var e=this,n=new Set;Array.from(this.data.values()).forEach(function(t){var r=t.summary,i=t.metadata,o=t.isLibrary;if(r.summaryKind===ji.NgModule){n.add(r.type.reference);r.modules.forEach(function(t){n.add(t.reference)})}if(!o){Ze(r.type.reference.name);_r(e.outputCtx,r.type.reference,e.serializeSummaryWithDeps(r,i))}}),t.forEach(function(t){var r=t.symbol;if(n.has(r)){var i=Ze(t.exportAs);e.outputCtx.statements.push(yn(i).set(e.serializeSummaryRef(r)).toDeclStmt(null,[Fc.Exported]))}})},t.prototype.serializeSummaryWithDeps=function(t,e){var n=this,r=[this.serializeSummary(t)],i=[];if(e instanceof Ui)r.push.apply(r,e.declaredDirectives.concat(e.declaredPipes).map(function(t){return t.reference}).concat(e.transitiveModule.modules.map(function(t){return t.reference}).filter(function(t){return t!==e.type.reference})).map(function(t){return n.serializeSummaryRef(t)})),i=e.providers;else if(t.summaryKind===ji.Directive){var o=t;i=o.providers.concat(o.viewProviders)}return r.push.apply(r,i.filter(function(t){return!!t.useClass}).map(function(t){return n.serializeSummary({summaryKind:ji.Injectable,type:t.useClass})})),_n(r)},t.prototype.serializeSummaryRef=function(t){var e=this.symbolResolver.getStaticSymbol(Ye(t.filePath),Ze(t.name));return this.outputCtx.importExpr(e)},t.prototype.serializeSummary=function(t){var e=this.outputCtx;return v(t,new(function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return _n(t.map(function(t){return v(t,n,e)}))},t.prototype.visitStringMap=function(t,e){var n=this;return new Rc(Object.keys(t).map(function(r){return new Nc(r,v(t[r],n,e),!1)}))},t.prototype.visitPrimitive=function(t,e){return Cn(t)},t.prototype.visitOther=function(t,n){if(t instanceof hi)return e.importExpr(t);throw new Error("Illegal State: Encountered value "+t)},t}()),null)},t}(),wp=function(t){function e(e){var n=t.call(this)||this;return n.symbolCache=e,n}return Qr.a(e,t),e.prototype.deserialize=function(t){var e=this,n=JSON.parse(t),r=[];return this.symbols=[],n.symbols.forEach(function(t){var n=e.symbolCache.get(t.filePath,t.name);e.symbols.push(n),t.importAs&&r.push({symbol:n,importAs:t.importAs})}),{summaries:v(n.summaries,this,null),importAs:r}},e.prototype.visitStringMap=function(e,n){if("__symbol"in e){var r=this.symbols[e.__symbol],i=e.members;return i.length?this.symbolCache.get(r.filePath,r.name,i):r}return t.prototype.visitStringMap.call(this,e,n)},e}(Ci),xp=(function(){function t(t,e,n,r,i,o,s,a,u,c,l,p,h,f){this._config=t,this._host=e,this._reflector=n,this._metadataResolver=r,this._templateParser=i,this._styleCompiler=o,this._viewCompiler=s,this._ngModuleCompiler=a,this._outputEmitter=u,this._summaryResolver=c,this._localeId=l,this._translationFormat=p,this._enableSummariesForJit=h,this._symbolResolver=f}t.prototype.clearCache=function(){this._metadataResolver.clearCache()},t.prototype.analyzeModulesSync=function(t){var e=this,n=Tr(this._symbolResolver,t,this._host),r=Cr(n,this._host,this._metadataResolver);return r.ngModules.forEach(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!0)}),r},t.prototype.analyzeModulesAsync=function(t){var e=this,n=Tr(this._symbolResolver,t,this._host),r=Cr(n,this._host,this._metadataResolver);return Promise.all(r.ngModules.map(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){return r})},t.prototype.emitAllStubs=function(t){var e=this;return R(t.files.map(function(t){return e._compileStubFile(t.srcUrl,t.directives,t.pipes,t.ngModules,!1)}))},t.prototype.emitPartialStubs=function(t){var e=this;return R(t.files.map(function(t){return e._compileStubFile(t.srcUrl,t.directives,t.pipes,t.ngModules,!0)}))},t.prototype.emitAllImpls=function(t){var e=this,n=t.ngModuleByPipeOrDirective;return R(t.files.map(function(t){return e._compileImplFile(t.srcUrl,n,t.directives,t.pipes,t.ngModules,t.injectables)}))},t.prototype._compileStubFile=function(t,e,n,r,i){var o=this,s=Qe(t,!0)[1],a=[],u=this._createOutputContext(We(t,!0)),c=this._createOutputContext(Ye(t,!0));r.forEach(function(t){o._ngModuleCompiler.createStub(u,t),br(c,t)});var l=!1,p=!1;return e.forEach(function(t){var e=o._metadataResolver.getDirectiveMetadata(t);l=!0,e.isComponent&&(e.template.externalStylesheets.forEach(function(t){var n=o._createOutputContext(Sr(t.moduleUrl,o._styleCompiler.needsStyleShim(e),s));wr(n,Ua.ComponentFactory),a.push(o._codegenSourceModule(t.moduleUrl,n))}),p=!0)}),(p||!i)&&u.statements.length<=0&&wr(u,Ua.ComponentFactory),(l||!i||n&&n.length>0)&&c.statements.length<=0&&wr(c,Ua.ComponentFactory),a.push(this._codegenSourceModule(t,u)),this._enableSummariesForJit&&a.push(this._codegenSourceModule(t,c)),a},t.prototype._compileImplFile=function(t,e,n,r,i,o){var s=this,a=Qe(t,!0)[1],u=[],c=this._createOutputContext(We(t,!0));if(u.push.apply(u,this._createSummary(t,n,r,i,o,c)),i.forEach(function(t){return s._compileModule(c,t)}),n.forEach(function(t){var n=s._metadataResolver.getDirectiveMetadata(t);if(n.isComponent){var r=e.get(t);if(!r)throw new Error("Internal Error: cannot determine the module for component "+S(n.type)+"!");var i=s._styleCompiler.compileComponent(c,n);n.template.externalStylesheets.forEach(function(t){u.push(s._codegenStyles(t.moduleUrl,n,t,a))});s._compileComponent(c,n,r,r.transitiveModule.directives,i,a);s._compileComponentFactory(c,n,r,a)}}),c.statements.length>0){var l=this._codegenSourceModule(t,c);u.unshift(l)}return u},t.prototype._createSummary=function(t,e,n,r,i,o){var s=this,a=this._symbolResolver.getSymbolsOf(t).map(function(t){return s._symbolResolver.resolveSymbol(t)}),u=r.map(function(t){return{summary:s._metadataResolver.getNgModuleSummary(t),metadata:s._metadataResolver.getNgModuleMetadata(t)}}).concat(e.map(function(t){return{summary:s._metadataResolver.getDirectiveSummary(t),metadata:s._metadataResolver.getDirectiveMetadata(t)}}),n.map(function(t){return{summary:s._metadataResolver.getPipeSummary(t),metadata:s._metadataResolver.getPipeMetadata(t)}}),i.map(function(t){return{summary:s._metadataResolver.getInjectableSummary(t),metadata:s._metadataResolver.getInjectableSummary(t).type}})),c=this._createOutputContext(Ye(t,!0)),l=mr(c,this._summaryResolver,this._symbolResolver,a,u),p=l.json;l.exportAs.forEach(function(t){o.statements.push(yn(t.exportAs).set(o.importExpr(t.symbol)).toDeclStmt(null,[Fc.Exported]))});var h=new gp(t,Xe(t),p);return this._enableSummariesForJit?[h,this._codegenSourceModule(t,c)]:[h]},t.prototype._compileModule=function(t,e){var n=this._metadataResolver.getNgModuleMetadata(e),r=[];this._localeId&&r.push({token:he(this._reflector,Ua.LOCALE_ID),useValue:this._localeId}),this._translationFormat&&r.push({token:he(this._reflector,Ua.TRANSLATIONS_FORMAT),useValue:this._translationFormat}),this._ngModuleCompiler.compile(t,n,r)},t.prototype._compileComponentFactory=function(t,e,n,r){var i=this._metadataResolver.getHostComponentType(e.type.reference),o=M(i,e,this._metadataResolver.getHostComponentViewClass(i)),s=this._compileComponent(t,o,n,[e.type],null,r).viewClassVar,a=P(e.type.reference),u=[];for(var c in e.inputs){var l=e.inputs[c];u.push(new Nc(c,Cn(l),!1))}var p=[];for(var c in e.outputs){var l=e.outputs[c];p.push(new Nc(c,Cn(l),!1))}t.statements.push(yn(a).set(mn(Ua.createComponentFactory).callFn([Cn(e.selector),t.importExpr(e.type.reference),yn(s),new Rc(u),new Rc(p),_n(e.template.ngContentSelectors.map(function(t){return Cn(t)}))])).toDeclStmt(gn(Ua.ComponentFactory,[bn(t.importExpr(e.type.reference))],[Zu.Const]),[Fc.Final,Fc.Exported]))},t.prototype._compileComponent=function(t,e,n,r,i,o){var s=this,a=r.map(function(t){return s._metadataResolver.getDirectiveSummary(t.reference)}),u=n.transitiveModule.pipes.map(function(t){return s._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(e,e.template.template,a,u,n.schemas,j(n.type,e,e.template)),l=c.template,p=c.pipes,h=i?yn(i.stylesVar):_n([]),f=this._viewCompiler.compileComponent(t,e,l,h,p);return i&&xr(this._symbolResolver,i,this._styleCompiler.needsStyleShim(e),o),f},t.prototype._createOutputContext=function(t){var e=this;return{statements:[],genFilePath:t,importExpr:function(n,r){if(void 0===r&&(r=null),!(n instanceof hi))throw new Error("Internal error: unknown identifier "+JSON.stringify(n));var i=e._symbolResolver.getTypeArity(n)||0,o=e._symbolResolver.getImportAs(n)||n,s=o.filePath,a=o.name,u=o.members,c=e._symbolResolver.fileNameToModuleName(s,t),l=e._symbolResolver.fileNameToModuleName(t,t),p=c===l?null:c,h=r||[],f=i-h.length,d=h.concat(new Array(f).fill(oc));return u.reduce(function(t,e){return t.prop(e)},mn(new wc(p,a,null),d))}}},t.prototype._codegenStyles=function(t,e,n,r){var i=this._createOutputContext(Sr(n.moduleUrl,this._styleCompiler.needsStyleShim(e),r)),o=this._styleCompiler.compileStyles(i,e,n);return xr(this._symbolResolver,o,this._styleCompiler.needsStyleShim(e),r),this._codegenSourceModule(t,i)},t.prototype._codegenSourceModule=function(t,e){return new gp(t,e.genFilePath,e.statements)}}(),"@angular/core"),Sp=/^\$.*\$$/,Ep={__symbolic:"ignore"},Cp="useValue",Op="provide",Tp=new Set([Cp,"useFactory","data"]),Pp=function(){function t(t,e,n,r,i){void 0===n&&(n=[]),void 0===r&&(r=[]);var o=this;this.summaryResolver=t,this.symbolResolver=e,this.errorRecorder=i,this.annotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.conversionMap=new Map,this.annotationForParentClassWithSummaryKind=new Map,this.annotationNames=new Map,this.initializeConversionMap(),n.forEach(function(t){return o._registerDecoratorOrConstructor(o.getStaticSymbol(t.filePath,t.name),t.ctor)}),r.forEach(function(t){return o._registerFunction(o.getStaticSymbol(t.filePath,t.name),t.fn)}),this.annotationForParentClassWithSummaryKind.set(ji.Directive,[Xr.u,Xr.o]),this.annotationForParentClassWithSummaryKind.set(ji.Pipe,[Xr.X]),this.annotationForParentClassWithSummaryKind.set(ji.NgModule,[Xr.M]),this.annotationForParentClassWithSummaryKind.set(ji.Injectable,[Xr.C,Xr.X,Xr.u,Xr.o,Xr.M]),this.annotationNames.set(Xr.u,"Directive"),this.annotationNames.set(Xr.o,"Component"),this.annotationNames.set(Xr.X,"Pipe"),this.annotationNames.set(Xr.M,"NgModule"),this.annotationNames.set(Xr.C,"Injectable")}return t.prototype.componentModuleUrl=function(t){var e=this.findSymbolDeclaration(t);return this.symbolResolver.getResourcePath(e)},t.prototype.resolveExternalReference=function(t){var e=this.getStaticSymbol(t.moduleName,t.name),n=this.findDeclaration(t.moduleName,t.name);return e!=n&&this.symbolResolver.recordImportAs(n,e),n},t.prototype.findDeclaration=function(t,e,n){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(t,e,n))},t.prototype.tryFindDeclaration=function(t,e){var n=this;return this.symbolResolver.ignoreErrorsFor(function(){return n.findDeclaration(t,e)})},t.prototype.findSymbolDeclaration=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata instanceof hi?this.findSymbolDeclaration(e.metadata):t},t.prototype.annotations=function(t){var e=this,n=this.annotationCache.get(t);if(!n){n=[];var r=this.getTypeMetadata(t),i=this.findParentType(t,r);if(i){var o=this.annotations(i);n.push.apply(n,o)}var s=[];if(r.decorators&&(s=this.simplify(t,r.decorators),n.push.apply(n,s)),i&&!this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(i.filePath)){var a=this.summaryResolver.resolveSummary(i);if(a&&a.type){var u=this.annotationForParentClassWithSummaryKind.get(a.type.summaryKind);u.some(function(t){return s.some(function(e){return e instanceof t})})||this.reportError(g("Class "+t.name+" in "+t.filePath+" extends from a "+ji[a.type.summaryKind]+" in another compilation unit without duplicating the decorator. Please add a "+u.map(function(t){return e.annotationNames.get(t)}).join(" or ")+" decorator to the class."),t)}}this.annotationCache.set(t,n.filter(function(t){return!!t}))}return n},t.prototype.propMetadata=function(t){var e=this,n=this.propertyCache.get(t);if(!n){var r=this.getTypeMetadata(t);n={};var i=this.findParentType(t,r);if(i){var o=this.propMetadata(i);Object.keys(o).forEach(function(t){n[t]=o[t]})}var s=r.members||{};Object.keys(s).forEach(function(r){var i=s[r],o=i.find(function(t){return"property"==t.__symbolic||"method"==t.__symbolic}),a=[];n[r]&&a.push.apply(a,n[r]),n[r]=a,o&&o.decorators&&a.push.apply(a,e.simplify(t,o.decorators))}),this.propertyCache.set(t,n)}return n},t.prototype.parameters=function(t){var e=this;if(!(t instanceof hi))return this.reportError(new Error("parameters received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),[];try{var n=this.parameterCache.get(t);if(!n){var r=this.getTypeMetadata(t),i=this.findParentType(t,r),o=r?r.members:null,s=o?o.__ctor__:null;if(s){var a=s.find(function(t){return"constructor"==t.__symbolic}),u=a.parameters||[],c=this.simplify(t,a.parameterDecorators||[]);n=[],u.forEach(function(r,i){var o=[],s=e.trySimplify(t,r);s&&o.push(s);var a=c?c[i]:null;a&&o.push.apply(o,a),n.push(o)})}else i&&(n=this.parameters(i));n||(n=[]),this.parameterCache.set(t,n)}return n}catch(e){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+e),e}},t.prototype._methodNames=function(t){var e=this.methodCache.get(t);if(!e){var n=this.getTypeMetadata(t);e={};var r=this.findParentType(t,n);if(r){var i=this._methodNames(r);Object.keys(i).forEach(function(t){e[t]=i[t]})}var o=n.members||{};Object.keys(o).forEach(function(t){var n=o[t],r=n.some(function(t){return"method"==t.__symbolic});e[t]=e[t]||r}),this.methodCache.set(t,e)}return e},t.prototype.findParentType=function(t,e){var n=this.trySimplify(t,e.extends);if(n instanceof hi)return n},t.prototype.hasLifecycleHook=function(t,e){t instanceof hi||this.reportError(new Error("hasLifecycleHook received "+JSON.stringify(t)+" which is not a StaticSymbol"),t);try{return!!this._methodNames(t)[e]}catch(e){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+e),e}},t.prototype._registerDecoratorOrConstructor=function(t,e){this.conversionMap.set(t,function(t,n){return new(e.bind.apply(e,[void 0].concat(n)))})},t.prototype._registerFunction=function(t,e){this.conversionMap.set(t,function(t,n){return e.apply(void 0,n)})},t.prototype.initializeConversionMap=function(){this.injectionToken=this.findDeclaration(xp,"InjectionToken"),this.opaqueToken=this.findDeclaration(xp,"OpaqueToken"),this.ROUTES=this.tryFindDeclaration("@angular/router","ROUTES"),this.ANALYZE_FOR_ENTRY_COMPONENTS=this.findDeclaration(xp,"ANALYZE_FOR_ENTRY_COMPONENTS"),this._registerDecoratorOrConstructor(this.findDeclaration(xp,"Host"),Xr.y),this._registerDecoratorOrConstructor(this.findDeclaration(xp,"Injectable"),Xr.C),this._registerDecoratorOrConstructor(this.findDeclaration(xp,"Self"),Xr._7),this._registerDecoratorOrConstructor(this.findDeclaration(xp,"SkipSelf"),Xr._8),this._registerDecoratorOrConstructor(this.findDeclaration(xp,"Inject"),Xr.B),this._registerDecoratorOrConstructor(this.findDeclaration(xp,"Optional"),Xr.S),this._registerDecoratorOrConstructor(this.findDeclaration(xp,"Attribute"),Xr.h),this._registerDecoratorOrConstructor(this.findDeclaration(xp,"ContentChild"),Xr.s),this._registerDecoratorOrConstructor(this.findDeclaration(xp,"ContentChildren"),Xr.t),this._registerDecoratorOrConstructor(this.findDeclaration(xp,"ViewChild"),Xr._17),this._registerDecoratorOrConstructor(this.findDeclaration(xp,"ViewChildren"),Xr._18),this._registerDecoratorOrConstructor(this.findDeclaration(xp,"Input"),Xr.F),this._registerDecoratorOrConstructor(this.findDeclaration(xp,"Output"),Xr.T),this._registerDecoratorOrConstructor(this.findDeclaration(xp,"Pipe"),Xr.X),this._registerDecoratorOrConstructor(this.findDeclaration(xp,"HostBinding"),Xr.z),this._registerDecoratorOrConstructor(this.findDeclaration(xp,"HostListener"),Xr.A),this._registerDecoratorOrConstructor(this.findDeclaration(xp,"Directive"),Xr.u),this._registerDecoratorOrConstructor(this.findDeclaration(xp,"Component"),Xr.o),this._registerDecoratorOrConstructor(this.findDeclaration(xp,"NgModule"),Xr.M),this._registerDecoratorOrConstructor(this.findDeclaration(xp,"Host"),Xr.y),this._registerDecoratorOrConstructor(this.findDeclaration(xp,"Self"),Xr._7),this._registerDecoratorOrConstructor(this.findDeclaration(xp,"SkipSelf"),Xr._8),this._registerDecoratorOrConstructor(this.findDeclaration(xp,"Optional"),Xr.S),this._registerFunction(this.findDeclaration(xp,"trigger"),Xr._36),this._registerFunction(this.findDeclaration(xp,"state"),Xr._33),this._registerFunction(this.findDeclaration(xp,"transition"),Xr._35),this._registerFunction(this.findDeclaration(xp,"style"),Xr._34),this._registerFunction(this.findDeclaration(xp,"animate"),Xr._22),this._registerFunction(this.findDeclaration(xp,"keyframes"),Xr._28),this._registerFunction(this.findDeclaration(xp,"sequence"),Xr._31),this._registerFunction(this.findDeclaration(xp,"group"),Xr._26)},t.prototype.getStaticSymbol=function(t,e,n){return this.symbolResolver.getStaticSymbol(t,e,n)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||n)},t.prototype.trySimplify=function(t,e){var n=this.errorRecorder;this.errorRecorder=function(t,e){};var r=this.simplify(t,e);return this.errorRecorder=n,r},t.prototype.simplify=function(t,e){function n(t,e,r,a){function u(t){var e=i.symbolResolver.resolveSymbol(t);return e?e.metadata:null}function c(e,i,u){if(i&&"function"==i.__symbolic){if(s.get(e))throw new Error("Recursion not supported");s.set(e,!0);try{var c=i.value;if(c&&(0!=r||"error"!=c.__symbolic)){var p=i.parameters,h=i.defaults;u=u.map(function(e){return n(t,e,r+1,a)}).map(function(t){return Ar(t)?void 0:t}),h&&h.length>u.length&&u.push.apply(u,h.slice(u.length).map(function(t){return l(t)}));for(var f=Ap.build(),d=0;d<p.length;d++)f.define(p[d],u[d]);var v,y=o;try{o=f.done(),v=n(e,c,r+1,a)}finally{o=y}return v}}finally{s.delete(e)}}return 0===r?Ep:l({__symbolic:"error",message:"Function call not supported",context:e})}function l(e){if(Rr(e))return e;if(e instanceof Array){for(var s=[],p=0,h=e;p<h.length;p++){var f=h[p];if(f&&"spread"===f.__symbolic){var d=l(f.expression);if(Array.isArray(d)){for(var v=0,y=d;v<y.length;v++){var m=y[v];s.push(m)}continue}}var g=l(f);Ar(g)||s.push(g)}return s}if(e instanceof hi){if(e===i.injectionToken||e===i.opaqueToken||i.conversionMap.has(e)||a>0)return e;var b=e,_=u(b);return _?n(b,_,r+1,a):b}if(e){if(e.__symbolic){var b=void 0;switch(e.__symbolic){case"binop":var w=l(e.left);if(Ar(w))return w;var x=l(e.right);if(Ar(x))return x;switch(e.operator){case"&&":return w&&x;case"||":return w||x;case"|":return w|x;case"^":return w^x;case"&":return w&x;case"==":return w==x;case"!=":return w!=x;case"===":return w===x;case"!==":return w!==x;case"<":return w<x;case">":return w>x;case"<=":return w<=x;case">=":return w>=x;case"<<":return w<<x;case">>":return w>>x;case"+":return w+x;case"-":return w-x;case"*":return w*x;case"/":return w/x;case"%":return w%x}return null;case"if":return l(l(e.condition)?e.thenExpression:e.elseExpression);case"pre":var S=l(e.operand);if(Ar(S))return S;switch(e.operator){case"+":return S;case"-":return-S;case"!":return!S;case"~":return~S}return null;case"index":var E=l(e.expression),C=l(e.index);return E&&Rr(C)?E[C]:null;case"select":var O=e.member,T=t,P=l(e.expression);if(P instanceof hi){var A=P.members.concat(O);T=i.getStaticSymbol(P.filePath,P.name,A);var _=u(T);return _?n(T,_,r+1,a):T}return P&&Rr(O)?n(T,P[O],r+1,a):null;case"reference":var k=e.name,M=o.resolve(k);if(M!=Ap.missing)return M;break;case"class":case"function":return t;case"new":case"call":if((b=n(t,e.expression,r+1,0))instanceof hi){if(b===i.injectionToken||b===i.opaqueToken)return t;var N=e.arguments||[],R=i.conversionMap.get(b);if(R){var I=N.map(function(e){return n(t,e,r+1,a)}).map(function(t){return Ar(t)?void 0:t});return R(t,I)}return c(b,u(b),N)}return Ep;case"error":var j=Mr(e);return e.line?(j=j+" (position "+(e.line+1)+":"+(e.character+1)+" in the original .ts file)",i.reportError(Ir(j,t.filePath,e.line,e.character),t)):i.reportError(new Error(j),t),Ep;case"ignore":return e}return null}return Nr(e,function(o,s){if(Tp.has(s)){if(s===Cp&&Op in e){var u=l(e.provide);if(u===i.ROUTES||u==i.ANALYZE_FOR_ENTRY_COMPONENTS)return l(o)}return n(t,o,r,a+1)}return l(o)})}return Ep}try{return l(e)}catch(e){var p=t.members.length?"."+t.members.join("."):"",h=e.message+", resolving symbol "+t.name+p+" in "+t.filePath;if(e.fileName)throw Ir(h,e.fileName,e.line,e.column);throw g(h)}}var r=this,i=this,o=Ap.empty,s=new Map,a=this.errorRecorder?function(t,e){try{return n(t,e,0,0)}catch(e){r.reportError(e,t)}}(t,e):n(t,e,0,0);if(!Ar(a))return a},t.prototype.getTypeMetadata=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata?e.metadata:{__symbolic:"class"}},t}(),Ap=function(){function t(){}return t.prototype.resolve=function(t){},t.build=function(){var e=new Map;return{define:function(t,n){return e.set(t,n),this},done:function(){return e.size>0?new kp(e):t.empty}}},t}();Ap.missing={},Ap.empty={resolve:function(t){return Ap.missing}};var kp=function(t){function e(e){var n=t.call(this)||this;return n.bindings=e,n}return Qr.a(e,t),e.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):Ap.missing},e}(Ap),Mp=function(){function t(t,e){this.symbol=t,this.metadata=e}return t}(),Np=function(){function t(t,e,n,r){this.host=t,this.staticSymbolCache=e,this.summaryResolver=n,this.errorRecorder=r,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.resolvedFilePaths=new Set,this.importAs=new Map,this.symbolResourcePaths=new Map,this.symbolFromFile=new Map,this.knownFileNameToModuleNames=new Map}return t.prototype.resolveSymbol=function(t){if(t.members.length>0)return this._resolveSymbolMembers(t);var e=this.resolvedSymbols.get(t);return e||((e=this._resolveSymbolFromSummary(t))?e:(this._createSymbolsOf(t.filePath),e=this.resolvedSymbols.get(t)))},t.prototype.getImportAs=function(t){if(t.members.length){var e=this.getStaticSymbol(t.filePath,t.name),n=this.getImportAs(e);return n?this.getStaticSymbol(n.filePath,n.name,t.members):null}var r=Je(t.filePath);if(r!==t.filePath){var i=$e(t.name),e=this.getStaticSymbol(r,i,t.members),n=this.getImportAs(e);return n?this.getStaticSymbol(Ye(n.filePath),Ze(n.name),e.members):null}var o=this.summaryResolver.getImportAs(t);return o||(o=this.importAs.get(t)),o},t.prototype.getResourcePath=function(t){return this.symbolResourcePaths.get(t)||t.filePath},t.prototype.getTypeArity=function(t){if(Ge(t.filePath))return null;for(var e=this.resolveSymbol(t);e&&e.metadata instanceof hi;)e=this.resolveSymbol(e.metadata);return e&&e.metadata&&e.metadata.arity||null},t.prototype.fileNameToModuleName=function(t,e){return this.knownFileNameToModuleNames.get(t)||this.host.fileNameToModuleName(t,e)},t.prototype.recordImportAs=function(t,e){t.assertNoMembers(),e.assertNoMembers(),this.importAs.set(t,e)},t.prototype.invalidateFile=function(t){this.metadataCache.delete(t),this.resolvedFilePaths.delete(t);var e=this.symbolFromFile.get(t);if(e){this.symbolFromFile.delete(t);for(var n=0,r=e;n<r.length;n++){var i=r[n];this.resolvedSymbols.delete(i),this.importAs.delete(i),this.symbolResourcePaths.delete(i)}}},t.prototype.ignoreErrorsFor=function(t){var e=this.errorRecorder;this.errorRecorder=function(){};try{return t()}finally{this.errorRecorder=e}},t.prototype._resolveSymbolMembers=function(t){var e=t.members,n=this.resolveSymbol(this.getStaticSymbol(t.filePath,t.name));if(!n)return null;var r=n.metadata;if(r instanceof hi)return new Mp(t,this.getStaticSymbol(r.filePath,r.name,e));if(!r||"class"!==r.__symbolic){for(var i=r,o=0;o<e.length&&i;o++)i=i[e[o]];return new Mp(t,i)}return r.statics&&1===e.length?new Mp(t,r.statics[e[0]]):null},t.prototype._resolveSymbolFromSummary=function(t){var e=this.summaryResolver.resolveSummary(t);return e?new Mp(t,e.metadata):null},t.prototype.getStaticSymbol=function(t,e,n){return this.staticSymbolCache.get(t,e,n)},t.prototype.getSymbolsOf=function(t){var e=new Set(this.summaryResolver.getSymbolsOf(t));return this._createSymbolsOf(t),this.resolvedSymbols.forEach(function(n){n.symbol.filePath===t&&e.add(n.symbol)}),Array.from(e)},t.prototype._createSymbolsOf=function(t){var e=this;if(!this.resolvedFilePaths.has(t)){this.resolvedFilePaths.add(t);var n=[],r=this.getModuleMetadata(t);if(r.importAs&&this.knownFileNameToModuleNames.set(t,r.importAs),r.metadata){var i=new Set(Object.keys(r.metadata).map(jr)),o=r.origins||{};Object.keys(r.metadata).forEach(function(s){var a=r.metadata[s],u=jr(s),c=e.getStaticSymbol(t,u),l=o.hasOwnProperty(s)&&o[s];if(l){var p=e.resolveModule(l,t);p?e.symbolResourcePaths.set(c,p):e.reportError(new Error("Couldn't resolve original symbol for "+l+" from "+t))}n.push(e.createResolvedSymbol(c,t,i,a))})}if(r.exports)for(var s=this,a=0,u=r.exports;a<u.length;a++){var c=u[a];!function(r){if(r.export)r.export.forEach(function(i){var o;o="string"==typeof i?i:i.as,o=jr(o);var s=o;"string"!=typeof i&&(s=jr(i.name));var a=e.resolveModule(r.from,t);if(a){var u=e.getStaticSymbol(a,s),c=e.getStaticSymbol(t,o);n.push(e.createExport(c,u))}});else{var i=s.resolveModule(r.from,t);if(i){s.getSymbolsOf(i).forEach(function(r){var i=e.getStaticSymbol(t,r.name);n.push(e.createExport(i,r))})}}}(c)}n.forEach(function(t){return e.resolvedSymbols.set(t.symbol,t)}),this.symbolFromFile.set(t,n.map(function(t){return t.symbol}))}},t.prototype.createResolvedSymbol=function(t,e,n,r){if(this.summaryResolver.isLibraryFile(t.filePath)&&r&&"class"===r.__symbolic){var i={__symbolic:"class",arity:r.arity};return new Mp(t,i)}var o=this,s=function(r){function i(){return null!==r&&r.apply(this,arguments)||this}return Qr.a(i,r),i.prototype.visitStringMap=function(i,s){var a=i.__symbolic;if("function"===a){var u=s.length;s.push.apply(s,i.parameters||[]);var c=r.prototype.visitStringMap.call(this,i,s);return s.length=u,c}if("reference"!==a)return r.prototype.visitStringMap.call(this,i,s);var l=i.module,p=i.name?jr(i.name):i.name;if(!p)return null;var h=void 0;return l?(h=o.resolveModule(l,t.filePath),h?o.getStaticSymbol(h,p):{__symbolic:"error",message:"Could not resolve "+l+" relative to "+t.filePath+"."}):s.indexOf(p)>=0?{__symbolic:"reference",name:p}:n.has(p)?o.getStaticSymbol(e,p):void 0},i}(Ci),a=v(r,new s,[]);return a instanceof hi?this.createExport(t,a):new Mp(t,a)},t.prototype.createExport=function(t,e){return t.assertNoMembers(),e.assertNoMembers(),this.summaryResolver.isLibraryFile(t.filePath)&&this.importAs.set(e,this.getImportAs(t)||t),new Mp(t,e)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||n)},t.prototype.getModuleMetadata=function(t){var e=this.metadataCache.get(t);if(!e){var n=this.host.getMetadataFor(t);if(n){var r=-1;n.forEach(function(t){t.version>r&&(r=t.version,e=t)})}if(e||(e={__symbolic:"module",version:3,module:t,metadata:{}}),3!=e.version){var i=2==e.version?"Unsupported metadata version "+e.version+" for module "+t+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+t+", found version "+e.version+", expected 3";this.reportError(new Error(i))}this.metadataCache.set(t,e)}return e},t.prototype.getSymbolByModule=function(t,e,n){var r=this.resolveModule(t,n);return r?this.getStaticSymbol(r,e):(this.reportError(new Error("Could not resolve module "+t+(n?" relative to $ {\n            containingFile\n          } ":""))),this.getStaticSymbol("ERROR:"+t,e))},t.prototype.resolveModule=function(t,e){try{return this.host.moduleNameToFileName(t,e)}catch(n){console.error("Could not resolve module '"+t+"' relative to file "+e),this.reportError(n,void 0,e)}return null},t}(),Rp=function(){function t(t,e){this.host=t,this.staticSymbolCache=e,this.summaryCache=new Map,this.loadedFilePaths=new Set,this.importAs=new Map}return t.prototype.isLibraryFile=function(t){return!this.host.isSourceFile(Ke(t))},t.prototype.getLibraryFileName=function(t){return this.host.getOutputFileName(t)},t.prototype.resolveSummary=function(t){t.assertNoMembers();var e=this.summaryCache.get(t);return e||(this._loadSummaryFile(t.filePath),e=this.summaryCache.get(t)),e},t.prototype.getSymbolsOf=function(t){return this._loadSummaryFile(t),Array.from(this.summaryCache.keys()).filter(function(e){return e.filePath===t})},t.prototype.getImportAs=function(t){return t.assertNoMembers(),this.importAs.get(t)},t.prototype.addSummary=function(t){this.summaryCache.set(t.symbol,t)},t.prototype._loadSummaryFile=function(t){var e=this;if(!this.loadedFilePaths.has(t)&&(this.loadedFilePaths.add(t),this.isLibraryFile(t))){var n=Xe(t),r=void 0;try{r=this.host.loadSummary(n)}catch(t){throw console.error("Error loading summary file "+n),t}if(r){var i=gr(this.staticSymbolCache,r),o=i.summaries,s=i.importAs;o.forEach(function(t){return e.summaryCache.set(t.symbol,t)}),s.forEach(function(n){e.importAs.set(n.symbol,e.staticSymbolCache.get(We(t),n.importAs))})}}},t}(),Ip=function(){function t(t,e,n,r){this.parent=t,this.instance=e,this.className=n,this.vars=r,this.exports=[]}return t.prototype.createChildWihtLocalVars=function(){return new t(this,this.instance,this.className,new Map)},t}(),jp=function(){function t(t){this.value=t}return t}(),Dp=function(){function t(){}return t.prototype.debugAst=function(t){return Vn(t)},t.prototype.visitDeclareVarStmt=function(t,e){return e.vars.set(t.name,t.value.visitExpression(this,e)),t.hasModifier(Fc.Exported)&&e.exports.push(t.name),null},t.prototype.visitWriteVarExpr=function(t,e){for(var n=t.value.visitExpression(this,e),r=e;null!=r;){if(r.vars.has(t.name))return r.vars.set(t.name,n),n;r=r.parent}throw new Error("Not declared variable "+t.name)},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(null!=t.builtin)switch(t.builtin){case lc.Super:return e.instance.__proto__;case lc.This:return e.instance;case lc.CatchError:n=Fp;break;case lc.CatchStack:n=Lp;break;default:throw new Error("Unknown builtin variable "+t.builtin)}for(var r=e;null!=r;){if(r.vars.has(n))return r.vars.get(n);r=r.parent}throw new Error("Not declared variable "+n)},t.prototype.visitWriteKeyExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.index.visitExpression(this,e),i=t.value.visitExpression(this,e);return n[r]=i,i},t.prototype.visitWritePropExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.value.visitExpression(this,e);return n[t.name]=r,r},t.prototype.visitInvokeMethodExpr=function(t,e){var n,r=t.receiver.visitExpression(this,e),i=this.visitAllExpressions(t.args,e);if(null!=t.builtin)switch(t.builtin){case vc.ConcatArray:n=r.concat.apply(r,i);break;case vc.SubscribeObservable:n=r.subscribe({next:i[0]});break;case vc.Bind:n=r.bind.apply(r,i);break;default:throw new Error("Unknown builtin method "+t.builtin)}else n=r[t.name].apply(r,i);return n},t.prototype.visitInvokeFunctionExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.fn;return r instanceof pc&&r.builtin===lc.Super?(e.instance.constructor.prototype.constructor.apply(e.instance,n),null):t.fn.visitExpression(this,e).apply(null,n)},t.prototype.visitReturnStmt=function(t,e){return new jp(t.value.visitExpression(this,e))},t.prototype.visitDeclareClassStmt=function(t,e){var n=Lr(t,e,this);return e.vars.set(t.name,n),t.hasModifier(Fc.Exported)&&e.exports.push(t.name),null},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e)},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e)?this.visitAllStatements(t.trueCase,e):null!=t.falseCase?this.visitAllStatements(t.falseCase,e):null},t.prototype.visitTryCatchStmt=function(t,e){try{return this.visitAllStatements(t.bodyStmts,e)}catch(r){var n=e.createChildWihtLocalVars();return n.vars.set(Fp,r),n.vars.set(Lp,r.stack),this.visitAllStatements(t.catchStmts,n)}},t.prototype.visitThrowStmt=function(t,e){throw t.error.visitExpression(this,e)},t.prototype.visitCommentStmt=function(t,e){return null},t.prototype.visitInstantiateExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.classExpr.visitExpression(this,e);return new(r.bind.apply(r,[void 0].concat(n)))},t.prototype.visitLiteralExpr=function(t,e){return t.value},t.prototype.visitExternalExpr=function(t,e){return t.value.runtime},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e)?t.trueCase.visitExpression(this,e):null!=t.falseCase?t.falseCase.visitExpression(this,e):null},t.prototype.visitNotExpr=function(t,e){return!t.condition.visitExpression(this,e)},t.prototype.visitAssertNotNullExpr=function(t,e){return t.condition.visitExpression(this,e)},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e)},t.prototype.visitFunctionExpr=function(t,e){return Vr(t.params.map(function(t){return t.name}),t.statements,e,this)},t.prototype.visitDeclareFunctionStmt=function(t,e){var n=t.params.map(function(t){return t.name});return e.vars.set(t.name,Vr(n,t.statements,e,this)),t.hasModifier(Fc.Exported)&&e.exports.push(t.name),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var n=this,r=function(){return t.lhs.visitExpression(n,e)},i=function(){return t.rhs.visitExpression(n,e)};switch(t.operator){case uc.Equals:return r()==i();case uc.Identical:return r()===i();case uc.NotEquals:return r()!=i();case uc.NotIdentical:return r()!==i();case uc.And:return r()&&i();case uc.Or:return r()||i();case uc.Plus:return r()+i();case uc.Minus:return r()-i();case uc.Divide:return r()/i();case uc.Multiply:return r()*i();case uc.Modulo:return r()%i();case uc.Lower:return r()<i();case uc.LowerEquals:return r()<=i();case uc.Bigger:return r()>i();case uc.BiggerEquals:return r()>=i();default:throw new Error("Unknown operator "+t.operator)}},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e)[t.name]},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e)[t.index.visitExpression(this,e)]},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r={};return t.entries.forEach(function(t){return r[t.key]=t.value.visitExpression(n,e)}),r},t.prototype.visitCommaExpr=function(t,e){var n=this.visitAllExpressions(t.parts,e);return n[n.length-1]},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitAllStatements=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=r.visitStatement(this,e);if(i instanceof jp)return i}return null},t}(),Fp="error",Lp="stack",Vp=function(t){function e(){return t.call(this,!1)||this}return Qr.a(e,t),e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),this._visitClassConstructor(t,e),null!=t.parent&&(e.print(t,t.name+".prototype = Object.create("),t.parent.visitExpression(this,e),e.println(t,".prototype);")),t.getters.forEach(function(r){return n._visitClassGetter(t,r,e)}),t.methods.forEach(function(r){return n._visitClassMethod(t,r,e)}),e.popClass(),null},e.prototype._visitClassConstructor=function(t,e){e.print(t,"function "+t.name+"("),null!=t.constructorMethod&&this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),null!=t.constructorMethod&&t.constructorMethod.body.length>0&&(e.println(t,"var self = this;"),this.visitAllStatements(t.constructorMethod.body,e)),e.decIndent(),e.println(t,"}")},e.prototype._visitClassGetter=function(t,e,n){n.println(t,"Object.defineProperty("+t.name+".prototype, '"+e.name+"', { get: function() {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"}});")},e.prototype._visitClassMethod=function(t,e,n){n.print(t,t.name+".prototype."+e.name+" = function("),this._visitParams(e.params,n),n.println(t,") {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"};")},e.prototype.visitReadVarExpr=function(e,n){if(e.builtin===lc.This)n.print(e,"self");else{if(e.builtin===lc.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");t.prototype.visitReadVarExpr.call(this,e,n)}return null},e.prototype.visitDeclareVarStmt=function(t,e){return e.print(t,"var "+t.name+" = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitInvokeFunctionExpr=function(e,n){var r=e.fn;return r instanceof pc&&r.builtin===lc.Super?(n.currentClass.parent.visitExpression(this,n),n.print(e,".call(this"),e.args.length>0&&(n.print(e,", "),this.visitAllExpressions(e.args,n,",")),n.print(e,")")):t.prototype.visitInvokeFunctionExpr.call(this,e,n),null},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"function("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+cl.name+") {"),e.incIndent();var n=[ll.set(cl.prop("stack")).toDeclStmt(null,[Fc.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype._visitParams=function(t,e){this.visitAllObjects(function(t){return e.print(null,t.name)},t,e,",")},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case vc.ConcatArray:e="concat";break;case vc.SubscribeObservable:e="subscribe";break;case vc.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e}(fl),Up=function(t){function e(){var e=t.apply(this,arguments)||this;return e._evalArgNames=[],e._evalArgValues=[],e._evalExportedVars=[],e}return Qr.a(e,t),e.prototype.createReturnStmt=function(t){new Hc(new Rc(this._evalExportedVars.map(function(t){return new Nc(t,yn(t),!1)}))).visitStatement(this,t)},e.prototype.getArgs=function(){for(var t={},e=0;e<this._evalArgNames.length;e++)t[this._evalArgNames[e]]=this._evalArgValues[e];return t},e.prototype.visitExternalExpr=function(t,e){var n=t.value.runtime,r=this._evalArgValues.indexOf(n);if(-1===r){r=this._evalArgValues.length,this._evalArgValues.push(n);var i=S({reference:t.value.runtime})||"val";this._evalArgNames.push("jit_"+i+"_"+r)}return e.print(t,this._evalArgNames[r]),null},e.prototype.visitDeclareVarStmt=function(e,n){return e.hasModifier(Fc.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareVarStmt.call(this,e,n)},e.prototype.visitDeclareFunctionStmt=function(e,n){return e.hasModifier(Fc.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareFunctionStmt.call(this,e,n)},e.prototype.visitDeclareClassStmt=function(e,n){return e.hasModifier(Fc.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareClassStmt.call(this,e,n)},e}(Vp),Bp=function(){function t(t,e,n,r,i,o,s,a,u){this._injector=t,this._metadataResolver=e,this._templateParser=n,this._styleCompiler=r,this._viewCompiler=i,this._ngModuleCompiler=o,this._summaryResolver=s,this._compilerConfig=a,this._console=u,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._sharedStylesheetCount=0}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return Oi.assertSync(this._compileModuleAndComponents(t,!0))},t.prototype.compileModuleAsync=function(t){return Promise.resolve(this._compileModuleAndComponents(t,!1))},t.prototype.compileModuleAndAllComponentsSync=function(t){return Oi.assertSync(this._compileModuleAndAllComponents(t,!0))},t.prototype.compileModuleAndAllComponentsAsync=function(t){return Promise.resolve(this._compileModuleAndAllComponents(t,!1))},t.prototype.getNgContentSelectors=function(t){this._console.warn("Compiler.getNgContentSelectors is deprecated. Use ComponentFactory.ngContentSelectors instead!");var e=this._compiledTemplateCache.get(t);if(!e)throw new Error("The component "+Object(Xr._74)(t)+" is not yet compiled!");return e.compMeta.template.ngContentSelectors},t.prototype.getComponentFactory=function(t){return this._metadataResolver.getDirectiveSummary(t).componentFactory},t.prototype.loadAotSummaries=function(t){var e=this;this.clearCache(),qr(t).forEach(function(t){e._summaryResolver.addSummary({symbol:t.type.reference,metadata:null,type:t})})},t.prototype.hasAotSummary=function(t){return!!this._summaryResolver.resolveSummary(t)},t.prototype._filterJitIdentifiers=function(t){var e=this;return t.map(function(t){return t.reference}).filter(function(t){return!e.hasAotSummary(t)})},t.prototype._compileModuleAndComponents=function(t,e){var n=this;return Oi.then(this._loadModules(t,e),function(){return n._compileComponents(t,null),n._compileModule(t)})},t.prototype._compileModuleAndAllComponents=function(t,e){var n=this;return Oi.then(this._loadModules(t,e),function(){var e=[];return n._compileComponents(t,e),new Xr.K(n._compileModule(t),e)})},t.prototype._loadModules=function(t,e){var n=this,r=[],i=this._metadataResolver.getNgModuleMetadata(t);return this._filterJitIdentifiers(i.transitiveModule.modules).forEach(function(t){var i=n._metadataResolver.getNgModuleMetadata(t);n._filterJitIdentifiers(i.declaredDirectives).forEach(function(t){var o=n._metadataResolver.loadDirectiveMetadata(i.type.reference,t,e);o&&r.push(o)}),n._filterJitIdentifiers(i.declaredPipes).forEach(function(t){return n._metadataResolver.getOrLoadPipeMetadata(t)})}),Oi.all(r)},t.prototype._compileModule=function(t){var e=this,n=this._compiledNgModuleCache.get(t);if(!n){var r=this._metadataResolver.getNgModuleMetadata(t),i=[this._metadataResolver.getProviderMetadata(new Hi(Xr.m,{useFactory:function(){return new qp(e,r.type.reference)}}))],o=zr(),s=this._ngModuleCompiler.compile(o,r,i);n=this._compilerConfig.useJit?Br(F(r),o.statements)[s.ngModuleFactoryVar]:Dr(o.statements)[s.ngModuleFactoryVar],this._compiledNgModuleCache.set(r.type.reference,n)}return n},t.prototype._compileComponents=function(t,e){var n=this,r=this._metadataResolver.getNgModuleMetadata(t),i=new Map,o=new Set,s=this._filterJitIdentifiers(r.transitiveModule.modules);s.forEach(function(t){var r=n._metadataResolver.getNgModuleMetadata(t);n._filterJitIdentifiers(r.declaredDirectives).forEach(function(t){i.set(t,r);var s=n._metadataResolver.getDirectiveMetadata(t);if(s.isComponent&&(o.add(n._createCompiledTemplate(s,r)),e)){var a=n._createCompiledHostTemplate(s.type.reference,r);o.add(a),e.push(s.componentFactory)}})}),s.forEach(function(t){var e=n._metadataResolver.getNgModuleMetadata(t);n._filterJitIdentifiers(e.declaredDirectives).forEach(function(t){var e=n._metadataResolver.getDirectiveMetadata(t);e.isComponent&&e.entryComponents.forEach(function(t){var e=i.get(t.componentType);o.add(n._createCompiledHostTemplate(t.componentType,e))})}),e.entryComponents.forEach(function(t){if(!n.hasAotSummary(t.componentType.reference)){var e=i.get(t.componentType);o.add(n._createCompiledHostTemplate(t.componentType,e))}})}),o.forEach(function(t){return n._compileTemplate(t)})},t.prototype.clearCacheFor=function(t){this._compiledNgModuleCache.delete(t),this._metadataResolver.clearCacheFor(t),this._compiledHostTemplateCache.delete(t),this._compiledTemplateCache.get(t)&&this._compiledTemplateCache.delete(t)},t.prototype.clearCache=function(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(),this._compiledNgModuleCache.clear()},t.prototype._createCompiledHostTemplate=function(t,e){if(!e)throw new Error("Component "+Object(Xr._74)(t)+" is not part of any NgModule or the module has not been imported into your module.");var n=this._compiledHostTemplateCache.get(t);if(!n){var r=this._metadataResolver.getDirectiveMetadata(t);Hr(r);var i=r.componentFactory,o=this._metadataResolver.getHostComponentType(t),s=M(o,r,Object(Xr._52)(i));n=new Hp(!0,r.type,s,e,[r.type]),this._compiledHostTemplateCache.set(t,n)}return n},t.prototype._createCompiledTemplate=function(t,e){var n=this._compiledTemplateCache.get(t.type.reference);return n||(Hr(t),n=new Hp(!1,t.type,t,e,e.transitiveModule.directives),this._compiledTemplateCache.set(t.type.reference,n)),n},t.prototype._compileTemplate=function(t){var e=this;if(!t.isCompiled){var n=t.compMeta,r=new Map,i=zr(),o=this._styleCompiler.compileComponent(i,n);n.template.externalStylesheets.forEach(function(t){var i=e._styleCompiler.compileStyles(zr(),n,t);r.set(t.moduleUrl,i)}),this._resolveStylesCompileResult(o,r);var s,a=t.directives.map(function(t){return e._metadataResolver.getDirectiveSummary(t.reference)}),u=t.ngModule.transitiveModule.pipes.map(function(t){return e._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(n,n.template.template,a,u,t.ngModule.schemas,j(t.ngModule.type,t.compMeta,t.compMeta.template)),l=c.template,p=c.pipes,h=this._viewCompiler.compileComponent(i,n,l,yn(o.stylesVar),p);s=this._compilerConfig.useJit?Br(L(t.ngModule.type,t.compMeta),i.statements):Dr(i.statements);var f=s[h.viewClassVar],d=s[h.rendererTypeVar];t.compiled(f,d)}},t.prototype._resolveStylesCompileResult=function(t,e){var n=this;t.dependencies.forEach(function(t,r){var i=e.get(t.moduleUrl),o=n._resolveAndEvalStylesCompileResult(i,e);t.setValue(o)})},t.prototype._resolveAndEvalStylesCompileResult=function(t,e){return this._resolveStylesCompileResult(t,e),this._compilerConfig.useJit?Br(D(t.meta,this._sharedStylesheetCount++),t.outputCtx.statements)[t.stylesVar]:Dr(t.outputCtx.statements)[t.stylesVar]},t}();Bp.decorators=[{type:q}],Bp.ctorParameters=function(){return[{type:Xr.E},{type:Yu},{type:Eu},{type:Zl},{type:lp},{type:rl},{type:Gu},{type:zi},{type:Xr._38}]};var Hp=function(){function t(t,e,n,r,i){this.isHost=t,this.compType=e,this.compMeta=n,this.ngModule=r,this.directives=i,this._viewClass=null,this.isCompiled=!1}return t.prototype.compiled=function(t,e){this._viewClass=t,this.compMeta.componentViewType.setDelegate(t);for(var n in e)this.compMeta.rendererType[n]=e[n];this.isCompiled=!0},t}(),qp=function(){function t(t,e){this._delegate=t,this._ngModule=e}return Object.defineProperty(t.prototype,"_injector",{get:function(){return this._delegate.injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._delegate.compileModuleSync(t)},t.prototype.compileModuleAsync=function(t){return this._delegate.compileModuleAsync(t)},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._delegate.compileModuleAndAllComponentsSync(t)},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._delegate.compileModuleAndAllComponentsAsync(t)},t.prototype.getNgContentSelectors=function(t){return this._delegate.getNgContentSelectors(t)},t.prototype.clearCache=function(){this._delegate.clearCache()},t.prototype.clearCacheFor=function(t){this._delegate.clearCacheFor(t)},t}(),zp=function(){function t(t,e,n,r){void 0===r&&(r=null),this._htmlParser=t,this._implicitTags=e,this._implicitAttrs=n,this._locale=r,this._messages=[]}return t.prototype.updateFromTemplate=function(t,e,n){var r=this._htmlParser.parse(t,e,!0,n);if(r.errors.length)return r.errors;var i=Yt(r.rootNodes,n,this._implicitTags,this._implicitAttrs);return i.errors.length?i.errors:((o=this._messages).push.apply(o,i.messages),[]);var o},t.prototype.getMessages=function(){return this._messages},t.prototype.write=function(t,e){var n={},r=new Wp;this._messages.forEach(function(e){var r=t.digest(e);n.hasOwnProperty(r)?(i=n[r].sources).push.apply(i,e.sources):n[r]=e;var i});var i=Object.keys(n).map(function(i){var o=t.createNameMapper(n[i]),s=n[i],a=o?r.convert(s.nodes,o):s.nodes,u=new Us(a,{},{},s.meaning,s.description,i);return u.sources=s.sources,e&&u.sources.forEach(function(t){return t.filePath=e(t.filePath)}),u});return t.write(i,this._locale)},t}(),Wp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qr.a(e,t),e.prototype.convert=function(t,e){var n=this;return e?t.map(function(t){return t.visit(n,e)}):t},e.prototype.visitTagPlaceholder=function(t,e){var n=this,r=e.toPublicName(t.startName),i=t.closeName?e.toPublicName(t.closeName):t.closeName,o=t.children.map(function(t){return t.visit(n,e)});return new zs(t.tag,t.attrs,r,i,o,t.isVoid,t.sourceSpan)},e.prototype.visitPlaceholder=function(t,e){return new Ws(t.value,e.toPublicName(t.name),t.sourceSpan)},e.prototype.visitIcuPlaceholder=function(t,e){return new Ks(t.value,e.toPublicName(t.name),t.sourceSpan)},e}(Gs),Kp=(function(){function t(t,e,n,r){this.host=t,this.staticSymbolResolver=e,this.messageBundle=n,this.metadataResolver=r}t.prototype.extract=function(t){var e=this,n=Tr(this.staticSymbolResolver,t,this.host),r=Cr(n,this.host,this.metadataResolver),i=r.files,o=r.ngModules;return Promise.all(o.map(function(t){return e.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=[];if(i.forEach(function(n){var r=[];n.directives.forEach(function(t){var n=e.metadataResolver.getDirectiveMetadata(t);n&&n.isComponent&&r.push(n)}),r.forEach(function(r){var i=r.template.template,o=es.fromArray(r.template.interpolation);t.push.apply(t,e.messageBundle.updateFromTemplate(i,n.srcUrl,o))})}),t.length)throw new Error(t.map(function(t){return t.toString()}).join("\n"));return e.messageBundle})},t.create=function(e,n){var r=new ja,i=De(),o=new fi,s=new Rp(e,o),a=new Np(e,o,s),u=new Pp(s,a),c=new zi({defaultEncapsulation:Xr._20.Emulated,useJit:!1}),l=new Du({get:function(t){return e.loadResource(t)}},i,r,c),p=new xl,h=new Yu(c,new Wu(u),new Lu(u),new Ku(u),s,p,l,new Xr._38,o,u),f=new zp(r,[],{},n);return{extractor:new t(e,a,f,h),staticReflector:u}}}(),function(){function t(){this.reflectionCapabilities=new Xr._42}return t.prototype.componentModuleUrl=function(t,e){var n=e.moduleId;if("string"==typeof n){return Fe(n)?n:"package:"+n}if(null!==n&&void 0!==n)throw g('moduleId should be a string in "'+Object(Xr._74)(t)+"\". See https://goo.gl/wIDDiL for more information.\nIf you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.");return"./"+Object(Xr._74)(t)},t.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},t.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},t.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},t.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},t.prototype.resolveExternalReference=function(t){return t.runtime},t}()),Gp={get:function(t){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+t+'"')}},Qp=new Xr.D("HtmlParser"),Xp=[{provide:qi,useValue:new Kp},{provide:Mu,useValue:Gp},Qu,{provide:Gu,useExisting:Qu},Xr._38,os,ps,{provide:Qp,useClass:ja},{provide:La,useFactory:function(t,e,n,r,i){e=e||"";var o=e?r.missingTranslation:Xr.J.Ignore;return new La(t,e,n,o,i)},deps:[Qp,[new Xr.S,new Xr.B(Xr._11)],[new Xr.S,new Xr.B(Xr._12)],[zi],[Xr._38]]},{provide:ja,useExisting:La},Eu,Du,Yu,Nu,Zl,lp,rl,{provide:zi,useValue:new zi},Bp,{provide:Xr.m,useExisting:Bp},xl,{provide:Xa,useExisting:xl},Ru,Lu,Ku,Wu],Yp=function(){function t(t){var e={useDebug:Object(Xr._27)(),useJit:!0,defaultEncapsulation:Xr._20.Emulated,missingTranslation:Xr.J.Warning,enableLegacyTemplate:!0};this._defaultOptions=[e].concat(t)}return t.prototype.createCompiler=function(t){void 0===t&&(t=[]);var e=Wr(this._defaultOptions.concat(t));return Xr._0.resolveAndCreate([Xp,{provide:zi,useFactory:function(){return new zi({useJit:e.useJit,defaultEncapsulation:e.defaultEncapsulation,missingTranslation:e.missingTranslation,enableLegacyTemplate:e.enableLegacyTemplate})},deps:[]},e.providers]).get(Xr.m)},t}();Yp.decorators=[{type:q}],Yp.ctorParameters=function(){return[{type:Array,decorators:[{type:Xr.B,args:[Xr.i]}]}]};var Jp=Object(Xr._23)(Xr._29,"coreDynamic",[{provide:Xr.i,useValue:{},multi:!0},{provide:Xr.n,useClass:Yp}])},function(t,e,n){"use strict";var r=n(10);e.Subject=r.Subject,e.AnonymousSubject=r.AnonymousSubject;var i=n(0);e.Observable=i.Observable,n(250),n(253),n(256),n(258),n(260),n(263),n(265),n(266),n(267),n(270),n(273),n(274),n(276),n(279),n(282),n(283),n(284),n(287),n(288),n(289),n(292),n(295),n(131),n(298),n(301),n(303),n(305),n(311),n(313),n(315),n(317),n(319),n(98),n(321),n(323),n(324),n(325),n(326),n(327),n(329),n(331),n(333),n(217),n(335),n(337),n(339),n(341),n(344),n(345),n(347),n(349),n(351),n(353),n(355),n(357),n(358),n(360),n(361),n(363),n(364),n(369),n(371),n(373),n(375),n(377),n(378),n(380),n(97),n(381),n(383),n(385),n(387),n(388),n(389),n(390),n(391),n(393),n(395),n(396),n(397),n(398),n(400),n(403),n(405),n(407),n(409),n(411),n(413),n(414),n(415),n(417),n(419),n(421),n(423),n(425),n(427),n(429),n(431),n(432),n(434),n(436),n(438),n(440),n(442),n(444),n(446),n(453),n(455),n(457),n(459),n(461),n(463),n(465),n(467),n(468),n(470),n(471),n(473),n(475),n(476),n(478),n(480),n(482),n(484),n(486),n(488),n(490),n(492),n(493);var o=n(13);e.Subscription=o.Subscription;var s=n(2);e.Subscriber=s.Subscriber;var a=n(83);e.AsyncSubject=a.AsyncSubject;var u=n(86);e.ReplaySubject=u.ReplaySubject;var c=n(101);e.BehaviorSubject=c.BehaviorSubject;var l=n(142);e.ConnectableObservable=l.ConnectableObservable;var p=n(68);e.Notification=p.Notification;var h=n(69);e.EmptyError=h.EmptyError;var f=n(70);e.ArgumentOutOfRangeError=f.ArgumentOutOfRangeError;var d=n(81);e.ObjectUnsubscribedError=d.ObjectUnsubscribedError;var v=n(173);e.TimeoutError=v.TimeoutError;var y=n(135);e.UnsubscriptionError=y.UnsubscriptionError;var m=n(172);e.TimeInterval=m.TimeInterval;var g=n(174);e.Timestamp=g.Timestamp;var b=n(495);e.TestScheduler=b.TestScheduler;var _=n(178);e.VirtualTimeScheduler=_.VirtualTimeScheduler;var w=n(163);e.AjaxResponse=w.AjaxResponse,e.AjaxError=w.AjaxError,e.AjaxTimeoutError=w.AjaxTimeoutError;var x=n(168),S=n(19),E=n(164),C=n(498),O=n(79),T=n(65),P=n(80),A={asap:x.asap,queue:E.queue,animationFrame:C.animationFrame,async:S.async};e.Scheduler=A;var k={rxSubscriber:O.rxSubscriber,observable:P.observable,iterator:T.iterator};e.Symbol=k},function(t,e,n){"use strict";var r=n(0),i=n(251);r.Observable.bindCallback=i.bindCallback},function(t,e,n){"use strict";var r=n(252);e.bindCallback=r.BoundCallbackObservable.create},function(t,e,n){"use strict";function r(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function i(t){var e=t.err;t.subject.error(e)}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n(0),a=n(17),u=n(14),c=n(83),l=function(t){function e(e,n,r,i,o){t.call(this),this.callbackFunc=e,this.selector=n,this.args=r,this.context=i,this.scheduler=o}return o(e,t),e.create=function(t,n,r){return void 0===n&&(n=void 0),function(){for(var i=[],o=0;o<arguments.length;o++)i[o-0]=arguments[o];return new e(t,n,i,this,r)}},e.prototype._subscribe=function(t){var n=this.callbackFunc,r=this.args,i=this.scheduler,o=this.subject;if(i)return i.schedule(e.dispatch,0,{source:this,subscriber:t,context:this.context});if(!o){o=this.subject=new c.AsyncSubject;var s=function t(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var r=t.source,i=r.selector,o=r.subject;if(i){var s=a.tryCatch(i).apply(this,e);s===u.errorObject?o.error(u.errorObject.e):(o.next(s),o.complete())}else o.next(e.length<=1?e[0]:e),o.complete()};s.source=this;a.tryCatch(n).apply(this.context,r.concat(s))===u.errorObject&&o.error(u.errorObject.e)}return o.subscribe(t)},e.dispatch=function(t){var e=this,n=t.source,o=t.subscriber,s=t.context,l=n.callbackFunc,p=n.args,h=n.scheduler,f=n.subject;if(!f){f=n.subject=new c.AsyncSubject;var d=function t(){for(var n=[],o=0;o<arguments.length;o++)n[o-0]=arguments[o];var s=t.source,c=s.selector,l=s.subject;if(c){var p=a.tryCatch(c).apply(this,n);p===u.errorObject?e.add(h.schedule(i,0,{err:u.errorObject.e,subject:l})):e.add(h.schedule(r,0,{value:p,subject:l}))}else{var f=n.length<=1?n[0]:n;e.add(h.schedule(r,0,{value:f,subject:l}))}};d.source=n;a.tryCatch(l).apply(s,p.concat(d))===u.errorObject&&f.error(u.errorObject.e)}e.add(f.subscribe(o))},e}(s.Observable);e.BoundCallbackObservable=l},function(t,e,n){"use strict";var r=n(0),i=n(254);r.Observable.bindNodeCallback=i.bindNodeCallback},function(t,e,n){"use strict";var r=n(255);e.bindNodeCallback=r.BoundNodeCallbackObservable.create},function(t,e,n){"use strict";function r(t){var e=this,n=t.source,r=t.subscriber,s=t.context,a=n,p=a.callbackFunc,h=a.args,f=a.scheduler,d=n.subject;if(!d){d=n.subject=new l.AsyncSubject;var v=function t(){for(var n=[],r=0;r<arguments.length;r++)n[r-0]=arguments[r];var s=t.source,a=s.selector,l=s.subject,p=n.shift();if(p)e.add(f.schedule(o,0,{err:p,subject:l}));else if(a){var h=u.tryCatch(a).apply(this,n);h===c.errorObject?e.add(f.schedule(o,0,{err:c.errorObject.e,subject:l})):e.add(f.schedule(i,0,{value:h,subject:l}))}else{var d=n.length<=1?n[0]:n;e.add(f.schedule(i,0,{value:d,subject:l}))}};v.source=n;u.tryCatch(p).apply(s,h.concat(v))===c.errorObject&&e.add(f.schedule(o,0,{err:c.errorObject.e,subject:d}))}e.add(d.subscribe(r))}function i(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function o(t){var e=t.err;t.subject.error(e)}var s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=n(0),u=n(17),c=n(14),l=n(83),p=function(t){function e(e,n,r,i,o){t.call(this),this.callbackFunc=e,this.selector=n,this.args=r,this.context=i,this.scheduler=o}return s(e,t),e.create=function(t,n,r){return void 0===n&&(n=void 0),function(){for(var i=[],o=0;o<arguments.length;o++)i[o-0]=arguments[o];return new e(t,n,i,this,r)}},e.prototype._subscribe=function(t){var e=this.callbackFunc,n=this.args,i=this.scheduler,o=this.subject;if(i)return i.schedule(r,0,{source:this,subscriber:t,context:this.context});if(!o){o=this.subject=new l.AsyncSubject;var s=function t(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var r=t.source,i=r.selector,o=r.subject,s=e.shift();if(s)o.error(s);else if(i){var a=u.tryCatch(i).apply(this,e);a===c.errorObject?o.error(c.errorObject.e):(o.next(a),o.complete())}else o.next(e.length<=1?e[0]:e),o.complete()};s.source=this;u.tryCatch(e).apply(this.context,n.concat(s))===c.errorObject&&o.error(c.errorObject.e)}return o.subscribe(t)},e}(a.Observable);e.BoundNodeCallbackObservable=p},function(t,e,n){"use strict";var r=n(0),i=n(257);r.Observable.combineLatest=i.combineLatest},function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=null,r=null;return i.isScheduler(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&o.isArray(t[0])&&(t=t[0]),new s.ArrayObservable(t,r).lift(new a.CombineLatestOperator(n))}var i=n(33),o=n(31),s=n(32),a=n(107);e.combineLatest=r},function(t,e,n){"use strict";var r=n(0),i=n(259);r.Observable.concat=i.concat},function(t,e,n){"use strict";var r=n(108);e.concat=r.concatStatic},function(t,e,n){"use strict";var r=n(0),i=n(261);r.Observable.defer=i.defer},function(t,e,n){"use strict";var r=n(262);e.defer=r.DeferObservable.create},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(0),o=n(4),s=n(3),a=function(t){function e(e){t.call(this),this.observableFactory=e}return r(e,t),e.create=function(t){return new e(t)},e.prototype._subscribe=function(t){return new u(t,this.observableFactory)},e}(i.Observable);e.DeferObservable=a;var u=function(t){function e(e,n){t.call(this,e),this.factory=n,this.tryDefer()}return r(e,t),e.prototype.tryDefer=function(){try{this._callFactory()}catch(t){this._error(t)}},e.prototype._callFactory=function(){var t=this.factory();t&&this.add(o.subscribeToResult(this,t))},e}(s.OuterSubscriber)},function(t,e,n){"use strict";var r=n(0),i=n(264);r.Observable.empty=i.empty},function(t,e,n){"use strict";var r=n(43);e.empty=r.EmptyObservable.create},function(t,e,n){"use strict";var r=n(0),i=n(133);r.Observable.forkJoin=i.forkJoin},function(t,e,n){"use strict";var r=n(0),i=n(146);r.Observable.from=i.from},function(t,e,n){"use strict";var r=n(0),i=n(268);r.Observable.fromEvent=i.fromEvent},function(t,e,n){"use strict";var r=n(269);e.fromEvent=r.FromEventObservable.create},function(t,e,n){"use strict";function r(t){return!!t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}function i(t){return!!t&&"function"==typeof t.on&&"function"==typeof t.off}function o(t){return!!t&&"[object NodeList]"===d.call(t)}function s(t){return!!t&&"[object HTMLCollection]"===d.call(t)}function a(t){return!!t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}var u=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},c=n(0),l=n(17),p=n(78),h=n(14),f=n(13),d=Object.prototype.toString,v=function(t){function e(e,n,r,i){t.call(this),this.sourceObj=e,this.eventName=n,this.selector=r,this.options=i}return u(e,t),e.create=function(t,n,r,i){return p.isFunction(r)&&(i=r,r=void 0),new e(t,n,i,r)},e.setupSubscription=function(t,n,u,c,l){var p;if(o(t)||s(t))for(var h=0,d=t.length;h<d;h++)e.setupSubscription(t[h],n,u,c,l);else if(a(t)){var v=t;t.addEventListener(n,u,l),p=function(){return v.removeEventListener(n,u)}}else if(i(t)){var y=t;t.on(n,u),p=function(){return y.off(n,u)}}else{if(!r(t))throw new TypeError("Invalid event target");var m=t;t.addListener(n,u),p=function(){return m.removeListener(n,u)}}c.add(new f.Subscription(p))},e.prototype._subscribe=function(t){var n=this.sourceObj,r=this.eventName,i=this.options,o=this.selector,s=o?function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var r=l.tryCatch(o).apply(void 0,e);r===h.errorObject?t.error(h.errorObject.e):t.next(r)}:function(e){return t.next(e)};e.setupSubscription(n,r,s,t,i)},e}(c.Observable);e.FromEventObservable=v},function(t,e,n){"use strict";var r=n(0),i=n(271);r.Observable.fromEventPattern=i.fromEventPattern},function(t,e,n){"use strict";var r=n(272);e.fromEventPattern=r.FromEventPatternObservable.create},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(78),o=n(0),s=n(13),a=function(t){function e(e,n,r){t.call(this),this.addHandler=e,this.removeHandler=n,this.selector=r}return r(e,t),e.create=function(t,n,r){return new e(t,n,r)},e.prototype._subscribe=function(t){var e=this,n=this.removeHandler,r=this.selector?function(){for(var n=[],r=0;r<arguments.length;r++)n[r-0]=arguments[r];e._callSelector(t,n)}:function(e){t.next(e)},o=this._callAddHandler(r,t);i.isFunction(n)&&t.add(new s.Subscription(function(){n(r,o)}))},e.prototype._callSelector=function(t,e){try{var n=this.selector.apply(this,e);t.next(n)}catch(e){t.error(e)}},e.prototype._callAddHandler=function(t,e){try{return this.addHandler(t)||null}catch(t){e.error(t)}},e}(o.Observable);e.FromEventPatternObservable=a},function(t,e,n){"use strict";var r=n(0),i=n(99);r.Observable.fromPromise=i.fromPromise},function(t,e,n){"use strict";var r=n(0),i=n(275);r.Observable.generate=i.GenerateObservable.create},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(0),o=n(33),s=function(t){return t},a=function(t){function e(e,n,r,i,o){t.call(this),this.initialState=e,this.condition=n,this.iterate=r,this.resultSelector=i,this.scheduler=o}return r(e,t),e.create=function(t,n,r,i,a){return 1==arguments.length?new e(t.initialState,t.condition,t.iterate,t.resultSelector||s,t.scheduler):void 0===i||o.isScheduler(i)?new e(t,n,r,s,i):new e(t,n,r,i,a)},e.prototype._subscribe=function(t){var n=this.initialState;if(this.scheduler)return this.scheduler.schedule(e.dispatch,0,{subscriber:t,iterate:this.iterate,condition:this.condition,resultSelector:this.resultSelector,state:n});for(var r=this,i=r.condition,o=r.resultSelector,s=r.iterate;;){if(i){var a=void 0;try{a=i(n)}catch(e){return void t.error(e)}if(!a){t.complete();break}}var u=void 0;try{u=o(n)}catch(e){return void t.error(e)}if(t.next(u),t.closed)break;try{n=s(n)}catch(e){return void t.error(e)}}},e.dispatch=function(t){var e=t.subscriber,n=t.condition;if(!e.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(t){return void e.error(t)}else t.needIterate=!0;if(n){var r=void 0;try{r=n(t.state)}catch(t){return void e.error(t)}if(!r)return void e.complete();if(e.closed)return}var i;try{i=t.resultSelector(t.state)}catch(t){return void e.error(t)}if(!e.closed&&(e.next(i),!e.closed))return this.schedule(t)}},e}(i.Observable);e.GenerateObservable=a},function(t,e,n){"use strict";var r=n(0),i=n(277);r.Observable.if=i._if},function(t,e,n){"use strict";var r=n(278);e._if=r.IfObservable.create},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(0),o=n(4),s=n(3),a=function(t){function e(e,n,r){t.call(this),this.condition=e,this.thenSource=n,this.elseSource=r}return r(e,t),e.create=function(t,n,r){return new e(t,n,r)},e.prototype._subscribe=function(t){var e=this,n=e.condition,r=e.thenSource,i=e.elseSource;return new u(t,n,r,i)},e}(i.Observable);e.IfObservable=a;var u=function(t){function e(e,n,r,i){t.call(this,e),this.condition=n,this.thenSource=r,this.elseSource=i,this.tryIf()}return r(e,t),e.prototype.tryIf=function(){var t,e=this,n=e.condition,r=e.thenSource,i=e.elseSource;try{t=n();var s=t?r:i;s?this.add(o.subscribeToResult(this,s)):this._complete()}catch(t){this._error(t)}},e}(s.OuterSubscriber)},function(t,e,n){"use strict";var r=n(0),i=n(280);r.Observable.interval=i.interval},function(t,e,n){"use strict";var r=n(281);e.interval=r.IntervalObservable.create},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(84),o=n(0),s=n(19),a=function(t){function e(e,n){void 0===e&&(e=0),void 0===n&&(n=s.async),t.call(this),this.period=e,this.scheduler=n,(!i.isNumeric(e)||e<0)&&(this.period=0),n&&"function"==typeof n.schedule||(this.scheduler=s.async)}return r(e,t),e.create=function(t,n){return void 0===t&&(t=0),void 0===n&&(n=s.async),new e(t,n)},e.dispatch=function(t){var e=t.index,n=t.subscriber,r=t.period;n.next(e),n.closed||(t.index+=1,this.schedule(t,r))},e.prototype._subscribe=function(t){var n=this.period,r=this.scheduler;t.add(r.schedule(e.dispatch,n,{index:0,subscriber:t,period:n}))},e}(o.Observable);e.IntervalObservable=a},function(t,e,n){"use strict";var r=n(0),i=n(137);r.Observable.merge=i.merge},function(t,e,n){"use strict";var r=n(0),i=n(160);r.Observable.race=i.raceStatic},function(t,e,n){"use strict";var r=n(0),i=n(285);r.Observable.never=i.never},function(t,e,n){"use strict";var r=n(286);e.never=r.NeverObservable.create},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(0),o=n(161),s=function(t){function e(){t.call(this)}return r(e,t),e.create=function(){return new e},e.prototype._subscribe=function(t){o.noop()},e}(i.Observable);e.NeverObservable=s},function(t,e,n){"use strict";var r=n(0),i=n(149);r.Observable.of=i.of},function(t,e,n){"use strict";var r=n(0),i=n(162);r.Observable.onErrorResumeNext=i.onErrorResumeNextStatic},function(t,e,n){"use strict";var r=n(0),i=n(290);r.Observable.pairs=i.pairs},function(t,e,n){"use strict";var r=n(291);e.pairs=r.PairsObservable.create},function(t,e,n){"use strict";function r(t){var e=t.obj,n=t.keys,r=t.length,i=t.index,o=t.subscriber;if(i===r)return void o.complete();var s=n[i];o.next([s,e[s]]),t.index=i+1,this.schedule(t)}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(0),s=function(t){function e(e,n){t.call(this),this.obj=e,this.scheduler=n,this.keys=Object.keys(e)}return i(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e=this,n=e.keys,i=e.scheduler,o=n.length;if(i)return i.schedule(r,0,{obj:this.obj,keys:n,length:o,index:0,subscriber:t});for(var s=0;s<o;s++){var a=n[s];t.next([a,this.obj[a]])}t.complete()},e}(o.Observable);e.PairsObservable=s},function(t,e,n){"use strict";var r=n(0),i=n(293);r.Observable.range=i.range},function(t,e,n){"use strict";var r=n(294);e.range=r.RangeObservable.create},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(0),o=function(t){function e(e,n,r){t.call(this),this.start=e,this._count=n,this.scheduler=r}return r(e,t),e.create=function(t,n,r){return void 0===t&&(t=0),void 0===n&&(n=0),new e(t,n,r)},e.dispatch=function(t){var e=t.start,n=t.index,r=t.count,i=t.subscriber;if(n>=r)return void i.complete();i.next(e),i.closed||(t.index=n+1,t.start=e+1,this.schedule(t))},e.prototype._subscribe=function(t){var n=0,r=this.start,i=this._count,o=this.scheduler;if(o)return o.schedule(e.dispatch,0,{index:n,count:i,start:r,subscriber:t});for(;;){if(n++>=i){t.complete();break}if(t.next(r++),t.closed)break}},e}(i.Observable);e.RangeObservable=o},function(t,e,n){"use strict";var r=n(0),i=n(296);r.Observable.using=i.using},function(t,e,n){"use strict";var r=n(297);e.using=r.UsingObservable.create},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(0),o=n(4),s=n(3),a=function(t){function e(e,n){t.call(this),this.resourceFactory=e,this.observableFactory=n}return r(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e,n=this,r=n.resourceFactory,i=n.observableFactory;try{return e=r(),new u(t,e,i)}catch(e){t.error(e)}},e}(i.Observable);e.UsingObservable=a;var u=function(t){function e(e,n,r){t.call(this,e),this.resource=n,this.observableFactory=r,e.add(n),this.tryUse()}return r(e,t),e.prototype.tryUse=function(){try{var t=this.observableFactory.call(this,this.resource);t&&this.add(o.subscribeToResult(this,t))}catch(t){this._error(t)}},e}(s.OuterSubscriber)},function(t,e,n){"use strict";var r=n(0),i=n(299);r.Observable.timer=i.timer},function(t,e,n){"use strict";var r=n(300);e.timer=r.TimerObservable.create},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(84),o=n(0),s=n(19),a=n(33),u=n(85),c=function(t){function e(e,n,r){void 0===e&&(e=0),t.call(this),this.period=-1,this.dueTime=0,i.isNumeric(n)?this.period=Number(n)<1&&1||Number(n):a.isScheduler(n)&&(r=n),a.isScheduler(r)||(r=s.async),this.scheduler=r,this.dueTime=u.isDate(e)?+e-this.scheduler.now():e}return r(e,t),e.create=function(t,n,r){return void 0===t&&(t=0),new e(t,n,r)},e.dispatch=function(t){var e=t.index,n=t.period,r=t.subscriber,i=this;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,i.schedule(t,n)}},e.prototype._subscribe=function(t){var n=this,r=n.period,i=n.dueTime;return n.scheduler.schedule(e.dispatch,i,{index:0,period:r,subscriber:t})},e}(o.Observable);e.TimerObservable=c},function(t,e,n){"use strict";var r=n(0),i=n(302);r.Observable.zip=i.zip},function(t,e,n){"use strict";var r=n(109);e.zip=r.zipStatic},function(t,e,n){"use strict";var r=n(0),i=n(304);r.Observable.ajax=i.ajax},function(t,e,n){"use strict";var r=n(163);e.ajax=r.AjaxObservable.create},function(t,e,n){"use strict";var r=n(0),i=n(306);r.Observable.webSocket=i.webSocket},function(t,e,n){"use strict";var r=n(307);e.webSocket=r.WebSocketSubject.create},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(10),o=n(2),s=n(0),a=n(13),u=n(16),c=n(86),l=n(17),p=n(14),h=n(310),f=function(t){function e(e,n){if(e instanceof s.Observable)t.call(this,n,e);else{if(t.call(this),this.WebSocketCtor=u.root.WebSocket,this._output=new i.Subject,"string"==typeof e?this.url=e:h.assign(this,e),!this.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new c.ReplaySubject}}return r(e,t),e.prototype.resultSelector=function(t){return JSON.parse(t.data)},e.create=function(t){return new e(t)},e.prototype.lift=function(t){var n=new e(this,this.destination);return n.operator=t,n},e.prototype._resetState=function(){this.socket=null,this.source||(this.destination=new c.ReplaySubject),this._output=new i.Subject},e.prototype.multiplex=function(t,e,n){var r=this;return new s.Observable(function(i){var o=l.tryCatch(t)();o===p.errorObject?i.error(p.errorObject.e):r.next(o);var s=r.subscribe(function(t){var e=l.tryCatch(n)(t);e===p.errorObject?i.error(p.errorObject.e):e&&i.next(t)},function(t){return i.error(t)},function(){return i.complete()});return function(){var t=l.tryCatch(e)();t===p.errorObject?i.error(p.errorObject.e):r.next(t),s.unsubscribe()}})},e.prototype._connectSocket=function(){var t=this,e=this.WebSocketCtor,n=this._output,r=null;try{r=this.protocol?new e(this.url,this.protocol):new e(this.url),this.socket=r,this.binaryType&&(this.socket.binaryType=this.binaryType)}catch(t){return void n.error(t)}var i=new a.Subscription(function(){t.socket=null,r&&1===r.readyState&&r.close()});r.onopen=function(e){var s=t.openObserver;s&&s.next(e);var a=t.destination;t.destination=o.Subscriber.create(function(t){return 1===r.readyState&&r.send(t)},function(e){var i=t.closingObserver;i&&i.next(void 0),e&&e.code?r.close(e.code,e.reason):n.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),t._resetState()},function(){var e=t.closingObserver;e&&e.next(void 0),r.close(),t._resetState()}),a&&a instanceof c.ReplaySubject&&i.add(a.subscribe(t.destination))},r.onerror=function(e){t._resetState(),n.error(e)},r.onclose=function(e){t._resetState();var r=t.closeObserver;r&&r.next(e),e.wasClean?n.complete():n.error(e)},r.onmessage=function(e){var r=l.tryCatch(t.resultSelector)(e);r===p.errorObject?n.error(p.errorObject.e):n.next(r)}},e.prototype._subscribe=function(t){var e=this,n=this.source;if(n)return n.subscribe(t);this.socket||this._connectSocket();var r=new a.Subscription;return r.add(this._output.subscribe(t)),r.add(function(){var t=e.socket;0===e._output.observers.length&&(t&&1===t.readyState&&t.close(),e._resetState())}),r},e.prototype.unsubscribe=function(){var e=this,n=e.source,r=e.socket;r&&1===r.readyState&&(r.close(),this._resetState()),t.prototype.unsubscribe.call(this),n||(this.destination=new c.ReplaySubject)},e}(i.AnonymousSubject);e.WebSocketSubject=f},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(66),o=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n}return r(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(i.AsyncAction);e.QueueAction=o},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(67),o=function(t){function e(){t.apply(this,arguments)}return r(e,t),e}(i.AsyncScheduler);e.QueueScheduler=o},function(t,e,n){"use strict";function r(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=e.length,i=0;i<r;i++){var o=e[i];for(var s in o)o.hasOwnProperty(s)&&(t[s]=o[s])}return t}function i(t){return t.Object.assign||r}var o=n(16);e.assignImpl=r,e.getAssign=i,e.assign=i(o.root)},function(t,e,n){"use strict";var r=n(0),i=n(312);r.Observable.prototype.buffer=i.buffer},function(t,e,n){"use strict";function r(t){return this.lift(new a(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(3),s=n(4);e.buffer=r;var a=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.closingNotifier))},t}(),u=function(t){function e(e,n){t.call(this,e),this.buffer=[],this.add(s.subscribeToResult(this,n))}return i(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.buffer;this.buffer=[],this.destination.next(o)},e}(o.OuterSubscriber)},function(t,e,n){"use strict";var r=n(0),i=n(314);r.Observable.prototype.bufferCount=i.bufferCount},function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=null),this.lift(new s(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2);e.bufferCount=r;var s=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?u:a}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),a=function(t){function e(e,n){t.call(this,e),this.bufferSize=n,this.buffer=[]}return i(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(o.Subscriber),u=function(t){function e(e,n,r){t.call(this,e),this.bufferSize=n,this.startBufferEvery=r,this.buffers=[],this.count=0}return i(e,t),e.prototype._next=function(t){var e=this,n=e.bufferSize,r=e.startBufferEvery,i=e.buffers,o=e.count;this.count++,o%r==0&&i.push([]);for(var s=i.length;s--;){var a=i[s];a.push(t),a.length===n&&(i.splice(s,1),this.destination.next(a))}},e.prototype._complete=function(){for(var e=this,n=e.buffers,r=e.destination;n.length>0;){var i=n.shift();i.length>0&&r.next(i)}t.prototype._complete.call(this)},e}(o.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(316);r.Observable.prototype.bufferTime=i.bufferTime},function(t,e,n){"use strict";function r(t){var e=arguments.length,n=u.async;l.isScheduler(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var r=null;e>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return e>=3&&(i=arguments[2]),this.lift(new p(t,r,i,n))}function i(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function o(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,r=t.subscriber,i=t.scheduler,o=r.openContext(),a=this;r.closed||(r.add(o.closeAction=i.schedule(s,n,{subscriber:r,context:o})),a.schedule(t,e))}function s(t){var e=t.subscriber,n=t.context;e.closeContext(n)}var a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=n(19),c=n(2),l=n(33);e.bufferTime=r;var p=function(){function t(t,e,n,r){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),h=function(){function t(){this.buffer=[]}return t}(),f=function(t){function e(e,n,r,a,u){t.call(this,e),this.bufferTimeSpan=n,this.bufferCreationInterval=r,this.maxBufferSize=a,this.scheduler=u,this.contexts=[];var c=this.openContext();if(this.timespanOnly=null==r||r<0,this.timespanOnly){var l={subscriber:this,context:c,bufferTimeSpan:n};this.add(c.closeAction=u.schedule(i,n,l))}else{var p={subscriber:this,context:c},h={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:this,scheduler:u};this.add(c.closeAction=u.schedule(s,n,p)),this.add(u.schedule(o,r,h))}}return a(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,r=n.length,i=0;i<r;i++){var o=n[i],s=o.buffer;s.push(t),s.length==this.maxBufferSize&&(e=o)}e&&this.onBufferFull(e)},e.prototype._error=function(e){this.contexts.length=0,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this,n=e.contexts,r=e.destination;n.length>0;){var i=n.shift();r.next(i.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan,r={subscriber:this,context:t,bufferTimeSpan:n};this.add(t.closeAction=this.scheduler.schedule(i,n,r))}},e.prototype.openContext=function(){var t=new h;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(c.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(318);r.Observable.prototype.bufferToggle=i.bufferToggle},function(t,e,n){"use strict";function r(t,e){return this.lift(new u(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(13),s=n(4),a=n(3);e.bufferToggle=r;var u=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.openings,this.closingSelector))},t}(),c=function(t){function e(e,n,r){t.call(this,e),this.openings=n,this.closingSelector=r,this.contexts=[],this.add(s.subscribeToResult(this,n))}return i(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,r=0;r<n;r++)e[r].buffer.push(t)},e.prototype._error=function(e){for(var n=this.contexts;n.length>0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector,n=e.call(this,t);n&&this.trySubscribe(n)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.buffer,r=t.subscription;this.destination.next(n),e.splice(e.indexOf(t),1),this.remove(r),r.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=[],r=new o.Subscription,i={buffer:n,subscription:r};e.push(i);var a=s.subscribeToResult(this,t,i);!a||a.closed?this.closeBuffer(i):(a.context=i,this.add(a),r.add(a))},e}(a.OuterSubscriber)},function(t,e,n){"use strict";var r=n(0),i=n(320);r.Observable.prototype.bufferWhen=i.bufferWhen},function(t,e,n){"use strict";function r(t){return this.lift(new l(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(13),s=n(17),a=n(14),u=n(3),c=n(4);e.bufferWhen=r;var l=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.closingSelector))},t}(),p=function(t){function e(e,n){t.call(this,e),this.closingSelector=n,this.subscribing=!1,this.openBuffer()}return i(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},e.prototype.notifyNext=function(t,e,n,r,i){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var e=this.buffer;this.buffer&&this.destination.next(e),this.buffer=[];var n=s.tryCatch(this.closingSelector)();n===a.errorObject?this.error(a.errorObject.e):(t=new o.Subscription,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(c.subscribeToResult(this,n)),this.subscribing=!1)},e}(u.OuterSubscriber)},function(t,e,n){"use strict";var r=n(0),i=n(322);r.Observable.prototype.combineAll=i.combineAll},function(t,e,n){"use strict";function r(t){return this.lift(new i.CombineLatestOperator(t))}var i=n(107);e.combineAll=r},function(t,e,n){"use strict";var r=n(0),i=n(107);r.Observable.prototype.combineLatest=i.combineLatest},function(t,e,n){"use strict";var r=n(0),i=n(108);r.Observable.prototype.concat=i.concat},function(t,e,n){"use strict";var r=n(0),i=n(154);r.Observable.prototype.concatAll=i.concatAll},function(t,e,n){"use strict";var r=n(0),i=n(150);r.Observable.prototype.concatMap=i.concatMap},function(t,e,n){"use strict";var r=n(0),i=n(328);r.Observable.prototype.concatMapTo=i.concatMapTo},function(t,e,n){"use strict";function r(t,e){return this.lift(new i.MergeMapToOperator(t,e,1))}var i=n(165);e.concatMapTo=r},function(t,e,n){"use strict";var r=n(0),i=n(330);r.Observable.prototype.count=i.count},function(t,e,n){"use strict";function r(t){return this.lift(new s(t,this))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2);e.count=r;var s=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.source))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.predicate=n,this.source=r,this.count=0,this.index=0}return i(e,t),e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(o.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(332);r.Observable.prototype.dematerialize=i.dematerialize},function(t,e,n){"use strict";function r(){return this.lift(new s)}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2);e.dematerialize=r;var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new a(t))},t}(),a=function(t){function e(e){t.call(this,e)}return i(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(o.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(334);r.Observable.prototype.debounce=i.debounce},function(t,e,n){"use strict";function r(t){return this.lift(new a(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(3),s=n(4);e.debounce=r;var a=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.durationSelector))},t}(),u=function(t){function e(e,n){t.call(this,e),this.durationSelector=n,this.hasValue=!1,this.durationSubscription=null}return i(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),n=s.subscribeToResult(this,e),n.closed||this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(o.OuterSubscriber)},function(t,e,n){"use strict";var r=n(0),i=n(336);r.Observable.prototype.defaultIfEmpty=i.defaultIfEmpty},function(t,e,n){"use strict";function r(t){return void 0===t&&(t=null),this.lift(new s(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2);e.defaultIfEmpty=r;var s=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.defaultValue))},t}(),a=function(t){function e(e,n){t.call(this,e),this.defaultValue=n,this.isEmpty=!0}return i(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(o.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(338);r.Observable.prototype.delay=i.delay},function(t,e,n){"use strict";function r(t,e){void 0===e&&(e=o.async);var n=s.isDate(t),r=n?+t-e.now():Math.abs(t);return this.lift(new c(r,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(19),s=n(85),a=n(2),u=n(68);e.delay=r;var c=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.delay,this.scheduler))},t}(),l=function(t){function e(e,n,r){t.call(this,e),this.delay=n,this.scheduler=r,this.queue=[],this.active=!1,this.errored=!1}return i(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new p(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(u.Notification.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t)},e.prototype._complete=function(){this.scheduleNotification(u.Notification.createComplete())},e}(a.Subscriber),p=function(){function t(t,e){this.time=t,this.notification=e}return t}()},function(t,e,n){"use strict";var r=n(0),i=n(340);r.Observable.prototype.delayWhen=i.delayWhen},function(t,e,n){"use strict";function r(t,e){return e?new p(this,e).lift(new c(t)):this.lift(new c(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2),s=n(0),a=n(3),u=n(4);e.delayWhen=r;var c=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.delayDurationSelector))},t}(),l=function(t){function e(e,n){t.call(this,e),this.delayDurationSelector=n,this.completed=!1,this.delayNotifierSubscriptions=[],this.values=[]}return i(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){try{var e=this.delayDurationSelector(t);e&&this.tryDelay(e,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t),n=null;return-1!==e&&(n=this.values[e],this.delayNotifierSubscriptions.splice(e,1),this.values.splice(e,1)),n},e.prototype.tryDelay=function(t,e){var n=u.subscribeToResult(this,t,e);n&&!n.closed&&(this.add(n),this.delayNotifierSubscriptions.push(n)),this.values.push(e)},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(a.OuterSubscriber),p=function(t){function e(e,n){t.call(this),this.source=e,this.subscriptionDelay=n}return i(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new h(t,this.source))},e}(s.Observable),h=function(t){function e(e,n){t.call(this),this.parent=e,this.source=n,this.sourceSubscribed=!1}return i(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(o.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(342);r.Observable.prototype.distinct=i.distinct},function(t,e,n){"use strict";function r(t,e){return this.lift(new u(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(3),s=n(4),a=n(343);e.distinct=r;var u=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.keySelector,this.flushes))},t}(),c=function(t){function e(e,n,r){t.call(this,e),this.keySelector=n,this.values=new a.Set,r&&this.add(s.subscribeToResult(this,r))}return i(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values.clear()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(t){return void n.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))},e}(o.OuterSubscriber);e.DistinctSubscriber=c},function(t,e,n){"use strict";function r(){return function(){function t(){this._values=[]}return t.prototype.add=function(t){this.has(t)||this._values.push(t)},t.prototype.has=function(t){return-1!==this._values.indexOf(t)},Object.defineProperty(t.prototype,"size",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this._values.length=0},t}()}var i=n(16);e.minimalSetImpl=r,e.Set=i.root.Set||r()},function(t,e,n){"use strict";var r=n(0),i=n(166);r.Observable.prototype.distinctUntilChanged=i.distinctUntilChanged},function(t,e,n){"use strict";var r=n(0),i=n(346);r.Observable.prototype.distinctUntilKeyChanged=i.distinctUntilKeyChanged},function(t,e,n){"use strict";function r(t,e){return i.distinctUntilChanged.call(this,function(n,r){return e?e(n[t],r[t]):n[t]===r[t]})}var i=n(166);e.distinctUntilKeyChanged=r},function(t,e,n){"use strict";var r=n(0),i=n(348);r.Observable.prototype.do=i._do,r.Observable.prototype._do=i._do},function(t,e,n){"use strict";function r(t,e,n){return this.lift(new s(t,e,n))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2);e._do=r;var s=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.nextOrObserver,this.error,this.complete))},t}(),a=function(t){function e(e,n,r,i){t.call(this,e);var s=new o.Subscriber(n,r,i);s.syncErrorThrowable=!0,this.add(s),this.safeSubscriber=s}return i(e,t),e.prototype._next=function(t){var e=this.safeSubscriber;e.next(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.next(t)},e.prototype._error=function(t){var e=this.safeSubscriber;e.error(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.error(t)},e.prototype._complete=function(){var t=this.safeSubscriber;t.complete(),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.complete()},e}(o.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(350);r.Observable.prototype.exhaust=i.exhaust},function(t,e,n){"use strict";function r(){return this.lift(new a)}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(3),s=n(4);e.exhaust=r;var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new u(t))},t}(),u=function(t){function e(e){t.call(this,e),this.hasCompleted=!1,this.hasSubscription=!1}return i(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(s.subscribeToResult(this,t)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(o.OuterSubscriber)},function(t,e,n){"use strict";var r=n(0),i=n(352);r.Observable.prototype.exhaustMap=i.exhaustMap},function(t,e,n){"use strict";function r(t,e){return this.lift(new a(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(3),s=n(4);e.exhaustMap=r;var a=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.resultSelector=r,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}return i(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e=this.index++,n=this.destination;try{var r=this.project(t,e);this.hasSubscription=!0,this.add(s.subscribeToResult(this,r,t,e))}catch(t){n.error(t)}},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this,s=o.resultSelector,a=o.destination;s?this.trySelectResult(t,e,n,r):a.next(e)},e.prototype.trySelectResult=function(t,e,n,r){var i=this,o=i.resultSelector,s=i.destination;try{var a=o(t,e,n,r);s.next(a)}catch(t){s.error(t)}},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(o.OuterSubscriber)},function(t,e,n){"use strict";var r=n(0),i=n(354);r.Observable.prototype.expand=i.expand},function(t,e,n){"use strict";function r(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),e=(e||0)<1?Number.POSITIVE_INFINITY:e,this.lift(new c(t,e,n))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(17),s=n(14),a=n(3),u=n(4);e.expand=r;var c=function(){function t(t,e,n){this.project=t,this.concurrent=e,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project,this.concurrent,this.scheduler))},t}();e.ExpandOperator=c;var l=function(t){function e(e,n,r,i){t.call(this,e),this.project=n,this.concurrent=r,this.scheduler=i,this.index=0,this.active=0,this.hasCompleted=!1,r<Number.POSITIVE_INFINITY&&(this.buffer=[])}return i(e,t),e.dispatch=function(t){var e=t.subscriber,n=t.result,r=t.value,i=t.index;e.subscribeToProjection(n,r,i)},e.prototype._next=function(t){var n=this.destination;if(n.closed)return void this._complete();var r=this.index++;if(this.active<this.concurrent){n.next(t);var i=o.tryCatch(this.project)(t,r);if(i===s.errorObject)n.error(s.errorObject.e);else if(this.scheduler){var a={subscriber:this,result:i,value:t,index:r};this.add(this.scheduler.schedule(e.dispatch,0,a))}else this.subscribeToProjection(i,t,r)}else this.buffer.push(t)},e.prototype.subscribeToProjection=function(t,e,n){this.active++,this.add(u.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this._next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e&&e.length>0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(a.OuterSubscriber);e.ExpandSubscriber=l},function(t,e,n){"use strict";var r=n(0),i=n(356);r.Observable.prototype.elementAt=i.elementAt},function(t,e,n){"use strict";function r(t,e){return this.lift(new a(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2),s=n(70);e.elementAt=r;var a=function(){function t(t,e){if(this.index=t,this.defaultValue=e,t<0)throw new s.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.index,this.defaultValue))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.index=n,this.defaultValue=r}return i(e,t),e.prototype._next=function(t){0==this.index--&&(this.destination.next(t),this.destination.complete())},e.prototype._complete=function(){var t=this.destination;this.index>=0&&(void 0!==this.defaultValue?t.next(this.defaultValue):t.error(new s.ArgumentOutOfRangeError)),t.complete()},e}(o.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(104);r.Observable.prototype.filter=i.filter},function(t,e,n){"use strict";var r=n(0),i=n(359);r.Observable.prototype.finally=i._finally,r.Observable.prototype._finally=i._finally},function(t,e,n){"use strict";function r(t){return this.lift(new a(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2),s=n(13);e._finally=r;var a=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.callback))},t}(),u=function(t){function e(e,n){t.call(this,e),this.add(new s.Subscription(n))}return i(e,t),e}(o.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(167);r.Observable.prototype.find=i.find},function(t,e,n){"use strict";var r=n(0),i=n(362);r.Observable.prototype.findIndex=i.findIndex},function(t,e,n){"use strict";function r(t,e){return this.lift(new i.FindValueOperator(t,this,!0,e))}var i=n(167);e.findIndex=r},function(t,e,n){"use strict";var r=n(0),i=n(152);r.Observable.prototype.first=i.first},function(t,e,n){"use strict";var r=n(0),i=n(365);r.Observable.prototype.groupBy=i.groupBy},function(t,e,n){"use strict";function r(t,e,n,r){return this.lift(new p(t,e,n,r))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2),s=n(13),a=n(0),u=n(10),c=n(366),l=n(368);e.groupBy=r;var p=function(){function t(t,e,n,r){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=r}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),h=function(t){function e(e,n,r,i,o){t.call(this,e),this.keySelector=n,this.elementSelector=r,this.durationSelector=i,this.subjectSelector=o,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}return i(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},e.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups="string"==typeof e?new l.FastMap:new c.Map);var r,i=n.get(e);if(this.elementSelector)try{r=this.elementSelector(t)}catch(t){this.error(t)}else r=t;if(!i){i=this.subjectSelector?this.subjectSelector():new u.Subject,n.set(e,i);var o=new d(e,i,this);if(this.destination.next(o),this.durationSelector){var s=void 0;try{s=this.durationSelector(new d(e,i))}catch(t){return void this.error(t)}this.add(s.subscribe(new f(e,i,this)))}}i.closed||i.next(r)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach(function(e,n){e.error(t)}),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(t,e){t.complete()}),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(o.Subscriber),f=function(t){function e(e,n,r){t.call(this,n),this.key=e,this.group=n,this.parent=r}return i(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this,e=t.parent,n=t.key;this.key=this.parent=null,e&&e.removeGroup(n)},e}(o.Subscriber),d=function(t){function e(e,n,r){t.call(this),this.key=e,this.groupSubject=n,this.refCountSubscription=r}return i(e,t),e.prototype._subscribe=function(t){var e=new s.Subscription,n=this,r=n.refCountSubscription,i=n.groupSubject;return r&&!r.closed&&e.add(new v(r)),e.add(i.subscribe(t)),e},e}(a.Observable);e.GroupedObservable=d;var v=function(t){function e(e){t.call(this),this.parent=e,e.count++}return i(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(s.Subscription)},function(t,e,n){"use strict";var r=n(16),i=n(367);e.Map=r.root.Map||function(){return i.MapPolyfill}()},function(t,e,n){"use strict";var r=function(){function t(){this.size=0,this._values=[],this._keys=[]}return t.prototype.get=function(t){var e=this._keys.indexOf(t);return-1===e?void 0:this._values[e]},t.prototype.set=function(t,e){var n=this._keys.indexOf(t);return-1===n?(this._keys.push(t),this._values.push(e),this.size++):this._values[n]=e,this},t.prototype.delete=function(t){var e=this._keys.indexOf(t);return-1!==e&&(this._values.splice(e,1),this._keys.splice(e,1),this.size--,!0)},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this.size=0},t.prototype.forEach=function(t,e){for(var n=0;n<this.size;n++)t.call(e,this._values[n],this._keys[n])},t}();e.MapPolyfill=r},function(t,e,n){"use strict";var r=function(){function t(){this.values={}}return t.prototype.delete=function(t){return this.values[t]=null,!0},t.prototype.set=function(t,e){return this.values[t]=e,this},t.prototype.get=function(t){return this.values[t]},t.prototype.forEach=function(t,e){var n=this.values;for(var r in n)n.hasOwnProperty(r)&&null!==n[r]&&t.call(e,n[r],r)},t.prototype.clear=function(){this.values={}},t}();e.FastMap=r},function(t,e,n){"use strict";var r=n(0),i=n(370);r.Observable.prototype.ignoreElements=i.ignoreElements},function(t,e,n){"use strict";function r(){return this.lift(new a)}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2),s=n(161);e.ignoreElements=r;var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new u(t))},t}(),u=function(t){function e(){t.apply(this,arguments)}return i(e,t),e.prototype._next=function(t){s.noop()},e}(o.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(372);r.Observable.prototype.isEmpty=i.isEmpty},function(t,e,n){"use strict";function r(){return this.lift(new s)}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2);e.isEmpty=r;var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new a(t))},t}(),a=function(t){function e(e){t.call(this,e)}return i(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(o.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(374);r.Observable.prototype.audit=i.audit},function(t,e,n){"use strict";function r(t){return this.lift(new c(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(17),s=n(14),a=n(3),u=n(4);e.audit=r;var c=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.durationSelector))},t}(),l=function(t){function e(e,n){t.call(this,e),this.durationSelector=n,this.hasValue=!1}return i(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=o.tryCatch(this.durationSelector)(t);if(e===s.errorObject)this.destination.error(s.errorObject.e);else{var n=u.subscribeToResult(this,e);n.closed?this.clearThrottle():this.add(this.throttled=n)}}},e.prototype.clearThrottle=function(){var t=this,e=t.value,n=t.hasValue,r=t.throttled;r&&(this.remove(r),this.throttled=null,r.unsubscribe()),n&&(this.value=null,this.hasValue=!1,this.destination.next(e))},e.prototype.notifyNext=function(t,e,n,r){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(a.OuterSubscriber)},function(t,e,n){"use strict";var r=n(0),i=n(376);r.Observable.prototype.auditTime=i.auditTime},function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=s.async),this.lift(new u(t,e))}function i(t){t.clearThrottle()}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n(19),a=n(2);e.auditTime=r;var u=function(){function t(t,e){this.duration=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.duration,this.scheduler))},t}(),c=function(t){function e(e,n,r){t.call(this,e),this.duration=n,this.scheduler=r,this.hasValue=!1}return o(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0,this.throttled||this.add(this.throttled=this.scheduler.schedule(i,this.duration,this))},e.prototype.clearThrottle=function(){var t=this,e=t.value,n=t.hasValue,r=t.throttled;r&&(this.remove(r),this.throttled=null,r.unsubscribe()),n&&(this.value=null,this.hasValue=!1,this.destination.next(e))},e}(a.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(153);r.Observable.prototype.last=i.last},function(t,e,n){"use strict";var r=n(0),i=n(379);r.Observable.prototype.let=i.letProto,r.Observable.prototype.letBind=i.letProto},function(t,e,n){"use strict";function r(t){return t(this)}e.letProto=r},function(t,e,n){"use strict";var r=n(0),i=n(151);r.Observable.prototype.every=i.every},function(t,e,n){"use strict";var r=n(0),i=n(382);r.Observable.prototype.mapTo=i.mapTo},function(t,e,n){"use strict";function r(t){return this.lift(new s(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2);e.mapTo=r;var s=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.value))},t}(),a=function(t){function e(e,n){t.call(this,e),this.value=n}return i(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(o.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(384);r.Observable.prototype.materialize=i.materialize},function(t,e,n){"use strict";function r(){return this.lift(new a)}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2),s=n(68);e.materialize=r;var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new u(t))},t}(),u=function(t){function e(e){t.call(this,e)}return i(e,t),e.prototype._next=function(t){this.destination.next(s.Notification.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(s.Notification.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(s.Notification.createComplete()),t.complete()},e}(o.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(386);r.Observable.prototype.max=i.max},function(t,e,n){"use strict";function r(t){var e="function"==typeof t?function(e,n){return t(e,n)>0?e:n}:function(t,e){return t>e?t:e};return this.lift(new i.ReduceOperator(e))}var i=n(82);e.max=r},function(t,e,n){"use strict";var r=n(0),i=n(138);r.Observable.prototype.merge=i.merge},function(t,e,n){"use strict";var r=n(0),i=n(64);r.Observable.prototype.mergeAll=i.mergeAll},function(t,e,n){"use strict";var r=n(0),i=n(103);r.Observable.prototype.mergeMap=i.mergeMap,r.Observable.prototype.flatMap=i.mergeMap},function(t,e,n){"use strict";var r=n(0),i=n(165);r.Observable.prototype.flatMapTo=i.mergeMapTo,r.Observable.prototype.mergeMapTo=i.mergeMapTo},function(t,e,n){"use strict";var r=n(0),i=n(392);r.Observable.prototype.mergeScan=i.mergeScan},function(t,e,n){"use strict";function r(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),this.lift(new c(t,e,n))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(17),s=n(14),a=n(4),u=n(3);e.mergeScan=r;var c=function(){function t(t,e,n){this.accumulator=t,this.seed=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.accumulator,this.seed,this.concurrent))},t}();e.MergeScanOperator=c;var l=function(t){function e(e,n,r,i){t.call(this,e),this.accumulator=n,this.acc=r,this.concurrent=i,this.hasValue=!1,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return i(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,n=o.tryCatch(this.accumulator)(this.acc,t),r=this.destination;n===s.errorObject?r.error(s.errorObject.e):(this.active++,this._innerSub(n,t,e))}else this.buffer.push(t)},e.prototype._innerSub=function(t,e,n){this.add(a.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.destination;this.acc=e,this.hasValue=!0,o.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(u.OuterSubscriber);e.MergeScanSubscriber=l},function(t,e,n){"use strict";var r=n(0),i=n(394);r.Observable.prototype.min=i.min},function(t,e,n){"use strict";function r(t){var e="function"==typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t<e?t:e};return this.lift(new i.ReduceOperator(e))}var i=n(82);e.min=r},function(t,e,n){"use strict";var r=n(0),i=n(51);r.Observable.prototype.multicast=i.multicast},function(t,e,n){"use strict";var r=n(0),i=n(102);r.Observable.prototype.observeOn=i.observeOn},function(t,e,n){"use strict";var r=n(0),i=n(162);r.Observable.prototype.onErrorResumeNext=i.onErrorResumeNext},function(t,e,n){"use strict";var r=n(0),i=n(399);r.Observable.prototype.pairwise=i.pairwise},function(t,e,n){"use strict";function r(){return this.lift(new s)}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2);e.pairwise=r;var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new a(t))},t}(),a=function(t){function e(e){t.call(this,e),this.hasPrev=!1}return i(e,t),e.prototype._next=function(t){this.hasPrev?this.destination.next([this.prev,t]):this.hasPrev=!0,this.prev=t},e}(o.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(401);r.Observable.prototype.partition=i.partition},function(t,e,n){"use strict";function r(t,e){return[o.filter.call(this,t,e),o.filter.call(this,i.not(t,e))]}var i=n(402),o=n(104);e.partition=r},function(t,e,n){"use strict";function r(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}e.not=r},function(t,e,n){"use strict";var r=n(0),i=n(404);r.Observable.prototype.pluck=i.pluck},function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=t.length;if(0===n)throw new Error("list of properties cannot be empty.");return o.map.call(this,i(t,n))}function i(t,e){return function(n){for(var r=n,i=0;i<e;i++){var o=r[t[i]];if(void 0===o)return;r=o}return r}}var o=n(63);e.pluck=r},function(t,e,n){"use strict";var r=n(0),i=n(406);r.Observable.prototype.publish=i.publish},function(t,e,n){"use strict";function r(t){return t?o.multicast.call(this,function(){return new i.Subject},t):o.multicast.call(this,new i.Subject)}var i=n(10),o=n(51);e.publish=r},function(t,e,n){"use strict";var r=n(0),i=n(408);r.Observable.prototype.publishBehavior=i.publishBehavior},function(t,e,n){"use strict";function r(t){return o.multicast.call(this,new i.BehaviorSubject(t))}var i=n(101),o=n(51);e.publishBehavior=r},function(t,e,n){"use strict";var r=n(0),i=n(410);r.Observable.prototype.publishReplay=i.publishReplay},function(t,e,n){"use strict";function r(t,e,n){return void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===e&&(e=Number.POSITIVE_INFINITY),o.multicast.call(this,new i.ReplaySubject(t,e,n))}var i=n(86),o=n(51);e.publishReplay=r},function(t,e,n){"use strict";var r=n(0),i=n(412);r.Observable.prototype.publishLast=i.publishLast},function(t,e,n){"use strict";function r(){return o.multicast.call(this,new i.AsyncSubject)}var i=n(83),o=n(51);e.publishLast=r},function(t,e,n){"use strict";var r=n(0),i=n(160);r.Observable.prototype.race=i.race},function(t,e,n){"use strict";var r=n(0),i=n(82);r.Observable.prototype.reduce=i.reduce},function(t,e,n){"use strict";var r=n(0),i=n(416);r.Observable.prototype.repeat=i.repeat},function(t,e,n){"use strict";function r(t){return void 0===t&&(t=-1),0===t?new s.EmptyObservable:t<0?this.lift(new a(-1,this)):this.lift(new a(t-1,this))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2),s=n(43);e.repeat=r;var a=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.count,this.source))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.count=n,this.source=r}return i(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this,n=e.source,r=e.count;if(0===r)return t.prototype.complete.call(this);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(o.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(418);r.Observable.prototype.repeatWhen=i.repeatWhen},function(t,e,n){"use strict";function r(t){return this.lift(new l(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(10),s=n(17),a=n(14),u=n(3),c=n(4);e.repeatWhen=r;var l=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.notifier,e))},t}(),p=function(t){function e(e,n,r){t.call(this,e),this.notifier=n,this.source=r,this.sourceIsBeingSubscribedTo=!0}return i(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(e){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries){if(this.retriesSubscription.closed)return t.prototype.complete.call(this)}else this.subscribeToRetries();this._unsubscribeAndRecycle(),this.notifications.next()}},e.prototype._unsubscribe=function(){var t=this,e=t.notifications,n=t.retriesSubscription;e&&(e.unsubscribe(),this.notifications=null),n&&(n.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype._unsubscribeAndRecycle=function(){var e=this,n=e.notifications,r=e.retries,i=e.retriesSubscription;return this.notifications=null,this.retries=null,this.retriesSubscription=null,t.prototype._unsubscribeAndRecycle.call(this),this.notifications=n,this.retries=r,this.retriesSubscription=i,this},e.prototype.subscribeToRetries=function(){this.notifications=new o.Subject;var e=s.tryCatch(this.notifier)(this.notifications);if(e===a.errorObject)return t.prototype.complete.call(this);this.retries=e,this.retriesSubscription=c.subscribeToResult(this,e)},e}(u.OuterSubscriber)},function(t,e,n){"use strict";var r=n(0),i=n(420);r.Observable.prototype.retry=i.retry},function(t,e,n){"use strict";function r(t){return void 0===t&&(t=-1),this.lift(new s(t,this))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2);e.retry=r;var s=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.count,this.source))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.count=n,this.source=r}return i(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this,r=n.source,i=n.count;if(0===i)return t.prototype.error.call(this,e);i>-1&&(this.count=i-1),r.subscribe(this._unsubscribeAndRecycle())}},e}(o.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(422);r.Observable.prototype.retryWhen=i.retryWhen},function(t,e,n){"use strict";function r(t){return this.lift(new l(t,this))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(10),s=n(17),a=n(14),u=n(3),c=n(4);e.retryWhen=r;var l=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.notifier,this.source))},t}(),p=function(t){function e(e,n,r){t.call(this,e),this.notifier=n,this.source=r}return i(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,r=this.retries,i=this.retriesSubscription;if(r)this.errors=null,this.retriesSubscription=null;else{if(n=new o.Subject,(r=s.tryCatch(this.notifier)(n))===a.errorObject)return t.prototype.error.call(this,a.errorObject.e);i=c.subscribeToResult(this,r)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=i,n.next(e)}},e.prototype._unsubscribe=function(){var t=this,e=t.errors,n=t.retriesSubscription;e&&(e.unsubscribe(),this.errors=null),n&&(n.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype.notifyNext=function(t,e,n,r,i){var o=this,s=o.errors,a=o.retries,u=o.retriesSubscription;this.errors=null,this.retries=null,this.retriesSubscription=null,this._unsubscribeAndRecycle(),this.errors=s,this.retries=a,this.retriesSubscription=u,this.source.subscribe(this)},e}(u.OuterSubscriber)},function(t,e,n){"use strict";var r=n(0),i=n(424);r.Observable.prototype.sample=i.sample},function(t,e,n){"use strict";function r(t){return this.lift(new a(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(3),s=n(4);e.sample=r;var a=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new u(t),r=e.subscribe(n);return r.add(s.subscribeToResult(n,this.notifier)),r},t}(),u=function(t){function e(){t.apply(this,arguments),this.hasValue=!1}return i(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(o.OuterSubscriber)},function(t,e,n){"use strict";var r=n(0),i=n(426);r.Observable.prototype.sampleTime=i.sampleTime},function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=a.async),this.lift(new u(t,e))}function i(t){var e=t.subscriber,n=t.period;e.notifyNext(),this.schedule(t,n)}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n(2),a=n(19);e.sampleTime=r;var u=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.period,this.scheduler))},t}(),c=function(t){function e(e,n,r){t.call(this,e),this.period=n,this.scheduler=r,this.hasValue=!1,this.add(r.schedule(i,n,{subscriber:this,period:n}))}return o(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(s.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(428);r.Observable.prototype.scan=i.scan},function(t,e,n){"use strict";function r(t,e){var n=!1;return arguments.length>=2&&(n=!0),this.lift(new s(t,e,n))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2);e.scan=r;var s=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.accumulator,this.seed,this.hasSeed))},t}(),a=function(t){function e(e,n,r,i){t.call(this,e),this.accumulator=n,this._seed=r,this.hasSeed=i,this.index=0}return i(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(o.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(430);r.Observable.prototype.sequenceEqual=i.sequenceEqual},function(t,e,n){"use strict";function r(t,e){return this.lift(new u(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2),s=n(17),a=n(14);e.sequenceEqual=r;var u=function(){function t(t,e){this.compareTo=t,this.comparor=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.compareTo,this.comparor))},t}();e.SequenceEqualOperator=u;var c=function(t){function e(e,n,r){t.call(this,e),this.compareTo=n,this.comparor=r,this._a=[],this._b=[],this._oneComplete=!1,this.add(n.subscribe(new l(e,this)))}return i(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e.prototype.checkValues=function(){for(var t=this,e=t._a,n=t._b,r=t.comparor;e.length>0&&n.length>0;){var i=e.shift(),o=n.shift(),u=!1;r?(u=s.tryCatch(r)(i,o))===a.errorObject&&this.destination.error(a.errorObject.e):u=i===o,u||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e}(o.Subscriber);e.SequenceEqualSubscriber=c;var l=function(t){function e(e,n){t.call(this,e),this.parent=n}return i(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t)},e.prototype._complete=function(){this.parent._complete()},e}(o.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(141);r.Observable.prototype.share=i.share},function(t,e,n){"use strict";var r=n(0),i=n(433);r.Observable.prototype.shareReplay=i.shareReplay},function(t,e,n){"use strict";function r(t,e,n){var r;return i.multicast.call(this,function(){return this._isComplete?r:r=new o.ReplaySubject(t,e,n)}).refCount()}var i=n(51),o=n(86);e.shareReplay=r},function(t,e,n){"use strict";var r=n(0),i=n(435);r.Observable.prototype.single=i.single},function(t,e,n){"use strict";function r(t){return this.lift(new a(t,this))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2),s=n(69);e.single=r;var a=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.source))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.predicate=n,this.source=r,this.seenValue=!1,this.index=0}return i(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new s.EmptyError)},e}(o.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(437);r.Observable.prototype.skip=i.skip},function(t,e,n){"use strict";function r(t){return this.lift(new s(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2);e.skip=r;var s=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.total))},t}(),a=function(t){function e(e,n){t.call(this,e),this.total=n,this.count=0}return i(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(o.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(439);r.Observable.prototype.skipLast=i.skipLast},function(t,e,n){"use strict";function r(t){return this.lift(new a(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2),s=n(70);e.skipLast=r;var a=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new s.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new o.Subscriber(t)):e.subscribe(new u(t,this._skipCount))},t}(),u=function(t){function e(e,n){t.call(this,e),this._skipCount=n,this._count=0,this._ring=new Array(n)}return i(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n<e)this._ring[n]=t;else{var r=n%e,i=this._ring,o=i[r];i[r]=t,this.destination.next(o)}},e}(o.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(441);r.Observable.prototype.skipUntil=i.skipUntil},function(t,e,n){"use strict";function r(t){return this.lift(new a(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(3),s=n(4);e.skipUntil=r;var a=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.notifier))},t}(),u=function(t){function e(e,n){t.call(this,e),this.hasValue=!1,this.isInnerStopped=!1,this.add(s.subscribeToResult(this,n))}return i(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype._complete=function(){this.isInnerStopped?t.prototype._complete.call(this):this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,i){this.hasValue=!0},e.prototype.notifyComplete=function(){this.isInnerStopped=!0,this.isStopped&&t.prototype._complete.call(this)},e}(o.OuterSubscriber)},function(t,e,n){"use strict";var r=n(0),i=n(443);r.Observable.prototype.skipWhile=i.skipWhile},function(t,e,n){"use strict";function r(t){return this.lift(new s(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2);e.skipWhile=r;var s=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate))},t}(),a=function(t){function e(e,n){t.call(this,e),this.predicate=n,this.skipping=!0,this.index=0}return i(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}},e}(o.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(445);r.Observable.prototype.startWith=i.startWith},function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=t[t.length-1];u.isScheduler(n)?t.pop():n=null;var r=t.length;return 1===r?a.concatStatic(new o.ScalarObservable(t[0],n),this):r>1?a.concatStatic(new i.ArrayObservable(t,n),this):a.concatStatic(new s.EmptyObservable(n),this)}var i=n(32),o=n(100),s=n(43),a=n(108),u=n(33);e.startWith=r},function(t,e,n){"use strict";var r=n(0),i=n(447);r.Observable.prototype.subscribeOn=i.subscribeOn},function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=0),this.lift(new o(t,e))}var i=n(448);e.subscribeOn=r;var o=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new i.SubscribeOnObservable(e,this.delay,this.scheduler).subscribe(t)},t}()},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(0),o=n(168),s=n(84),a=function(t){function e(e,n,r){void 0===n&&(n=0),void 0===r&&(r=o.asap),t.call(this),this.source=e,this.delayTime=n,this.scheduler=r,(!s.isNumeric(n)||n<0)&&(this.delayTime=0),r&&"function"==typeof r.schedule||(this.scheduler=o.asap)}return r(e,t),e.create=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=o.asap),new e(t,n,r)},e.dispatch=function(t){var e=t.source,n=t.subscriber;return this.add(e.subscribe(n))},e.prototype._subscribe=function(t){var n=this.delayTime,r=this.source;return this.scheduler.schedule(e.dispatch,n,{source:r,subscriber:t})},e}(i.Observable);e.SubscribeOnObservable=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(450),o=n(66),s=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n}return r(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=i.Immediate.setImmediate(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(i.Immediate.clearImmediate(n),e.scheduled=void 0)},e}(o.AsyncAction);e.AsapAction=s},function(t,e,n){"use strict";(function(t,r){var i=n(16),o=function(){function t(t){if(this.root=t,t.setImmediate&&"function"==typeof t.setImmediate)this.setImmediate=t.setImmediate.bind(t),this.clearImmediate=t.clearImmediate.bind(t);else{this.nextHandle=1,this.tasksByHandle={},this.currentlyRunningATask=!1,this.canUseProcessNextTick()?this.setImmediate=this.createProcessNextTickSetImmediate():this.canUsePostMessage()?this.setImmediate=this.createPostMessageSetImmediate():this.canUseMessageChannel()?this.setImmediate=this.createMessageChannelSetImmediate():this.canUseReadyStateChange()?this.setImmediate=this.createReadyStateChangeSetImmediate():this.setImmediate=this.createSetTimeoutSetImmediate();var e=function t(e){delete t.instance.tasksByHandle[e]};e.instance=this,this.clearImmediate=e}}return t.prototype.identify=function(t){return this.root.Object.prototype.toString.call(t)},t.prototype.canUseProcessNextTick=function(){return"[object process]"===this.identify(this.root.process)},t.prototype.canUseMessageChannel=function(){return Boolean(this.root.MessageChannel)},t.prototype.canUseReadyStateChange=function(){var t=this.root.document;return Boolean(t&&"onreadystatechange"in t.createElement("script"))},t.prototype.canUsePostMessage=function(){var t=this.root;if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}return!1},t.prototype.partiallyApplied=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=function t(){var e=t,n=e.handler,r=e.args;"function"==typeof n?n.apply(void 0,r):new Function(""+n)()};return r.handler=t,r.args=e,r},t.prototype.addFromSetImmediateArguments=function(t){return this.tasksByHandle[this.nextHandle]=this.partiallyApplied.apply(void 0,t),this.nextHandle++},t.prototype.createProcessNextTickSetImmediate=function(){var t=function t(){var e=t.instance,n=e.addFromSetImmediateArguments(arguments);return e.root.process.nextTick(e.partiallyApplied(e.runIfPresent,n)),n};return t.instance=this,t},t.prototype.createPostMessageSetImmediate=function(){var t=this.root,e="setImmediate$"+t.Math.random()+"$",n=function n(r){var i=n.instance;r.source===t&&"string"==typeof r.data&&0===r.data.indexOf(e)&&i.runIfPresent(+r.data.slice(e.length))};n.instance=this,t.addEventListener("message",n,!1);var r=function t(){var e=t,n=e.messagePrefix,r=e.instance,i=r.addFromSetImmediateArguments(arguments);return r.root.postMessage(n+i,"*"),i};return r.instance=this,r.messagePrefix=e,r},t.prototype.runIfPresent=function(t){if(this.currentlyRunningATask)this.root.setTimeout(this.partiallyApplied(this.runIfPresent,t),0);else{var e=this.tasksByHandle[t];if(e){this.currentlyRunningATask=!0;try{e()}finally{this.clearImmediate(t),this.currentlyRunningATask=!1}}}},t.prototype.createMessageChannelSetImmediate=function(){var t=this,e=new this.root.MessageChannel;e.port1.onmessage=function(e){var n=e.data;t.runIfPresent(n)};var n=function t(){var e=t,n=e.channel,r=e.instance,i=r.addFromSetImmediateArguments(arguments);return n.port2.postMessage(i),i};return n.channel=e,n.instance=this,n},t.prototype.createReadyStateChangeSetImmediate=function(){var t=function t(){var e=t.instance,n=e.root,r=n.document,i=r.documentElement,o=e.addFromSetImmediateArguments(arguments),s=r.createElement("script");return s.onreadystatechange=function(){e.runIfPresent(o),s.onreadystatechange=null,i.removeChild(s),s=null},i.appendChild(s),o};return t.instance=this,t},t.prototype.createSetTimeoutSetImmediate=function(){var t=function t(){var e=t.instance,n=e.addFromSetImmediateArguments(arguments);return e.root.setTimeout(e.partiallyApplied(e.runIfPresent,n),0),n};return t.instance=this,t},t}();e.ImmediateDefinition=o,e.Immediate=new o(i.root)}).call(e,n(169).clearImmediate,n(169).setImmediate)},function(t,e,n){(function(t,e){!function(t,n){"use strict";function r(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return c[u]=r,a(u),u++}function i(t){delete c[t]}function o(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}function s(t){if(l)setTimeout(s,0,t);else{var e=c[t];if(e){l=!0;try{o(e)}finally{i(t),l=!1}}}}if(!t.setImmediate){var a,u=1,c={},l=!1,p=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?function(){a=function(t){e.nextTick(function(){s(t)})}}():function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&s(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),a=function(n){t.postMessage(e+n,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){s(t.data)},a=function(e){t.port2.postMessage(e)}}():p&&"onreadystatechange"in p.createElement("script")?function(){var t=p.documentElement;a=function(e){var n=p.createElement("script");n.onreadystatechange=function(){s(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}():function(){a=function(t){setTimeout(s,0,t)}}(),h.setImmediate=r,h.clearImmediate=i}}("undefined"==typeof self?void 0===t?this:t:self)}).call(e,n(77),n(170))},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(67),o=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(i.AsyncScheduler);e.AsapScheduler=o},function(t,e,n){"use strict";var r=n(0),i=n(454);r.Observable.prototype.switch=i._switch,r.Observable.prototype._switch=i._switch},function(t,e,n){"use strict";function r(){return this.lift(new a)}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(3),s=n(4);e._switch=r;var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new u(t))},t}(),u=function(t){function e(e){t.call(this,e),this.active=0,this.hasCompleted=!1}return i(e,t),e.prototype._next=function(t){this.unsubscribeInner(),this.active++,this.add(this.innerSubscription=s.subscribeToResult(this,t))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&this.destination.complete()},e.prototype.unsubscribeInner=function(){this.active=this.active>0?this.active-1:0;var t=this.innerSubscription;t&&(t.unsubscribe(),this.remove(t))},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.unsubscribeInner(),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(o.OuterSubscriber)},function(t,e,n){"use strict";var r=n(0),i=n(456);r.Observable.prototype.switchMap=i.switchMap},function(t,e,n){"use strict";function r(t,e){return this.lift(new a(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(3),s=n(4);e.switchMap=r;var a=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.resultSelector=r,this.index=0}return i(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe(),this.add(this.innerSubscription=s.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.resultSelector?this._tryNotifyNext(t,e,n,r):this.destination.next(e)},e.prototype._tryNotifyNext=function(t,e,n,r){var i;try{i=this.resultSelector(t,e,n,r)}catch(t){return void this.destination.error(t)}this.destination.next(i)},e}(o.OuterSubscriber)},function(t,e,n){"use strict";var r=n(0),i=n(458);r.Observable.prototype.switchMapTo=i.switchMapTo},function(t,e,n){"use strict";function r(t,e){return this.lift(new a(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(3),s=n(4);e.switchMapTo=r;var a=function(){function t(t,e){this.observable=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.observable,this.resultSelector))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.inner=n,this.resultSelector=r,this.index=0}return i(e,t),e.prototype._next=function(t){var e=this.innerSubscription;e&&e.unsubscribe(),this.add(this.innerSubscription=s.subscribeToResult(this,this.inner,t,this.index++))},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){var o=this,s=o.resultSelector,a=o.destination;s?this.tryResultSelector(t,e,n,r):a.next(e)},e.prototype.tryResultSelector=function(t,e,n,r){var i,o=this,s=o.resultSelector,a=o.destination;try{i=s(t,e,n,r)}catch(t){return void a.error(t)}a.next(i)},e}(o.OuterSubscriber)},function(t,e,n){"use strict";var r=n(0),i=n(460);r.Observable.prototype.take=i.take},function(t,e,n){"use strict";function r(t){return 0===t?new a.EmptyObservable:this.lift(new u(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2),s=n(70),a=n(43);e.take=r;var u=function(){function t(t){if(this.total=t,this.total<0)throw new s.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,n){t.call(this,e),this.total=n,this.count=0}return i(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(o.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(462);r.Observable.prototype.takeLast=i.takeLast},function(t,e,n){"use strict";function r(t){return 0===t?new a.EmptyObservable:this.lift(new u(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2),s=n(70),a=n(43);e.takeLast=r;var u=function(){function t(t){if(this.total=t,this.total<0)throw new s.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,n){t.call(this,e),this.total=n,this.ring=new Array,this.count=0}return i(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;if(e.length<n)e.push(t);else{e[r%n]=t}},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=e++%n;t.next(r[o])}t.complete()},e}(o.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(464);r.Observable.prototype.takeUntil=i.takeUntil},function(t,e,n){"use strict";function r(t){return this.lift(new a(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(3),s=n(4);e.takeUntil=r;var a=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.notifier))},t}(),u=function(t){function e(e,n){t.call(this,e),this.notifier=n,this.add(s.subscribeToResult(this,n))}return i(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.complete()},e.prototype.notifyComplete=function(){},e}(o.OuterSubscriber)},function(t,e,n){"use strict";var r=n(0),i=n(466);r.Observable.prototype.takeWhile=i.takeWhile},function(t,e,n){"use strict";function r(t){return this.lift(new s(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2);e.takeWhile=r;var s=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate))},t}(),a=function(t){function e(e,n){t.call(this,e),this.predicate=n,this.index=0}return i(e,t),e.prototype._next=function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(t){return void n.error(t)}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var n=this.destination;Boolean(e)?n.next(t):n.complete()},e}(o.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(171);r.Observable.prototype.throttle=i.throttle},function(t,e,n){"use strict";var r=n(0),i=n(469);r.Observable.prototype.throttleTime=i.throttleTime},function(t,e,n){"use strict";function r(t,e,n){return void 0===e&&(e=a.async),void 0===n&&(n=u.defaultThrottleConfig),this.lift(new c(t,e,n.leading,n.trailing))}function i(t){t.subscriber.clearThrottle()}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n(2),a=n(19),u=n(171);e.throttleTime=r;var c=function(){function t(t,e,n,r){this.duration=t,this.scheduler=e,this.leading=n,this.trailing=r}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),l=function(t){function e(e,n,r,i,o){t.call(this,e),this.duration=n,this.scheduler=r,this.leading=i,this.trailing=o,this._hasTrailingValue=!1,this._trailingValue=null}return o(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(i,this.duration,{subscriber:this})),this.leading&&this.destination.next(t))},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(s.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(172);r.Observable.prototype.timeInterval=i.timeInterval},function(t,e,n){"use strict";var r=n(0),i=n(472);r.Observable.prototype.timeout=i.timeout},function(t,e,n){"use strict";function r(t,e){void 0===e&&(e=o.async);var n=s.isDate(t),r=n?+t-e.now():Math.abs(t);return this.lift(new c(r,n,e,new u.TimeoutError))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(19),s=n(85),a=n(2),u=n(173);e.timeout=r;var c=function(){function t(t,e,n,r){this.waitFor=t,this.absoluteTimeout=e,this.scheduler=n,this.errorInstance=r}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.absoluteTimeout,this.waitFor,this.scheduler,this.errorInstance))},t}(),l=function(t){function e(e,n,r,i,o){t.call(this,e),this.absoluteTimeout=n,this.waitFor=r,this.scheduler=i,this.errorInstance=o,this.action=null,this.scheduleTimeout()}return i(e,t),e.dispatchTimeout=function(t){t.error(t.errorInstance)},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.errorInstance=null},e}(a.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(474);r.Observable.prototype.timeoutWith=i.timeoutWith},function(t,e,n){"use strict";function r(t,e,n){void 0===n&&(n=o.async);var r=s.isDate(t),i=r?+t-n.now():Math.abs(t);return this.lift(new c(i,r,e,n))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(19),s=n(85),a=n(3),u=n(4);e.timeoutWith=r;var c=function(){function t(t,e,n,r){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),l=function(t){function e(e,n,r,i,o){t.call(this,e),this.absoluteTimeout=n,this.waitFor=r,this.withObservable=i,this.scheduler=o,this.action=null,this.scheduleTimeout()}return i(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(u.subscribeToResult(t,e))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},e}(a.OuterSubscriber)},function(t,e,n){"use strict";var r=n(0),i=n(174);r.Observable.prototype.timestamp=i.timestamp},function(t,e,n){"use strict";var r=n(0),i=n(477);r.Observable.prototype.toArray=i.toArray},function(t,e,n){"use strict";function r(){return this.lift(new s)}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2);e.toArray=r;var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new a(t))},t}(),a=function(t){function e(e){t.call(this,e),this.array=[]}return i(e,t),e.prototype._next=function(t){this.array.push(t)},e.prototype._complete=function(){this.destination.next(this.array),this.destination.complete()},e}(o.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(479);r.Observable.prototype.toPromise=i.toPromise},function(t,e,n){"use strict";function r(t){var e=this;if(t||(i.root.Rx&&i.root.Rx.config&&i.root.Rx.config.Promise?t=i.root.Rx.config.Promise:i.root.Promise&&(t=i.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})}var i=n(16);e.toPromise=r},function(t,e,n){"use strict";var r=n(0),i=n(481);r.Observable.prototype.window=i.window},function(t,e,n){"use strict";function r(t){return this.lift(new u(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(10),s=n(3),a=n(4);e.window=r;var u=function(){function t(t){this.windowBoundaries=t}return t.prototype.call=function(t,e){var n=new c(t),r=e.subscribe(n);return r.closed||n.add(a.subscribeToResult(n,this.windowBoundaries)),r},t}(),c=function(t){function e(e){t.call(this,e),this.window=new o.Subject,e.next(this.window)}return i(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.openWindow()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var e=this.destination,n=this.window=new o.Subject;e.next(n)},e}(s.OuterSubscriber)},function(t,e,n){"use strict";var r=n(0),i=n(483);r.Observable.prototype.windowCount=i.windowCount},function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=0),this.lift(new a(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(2),s=n(10);e.windowCount=r;var a=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.windowSize,this.startWindowEvery))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.destination=e,this.windowSize=n,this.startWindowEvery=r,this.windows=[new s.Subject],this.count=0,e.next(this.windows[0])}return i(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,a=0;a<o&&!this.closed;a++)i[a].next(t);var u=this.count-r+1;if(u>=0&&u%e==0&&!this.closed&&i.shift().complete(),++this.count%e==0&&!this.closed){var c=new s.Subject;i.push(c),n.next(c)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(o.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(485);r.Observable.prototype.windowTime=i.windowTime},function(t,e,n){"use strict";function r(t){var e=c.async,n=null,r=Number.POSITIVE_INFINITY;return h.isScheduler(arguments[3])&&(e=arguments[3]),h.isScheduler(arguments[2])?e=arguments[2]:p.isNumeric(arguments[2])&&(r=arguments[2]),h.isScheduler(arguments[1])?e=arguments[1]:p.isNumeric(arguments[1])&&(n=arguments[1]),this.lift(new f(t,n,r,e))}function i(t){var e=t.subscriber,n=t.windowTimeSpan,r=t.window;r&&e.closeWindow(r),t.window=e.openWindow(),this.schedule(t,n)}function o(t){var e=t.windowTimeSpan,n=t.subscriber,r=t.scheduler,i=t.windowCreationInterval,o=n.openWindow(),a=this,u={action:a,subscription:null},c={subscriber:n,window:o,context:u};u.subscription=r.schedule(s,e,c),a.add(u.subscription),a.schedule(t,i)}function s(t){var e=t.subscriber,n=t.window,r=t.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),e.closeWindow(n)}var a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=n(10),c=n(19),l=n(2),p=n(84),h=n(33);e.windowTime=r;var f=function(){function t(t,e,n,r){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new v(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),d=function(t){function e(){t.apply(this,arguments),this._numberOfNextedValues=0}return a(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(u.Subject),v=function(t){function e(e,n,r,a,u){t.call(this,e),this.destination=e,this.windowTimeSpan=n,this.windowCreationInterval=r,this.maxWindowSize=a,this.scheduler=u,this.windows=[];var c=this.openWindow();if(null!==r&&r>=0){var l={subscriber:this,window:c,context:null},p={windowTimeSpan:n,windowCreationInterval:r,subscriber:this,scheduler:u};this.add(u.schedule(s,n,l)),this.add(u.schedule(o,r,p))}else{var h={subscriber:this,window:c,windowTimeSpan:n};this.add(u.schedule(i,n,h))}}return a(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,r=0;r<n;r++){var i=e[r];i.closed||(i.next(t),i.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(i))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new d;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(l.Subscriber)},function(t,e,n){"use strict";var r=n(0),i=n(487);r.Observable.prototype.windowToggle=i.windowToggle},function(t,e,n){"use strict";function r(t,e){return this.lift(new p(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(10),s=n(13),a=n(17),u=n(14),c=n(3),l=n(4);e.windowToggle=r;var p=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.openings,this.closingSelector))},t}(),h=function(t){function e(e,n,r){t.call(this,e),this.openings=n,this.closingSelector=r,this.contexts=[],this.add(this.openSubscription=l.subscribeToResult(this,n,n))}return i(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,r=0;r<n;r++)e[r].window.next(t)},e.prototype._error=function(e){var n=this.contexts;if(this.contexts=null,n)for(var r=n.length,i=-1;++i<r;){var o=n[i];o.window.error(e),o.subscription.unsubscribe()}t.prototype._error.call(this,e)},e.prototype._complete=function(){var e=this.contexts;if(this.contexts=null,e)for(var n=e.length,r=-1;++r<n;){var i=e[r];i.window.complete(),i.subscription.unsubscribe()}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.contexts;if(this.contexts=null,t)for(var e=t.length,n=-1;++n<e;){var r=t[n];r.window.unsubscribe(),r.subscription.unsubscribe()}},e.prototype.notifyNext=function(t,e,n,r,i){if(t===this.openings){var c=this.closingSelector,p=a.tryCatch(c)(e);if(p===u.errorObject)return this.error(u.errorObject.e);var h=new o.Subject,f=new s.Subscription,d={window:h,subscription:f};this.contexts.push(d);var v=l.subscribeToResult(this,p,d);v.closed?this.closeWindow(this.contexts.length-1):(v.context=d,f.add(v)),this.destination.next(h)}else this.closeWindow(this.contexts.indexOf(t))},e.prototype.notifyError=function(t){this.error(t)},e.prototype.notifyComplete=function(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))},e.prototype.closeWindow=function(t){if(-1!==t){var e=this.contexts,n=e[t],r=n.window,i=n.subscription;e.splice(t,1),r.complete(),i.unsubscribe()}},e}(c.OuterSubscriber)},function(t,e,n){"use strict";var r=n(0),i=n(489);r.Observable.prototype.windowWhen=i.windowWhen},function(t,e,n){"use strict";function r(t){return this.lift(new l(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(10),s=n(17),a=n(14),u=n(3),c=n(4);e.windowWhen=r;var l=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.closingSelector))},t}(),p=function(t){function e(e,n){t.call(this,e),this.destination=e,this.closingSelector=n,this.openWindow()}return i(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.openWindow(i)},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){void 0===t&&(t=null),t&&(this.remove(t),t.unsubscribe());var e=this.window;e&&e.complete();var n=this.window=new o.Subject;this.destination.next(n);var r=s.tryCatch(this.closingSelector)();if(r===a.errorObject){var i=a.errorObject.e;this.destination.error(i),this.window.error(i)}else this.add(this.closingNotification=c.subscribeToResult(this,r))},e}(u.OuterSubscriber)},function(t,e,n){"use strict";var r=n(0),i=n(491);r.Observable.prototype.withLatestFrom=i.withLatestFrom},function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n;"function"==typeof t[t.length-1]&&(n=t.pop());var r=t;return this.lift(new a(r,n))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(3),s=n(4);e.withLatestFrom=r;var a=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.observables,this.project))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.observables=n,this.project=r,this.toRespond=[];var i=n.length;this.values=new Array(i);for(var o=0;o<i;o++)this.toRespond.push(o);for(var o=0;o<i;o++){var a=n[o];this.add(s.subscribeToResult(this,a,a,o))}}return i(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e;var o=this.toRespond;if(o.length>0){var s=o.indexOf(n);-1!==s&&o.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(o.OuterSubscriber)},function(t,e,n){"use strict";var r=n(0),i=n(109);r.Observable.prototype.zip=i.zipProto},function(t,e,n){"use strict";var r=n(0),i=n(494);r.Observable.prototype.zipAll=i.zipAll},function(t,e,n){"use strict";function r(t){return this.lift(new i.ZipOperator(t))}var i=n(109);e.zipAll=r},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(0),o=n(68),s=n(496),a=n(497),u=n(176),c=n(178),l=750,p=function(t){function e(e){t.call(this,c.VirtualAction,l),this.assertDeepEqual=e,this.hotObservables=[],this.coldObservables=[],this.flushTests=[]}return r(e,t),e.prototype.createTime=function(t){var n=t.indexOf("|");if(-1===n)throw new Error('marble diagram for time should have a completion marker "|"');return n*e.frameTimeFactor},e.prototype.createColdObservable=function(t,n,r){if(-1!==t.indexOf("^"))throw new Error('cold observable cannot have subscription offset "^"');if(-1!==t.indexOf("!"))throw new Error('cold observable cannot have unsubscription marker "!"');var i=e.parseMarbles(t,n,r),o=new s.ColdObservable(i,this);return this.coldObservables.push(o),o},e.prototype.createHotObservable=function(t,n,r){if(-1!==t.indexOf("!"))throw new Error('hot observable cannot have unsubscription marker "!"');var i=e.parseMarbles(t,n,r),o=new a.HotObservable(i,this);return this.hotObservables.push(o),o},e.prototype.materializeInnerObservable=function(t,e){var n=this,r=[];return t.subscribe(function(t){r.push({frame:n.frame-e,notification:o.Notification.createNext(t)})},function(t){r.push({frame:n.frame-e,notification:o.Notification.createError(t)})},function(){r.push({frame:n.frame-e,notification:o.Notification.createComplete()})}),r},e.prototype.expectObservable=function(t,n){var r=this;void 0===n&&(n=null);var s,a=[],u={actual:a,ready:!1},c=e.parseMarblesAsSubscriptions(n).unsubscribedFrame;return this.schedule(function(){s=t.subscribe(function(t){var e=t;t instanceof i.Observable&&(e=r.materializeInnerObservable(e,r.frame)),a.push({frame:r.frame,notification:o.Notification.createNext(e)})},function(t){a.push({frame:r.frame,notification:o.Notification.createError(t)})},function(){a.push({frame:r.frame,notification:o.Notification.createComplete()})})},0),c!==Number.POSITIVE_INFINITY&&this.schedule(function(){return s.unsubscribe()},c),this.flushTests.push(u),{toBe:function(t,n,r){u.ready=!0,u.expected=e.parseMarbles(t,n,r,!0)}}},e.prototype.expectSubscriptions=function(t){var n={actual:t,ready:!1};return this.flushTests.push(n),{toBe:function(t){var r="string"==typeof t?[t]:t;n.ready=!0,n.expected=r.map(function(t){return e.parseMarblesAsSubscriptions(t)})}}},e.prototype.flush=function(){for(var e=this.hotObservables;e.length>0;)e.shift().setup();t.prototype.flush.call(this);for(var n=this.flushTests.filter(function(t){return t.ready});n.length>0;){var r=n.shift();this.assertDeepEqual(r.actual,r.expected)}},e.parseMarblesAsSubscriptions=function(t){if("string"!=typeof t)return new u.SubscriptionLog(Number.POSITIVE_INFINITY);for(var e=t.length,n=-1,r=Number.POSITIVE_INFINITY,i=Number.POSITIVE_INFINITY,o=0;o<e;o++){var s=o*this.frameTimeFactor,a=t[o];switch(a){case"-":case" ":break;case"(":n=s;break;case")":n=-1;break;case"^":if(r!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");r=n>-1?n:s;break;case"!":if(i!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");i=n>-1?n:s;break;default:throw new Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+a+"'.")}}return i<0?new u.SubscriptionLog(r):new u.SubscriptionLog(r,i)},e.parseMarbles=function(t,e,n,r){if(void 0===r&&(r=!1),-1!==t.indexOf("!"))throw new Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var i=t.length,a=[],u=t.indexOf("^"),c=-1===u?0:u*-this.frameTimeFactor,l="object"!=typeof e?function(t){return t}:function(t){return r&&e[t]instanceof s.ColdObservable?e[t].messages:e[t]},p=-1,h=0;h<i;h++){var f=h*this.frameTimeFactor+c,d=void 0,v=t[h];switch(v){case"-":case" ":break;case"(":p=f;break;case")":p=-1;break;case"|":d=o.Notification.createComplete();break;case"^":break;case"#":d=o.Notification.createError(n||"error");break;default:d=o.Notification.createNext(l(v))}d&&a.push({frame:p>-1?p:f,notification:d})}return a},e}(c.VirtualTimeScheduler);e.TestScheduler=p},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(0),o=n(13),s=n(175),a=n(177),u=function(t){function e(e,n){t.call(this,function(t){var e=this,n=e.logSubscribedFrame();return t.add(new o.Subscription(function(){e.logUnsubscribedFrame(n)})),e.scheduleMessages(t),t}),this.messages=e,this.subscriptions=[],this.scheduler=n}return r(e,t),e.prototype.scheduleMessages=function(t){for(var e=this.messages.length,n=0;n<e;n++){var r=this.messages[n];t.add(this.scheduler.schedule(function(t){var e=t.message,n=t.subscriber;e.notification.observe(n)},r.frame,{message:r,subscriber:t}))}},e}(i.Observable);e.ColdObservable=u,a.applyMixins(u,[s.SubscriptionLoggable])},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(10),o=n(13),s=n(175),a=n(177),u=function(t){function e(e,n){t.call(this),this.messages=e,this.subscriptions=[],this.scheduler=n}return r(e,t),e.prototype._subscribe=function(e){var n=this,r=n.logSubscribedFrame();return e.add(new o.Subscription(function(){n.logUnsubscribedFrame(r)})),t.prototype._subscribe.call(this,e)},e.prototype.setup=function(){for(var t=this,e=t.messages.length,n=0;n<e;n++)!function(){var e=t.messages[n];t.scheduler.schedule(function(){e.notification.observe(t)},e.frame)}()},e}(i.Subject);e.HotObservable=u,a.applyMixins(u,[s.SubscriptionLoggable])},function(t,e,n){"use strict";var r=n(499),i=n(501);e.animationFrame=new i.AnimationFrameScheduler(r.AnimationFrameAction)},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(66),o=n(500),s=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n}return r(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=o.AnimationFrame.requestAnimationFrame(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(o.AnimationFrame.cancelAnimationFrame(n),e.scheduled=void 0)},e}(i.AsyncAction);e.AnimationFrameAction=s},function(t,e,n){"use strict";var r=n(16),i=function(){function t(t){t.requestAnimationFrame?(this.cancelAnimationFrame=t.cancelAnimationFrame.bind(t),this.requestAnimationFrame=t.requestAnimationFrame.bind(t)):t.mozRequestAnimationFrame?(this.cancelAnimationFrame=t.mozCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.mozRequestAnimationFrame.bind(t)):t.webkitRequestAnimationFrame?(this.cancelAnimationFrame=t.webkitCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.webkitRequestAnimationFrame.bind(t)):t.msRequestAnimationFrame?(this.cancelAnimationFrame=t.msCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.msRequestAnimationFrame.bind(t)):t.oRequestAnimationFrame?(this.cancelAnimationFrame=t.oCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.oRequestAnimationFrame.bind(t)):(this.cancelAnimationFrame=t.clearTimeout.bind(t),this.requestAnimationFrame=function(e){return t.setTimeout(e,1e3/60)})}return t}();e.RequestAnimationFrameDefinition=i,e.AnimationFrame=new i(r.root)},function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(67),o=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(i.AsyncScheduler);e.AnimationFrameScheduler=o}],[246]);