(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},crnd:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="crnd"},zUnb:function(t,e,n){"use strict";n.r(e);var r=function(t,e){return(r=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])})(t,e)};function o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function a(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}function s(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function l(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function c(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(l(arguments[e]));return t}var p=Array.isArray||function(t){return t&&"number"==typeof t.length};function h(t){return null!=t&&"object"==typeof t}function f(t){return"function"==typeof t}var d,y={e:{}};function m(){try{return d.apply(this,arguments)}catch(t){return y.e=t,y}}function v(t){return d=t,m}function g(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=t,this}g.prototype=Object.create(Error.prototype);var _=g,b=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,r=this._parents,o=this._unsubscribe,i=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var a=-1,s=r?r.length:0;n;)n.remove(this),n=++a<s&&r[a]||null;if(f(o)&&v(o).call(this)===y&&(e=!0,t=t||(y.e instanceof _?w(y.e.errors):[y.e])),p(i))for(a=-1,s=i.length;++a<s;){var u=i[a];if(h(u)&&v(u.unsubscribe).call(u)===y){e=!0,t=t||[];var l=y.e;l instanceof _?t=t.concat(w(l.errors)):t.push(l)}}if(e)throw new _(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)._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._parent,n=this._parents;e&&e!==t?n?-1===n.indexOf(t)&&n.push(t):this._parents=[t]:this._parent=t},t.EMPTY=((e=new t).closed=!0,e),t}();function w(t){return t.reduce(function(t,e){return t.concat(e instanceof _?e.errors:e)},[])}var C=!1,E={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){C=t},get useDeprecatedSynchronousErrorHandling(){return C}};function S(t){setTimeout(function(){throw t})}var x={closed:!0,next:function(t){},error:function(t){if(E.useDeprecatedSynchronousErrorHandling)throw t;S(t)},complete:function(){}},T="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),k=function(t){function e(n,r,o){var i=t.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,i._parentSubscription=null,arguments.length){case 0:i.destination=x;break;case 1:if(!n){i.destination=x;break}if("object"==typeof n){n instanceof e?(i.syncErrorThrowable=n.syncErrorThrowable,i.destination=n,n.add(i)):(i.syncErrorThrowable=!0,i.destination=new D(i,n));break}default:i.syncErrorThrowable=!0,i.destination=new D(i,n,r,o)}return i}return o(e,t),e.prototype[T]=function(){return this},e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},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._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this._parentSubscription=null,this},e}(b),D=function(t){function e(e,n,r,o){var i,a=t.call(this)||this;a._parentSubscriber=e;var s=a;return f(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==x&&(f((s=Object.create(n)).unsubscribe)&&a.add(s.unsubscribe.bind(s)),s.unsubscribe=a.unsubscribe.bind(a))),a._context=s,a._next=i,a._error=r,a._complete=o,a}return o(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;E.useDeprecatedSynchronousErrorHandling&&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,n=E.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):S(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;S(t)}}},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.useDeprecatedSynchronousErrorHandling&&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(n){if(this.unsubscribe(),E.useDeprecatedSynchronousErrorHandling)throw n;S(n)}},e.prototype.__tryOrSetError=function(t,e,n){if(!E.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return E.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(S(r),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(k),O="function"==typeof Symbol&&Symbol.observable||"@@observable";function P(){}function A(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return I(t)}function I(t){return t?1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}:P}var R=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=function(t,e,n){if(t){if(t instanceof k)return t;if(t[T])return t[T]()}return t||e||n?new k(t,e,n):new k(x)}(t,e,n);if(r?r.call(o,this.source):o.add(this.source||E.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),E.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){E.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){var e=t.destination;if(t.closed||t.isStopped)return!1;t=e&&e instanceof k?e:null}return!0}(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=N(e))(function(e,r){var o;o=n.subscribe(function(e){try{t(e)}catch(n){r(n),o&&o.unsubscribe()}},r,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[O]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:I(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=N(t))(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}();function N(t){if(t||(t=E.Promise||Promise),!t)throw new Error("no Promise impl found");return t}function M(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}M.prototype=Object.create(Error.prototype);var j=M,V=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return o(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}(b),F=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return o(e,t),e}(k),L=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return o(e,t),e.prototype[T]=function(){return new F(this)},e.prototype.lift=function(t){var e=new U(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new j;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].next(t)},e.prototype.error=function(t){if(this.closed)throw new j;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new j;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 j;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new j;return this.hasError?(t.error(this.thrownError),b.EMPTY):this.isStopped?(t.complete(),b.EMPTY):(this.observers.push(t),new V(this,t))},e.prototype.asObservable=function(){var t=new R;return t.source=this,t},e.create=function(t,e){return new U(t,e)},e}(R),U=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return o(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):b.EMPTY},e}(L);function H(t){return t&&"function"==typeof t.schedule}var B=function(t){function e(e,n,r){var o=t.call(this)||this;return o.parent=e,o.outerValue=n,o.outerIndex=r,o.index=0,o}return o(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}(k),z=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.closed||e.complete()}},q=function(t){return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,S),e}};function W(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var G=W(),Q=function(t){return function(e){for(var n=t[G]();;){var r=n.next();if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e}},K=function(t){return function(e){var n=t[O]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}},Z=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function $(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var Y=function(t){if(t instanceof R)return function(e){return t._isScalar?(e.next(t.value),void e.complete()):t.subscribe(e)};if(t&&"function"==typeof t[O])return K(t);if(Z(t))return z(t);if($(t))return q(t);if(t&&"function"==typeof t[G])return Q(t);var e=h(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function J(t,e,n,r,o){if(void 0===o&&(o=new B(t,n,r)),!o.closed)return Y(e)(o)}var X=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(k);function tt(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new et(t,e))}}var et=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new nt(t,this.project,this.thisArg))},t}(),nt=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return o(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(k);function rt(t,e){return new R(e?function(n){var r=new b,o=0;return r.add(e.schedule(function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()})),r}:z(t))}function ot(t,e){if(!e)return t instanceof R?t:new R(Y(t));if(null!=t){if(function(t){return t&&"function"==typeof t[O]}(t))return function(t,e){return new R(e?function(n){var r=new b;return r.add(e.schedule(function(){var o=t[O]();r.add(o.subscribe({next:function(t){r.add(e.schedule(function(){return n.next(t)}))},error:function(t){r.add(e.schedule(function(){return n.error(t)}))},complete:function(){r.add(e.schedule(function(){return n.complete()}))}}))})),r}:K(t))}(t,e);if($(t))return function(t,e){return new R(e?function(n){var r=new b;return r.add(e.schedule(function(){return t.then(function(t){r.add(e.schedule(function(){n.next(t),r.add(e.schedule(function(){return n.complete()}))}))},function(t){r.add(e.schedule(function(){return n.error(t)}))})})),r}:q(t))}(t,e);if(Z(t))return rt(t,e);if(function(t){return t&&"function"==typeof t[G]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new R(e?function(n){var r,o=new b;return o.add(function(){r&&"function"==typeof r.return&&r.return()}),o.add(e.schedule(function(){r=t[G](),o.add(e.schedule(function(){if(!n.closed){var t,e;try{var o=r.next();t=o.value,e=o.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}}))})),o}:Q(t))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function it(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(it(function(n,r){return ot(t(n,r)).pipe(tt(function(t,o){return e(n,t,r,o)}))},n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new at(t,n))})}var at=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new st(t,this.project,this.concurrent))},t}(),st=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var o=t.call(this,e)||this;return o.project=n,o.concurrent=r,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return o(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(r){return void this.destination.error(r)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=new B(this,void 0,void 0);this.destination.add(r),J(this,t,e,n,r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,o){this.destination.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&&this.destination.complete()},e}(X);function ut(t){return t}function lt(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),it(ut,t)}function ct(){return function(t){return t.lift(new pt(t))}}var pt=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new ht(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),ht=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return o(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(k),ft=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return o(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 b).add(this.source.subscribe(new yt(this.getSubject(),this))),t.closed?(this._connection=null,t=b.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return ct()(this)},e}(R).prototype,dt={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:ft._subscribe},_isComplete:{value:ft._isComplete,writable:!0},getSubject:{value:ft.getSubject},connect:{value:ft.connect},refCount:{value:ft.refCount}},yt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return o(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}(F);function mt(){return new L}function vt(t){for(var e in t)if(t[e]===vt)return e;throw Error("Could not find renamed property on target object.")}var gt=vt({ngComponentDef:vt}),_t=vt({ngInjectableDef:vt}),bt=vt({ngInjectorDef:vt}),wt=vt({ngModuleDef:vt}),Ct=vt({__NG_ELEMENT_ID__:vt});function Et(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function St(t){return t.hasOwnProperty(_t)?t[_t]:null}function xt(t){return t.hasOwnProperty(bt)?t[bt]:null}var Tt=function(){function t(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==e?Et({providedIn:e.providedIn||"root",factory:e.factory}):void 0}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),kt="__parameters__";function Dt(t,e,n){var r=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(t){var r=t.apply(void 0,c(e));for(var o in r)this[o]=r[o]}}}(e);function o(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this instanceof o)return r.apply(this,e),this;var i=new((t=o).bind.apply(t,c([void 0],e)));return a.annotation=i,a;function a(t,e,n){for(var r=t.hasOwnProperty(kt)?t[kt]:Object.defineProperty(t,kt,{value:[]})[kt];r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(i),t}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o}var Ot=new Tt("AnalyzeForEntryComponents"),Pt=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),At="undefined"!=typeof window&&window,It="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Rt="undefined"!=typeof global&&global||At||It,Nt=Promise.resolve(0),Mt=null;function jt(){if(!Mt){var t=Rt.Symbol;if(t&&t.iterator)Mt=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&&(Mt=r)}}return Mt}function Vt(t){"undefined"==typeof Zone?Nt.then(function(){t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function Ft(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function Lt(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(Lt).join(", ")+"]";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)}var Ut,Ht=Dt("Inject",function(t){return{token:t}}),Bt=Dt("Optional"),zt=Dt("Self"),qt=Dt("SkipSelf"),Wt=void 0;function Gt(t){var e=Wt;return Wt=t,e}function Qt(t){var e=Ut;return Ut=t,e}function Kt(t,e){return void 0===e&&(e=0),(Ut||function(t,e){if(void 0===e&&(e=0),void 0===Wt)throw new Error("inject() must be called from an injection context");return null===Wt?Zt(t,void 0,e):Wt.get(t,8&e?null:void 0,e)})(t,e)}function Zt(t,e,n){var r=St(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(8&n)return null;if(void 0!==e)return e;throw new Error("Injector: NOT_FOUND ["+Lt(t)+"]")}function $t(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");for(var o=void 0,i=0,a=0;a<r.length;a++){var s=r[a];s instanceof Bt||"Optional"===s.ngMetadataName?i|=8:s instanceof qt||"SkipSelf"===s.ngMetadataName?i|=4:s instanceof zt||"Self"===s.ngMetadataName?i|=2:o=s instanceof Ht?s.token:s}e.push(Kt(o,i))}else e.push(Kt(r))}return e}var Yt=8,Jt=8,Xt=9,te=-1,ee=function(){return function(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}(),ne=ee.prototype,re=17,oe=0,ie=1,ae=2,se=3,ue=4,le=5,ce=6,pe=7,he=8,fe=9,de=10,ye=11,me=12,ve=14,ge=16;function _e(t,e,n){t.afterContentInit&&(e.contentHooks||(e.contentHooks=[])).push(n,t.afterContentInit),t.afterContentChecked&&((e.contentHooks||(e.contentHooks=[])).push(n,t.afterContentChecked),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,t.afterContentChecked))}function be(t,e,n){t.afterViewInit&&(e.viewHooks||(e.viewHooks=[])).push(n,t.afterViewInit),t.afterViewChecked&&((e.viewHooks||(e.viewHooks=[])).push(n,t.afterViewChecked),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,t.afterViewChecked))}function we(t,e,n){null!=t.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(n,t.onDestroy)}function Ce(t,e,n,r){var o=r?e:n;o&&Ee(t,o)}function Ee(t,e){for(var n=0;n<e.length;n+=2)e[n+1].call(t[e[n]])}function Se(t,e){var n=ke(t),r=ke(e);return n&&r?function(t,e,n){for(var r=t[jt()](),o=e[jt()]();;){var i=r.next(),a=o.next();if(i.done&&a.done)return!0;if(i.done||a.done)return!1;if(!n(i.value,a.value))return!1}}(t,e,Se):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||Ft(t,e)}var xe=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),Te=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function ke(t){return!!De(t)&&(Array.isArray(t)||!(t instanceof Map)&&jt()in t)}function De(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var Oe=0,Pe=1,Ae=6,Ie="__ngContext__";function Re(t){return"function"==typeof t?t.name||t:"string"==typeof t?t:null==t?"":""+t}function Ne(t){for(;Array.isArray(t);)t=t[le];return t}function Me(t,e){return Ne(e[t.index])}function je(t,e){var n=e[t];return n.length>=re?n:n[le]}function Ve(t){return t[Ie]}function Fe(t){var e=Ve(t);return e?Array.isArray(e)?e:e.lViewData:null}function Le(t){return 32767&t}function Ue(t,e){for(var n=t>>16,r=e;n>0;)r=r[ge],n--;return r}var He,Be,ze,qe,We,Ge,Qe,Ke,Ze=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Rt);function $e(){return He}function Ye(){return Be}function Je(){return ze}function Xe(t){ze=t}function tn(t,e){ze=t,Ke=e}function en(){return qe}function nn(t){qe=t}function rn(){return We}function on(){return Qe}function an(){return Ke}var sn=!1;function un(){return sn}function ln(t){sn=t}var cn=!0;function pn(t){cn=t}function hn(t,e){var n=Ke;return We=t&&t[oe],Qe=t&&1==(1&t[ie]),cn=t&&We.firstTemplatePass,He=t&&t[ye],ze=e,qe=!0,Ke=t,n&&(n[ue]=Ge),Ge=t&&t[ue],n}function fn(t,e){e||(sn||Ce(Ke,We.viewHooks,We.viewCheckHooks,Qe),Ke[ie]&=-6),Ke[ie]|=16,Ke[pe]=We.bindingStartIndex,hn(t,null)}var dn=!1;function yn(t){var e=dn;return dn=t,e}var mn=255,vn=0;function gn(t,e){var n=bn(t,e);if(-1!==n)return n;var r=e[oe];r.firstTemplatePass&&(t.injectorIndex=e.length,_n(r.data,t),_n(e,null),_n(r.blueprint,null));var o=wn(t,e),i=Le(o),a=Ue(o,e),s=t.injectorIndex;if(o!==te)for(var u=a[oe].data,l=0;l<8;l++)e[s+l]=a[i+l]|u[i+l];return e[s+Jt]=o,s}function _n(t,e){t.push(0,0,0,0,0,0,0,0,e)}function bn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+Jt]?-1:t.injectorIndex}function wn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=e[ce],r=1;n&&-1===n.injectorIndex;)n=(e=e[ge])[ce],r++;return n?n.injectorIndex|r<<16|(n&&3===n.type?32768:0):-1}var Cn={};function En(t,e,n,r){var o=e[oe],i=o.data[t+Yt],a=i.flags,s=i.providerIndexes,u=o.data,l=!1;(null==r&&function(t){return 4096==(4096&t.flags)}(i)&&dn||null!=r&&r!=o&&(null==o.node||3===o.node.type))&&(l=!0);for(var c=65535&s,p=a>>16,h=4095&a,f=l?c:c+(s>>16);f<p+h;f++){var d=u[f];if(f<p&&n===d||f>=p&&d.type===n)return Sn(u,e,f,i)}return Cn}function Sn(t,e,n,r){var o,i=e[n];if(null!=(o=i)&&"object"==typeof o&&Object.getPrototypeOf(o)==ne){var a=i;if(a.resolving)throw new Error("Circular dep for "+Re(t[n]));var s=yn(a.canSeeViewProviders);a.resolving=!0;var u=void 0;a.injectImpl&&(u=Qt(a.injectImpl));var l=Je(),c=an();tn(r,e);try{i=e[n]=a.factory(null,t,e,r)}finally{a.injectImpl&&Qt(u),yn(s),a.resolving=!1,tn(l,c)}}return i}function xn(t,e,n){var r=64&t,o=32&t;return!!((128&t?r?o?n[e+7]:n[e+6]:o?n[e+5]:n[e+4]:r?o?n[e+3]:n[e+2]:o?n[e+1]:n[e])&1<<t)}function Tn(t,e){return!(2&t||1&t&&32768&e)}var kn=function(){function t(t,e){this._tNode=t,this._hostView=e,this._injectorIndex=gn(t,e)}return t.prototype.get=function(t){return tn(this._tNode,this._hostView),function(t,e,n,r,o){void 0===r&&(r=0);var i=function(t){var e=t[Ct];return"number"==typeof e?e&mn:e}(n);if("function"==typeof i){var a=Je(),s=an();tn(t,e);try{var u=i();if(null!=u||8&r)return u;throw new Error("No provider for "+Re(n))}finally{tn(a,s)}}else if("number"==typeof i){var l=null,c=bn(t,e),p=te;for((-1===c||4&r)&&(Tn(r,p=-1===c?wn(t,e):e[c+Jt])?(l=e[oe],c=Le(p),e=Ue(p,e)):c=-1);-1!==c;){p=e[c+Jt];var h=e[oe];if(xn(i,c,h.data)){var f=En(c,e,n,l);if(f!==Cn)return f}Tn(r,p)&&xn(i,c,e)?(l=h,c=Le(p),e=Ue(p,e)):c=-1}}if(8&r&&void 0===o&&(o=null),0==(3&r)){var d=e[de];return d?d.get(n,o,8&r):Zt(n,o,8&r)}if(8&r)return o;throw new Error("NodeInjector: NOT_FOUND ["+Re(n)+"]")}(this._tNode,this._hostView,t)},t}();function Dn(t,e){t[Ie]=e}function On(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]}var Pn=vt({__forward_ref__:vt});function An(t){return t.__forward_ref__=An,t.toString=function(){return Lt(this())},t}function In(t){var e=t;return"function"==typeof e&&e.hasOwnProperty(Pn)&&e.__forward_ref__===An?e():t}var Rn="__source",Nn=new Object,Mn=Nn,jn=new Tt("INJECTOR"),Vn=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=Nn),e===Nn)throw new Error("NullInjectorError: No provider for "+Lt(t)+"!");return e},t}(),Fn=function(){function t(){}return t.create=function(t,e){return Array.isArray(t)?new Kn(t,e):new Kn(t.providers,t.parent,t.name||null)},t.THROW_IF_NOT_FOUND=Nn,t.NULL=new Vn,t.ngInjectableDef=Et({providedIn:"any",factory:function(){return Kt(jn)}}),t.__NG_ELEMENT_ID__=function(){return Ln()},t}(),Ln=On,Un=function(t){return t},Hn=[],Bn=Un,zn=function(){return Array.prototype.slice.call(arguments)},qn=vt({provide:String,useValue:vt}),Wn=Fn.NULL,Gn=/\n/gm,Qn="\u0275",Kn=function(){function t(t,e,n){void 0===e&&(e=Wn),void 0===n&&(n=null),this.parent=e,this.source=n;var r=this._records=new Map;r.set(Fn,{token:Fn,fn:Un,deps:Hn,value:this,useNew:!1}),r.set(jn,{token:jn,fn:Un,deps:Hn,value:this,useNew:!1}),function t(e,n){if(n)if((n=In(n))instanceof Array)for(var r=0;r<n.length;r++)t(e,n[r]);else{if("function"==typeof n)throw Yn("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw Yn("Unexpected provider",n);var o=In(n.provide),i=function(t){var e=function(t){var e=Hn,n=t.deps;if(n&&n.length){e=[];for(var r=0;r<n.length;r++){var o=6;if((u=In(n[r]))instanceof Array)for(var i=0,a=u;i<a.length;i++){var s=a[i];s instanceof Bt||s==Bt?o|=1:s instanceof qt||s==qt?o&=-3:s instanceof zt||s==zt?o&=-5:u=s instanceof Ht?s.token:In(s)}e.push({token:u,options:o})}}else if(t.useExisting){var u;e=[{token:u=In(t.useExisting),options:6}]}else if(!(n||qn in t))throw Yn("'deps' required",t);return e}(t),n=Un,r=Hn,o=!1,i=In(t.provide);if(qn in t)r=t.useValue;else if(t.useFactory)n=t.useFactory;else if(t.useExisting);else if(t.useClass)o=!0,n=In(t.useClass);else{if("function"!=typeof i)throw Yn("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",t);o=!0,n=i}return{deps:e,fn:n,useNew:o,value:r}}(n);if(!0===n.multi){var a=e.get(o);if(a){if(a.fn!==zn)throw Zn(o)}else e.set(o,a={token:n.provide,deps:[],useNew:!1,fn:zn,value:Hn});a.deps.push({token:o=n,options:6})}var s=e.get(o);if(s&&s.fn==zn)throw Zn(o);e.set(o,i)}}(r,t)}return t.prototype.get=function(t,e,n){void 0===n&&(n=0);var r=this._records.get(t);try{return function t(e,n,r,o,i,a){try{return function(e,n,r,o,i,a){var s,u;if(!n||4&a)2&a||(u=o.get(e,i,0));else{if((u=n.value)==Bn)throw Error(Qn+"Circular dependency");if(u===Hn){n.value=Bn;var l=n.useNew,p=n.fn,h=n.deps,f=Hn;if(h.length){f=[];for(var d=0;d<h.length;d++){var y=h[d],m=y.options,v=2&m?r.get(y.token):void 0;f.push(t(y.token,v,r,v||4&m?o:Wn,1&m?null:Fn.THROW_IF_NOT_FOUND,0))}}n.value=u=l?new((s=p).bind.apply(s,c([void 0],f))):p.apply(void 0,f)}}return u}(e,n,r,o,i,a)}catch(s){throw s instanceof Error||(s=new Error(s)),(s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(e),n&&n.value==Bn&&(n.value=Hn),s}}(t,r,this._records,this.parent,e,n)}catch(i){var o=i.ngTempTokenPath;throw t[Rn]&&o.unshift(t[Rn]),i.message=$n("\n"+i.message,o,this.source),i.ngTokenPath=o,i.ngTempTokenPath=null,i}},t.prototype.toString=function(){var t=[];return this._records.forEach(function(e,n){return t.push(Lt(n))}),"StaticInjector["+t.join(", ")+"]"},t}();function Zn(t){return Yn("Cannot mix multi providers and regular providers",t)}function $n(t,e,n){void 0===n&&(n=null),t=t&&"\n"===t.charAt(0)&&t.charAt(1)==Qn?t.substr(2):t;var r=Lt(e);if(e instanceof Array)r=e.map(Lt).join(" -> ");else if("object"==typeof e){var o=[];for(var i in e)if(e.hasOwnProperty(i)){var a=e[i];o.push(i+":"+("string"==typeof a?JSON.stringify(a):Lt(a)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(Gn,"\n  ")}function Yn(t,e){return new Error($n(t,e))}var Jn=function(){return function(){}}(),Xn=function(){return function(){}}(),tr="ngProjectAs";function er(t){return!!t.listen}var nr={createRenderer:function(t,e){return document}},rr=[];function or(t){for(var e=t[ce];e&&2===e.type;)e=(t=t[ae])[ce];return t}function ir(t,e,n,r,o){0===t?er(e)?e.insertBefore(n,r,o):n.insertBefore(r,o,!0):1===t?er(e)?e.removeChild(n,r):n.removeChild(r):2===t&&e.destroyNode(r)}function ar(t){var e=t[oe].childIndex;return-1===e?null:t[e]}function sr(t,e){var n;return t.length>=re&&(n=t[ce])&&2===n.type?function(e,n){if(-1===e.index){var r=t[ve];return r>-1?t[ae][r]:null}return t[ae][e.parent.index]}(n):t[ae]===e?null:t[ae]}function ur(t){if(t.length>=re){var e=t;!function(t){var e=t[oe].cleanup;if(null!=e){for(var n=0;n<e.length-1;n+=2)"string"==typeof e[n]?(Ne(t[e[n+1]]).removeEventListener(e[n],t[he][e[n+2]],e[n+3]),n+=2):"number"==typeof e[n]?(0,t[he][e[n]])():e[n].call(t[he][e[n+1]]);t[he]=null}}(e),function(t){var e,n=t[oe];null!=n&&null!=(e=n.destroyHooks)&&Ee(t,e)}(e),(r=(n=e)[oe]&&n[oe].pipeDestroyHooks)&&Ee(n,r),-1===e[oe].id&&er(e[ye])&&e[ye].destroy()}var n,r}var lr={},cr=Promise.resolve(null);function pr(t,e){var n=rn(),r=cn;if(n.firstTemplatePass=!1,pn(!1),1!==e){var o=on(),i=un();i||function(t,e,n){16&t[ie]&&(Ce(t,e.initHooks,e.checkHooks,n),t[ie]&=-17)}(t,n,o),function(e){for(var n=ar(t);null!==n;n=n[se])if(n.length<re&&-1===n[Oe])for(var r=n,o=0;o<r[Pe].length;o++){var i=r[Pe][o];dr(i,i[oe],i[fe],2)}}(),function(t){if(null!=t.contentQueries)for(var e=0;e<t.contentQueries.length;e+=2){var n=t.contentQueries[e];t.data[n].contentQueriesRefresh(n-re,t.contentQueries[e+1])}}(n),i||Ce(t,n.contentHooks,n.contentCheckHooks,o),function(t,e){if(t.expandoInstructions)for(var n=e[pe]=t.expandoStartIndex,r=-1,o=-1,i=0;i<t.expandoInstructions.length;i++){var a=t.expandoInstructions[i];if("number"==typeof a)if(a<=0){o=-a;var s=t.expandoInstructions[++i];r=n+=Xt+s}else n+=a;else e[pe]=n,Xe(rn().data[o+re]),a(r-re,o),r++}}(n,t)}!function(t,e,n){if(null!=t)for(var r=0;r<t.length;r++)Cr(t[r],e,n)}(n.components,r,e)}function hr(t,e,n,r,o,i,a){var s=n.blueprint.slice();return s[ie]=25|o,s[ae]=s[ge]=t,s[fe]=r,s[de]=void 0===a?t?t[de]:null:a,s[ye]=e,s[me]=i||null,s}function fr(t,e,n,r,o){var i=an(),a=rn(),s=t+re;i[s]=n;var u=a.data[s];if(null==u){var l=Je(),c=en();u=a.data[s]=wr(i,e,s,r,o,null),l&&(!c||null!=l.child||null===u.parent&&2!==l.type?c||(l.next=u):l.child=u)}return null==a.firstChild&&3===e&&(a.firstChild=u),Xe(u),nn(!0),u}function dr(t,e,n,r){var o,i=en(),a=Je();if(nn(!0),Xe(null),64&t[ie])Sr(function(t){for(var e=Array.isArray(t)?t:Fe(t);e&&!(64&e[ie]);)e=e[ae];return e}(t)[fe]);else try{nn(!0),Xe(null),o=hn(t,t[ce]),gr(),e.template(r,n),2&r?pr(t,null):(t[oe].firstTemplatePass=!1,pn(!1))}finally{fn(o,1==(1&r)),nn(i),Xe(a)}}function yr(t,e,n,r){var o=Ye(),i=hn(t,t[ce]);try{o.begin&&o.begin(),r&&(gr(),r(n||mr(t),e)),pr(t,n)}finally{o.end&&o.end(),fn(i)}}function mr(t){return 1&t[ie]?3:2}var vr=null;function gr(){vr=null}function _r(t,e,n,r,o,i,a){var s=re+n,u=s+r,l=function(t,e){var n=new Array(e).fill(null,0,t).fill(lr,t);return n[ve]=-1,n[pe]=t,n}(s,u);return l[oe]={id:t,blueprint:l,template:e,viewQuery:a,node:null,data:l.slice(),childIndex:-1,bindingStartIndex:s,expandoStartIndex:u,expandoInstructions:null,firstTemplatePass:!0,initHooks:null,checkHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,pipeDestroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof i?i():i,firstChild:null}}function br(t,e){!function(t){Be=t}(t);var n=t.createRenderer(null,null);return"string"==typeof e?er(n)?n.selectRootElement(e):n.querySelector(e):e}function wr(t,e,n,r,o,i){var a=Je(),s=en()?a:a&&a.parent,u=s&&t&&s!==t[ce]?s:null;return{type:e,index:n,injectorIndex:u?u.injectorIndex:-1,flags:0,providerIndexes:0,tagName:r,attrs:o,localNames:null,initialInputs:void 0,inputs:void 0,outputs:void 0,tViews:i,next:null,child:null,parent:u,detached:null,stylingTemplate:null,projection:null}}function Cr(t,e,n){var r=je(t,an());Er(r)&&6&r[ie]&&(e&&function(t){for(var e=t[oe],n=t.length;n<e.blueprint.length;n++)t[n]=e.blueprint[n]}(r),kr(r,r[fe],n))}function Er(t){return 8==(8&t[ie])}function Sr(t){for(var e=0;e<t.components.length;e++){var n=t.components[e];yr(Fe(n),n,2)}}function xr(t){kr(function(t){var e,n=Ve(t);if(Array.isArray(n)){var r=function(t,e){var n=t[oe].components;if(n)for(var r=0;r<n.length;r++){var o=n[r];if(je(o,t)[fe]===e)return o}else if(je(re,t)[fe]===e)return re;return-1}(n,t);(o=function(t,e,n){return{lViewData:t,nodeIndex:e,native:n,component:void 0,directives:void 0,localRefs:void 0}}(n,r,(e=je(r,n))[le])).component=t,Dn(t,o),Dn(o.native,o)}else{var o;e=je((o=n).nodeIndex,o.lViewData)}return e}(t),t,null)}function Tr(t){Sr(t[fe])}function kr(t,e,n){var r=t[oe],o=hn(t,t[ce]),i=r.template,a=r.viewQuery;try{gr(),function(e,r,o,i){e&&(1===n||null===n&&1&t[ie])&&e(1,i)}(a,0,0,e),i(n||mr(t),e),pr(t,n),function(e,n,r){e&&2&t[ie]&&e(2,r)}(a,0,e)}finally{fn(o,1===n)}}var Dr,Or=cr,Pr=function(t){function e(e){var n=t.call(this,e,null,-1)||this;return n._view=e,n}return o(e,t),e.prototype.detectChanges=function(){Tr(this._view)},e.prototype.checkNoChanges=function(){!function(t){ln(!0);try{Tr(t)}finally{ln(!1)}}(this._view)},Object.defineProperty(e.prototype,"context",{get:function(){return null},enumerable:!0,configurable:!0}),e}(function(){function t(t,e,n){this._context=e,this._componentIndex=n,this._appRef=null,this._viewContainerRef=null,this._tViewNode=null,this._view=t}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return null==this._view[le]?function t(e,n,r){for(var o=n.child;o;)r.push(Me(o,e)),4===o.type&&t(e,o,r),o=o.next;return r}(this._view,this._view[ce],[]):[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._context?this._context:this._lookUpContext()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 32==(32&this._view[ie])},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){var t,e;this._viewContainerRef&&Er(this._view)&&(this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),this._viewContainerRef=null),er(e=(t=this._view)[ye])&&e.destroyNode&&function(e,n,r,o,i){for(var a=t[oe].node,s=-1,u=t,l=a.child;l;){var c=null;if(3===l.type){ir(2,r,null,Me(l,u),i);var p=u[l.index];y=p,Array.isArray(y)&&"number"==typeof y[Oe]&&ir(2,r,null,p[Ae],i)}else if(0===l.type){var h=u[l.index];ir(2,r,null,h[Ae],i),h[Pe].length&&(c=(u=h[Pe][0])[oe].node,i=h[Ae])}else if(1===l.type){var f=or(u),d=f[ce].projection[l.projection];rr[++s]=l,rr[++s]=u,d&&(c=(u=f[ae])[oe].data[d.index])}else c=l.child;if(null===c)for(null===l.next&&8192&l.flags&&(u=rr[s--],l=rr[s--]),c=l.next;!c;){if(null===(l=l.parent||u[oe].node)||l===a)return null;0===l.type&&(i=(u=u[ae])[l.index][Ae]),c=2===l.type&&u[se]?(u=u[se])[oe].node:l.next}l=c}var y}(0,0,e),function(t){if(-1===t[oe].childIndex)return ur(t);for(var e=ar(t);e;){var n=null;if(e.length>=re?e[oe].childIndex>-1&&(n=ar(e)):e[Pe].length&&(n=e[Pe][0]),null==n){for(;e&&!e[se]&&e!==t;)ur(e),e=sr(e,t);ur(e||t),n=e&&e[se]}e=n}}(t),t[ie]|=32},t.prototype.onDestroy=function(t){var e,n;n=t,function(t){return t[he]||(t[he]=[])}(e=this._view).push(n),e[oe].firstTemplatePass&&function(t){return t[oe].cleanup||(t[oe].cleanup=[])}(e).push(e[he].length-1,null)},t.prototype.markForCheck=function(){!function(t){for(var e=t;e&&!(64&e[ie]);)e[ie]|=4,e=e[ae];var n,r,o;e[ie]|=4,o=0===(n=e[fe]).flags,n.flags|=1,o&&n.clean==cr&&(n.clean=new Promise(function(t){return r=t}),n.scheduler(function(){if(1&n.flags&&(n.flags&=-2,Sr(n)),2&n.flags){n.flags&=-3;var t=n.playerHandler;t&&t.flushPlayers()}n.clean=cr,r(null)}))}(this._view)},t.prototype.detach=function(){this._view[ie]&=-9},t.prototype.reattach=function(){this._view[ie]|=8},t.prototype.detectChanges=function(){var t=Ye();t.begin&&t.begin(),xr(this.context),t.end&&t.end()},t.prototype.checkNoChanges=function(){!function(t){ln(!0);try{xr(t)}finally{ln(!1)}}(this.context)},t.prototype.attachToViewContainerRef=function(t){this._viewContainerRef=t},t.prototype.detachFromAppRef=function(){this._appRef=null},t.prototype.attachToAppRef=function(t){this._appRef=t},t.prototype._lookUpContext=function(){return this._context=this._view[ae][this._componentIndex]},t}());function Ar(t,e,n,r,o){var i=n[oe],a=function(t,e,n){var r=Je();t.firstTemplatePass&&(n.providersResolver&&n.providersResolver(n),function(t,e,n){var o=-(r.index-re),i=t.data.length-(65535&r.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(o,i,1)}(t),function(t,e,n,r){t.data.push(n);var o=new ee(r,function(t){return null!==t.template}(n),null);t.blueprint.push(o),e.push(o),function(t,e){t.expandoInstructions.push(e.hostBindings||On),e.hostVars&&t.expandoInstructions.push(e.hostVars)}(t,n)}(t,e,n,n.factory));var o=Sn(t.data,e,e.length-1,r);return function(t,e,n,r){var o=Me(e,t);Dn(n,t),o&&Dn(o,t),null!=r.attributes&&3==e.type&&function(t,e){for(var n=$e(),r=er(n),o=0;o<e.length;){var i=e[o];if(1===i)break;if(i===tr)o+=2;else if(0===i){var a=e[o+1],s=e[o+2],u=e[o+3];r?n.setAttribute(t,s,u,a):t.setAttributeNS(a,s,u),o+=4}else u=e[o+1],r?n.setAttribute(t,i,u):t.setAttribute(i,u),o+=2}}(o,r.attributes)}(e,r,o,n),o}(i,n,e);return r.components.push(a),t[fe]=a,o&&o.forEach(function(t){return t(a,e)}),i.firstTemplatePass&&function(t,e,n){for(var r=0;r<n;r++)e.push(lr),t.blueprint.push(lr),t.data.push(null)}(i,n,e.hostVars),a}function Ir(t,e){return{components:[],scheduler:t||Ze,clean:Or,playerHandler:e||null,flags:0}}function Rr(t,e){var n,r,o,i,a=Fe(t)[oe],s=a.data.length-1;n=s,o=e.doCheck,i=a,(r=e.onInit)&&(i.initHooks||(i.initHooks=[])).push(n,r),o&&((i.initHooks||(i.initHooks=[])).push(n,o),(i.checkHooks||(i.checkHooks=[])).push(n,o)),function(t,e){if(e.firstTemplatePass)for(var n=t>>16,r=n+(4095&t),o=n;o<r;o++){var i=e.data[o];_e(i,e,o),be(i,e,o),we(i,e,o)}}(s<<16|1,a)}var Nr=new Tt("The presence of this token marks an injector as being the root injector."),Mr={},jr={},Vr=[],Fr=void 0;function Lr(){return void 0===Fr&&(Fr=new Vn),Fr}var Ur=function(){function t(t,e,n){var r=this;this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this.destroyed=!1;var o=[];zr([t],function(t){return r.processInjectorType(t,[],o)}),e&&zr(e,function(t){return r.processProvider(t)}),this.records.set(jn,Br(void 0,this)),this.isRootInjector=this.records.has(Nr),this.injectorDefTypes.forEach(function(t){return r.get(t)})}return t.prototype.destroy=function(){this.assertNotDestroyed(),this.destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}},t.prototype.get=function(t,e,n){void 0===e&&(e=Mn),void 0===n&&(n=0),this.assertNotDestroyed();var r,o=Gt(this);try{if(!(4&n)){var i=this.records.get(t);if(void 0===i){var a=("function"==typeof(r=t)||"object"==typeof r&&r instanceof Tt)&&St(t);a&&this.injectableDefInScope(a)&&(i=Br(Hr(t),Mr),this.records.set(t,i))}if(void 0!==i)return this.hydrate(t,i)}return(2&n?Lr():this.parent).get(t,e)}finally{Gt(o)}},t.prototype.assertNotDestroyed=function(){if(this.destroyed)throw new Error("Injector has already been destroyed.")},t.prototype.processInjectorType=function(t,e,n){var r=this;if(t=In(t)){var o=xt(t),i=null==o&&t.ngModule||void 0,a=void 0===i?t:i;if(-1===n.indexOf(a)){var s=void 0!==i&&t.providers||Vr;if(void 0!==i&&(o=xt(i)),null!=o){if(this.injectorDefTypes.add(a),this.records.set(a,Br(o.factory)),null!=o.imports){n.push(a);try{zr(o.imports,function(t){return r.processInjectorType(t,e,n)})}finally{}}null!=o.providers&&zr(o.providers,function(t){return r.processProvider(t)}),zr(s,function(t){return r.processProvider(t)})}}}},t.prototype.processProvider=function(t){var e=Wr(t=In(t))?t:In(t.provide),n=function(t){var e=function(t){var e=void 0;if(Wr(t))return Hr(In(t));if(qr(t))e=function(){return In(t.useValue)};else if(t.useExisting)e=function(){return Kt(In(t.useExisting))};else if(t.useFactory)e=function(){return t.useFactory.apply(t,c($t(t.deps||[])))};else{var n=In(t.useClass||t.provide);if(!t.deps)return Hr(n);e=function(){return new(n.bind.apply(n,c([void 0],$t(t.deps))))}}return e}(t);return qr(t)?Br(void 0,t.useValue):Br(e,Mr)}(t);if(Wr(t)||!0!==t.multi){var r=this.records.get(e);if(r&&void 0!==r.multi)throw new Error("Mixed multi-provider for "+Lt(e))}else{var o=this.records.get(e);if(o){if(void 0===o.multi)throw new Error("Mixed multi-provider for "+e+".")}else(o=Br(void 0,Mr,!0)).factory=function(){return $t(o.multi)},this.records.set(e,o);e=t,o.multi.push(t)}this.records.set(e,n)},t.prototype.hydrate=function(t,e){if(e.value===jr)throw new Error("Circular dep for "+Lt(t));var n;return e.value===Mr&&(e.value=jr,e.value=e.factory()),"object"==typeof e.value&&e.value&&"object"==typeof(n=e.value)&&null!=n&&n.ngOnDestroy&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value},t.prototype.injectableDefInScope=function(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||"root"===t.providedIn&&this.isRootInjector:this.injectorDefTypes.has(t.providedIn))},t}();function Hr(t){var e=St(t);if(null===e){if(t instanceof Tt)throw new Error("Token "+Lt(t)+" is missing an ngInjectableDef definition.");return function(){return new t}}return e.factory}function Br(t,e,n){return void 0===e&&(e=Mr),void 0===n&&(n=!1),{factory:t,value:e,multi:n?[]:void 0}}function zr(t,e){t.forEach(function(t){return Array.isArray(t)?zr(t,e):e(t)})}function qr(t){return qn in t}function Wr(t){return"function"==typeof t}var Gr=function(){return function(){}}(),Qr=function(){return function(){}}();function Kr(t){var e=Error("No component factory found for "+Lt(t)+". Did you add it to @NgModule.entryComponents?");return e[Zr]=t,e}var Zr="ngComponent",$r=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw Kr(t)},t}(),Yr=function(){function t(){}return t.NULL=new $r,t}(),Jr=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 o=t[r];this._factories.set(o.componentType,o)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t);if(!e&&this._parent&&(e=this._parent.resolveComponentFactory(t)),!e)throw Kr(t);return new Xr(e,this._ngModule)},t}(),Xr=function(t){function e(e,n){var r=t.call(this)||this;return r.factory=e,r.ngModule=n,r.selector=e.selector,r.componentType=e.componentType,r.ngContentSelectors=e.ngContentSelectors,r.inputs=e.inputs,r.outputs=e.outputs,r}return o(e,t),e.prototype.create=function(t,e,n,r){return this.factory.create(t,e,n,r||this.ngModule)},e}(Qr),to=function(){function t(t){this.nativeElement=t}return t.__NG_ELEMENT_ID__=function(){return eo(t)},t}(),eo=On,no=function(){return function(){}}(),ro=function(){return function(){}}(),oo=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({}),io=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return ao()},t}(),ao=On,so=new(function(){return function(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}())("7.1.0"),uo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.resolveComponentFactory=function(t){return new yo(t[gt]||null)},e}(Yr);function lo(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var co=new Tt("ROOT_CONTEXT_TOKEN",{providedIn:"root",factory:function(){return Ir(Kt(po))}}),po=new Tt("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Ze}}),ho=new Tt("WRAP_RENDERER_FACTORY2"),fo={},yo=function(t){function e(e){var n=t.call(this)||this;return n.componentDef=e,n.componentType=e.type,n.selector=e.selectors[0][0],n.ngContentSelectors=[],n}return o(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){return lo(this.componentDef.inputs)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return lo(this.componentDef.outputs)},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){var i,a=void 0===n;i=r?r.injector.get(ho,function(t){return t})(r.injector.get(ro)):nr;var s,u,l=a?(s=this.selector,er(u=i.createRenderer(null,this.componentDef)||$e())?u.createElement(s,vr):null===vr?u.createElement(s):u.createElementNS(vr,s)):br(i,n),c=this.componentDef.onPush?68:66,p=r&&!a?r.injector.get(co):Ir(),h=i.createRenderer(l,this.componentDef),f=r?function(t,e){return{get:function(n,r){var o=t.get(n,fo);return o!==fo?o:e.get(n,r)}}}(t,r.injector):t;n&&l&&(er(h)?h.setAttribute(l,"ng-version",so.full):l.setAttribute("ng-version",so.full));var d,y,m=hr(null,h,_r(-1,null,1,0,null,null,null),p,c,void 0,f),v=hn(m,null);try{i.begin&&i.begin();var g=function(t,e,n,r,o){qe=!1,ze=null;var i,a,s,u=n[oe],l=hr(n,r,(i=e.template).ngPrivateData||(i.ngPrivateData=_r(-1,i,e.consts,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery)),null,e.onPush?4:2,o),c=fr(0,3,t,null,null);return u.firstTemplatePass&&(a=gn(c,n),s=e.type,function(t,e,n){var r=s[Ct];null==r&&(r=s[Ct]=vn++);var o=r&mn,i=1<<o,a=64&o,u=32&o,l=e.data;128&o?a?u?l[t+7]|=i:l[t+6]|=i:u?l[t+5]|=i:l[t+4]|=i:a?u?l[t+3]|=i:l[t+2]|=i:u?l[t+1]|=i:l[t]|=i}(a,n[oe]),c.flags=4096,function(t,e,n){t.flags=e<<16|4096&t.flags|1,t.providerIndexes=e}(c,n.length),function(t){var e=rn();(e.components||(e.components=[])).push(t.index)}(c)),l[le]=n[re],l[ce]=c,n[re]=l}(l,this.componentDef,m,h);if(y=m[oe].data[0+re],e)for(var _=0,b=m[oe],w=y.projection=[],C=0;C<e.length;C++){for(var E=e[C],S=null,x=null,T=0;T<E.length;T++){b.firstTemplatePass&&(b.expandoStartIndex++,b.blueprint.splice(++_+re,0,null),b.data.splice(_+re,0,null),m.splice(_+re,0,null));var k=fr(_,3,E[T],null,null);x?x.next=k:S=k,x=k}w.push(S)}d=Ar(g,this.componentDef,m,p,[Rr]),pr(m,1)}finally{fn(v,!0),i.end&&i.end()}var D=new mo(this.componentType,d,function(t,e,n){return Dr||(Dr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(to)),new Dr(Me(e,n))}(0,y,m),m,y);return a&&(D.hostView._tViewNode.child=y),D},e}(Qr),mo=function(t){function e(e,n,r,o,i){var a=t.call(this)||this;return a.location=r,a._rootView=o,a._tNode=i,a.destroyCbs=[],a.instance=n,a.hostView=a.changeDetectorRef=new Pr(o),a.hostView._tViewNode=function(t,e){null==e[oe].node&&(e[oe].node=wr(e,2,-1,null,null,null)),nn(!0);var n=e[oe].node;return Xe(n),e[ce]=n}(0,o),a.componentType=e,a}return o(e,t),Object.defineProperty(e.prototype,"injector",{get:function(){return new kn(this._tNode,this._rootView)},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null},e.prototype.onDestroy=function(t){this.destroyCbs.push(t)},e}(Gr),vo=!0,go=!1;function _o(){return go=!0,vo}var bo=function(){function t(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){var e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e),this.inertBodyElement=this.inertDocument.createElement("body"),e.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t="<body><remove></remove>"+t+"</body>";try{t=encodeURI(t)}catch(r){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t="<body><remove></remove>"+t+"</body>";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(n){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0<n;n--){var r=e.item(n).name;"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||t.removeAttribute(r)}for(var o=t.firstChild;o;)o.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(o),o=o.nextSibling},t}(),wo=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,Co=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Eo(t){return(t=String(t)).match(wo)||t.match(Co)?t:(_o()&&console.warn("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function So(t){var e,n,r={};try{for(var o=u(t.split(",")),i=o.next();!i.done;i=o.next())r[i.value]=!0}catch(a){e={error:a}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}function xo(){for(var t,e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o={};try{for(var i=u(n),a=i.next();!a.done;a=i.next()){var s=a.value;for(var l in s)s.hasOwnProperty(l)&&(o[l]=!0)}}catch(c){t={error:c}}finally{try{a&&!a.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return o}var To,ko=So("area,br,col,hr,img,wbr"),Do=So("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Oo=So("rp,rt"),Po=xo(Oo,Do),Ao=xo(ko,xo(Do,So("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")),xo(Oo,So("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")),Po),Io=So("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ro=So("srcset"),No=xo(Io,Ro,So("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")),Mo=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild,n=!0;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);var r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")},t.prototype.startElement=function(t){var e,n=t.nodeName.toLowerCase();if(!Ao.hasOwnProperty(n))return this.sanitizedSomething=!0,!1;this.buf.push("<"),this.buf.push(n);for(var r=t.attributes,o=0;o<r.length;o++){var i=r.item(o),a=i.name,s=a.toLowerCase();if(No.hasOwnProperty(s)){var u=i.value;Io[s]&&(u=Eo(u)),Ro[s]&&(e=u,u=(e=String(e)).split(",").map(function(t){return Eo(t.trim())}).join(", ")),this.buf.push(" ",a,'="',Fo(u),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();Ao.hasOwnProperty(e)&&!ko.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(Fo(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),jo=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Vo=/([^\#-~ |!])/g;function Fo(t){return t.replace(/&/g,"&amp;").replace(jo,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Vo,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Lo(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Uo={provide:Yr,useFactory:function(){return new uo},deps:[]},Ho=function(t){function e(e,n){var r=t.call(this)||this;return r._bootstrapComponents=[],r.destroyCbs=[],r._bootstrapComponents=(e[wt]||null).bootstrap,r.injector=function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),e=e||Lr(),new Ur(t,n,e)}(e,n,[Uo,{provide:Jn,useValue:r}]),r.instance=r.injector.get(e),r.componentFactoryResolver=new uo,r}return o(e,t),e.prototype.destroy=function(){this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null},e.prototype.onDestroy=function(t){this.destroyCbs.push(t)},e}(Jn);!function(t){function e(e){var n=t.call(this)||this;return n.moduleType=e,n}o(e,t),e.prototype.create=function(t){return new Ho(this.moduleType,t)}}(Xn);var Bo=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return o(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var o,i=function(t){return null},a=function(){return null};e&&"object"==typeof e?(o=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(i=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(a=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(o=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(i=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(a=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var s=t.prototype.subscribe.call(this,o,i,a);return e instanceof b&&e.add(s),s},e}(L),zo=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return qo(t,to)},t}(),qo=On,Wo=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({}),Go=function(){return function(){}}(),Qo=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"),Ko=/^url\(([^)]+)\)$/;Function,String,String;var Zo="ngDebugContext",$o="ngOriginalError",Yo="ngErrorLogger";function Jo(t){return t[Zo]}function Xo(t){return t[$o]}function ti(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,c(e))}var ei=function(){function t(){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t[Yo]||ti}(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?Jo(t)?Jo(t):this._findContext(Xo(t)):null},t.prototype._findOriginalError=function(t){for(var e=Xo(t);e&&Xo(e);)e=Xo(e);return e},t}();function ni(t){return!!t&&"function"==typeof t.then}function ri(t){return!!t&&"function"==typeof t.subscribe}var oi=new Tt("Application Initializer"),ii=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 o=this.appInits[r]();ni(o)&&e.push(o)}Promise.all(e).then(function(){n()}).catch(function(e){t.reject(e)}),0===e.length&&n(),this.initialized=!0}},t}(),ai=new Tt("AppId");function si(){return""+ui()+ui()+ui()}function ui(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var li=new Tt("Platform Initializer"),ci=new Tt("Platform ID"),pi=new Tt("appBootstrapListener"),hi=function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t}();function fi(){throw new Error("Runtime compiler is not loaded")}var di,yi,mi=function(){function t(){}return t.prototype.compileModuleSync=function(t){throw fi()},t.prototype.compileModuleAsync=function(t){throw fi()},t.prototype.compileModuleAndAllComponentsSync=function(t){throw fi()},t.prototype.compileModuleAndAllComponentsAsync=function(t){throw fi()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(t){},t.prototype.getModuleId=function(t){},t}(),vi=function(){return function(){}}();function gi(){var t=Rt.wtf;return!(!t||!(di=t.trace)||(yi=di.events,0))}var _i=gi();function bi(t,e){return null}var wi=_i?function(t,e){return void 0===e&&(e=null),yi.createScope(t,e)}:function(t,e){return bi},Ci=_i?function(t,e){return di.leaveScope(t,e),e}:function(t,e){return e},Ei=function(){function t(t){var e,n=t.enableLongStackTrace,r=void 0!==n&&n;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Bo(!1),this.onMicrotaskEmpty=new Bo(!1),this.onStable=new Bo(!1),this.onError=new Bo(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(e=this)._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(t,n,r,o,i,a){try{return ki(e),t.invokeTask(r,o,i,a)}finally{Di(e)}},onInvoke:function(t,n,r,o,i,a,s){try{return ki(e),t.invoke(r,o,i,a,s)}finally{Di(e)}},onHasTask:function(t,n,r,o){t.hasTask(r,o),n===r&&("microTask"==o.change?(e.hasPendingMicrotasks=o.microTask,Ti(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:function(t,n,r,o){return t.handleError(r,o),e.runOutsideAngular(function(){return e.onError.emit(o)}),!1}})}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,e,n){return this._inner.run(t,e,n)},t.prototype.runTask=function(t,e,n,r){var o=this._inner,i=o.scheduleEventTask("NgZoneEvent: "+r,t,xi,Si,Si);try{return o.runTask(i,e,n)}finally{o.cancelTask(i)}},t.prototype.runGuarded=function(t,e,n){return this._inner.runGuarded(t,e,n)},t.prototype.runOutsideAngular=function(t){return this._outer.run(t)},t}();function Si(){}var xi={};function Ti(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 ki(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Di(t){t._nesting--,Ti(t)}var Oi,Pi=function(){function t(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Bo,this.onMicrotaskEmpty=new Bo,this.onStable=new Bo,this.onError=new Bo}return t.prototype.run=function(t){return t()},t.prototype.runGuarded=function(t){return t()},t.prototype.runOutsideAngular=function(t){return t()},t.prototype.runTask=function(t){return t()},t}(),Ai=function(){function t(t){var e=this;this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(function(){e.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}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(){Ei.assertNotInAngularZone(),Vt(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;if(this.isStable())Vt(function(){for(;0!==t._callbacks.length;){var e=t._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(t._didWork)}t._didWork=!1});else{var e=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(t){return!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)}),this._didWork=!0}},t.prototype.getPendingTasks=function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(t){return{source:t.source,creationLocation:t.creationLocation,data:t.data}}):[]},t.prototype.addCallback=function(t,e,n){var r=this,o=-1;e&&e>0&&(o=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==o}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),Ii=function(){function t(){this._applications=new Map,Ri.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},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),Ri.findTestabilityInTree(this,t,e)},a([s("design:paramtypes",[])],t)}(),Ri=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),Ni=new Tt("AllowMultipleToken"),Mi=function(){return function(t,e){this.name=t,this.token=e}}();function ji(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,o=new Tt(r);return function(e){void 0===e&&(e=[]);var i=Vi();if(!i||i.injector.get(Ni,!1))if(t)t(n.concat(e).concat({provide:o,useValue:!0}));else{var a=n.concat(e).concat({provide:o,useValue:!0});!function(t){if(Oi&&!Oi.destroyed&&!Oi.injector.get(Ni,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Oi=t.get(Fi);var e=t.get(li,null);e&&e.forEach(function(t){return t()})}(Fn.create({providers:a,name:r}))}return function(t){var e=Vi();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}(o)}}function Vi(){return Oi&&!Oi.destroyed?Oi:null}var Fi=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r=this,o="noop"===(n=e?e.ngZone:void 0)?new Pi:("zone.js"===n?void 0:n)||new Ei({enableLongStackTrace:_o()}),i=[{provide:Ei,useValue:o}];return o.run(function(){var e=Fn.create({providers:i,parent:r.injector,name:t.moduleType.name}),n=t.create(e),a=n.injector.get(ei,null);if(!a)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return Hi(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(t){a.handleError(t)}})}),function(t,e,o){try{var i=((a=n.injector.get(ii)).runInitializers(),a.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return ni(i)?i.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):i}catch(s){throw e.runOutsideAngular(function(){return t.handleError(s)}),s}var a}(a,o)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=Li({},e);return function(t,e,n){return t.get(vi).createCompiler([e]).compileModuleAsync(n)}(this.injector,r,t).then(function(t){return n.bootstrapModuleFactory(t,r)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Ui);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+Lt(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)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.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},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function Li(t,e){return Array.isArray(e)?e.reduce(Li,t):i({},t,e)}var Ui=function(){function t(t,e,n,r,o,i){var a=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=_o(),this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var s=new R(function(t){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){t.next(a._stable),t.complete()})}),u=new R(function(t){var e;a._zone.runOutsideAngular(function(){e=a._zone.onStable.subscribe(function(){Ei.assertNotInAngularZone(),Vt(function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,t.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){Ei.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,o=t[t.length-1];return H(o)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof R?t[0]:lt(n)(rt(t,r))}(s,u.pipe(function(t){return ct()((e=mt,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,dt);return r.source=t,r.subjectFactory=n,r})(t));var e}))}var e;return e=t,t.prototype.bootstrap=function(t,e){var n,r=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.");n=t instanceof Qr?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var o=n instanceof Xr?null:this._injector.get(Jn),i=n.create(Fn.NULL,[],e||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var a=i.injector.get(Ai,null);return a&&i.injector.get(Ii).registerApplication(i.location.nativeElement,a),this._loadComponent(i),_o()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},t.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(r){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(r)})}finally{this._runningTick=!1,Ci(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;Hi(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(pi,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),Hi(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=wi("ApplicationRef#tick()"),t}();function Hi(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Bi=function(){return function(){}}(),zi=function(){function t(){this.dirty=!0,this._results=[],this.changes=new Bo,this.length=0}return 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[jt()]=function(){return this._results[jt()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),qi=function(){return function(){}}(),Wi={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Gi=function(){function t(t,e){this._compiler=t,this._config=e||Wi}return t.prototype.load=function(t){return this._compiler instanceof mi?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=l(t.split("#"),2),o=r[0],i=r[1];return void 0===i&&(i="default"),n("crnd")(o).then(function(t){return t[i]}).then(function(t){return Qi(t,o,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=l(t.split("#"),2),r=e[0],o=e[1],i="NgFactory";return void 0===o&&(o="default",i=""),n("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[o+i]}).then(function(t){return Qi(t,r,o)})},t}();function Qi(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var Ki,Zi=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return $i(t,to)},t}(),$i=On,Yi=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return Ji()},t}(),Ji=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},Xi=(o(function(){return null!==Ki&&Ki.apply(this,arguments)||this},Ki=Yi),function(){return function(t,e){this.name=t,this.callback=e}}()),ta=function(){function t(t,e,n){this.nativeNode=t,this._debugContext=n,this.listeners=[],this.parent=null,e&&e instanceof ea&&e.addChild(this)}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}),t}(),ea=function(t){function e(e,n,r){var o=t.call(this,e,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return o(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,r=this,o=this.childNodes.indexOf(t);-1!==o&&((n=this.childNodes).splice.apply(n,c([o+1,0],e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=r}))},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 function t(e,n,r){e.childNodes.forEach(function(e){e instanceof ea&&(n(e)&&r.push(e),t(e,n,r))})}(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return function t(e,n,r){e instanceof ea&&e.childNodes.forEach(function(e){n(e)&&r.push(e),e instanceof ea&&t(e,n,r)})}(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}(ta),na=new Map;function ra(t){return na.get(t)||null}function oa(t){na.set(t.nativeNode,t)}var ia=function(){function t(){}return t.prototype.supports=function(t){return ke(t)},t.prototype.create=function(t){return new sa(t)},t}(),aa=function(t,e){return e},sa=function(){function t(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||aa}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,o=null;e||n;){var i=!n||e&&e.currentIndex<pa(n,r,o)?e:n,a=pa(i,r,o),s=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(e=e._next,null==i.previousIndex)r++;else{o||(o=[]);var u=a-r,l=s-r;if(u!=l){for(var c=0;c<u;c++){var p=c<o.length?o[c]:o[c]=0,h=p+c;l<=h&&h<u&&(o[c]=p+1)}o[i.previousIndex]=l-u}}a!==s&&t(i,a,s)}},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=[]),!ke(t))throw new Error("Error trying to diff '"+Lt(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,o,i=this._itHead,a=!1;if(Array.isArray(t)){this.length=t.length;for(var s=0;s<this.length;s++)o=this._trackByFn(s,r=t[s]),null!==i&&Ft(i.trackById,o)?(a&&(i=this._verifyReinsertion(i,r,o,s)),Ft(i.item,r)||this._addIdentityChange(i,r)):(i=this._mismatch(i,r,o,s),a=!0),i=i._next}else n=0,function(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var r=t[jt()](),o=void 0;!(o=r.next()).done;)e(o.value)}(t,function(t){o=e._trackByFn(n,t),null!==i&&Ft(i.trackById,o)?(a&&(i=e._verifyReinsertion(i,t,o,n)),Ft(i.item,t)||e._addIdentityChange(i,t)):(i=e._mismatch(i,t,o,n),a=!0),i=i._next,n++}),this.length=n;return this._truncate(i),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 o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Ft(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Ft(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):t=this._addAfter(new ua(e,n),o,r),t},t.prototype._verifyReinsertion=function(t,e,n,r){var o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?t=this._reinsertAfter(o,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,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._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),this._additionsTail=null===this._additionsTail?this._additionsHead=t: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 ca),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:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ca),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,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t},t}(),ua=function(){return function(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}}(),la=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)&&Ft(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}(),ca=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 la,this.map.set(e,n)),n.add(t)},t.prototype.get=function(t,e){var n=this.map.get(t);return n?n.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}();function pa(t,e,n){var r=t.previousIndex;if(null===r)return r;var o=0;return n&&r<n.length&&(o=n[r]),r+e+o}var ha=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||De(t)},t.prototype.create=function(){return new fa},t}(),fa=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||De(t)))throw new Error("Error trying to diff '"+Lt(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 o=e._getOrCreateRecordForKey(r,t);n=e._insertBeforeOrAppend(n,o)}}),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,o=n._next;return r&&(r._next=o),o&&(o._prev=r),n._next=null,n._prev=null,n}var i=new da(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i},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){Ft(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}(),da=function(){return function(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}}(),ya=function(){function t(t){this.factories=t}return t.create=function(e,n){if(null!=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 IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new qt,new Bt]]}},t.prototype.find=function(t){var e,n=this.factories.find(function(e){return e.supports(t)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'")},t.ngInjectableDef=Et({providedIn:"root",factory:function(){return new t([new ia])}}),t}(),ma=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 qt,new Bt]]}},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.ngInjectableDef=Et({providedIn:"root",factory:function(){return new t([new ha])}}),t}(),va=[new ha],ga=new ya([new ia]),_a=new ma(va),ba=ji(null,"core",[{provide:ci,useValue:"unknown"},{provide:Fi,deps:[Fn]},{provide:Ii,deps:[]},{provide:hi,deps:[]}]),wa=new Tt("LocaleId");function Ca(){return ga}function Ea(){return _a}function Sa(t){return t||"en-US"}var xa=function(){return function(t){}}();function Ta(t,e,n){var r=t.state,o=1792&r;return o===e?(t.state=-1793&r|n,t.initIndex=-1,!0):o===n}function ka(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function Da(t,e){return t.nodes[e]}function Oa(t,e){return t.nodes[e]}function Pa(t,e){return t.nodes[e]}function Aa(t,e){return t.nodes[e]}function Ia(t,e){return t.nodes[e]}var Ra={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0};function Na(t,e,n,r){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(o+=" 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 ?"),function(t,e){var n=new Error(t);return Ma(n,e),n}(o,t)}function Ma(t,e){t[Zo]=e,t[Yo]=e.logError.bind(e)}function ja(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}var Va=function(){},Fa=new Map;function La(t){var e=Fa.get(t);return e||(e=Lt(t)+"_"+Fa.size,Fa.set(t,e)),e}var Ua="$$undefined",Ha="$$empty";function Ba(t){return{id:Ua,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}var za=0;function qa(t,e,n,r){return!(!(2&t.state)&&Ft(t.oldValues[e.bindingIndex+n],r))}function Wa(t,e,n,r){return!!qa(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function Ga(t,e,n,r){var o=t.oldValues[e.bindingIndex+n];if(1&t.state||!Se(o,r)){var i=e.bindings[n].name;throw Na(Ra.createDebugContext(t,e.nodeIndex),i+": "+o,i+": "+r,0!=(1&t.state))}}function Qa(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function Ka(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function Za(t,e,n,r){try{return Qa(33554432&t.def.nodes[e].flags?Oa(t,e).componentView:t),Ra.handleEvent(t,e,n,r)}catch(o){t.root.errorHandler.handleError(o)}}function $a(t){return t.parent?Oa(t.parent,t.parentNodeDef.nodeIndex):null}function Ya(t){return t.parent?t.parentNodeDef.parent:null}function Ja(t,e){switch(201347067&e.flags){case 1:return Oa(t,e.nodeIndex).renderElement;case 2:return Da(t,e.nodeIndex).renderText}}function Xa(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function ts(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function es(t){var e={},n=0,r={};return t&&t.forEach(function(t){var o=l(t,2),i=o[0],a=o[1];"number"==typeof i?(e[i]=a,n|=function(t){return 1<<t%32}(i)):r[i]=a}),{matchedQueries:e,references:r,matchedQueryIds:n}}function ns(t,e){return t.map(function(t){var n,r,o;return Array.isArray(t)?(o=(n=l(t,2))[0],r=n[1]):(o=0,r=t),r&&("function"==typeof r||"object"==typeof r)&&e&&Object.defineProperty(r,Rn,{value:e,configurable:!0}),{flags:o,token:r,tokenKey:La(r)}})}function rs(t,e,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===Pt.Native?Oa(t,n.renderParent.nodeIndex).renderElement:void 0:e}var os=new WeakMap;function is(t){var e=os.get(t);return e||((e=t(function(){return Va})).factory=t,os.set(t,e)),e}function as(t,e,n,r,o){3===e&&(n=t.renderer.parentNode(Ja(t,t.def.lastRenderRootNode))),ss(t,e,0,t.def.nodes.length-1,n,r,o)}function ss(t,e,n,r,o,i,a){for(var s=n;s<=r;s++){var u=t.def.nodes[s];11&u.flags&&ls(t,u,e,o,i,a),s+=u.childCount}}function us(t,e,n,r,o,i){for(var a=t;a&&!Xa(a);)a=a.parent;for(var s=a.parent,u=Ya(a),l=u.nodeIndex+u.childCount,c=u.nodeIndex+1;c<=l;c++){var p=s.def.nodes[c];p.ngContentIndex===e&&ls(s,p,n,r,o,i),c+=p.childCount}if(!s.parent){var h=t.root.projectableNodes[e];if(h)for(c=0;c<h.length;c++)cs(t,h[c],n,r,o,i)}}function ls(t,e,n,r,o,i){if(8&e.flags)us(t,e.ngContent.index,n,r,o,i);else{var a=Ja(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags?(16&e.bindingFlags&&cs(t,a,n,r,o,i),32&e.bindingFlags&&cs(Oa(t,e.nodeIndex).componentView,a,n,r,o,i)):cs(t,a,n,r,o,i),16777216&e.flags)for(var s=Oa(t,e.nodeIndex).viewContainer._embeddedViews,u=0;u<s.length;u++)as(s[u],n,r,o,i);1&e.flags&&!e.element.name&&ss(t,n,e.nodeIndex+1,e.nodeIndex+e.childCount,r,o,i)}}function cs(t,e,n,r,o,i){var a=t.renderer;switch(n){case 1:a.appendChild(r,e);break;case 2:a.insertBefore(r,e,o);break;case 3:a.removeChild(r,e);break;case 0:i.push(e)}}var ps=/^:([^:]+):(.+)$/;function hs(t){if(":"===t[0]){var e=t.match(ps);return[e[1],e[2]]}return["",t]}function fs(t){for(var e=0,n=0;n<t.length;n++)e|=t[n].flags;return e}function ds(t,e,n,r,o,i){t|=1;var a=es(e);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a.matchedQueries,matchedQueryIds:a.matchedQueryIds,references:a.references,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?is(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:o||Va},provider:null,text:null,query:null,ngContent:null}}function ys(t,e,n,r,o,i,a,s,u,c,p,h){var f;void 0===a&&(a=[]),c||(c=Va);var d=es(n),y=d.matchedQueries,m=d.references,v=d.matchedQueryIds,g=null,_=null;i&&(g=(f=l(hs(i),2))[0],_=f[1]),s=s||[];for(var b=new Array(s.length),w=0;w<s.length;w++){var C=l(s[w],3),E=C[0],S=C[2],x=l(hs(C[1]),2),T=x[0],k=x[1],D=void 0,O=void 0;switch(15&E){case 4:O=S;break;case 1:case 8:D=S}b[w]={flags:E,ns:T,name:k,nonMinifiedName:k,securityContext:D,suffix:O}}u=u||[];var P=new Array(u.length);for(w=0;w<u.length;w++){var A=l(u[w],2);P[w]={type:0,target:A[0],eventName:A[1],propName:null}}var I=(a=a||[]).map(function(t){var e=l(t,2),n=e[1],r=l(hs(e[0]),2);return[r[0],r[1],n]});return h=function(t){if(t&&t.id===Ua){var e=null!=t.encapsulation&&t.encapsulation!==Pt.None||t.styles.length||Object.keys(t.data).length;t.id=e?"c"+za++:Ha}return t&&t.id===Ha&&(t=null),t||null}(h),p&&(e|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:y,matchedQueryIds:v,references:m,ngContentIndex:r,childCount:o,bindings:b,bindingFlags:fs(b),outputs:P,element:{ns:g,name:_,attrs:I,template:null,componentProvider:null,componentView:p||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:c||Va},provider:null,text:null,query:null,ngContent:null}}function ms(t,e,n){var r,o=n.element,i=t.root.selectorOrNode,a=t.renderer;if(t.parent||!i){r=o.name?a.createElement(o.name,o.ns):a.createComment("");var s=rs(t,e,n);s&&a.appendChild(s,r)}else r=a.selectRootElement(i,!!o.componentRendererType&&o.componentRendererType.encapsulation===Pt.ShadowDom);if(o.attrs)for(var u=0;u<o.attrs.length;u++){var c=l(o.attrs[u],3);a.setAttribute(r,c[1],c[2],c[0])}return r}function vs(t,e,n,r){for(var o=0;o<n.outputs.length;o++){var i=n.outputs[o],a=gs(t,n.nodeIndex,(p=i.eventName,(c=i.target)?c+":"+p:p)),s=i.target,u=t;"component"===i.target&&(s=null,u=e);var l=u.renderer.listen(s||r,i.eventName,a);t.disposables[n.outputIndex+o]=l}var c,p}function gs(t,e,n){return function(r){return Za(t,e,n,r)}}function _s(t,e,n,r){if(!Wa(t,e,n,r))return!1;var o=e.bindings[n],i=Oa(t,e.nodeIndex),a=i.renderElement,s=o.name;switch(15&o.flags){case 1:!function(t,e,n,r,o,i){var a=e.securityContext,s=a?t.root.sanitizer.sanitize(a,i):i;s=null!=s?s.toString():null;var u=t.renderer;null!=i?u.setAttribute(n,o,s,r):u.removeAttribute(n,o,r)}(t,o,a,o.ns,s,r);break;case 2:!function(t,e,n,r){var o=t.renderer;r?o.addClass(e,n):o.removeClass(e,n)}(t,a,s,r);break;case 4:!function(t,e,n,r,o){var i=t.root.sanitizer.sanitize(Wo.STYLE,o);if(null!=i){i=i.toString();var a=e.suffix;null!=a&&(i+=a)}else i=null;var s=t.renderer;null!=i?s.setStyle(n,r,i):s.removeStyle(n,r)}(t,o,a,s,r);break;case 8:!function(t,e,n,r,o){var i=e.securityContext,a=i?t.root.sanitizer.sanitize(i,o):o;t.renderer.setProperty(n,r,a)}(33554432&e.flags&&32&o.flags?i.componentView:t,o,a,s,r)}return!0}var bs=new Object,ws=La(Fn),Cs=La(jn),Es=La(Jn);function Ss(t,e,n,r){return n=In(n),{index:-1,deps:ns(r,Lt(e)),flags:t,token:e,value:n}}function xs(t,e,n){void 0===n&&(n=Fn.THROW_IF_NOT_FOUND);var r,o,i=Gt(t);try{if(8&e.flags)return e.token;if(2&e.flags&&(n=null),1&e.flags)return t._parent.get(e.token,n);var a=e.tokenKey;switch(a){case ws:case Cs:case Es:return t}var s,u=t._def.providersByKey[a];if(u){var l=t._providers[u.index];return void 0===l&&(l=t._providers[u.index]=Ts(t,u)),l===bs?void 0:l}if((s=St(e.token))&&(r=t,null!=(o=s).providedIn&&(function(t,e){return t._def.modules.indexOf(o.providedIn)>-1}(r)||"root"===o.providedIn&&r._def.isRoot))){var c=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:s.factory,deps:[],index:c,token:e.token},t._providers[c]=bs,t._providers[c]=Ts(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{Gt(i)}}function Ts(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(xs(t,n[0]));case 2:return new e(xs(t,n[0]),xs(t,n[1]));case 3:return new e(xs(t,n[0]),xs(t,n[1]),xs(t,n[2]));default:for(var o=new Array(r),i=0;i<r;i++)o[i]=xs(t,n[i]);return new(e.bind.apply(e,c([void 0],o)))}}(t,e.value,e.deps);break;case 1024:n=function(t,e,n){var r=n.length;switch(r){case 0:return e();case 1:return e(xs(t,n[0]));case 2:return e(xs(t,n[0]),xs(t,n[1]));case 3:return e(xs(t,n[0]),xs(t,n[1]),xs(t,n[2]));default:for(var o=Array(r),i=0;i<r;i++)o[i]=xs(t,n[i]);return e.apply(void 0,c(o))}}(t,e.value,e.deps);break;case 2048:n=xs(t,e.deps[0]);break;case 256:n=e.value}return n===bs||null==n||"object"!=typeof n||131072&e.flags||"function"!=typeof n.ngOnDestroy||(e.flags|=131072),void 0===n?bs:n}function ks(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,As(n,e),Ra.dirtyParentQueries(r),Os(r),r}function Ds(t,e,n){var r=e?Ja(e,e.def.lastRenderRootNode):t.renderElement,o=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);as(n,2,o,i,void 0)}function Os(t){as(t,3,null,null,void 0)}function Ps(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function As(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var Is=new Object;function Rs(t,e,n,r,o,i){return new Ns(t,e,n,r,o,i)}var Ns=function(t){function e(e,n,r,o,i,a){var s=t.call(this)||this;return s.selector=e,s.componentType=n,s._inputs=o,s._outputs=i,s.ngContentSelectors=a,s.viewDefFactory=r,s}return o(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var o=is(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,a=Ra.createRootView(t,e||[],n,o,r,Is),s=Pa(a,i).instance;return n&&a.renderer.setAttribute(Oa(a,0).renderElement,"ng-version",so.full),new Ms(a,new Ls(a),s)},e}(Qr),Ms=function(t){function e(e,n,r){var o=t.call(this)||this;return o._view=e,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return o(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new to(Oa(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new zs(this._view,this._elDef)},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}(Gr);function js(t,e,n){return new Vs(t,e,n)}var Vs=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 to(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new zs(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=Ya(t),t=t.parent;return t?new zs(t,e):new zs(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=ks(this._data,t);Ra.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new Ls(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,o){var i=n||this.parentInjector;o||t instanceof Xr||(o=i.get(Jn));var a=t.create(i,r,void 0,o);return this.insert(a.hostView,e),a},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,a=t;return i=(n=this._data).viewContainer._embeddedViews,null==(r=e)&&(r=i.length),(o=a._view).viewContainerParent=this._view,Ps(i,r,o),function(t,e){var n=$a(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,o),Ra.dirtyParentQueries(o),Ds(n,r>0?i[r-1]:null,o),a.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,r,o,i,a,s=this._embeddedViews.indexOf(t._view);return o=e,a=(i=(n=this._data).viewContainer._embeddedViews)[r=s],As(i,r),null==o&&(o=i.length),Ps(i,o,a),Ra.dirtyParentQueries(a),Os(a),Ds(n,o>0?i[o-1]:null,a),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=ks(this._data,t);e&&Ra.destroyView(e)},t.prototype.detach=function(t){var e=ks(this._data,t);return e?new Ls(e):null},t}();function Fs(t){return new Ls(t)}var Ls=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return as(this._view,0,void 0,void 0,t=[]),t;var t},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(){Qa(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{Ra.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Ra.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)),Ra.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Os(this._view),Ra.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}();function Us(t,e){return new Hs(t,e)}var Hs=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return o(e,t),e.prototype.createEmbeddedView=function(t){return new Ls(Ra.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new to(Oa(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(zo);function Bs(t,e){return new zs(t,e)}var zs=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=Fn.THROW_IF_NOT_FOUND),Ra.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:La(t)},e)},t}();function qs(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Oa(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Da(t,n.nodeIndex).renderText;if(20240&n.flags)return Pa(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function Ws(t){return new Gs(t.renderer)}var Gs=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=l(hs(e),2),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},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),o=0;o<e.length;o++)this.delegate.insertBefore(n,e[o],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=l(hs(e),2),o=r[0],i=r[1];null!=n?this.delegate.setAttribute(t,i,n,o):this.delegate.removeAttribute(t,i,o)},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}();function Qs(t,e,n,r){return new Ks(t,e,n,r)}var Ks=function(){function t(t,e,n,r){this._moduleType=t,this._parent=e,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(t){for(var e=t._def,n=t._providers=new Array(e.providers.length),r=0;r<e.providers.length;r++){var o=e.providers[r];4096&o.flags||void 0===n[r]&&(n[r]=Ts(t,o))}}(this)}return t.prototype.get=function(t,e,n){void 0===e&&(e=Fn.THROW_IF_NOT_FOUND),void 0===n&&(n=0);var r=0;return 4&n?r|=1:2&n&&(r|=4),xs(this,{token:t,tokenKey:La(t),flags:r},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(Yr)},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+Lt(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,function(t,e){for(var n=t._def,r=new Set,o=0;o<n.providers.length;o++)if(131072&n.providers[o].flags){var i=t._providers[o];if(i&&i!==bs){var a=i.ngOnDestroy;"function"!=typeof a||r.has(i)||(a.apply(i),r.add(i))}}}(this),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t}(),Zs=La(no),$s=La(io),Ys=La(to),Js=La(Zi),Xs=La(zo),tu=La(Yi),eu=La(Fn),nu=La(jn);function ru(t,e,n,r,o,i,a,s){var u=[];if(a)for(var c in a){var p=l(a[c],2);u[p[0]]={flags:8,name:c,nonMinifiedName:p[1],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 iu(t,e|=16384,n,r,o,o,i,u,h)}function ou(t,e,n,r,o){return iu(-1,t,e,0,n,r,o)}function iu(t,e,n,r,o,i,a,s,u){var l=es(n),c=l.matchedQueries,p=l.references,h=l.matchedQueryIds;u||(u=[]),s||(s=[]),i=In(i);var f=ns(a,Lt(o));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:h,references:p,ngContentIndex:-1,childCount:r,bindings:s,bindingFlags:fs(s),outputs:u,element:null,provider:{token:o,value:i,deps:f},text:null,query:null,ngContent:null}}function au(t,e){return cu(t,e)}function su(t,e){for(var n=t;n.parent&&!Xa(n);)n=n.parent;return pu(n.parent,Ya(n),!0,e.provider.value,e.provider.deps)}function uu(t,e){var n=pu(t,e.parent,(32768&e.flags)>0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r<e.outputs.length;r++){var o=e.outputs[r],i=n[o.propName];if(!ri(i))throw new Error("@Output "+o.propName+" not initialized in '"+n.constructor.name+"'.");var a=i.subscribe(lu(t,e.parent.nodeIndex,o.eventName));t.disposables[e.outputIndex+r]=a.unsubscribe.bind(a)}return n}function lu(t,e,n){return function(r){return Za(t,e,n,r)}}function cu(t,e){var n=(8192&e.flags)>0,r=e.provider;switch(201347067&e.flags){case 512:return pu(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(fu(t,e,n,o[0]));case 2:return r(fu(t,e,n,o[0]),fu(t,e,n,o[1]));case 3:return r(fu(t,e,n,o[0]),fu(t,e,n,o[1]),fu(t,e,n,o[2]));default:for(var a=Array(i),s=0;s<i;s++)a[s]=fu(t,e,n,o[s]);return r.apply(void 0,c(a))}}(t,e.parent,n,r.value,r.deps);case 2048:return fu(t,e.parent,n,r.deps[0]);case 256:return r.value}}function pu(t,e,n,r,o){var i=o.length;switch(i){case 0:return new r;case 1:return new r(fu(t,e,n,o[0]));case 2:return new r(fu(t,e,n,o[0]),fu(t,e,n,o[1]));case 3:return new r(fu(t,e,n,o[0]),fu(t,e,n,o[1]),fu(t,e,n,o[2]));default:for(var a=new Array(i),s=0;s<i;s++)a[s]=fu(t,e,n,o[s]);return new(r.bind.apply(r,c([void 0],a)))}}var hu={};function fu(t,e,n,r,o){if(void 0===o&&(o=Fn.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var i=t;2&r.flags&&(o=null);var a=r.tokenKey;a===tu&&(n=!(!e||!e.element.componentView)),e&&1&r.flags&&(n=!1,e=e.parent);for(var s=t;s;){if(e)switch(a){case Zs:return Ws(du(s,e,n));case $s:return du(s,e,n).renderer;case Ys:return new to(Oa(s,e.nodeIndex).renderElement);case Js:return Oa(s,e.nodeIndex).viewContainer;case Xs:if(e.element.template)return Oa(s,e.nodeIndex).template;break;case tu:return Fs(du(s,e,n));case eu:case nu:return Bs(s,e);default:var u=(n?e.element.allProviders:e.element.publicProviders)[a];if(u){var l=Pa(s,u.nodeIndex);return l||(l={instance:cu(s,u)},s.nodes[u.nodeIndex]=l),l.instance}}n=Xa(s),e=Ya(s),s=s.parent,4&r.flags&&(s=null)}var c=i.root.injector.get(r.token,hu);return c!==hu||o===hu?c:i.root.ngModule.injector.get(r.token,o)}function du(t,e,n){var r;if(n)r=Oa(t,e.nodeIndex).componentView;else for(r=t;r.parent&&!Xa(r);)r=r.parent;return r}function yu(t,e,n,r,o,i){if(32768&n.flags){var a=Oa(t,n.parent.nodeIndex).componentView;2&a.def.flags&&(a.state|=8)}if(e.instance[n.bindings[r].name]=o,524288&n.flags){i=i||{};var s=xe.unwrap(t.oldValues[n.bindingIndex+r]);i[n.bindings[r].nonMinifiedName]=new Te(s,o,0!=(2&t.state))}return t.oldValues[n.bindingIndex+r]=o,i}function mu(t,e){if(t.def.nodeFlags&e)for(var n=t.def.nodes,r=0,o=0;o<n.length;o++){var i=n[o],a=i.parent;for(!a&&i.flags&e&&gu(t,o,i.flags&e,r++),0==(i.childFlags&e)&&(o+=i.childCount);a&&1&a.flags&&o===a.nodeIndex+a.childCount;)a.directChildFlags&e&&(r=vu(t,a,e,r)),a=a.parent}}function vu(t,e,n,r){for(var o=e.nodeIndex+1;o<=e.nodeIndex+e.childCount;o++){var i=t.def.nodes[o];i.flags&n&&gu(t,o,i.flags&n,r++),o+=i.childCount}return r}function gu(t,e,n,r){var o=Pa(t,e);if(o){var i=o.instance;i&&(Ra.setCurrentNode(t,e),1048576&n&&ka(t,512,r)&&i.ngAfterContentInit(),2097152&n&&i.ngAfterContentChecked(),4194304&n&&ka(t,768,r)&&i.ngAfterViewInit(),8388608&n&&i.ngAfterViewChecked(),131072&n&&i.ngOnDestroy())}}function _u(t){for(var e=t.def.nodeMatchedQueries;t.parent&&ts(t);){var n=t.parentNodeDef;t=t.parent;for(var r=n.nodeIndex+n.childCount,o=0;o<=r;o++)67108864&(i=t.def.nodes[o]).flags&&536870912&i.flags&&(i.query.filterId&e)===i.query.filterId&&Ia(t,o).setDirty(),!(1&i.flags&&o+i.childCount<n.nodeIndex)&&67108864&i.childFlags&&536870912&i.childFlags||(o+=i.childCount)}if(134217728&t.def.nodeFlags)for(o=0;o<t.def.nodes.length;o++){var i;134217728&(i=t.def.nodes[o]).flags&&536870912&i.flags&&Ia(t,o).setDirty(),o+=i.childCount}}function bu(t,e){var n=Ia(t,e.nodeIndex);if(n.dirty){var r,o=void 0;if(67108864&e.flags){var i=e.parent.parent;o=wu(t,i.nodeIndex,i.nodeIndex+i.childCount,e.query,[]),r=Pa(t,e.parent.nodeIndex).instance}else 134217728&e.flags&&(o=wu(t,0,t.def.nodes.length-1,e.query,[]),r=t.component);n.reset(o);for(var a=e.query.bindings,s=!1,u=0;u<a.length;u++){var l=a[u],c=void 0;switch(l.bindingType){case 0:c=n.first;break;case 1:c=n,s=!0}r[l.propName]=c}s&&n.notifyOnChanges()}}function wu(t,e,n,r,o){for(var i=e;i<=n;i++){var a=t.def.nodes[i],s=a.matchedQueries[r.id];if(null!=s&&o.push(Cu(t,a,s)),1&a.flags&&a.element.template&&(a.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var u=Oa(t,i);if((a.childMatchedQueries&r.filterId)===r.filterId&&(wu(t,i+1,i+a.childCount,r,o),i+=a.childCount),16777216&a.flags)for(var l=u.viewContainer._embeddedViews,c=0;c<l.length;c++){var p=l[c],h=$a(p);h&&h===u&&wu(p,0,p.def.nodes.length-1,r,o)}var f=u.template._projectedViews;if(f)for(c=0;c<f.length;c++){var d=f[c];wu(d,0,d.def.nodes.length-1,r,o)}}(a.childMatchedQueries&r.filterId)!==r.filterId&&(i+=a.childCount)}return o}function Cu(t,e,n){if(null!=n)switch(n){case 1:return Oa(t,e.nodeIndex).renderElement;case 0:return new to(Oa(t,e.nodeIndex).renderElement);case 2:return Oa(t,e.nodeIndex).template;case 3:return Oa(t,e.nodeIndex).viewContainer;case 4:return Pa(t,e.nodeIndex).instance}}function Eu(t,e){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:e}}}function Su(t,e,n){var r=rs(t,e,n);r&&us(t,n.ngContent.index,1,r,null,void 0)}function xu(t,e,n){for(var r=new Array(n.length),o=0;o<n.length;o++){var i=n[o];r[o]={flags:8,name:i,ns:null,nonMinifiedName:i,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:fs(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function Tu(t,e,n){for(var r=new Array(n.length-1),o=1;o<n.length;o++)r[o-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[o]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function ku(t,e,n){var r,o=t.renderer;r=o.createText(n.text.prefix);var i=rs(t,e,n);return i&&o.appendChild(i,r),{renderText:r}}function Du(t,e){return(null!=t?t.toString():"")+e.suffix}function Ou(t,e,n,r){for(var o=0,i=0,a=0,s=0,u=0,l=null,c=null,p=!1,h=!1,f=null,d=0;d<e.length;d++){var y=e[d];if(y.nodeIndex=d,y.parent=l,y.bindingIndex=o,y.outputIndex=i,y.renderParent=c,a|=y.flags,u|=y.matchedQueryIds,y.element){var m=y.element;m.publicProviders=l?l.element.publicProviders:Object.create(null),m.allProviders=m.publicProviders,p=!1,h=!1,y.element.template&&(u|=y.element.template.nodeMatchedQueries)}if(Au(l,y,e.length),o+=y.bindings.length,i+=y.outputs.length,!c&&3&y.flags&&(f=y),20224&y.flags){p||(p=!0,l.element.publicProviders=Object.create(l.element.publicProviders),l.element.allProviders=l.element.publicProviders);var v=0!=(32768&y.flags);0==(8192&y.flags)||v?l.element.publicProviders[La(y.provider.token)]=y:(h||(h=!0,l.element.allProviders=Object.create(l.element.publicProviders)),l.element.allProviders[La(y.provider.token)]=y),v&&(l.element.componentProvider=y)}if(l?(l.childFlags|=y.flags,l.directChildFlags|=y.flags,l.childMatchedQueries|=y.matchedQueryIds,y.element&&y.element.template&&(l.childMatchedQueries|=y.element.template.nodeMatchedQueries)):s|=y.flags,y.childCount>0)l=y,Pu(y)||(c=y);else for(;l&&d===l.nodeIndex+l.childCount;){var g=l.parent;g&&(g.childFlags|=l.childFlags,g.childMatchedQueries|=l.childMatchedQueries),c=(l=g)&&Pu(l)?l.renderParent:l}}return{factory:null,nodeFlags:a,rootNodeFlags:s,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||Va,updateRenderer:r||Va,handleEvent:function(t,n,r,o){return e[n].element.handleEvent(t,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:f}}function Pu(t){return 0!=(1&t.flags)&&null===t.element.name}function Au(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.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");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.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var o=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=o&&e.nodeIndex+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function Iu(t,e,n,r){var o=Mu(t.root,t.renderer,t,e,n);return ju(o,t.component,r),Vu(o),o}function Ru(t,e,n){var r=Mu(t,t.renderer,null,null,e);return ju(r,n,n),Vu(r),r}function Nu(t,e,n,r){var o,i=e.element.componentRendererType;return o=i?t.root.rendererFactory.createRenderer(r,i):t.root.renderer,Mu(t.root,o,t,e.element.componentProvider,n)}function Mu(t,e,n,r,o){var i=new Array(o.nodes.length),a=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:a,initIndex:-1}}function ju(t,e,n){t.component=e,t.context=n}function Vu(t){var e;Xa(t)&&(e=Oa(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,o=0;o<n.nodes.length;o++){var i=n.nodes[o];Ra.setCurrentNode(t,o);var a=void 0;switch(201347067&i.flags){case 1:var s=ms(t,e,i),u=void 0;if(33554432&i.flags){var l=is(i.element.componentView);u=Ra.createComponentView(t,i,l,s)}vs(t,u,i,s),a={renderElement:s,componentView:u,viewContainer:null,template:i.element.template?Us(t,i):void 0},16777216&i.flags&&(a.viewContainer=js(t,i,a));break;case 2:a=ku(t,e,i);break;case 512:case 1024:case 2048:case 256:(a=r[o])||4096&i.flags||(a={instance:au(t,i)});break;case 16:a={instance:su(t,i)};break;case 16384:(a=r[o])||(a={instance:uu(t,i)}),32768&i.flags&&ju(Oa(t,i.parent.nodeIndex).componentView,a.instance,a.instance);break;case 32:case 64:case 128:a={value:void 0};break;case 67108864:case 134217728:a=new zi;break;case 8:Su(t,e,i),a=void 0}r[o]=a}Gu(t,Wu.CreateViewNodes),$u(t,201326592,268435456,0)}function Fu(t){Hu(t),Ra.updateDirectives(t,1),Qu(t,Wu.CheckNoChanges),Ra.updateRenderer(t,1),Gu(t,Wu.CheckNoChanges),t.state&=-97}function Lu(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,Ta(t,0,256),Hu(t),Ra.updateDirectives(t,0),Qu(t,Wu.CheckAndUpdate),$u(t,67108864,536870912,0);var e=Ta(t,256,512);mu(t,2097152|(e?1048576:0)),Ra.updateRenderer(t,0),Gu(t,Wu.CheckAndUpdate),$u(t,134217728,536870912,0),mu(t,8388608|((e=Ta(t,512,768))?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97,Ta(t,768,1024)}function Uu(t,e,n,r,o,i,a,s,u,l,p,h,f){return 0===n?function(t,e,n,r,o,i,a,s,u,l,c,p){switch(201347067&e.flags){case 1:return function(t,e,n,r,o,i,a,s,u,l,c,p){var h=e.bindings.length,f=!1;return h>0&&_s(t,e,0,n)&&(f=!0),h>1&&_s(t,e,1,r)&&(f=!0),h>2&&_s(t,e,2,o)&&(f=!0),h>3&&_s(t,e,3,i)&&(f=!0),h>4&&_s(t,e,4,a)&&(f=!0),h>5&&_s(t,e,5,s)&&(f=!0),h>6&&_s(t,e,6,u)&&(f=!0),h>7&&_s(t,e,7,l)&&(f=!0),h>8&&_s(t,e,8,c)&&(f=!0),h>9&&_s(t,e,9,p)&&(f=!0),f}(t,e,n,r,o,i,a,s,u,l,c,p);case 2:return function(t,e,n,r,o,i,a,s,u,l,c,p){var h=!1,f=e.bindings,d=f.length;if(d>0&&Wa(t,e,0,n)&&(h=!0),d>1&&Wa(t,e,1,r)&&(h=!0),d>2&&Wa(t,e,2,o)&&(h=!0),d>3&&Wa(t,e,3,i)&&(h=!0),d>4&&Wa(t,e,4,a)&&(h=!0),d>5&&Wa(t,e,5,s)&&(h=!0),d>6&&Wa(t,e,6,u)&&(h=!0),d>7&&Wa(t,e,7,l)&&(h=!0),d>8&&Wa(t,e,8,c)&&(h=!0),d>9&&Wa(t,e,9,p)&&(h=!0),h){var y=e.text.prefix;d>0&&(y+=Du(n,f[0])),d>1&&(y+=Du(r,f[1])),d>2&&(y+=Du(o,f[2])),d>3&&(y+=Du(i,f[3])),d>4&&(y+=Du(a,f[4])),d>5&&(y+=Du(s,f[5])),d>6&&(y+=Du(u,f[6])),d>7&&(y+=Du(l,f[7])),d>8&&(y+=Du(c,f[8])),d>9&&(y+=Du(p,f[9]));var m=Da(t,e.nodeIndex).renderText;t.renderer.setValue(m,y)}return h}(t,e,n,r,o,i,a,s,u,l,c,p);case 16384:return function(t,e,n,r,o,i,a,s,u,l,c,p){var h=Pa(t,e.nodeIndex),f=h.instance,d=!1,y=void 0,m=e.bindings.length;return m>0&&qa(t,e,0,n)&&(d=!0,y=yu(t,h,e,0,n,y)),m>1&&qa(t,e,1,r)&&(d=!0,y=yu(t,h,e,1,r,y)),m>2&&qa(t,e,2,o)&&(d=!0,y=yu(t,h,e,2,o,y)),m>3&&qa(t,e,3,i)&&(d=!0,y=yu(t,h,e,3,i,y)),m>4&&qa(t,e,4,a)&&(d=!0,y=yu(t,h,e,4,a,y)),m>5&&qa(t,e,5,s)&&(d=!0,y=yu(t,h,e,5,s,y)),m>6&&qa(t,e,6,u)&&(d=!0,y=yu(t,h,e,6,u,y)),m>7&&qa(t,e,7,l)&&(d=!0,y=yu(t,h,e,7,l,y)),m>8&&qa(t,e,8,c)&&(d=!0,y=yu(t,h,e,8,c,y)),m>9&&qa(t,e,9,p)&&(d=!0,y=yu(t,h,e,9,p,y)),y&&f.ngOnChanges(y),65536&e.flags&&ka(t,256,e.nodeIndex)&&f.ngOnInit(),262144&e.flags&&f.ngDoCheck(),d}(t,e,n,r,o,i,a,s,u,l,c,p);case 32:case 64:case 128:return function(t,e,n,r,o,i,a,s,u,l,c,p){var h=e.bindings,f=!1,d=h.length;if(d>0&&Wa(t,e,0,n)&&(f=!0),d>1&&Wa(t,e,1,r)&&(f=!0),d>2&&Wa(t,e,2,o)&&(f=!0),d>3&&Wa(t,e,3,i)&&(f=!0),d>4&&Wa(t,e,4,a)&&(f=!0),d>5&&Wa(t,e,5,s)&&(f=!0),d>6&&Wa(t,e,6,u)&&(f=!0),d>7&&Wa(t,e,7,l)&&(f=!0),d>8&&Wa(t,e,8,c)&&(f=!0),d>9&&Wa(t,e,9,p)&&(f=!0),f){var y=Aa(t,e.nodeIndex),m=void 0;switch(201347067&e.flags){case 32:m=new Array(h.length),d>0&&(m[0]=n),d>1&&(m[1]=r),d>2&&(m[2]=o),d>3&&(m[3]=i),d>4&&(m[4]=a),d>5&&(m[5]=s),d>6&&(m[6]=u),d>7&&(m[7]=l),d>8&&(m[8]=c),d>9&&(m[9]=p);break;case 64:m={},d>0&&(m[h[0].name]=n),d>1&&(m[h[1].name]=r),d>2&&(m[h[2].name]=o),d>3&&(m[h[3].name]=i),d>4&&(m[h[4].name]=a),d>5&&(m[h[5].name]=s),d>6&&(m[h[6].name]=u),d>7&&(m[h[7].name]=l),d>8&&(m[h[8].name]=c),d>9&&(m[h[9].name]=p);break;case 128:var v=n;switch(d){case 1:m=v.transform(n);break;case 2:m=v.transform(r);break;case 3:m=v.transform(r,o);break;case 4:m=v.transform(r,o,i);break;case 5:m=v.transform(r,o,i,a);break;case 6:m=v.transform(r,o,i,a,s);break;case 7:m=v.transform(r,o,i,a,s,u);break;case 8:m=v.transform(r,o,i,a,s,u,l);break;case 9:m=v.transform(r,o,i,a,s,u,l,c);break;case 10:m=v.transform(r,o,i,a,s,u,l,c,p)}}y.value=m}return f}(t,e,n,r,o,i,a,s,u,l,c,p);default:throw"unreachable"}}(t,e,r,o,i,a,s,u,l,p,h,f):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,o=0;o<n.length;o++)_s(t,e,o,n[o])&&(r=!0);return r}(t,e,n);case 2:return function(t,e,n){for(var r=e.bindings,o=!1,i=0;i<n.length;i++)Wa(t,e,i,n[i])&&(o=!0);if(o){var a="";for(i=0;i<n.length;i++)a+=Du(n[i],r[i]);a=e.text.prefix+a;var s=Da(t,e.nodeIndex).renderText;t.renderer.setValue(s,a)}return o}(t,e,n);case 16384:return function(t,e,n){for(var r=Pa(t,e.nodeIndex),o=r.instance,i=!1,a=void 0,s=0;s<n.length;s++)qa(t,e,s,n[s])&&(i=!0,a=yu(t,r,e,s,n[s],a));return a&&o.ngOnChanges(a),65536&e.flags&&ka(t,256,e.nodeIndex)&&o.ngOnInit(),262144&e.flags&&o.ngDoCheck(),i}(t,e,n);case 32:case 64:case 128:return function(t,e,n){for(var r=e.bindings,o=!1,i=0;i<n.length;i++)Wa(t,e,i,n[i])&&(o=!0);if(o){var a=Aa(t,e.nodeIndex),s=void 0;switch(201347067&e.flags){case 32:s=n;break;case 64:for(s={},i=0;i<n.length;i++)s[r[i].name]=n[i];break;case 128:var u=n[0],l=n.slice(1);s=u.transform.apply(u,c(l))}a.value=s}return o}(t,e,n);default:throw"unreachable"}}(t,e,r)}function Hu(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 o=Oa(t,n).template._projectedViews;if(o)for(var i=0;i<o.length;i++){var a=o[i];a.state|=32,Ka(a,t)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function Bu(t,e,n,r,o,i,a,s,u,l,c,p,h){return 0===n?function(t,e,n,r,o,i,a,s,u,l,c,p){var h=e.bindings.length;h>0&&Ga(t,e,0,n),h>1&&Ga(t,e,1,r),h>2&&Ga(t,e,2,o),h>3&&Ga(t,e,3,i),h>4&&Ga(t,e,4,a),h>5&&Ga(t,e,5,s),h>6&&Ga(t,e,6,u),h>7&&Ga(t,e,7,l),h>8&&Ga(t,e,8,c),h>9&&Ga(t,e,9,p)}(t,e,r,o,i,a,s,u,l,c,p,h):function(t,e,n){for(var r=0;r<n.length;r++)Ga(t,e,r,n[r])}(t,e,r),!1}function zu(t,e){if(Ia(t,e.nodeIndex).dirty)throw Na(Ra.createDebugContext(t,e.nodeIndex),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!=(1&t.state))}function qu(t){if(!(128&t.state)){if(Qu(t,Wu.Destroy),Gu(t,Wu.Destroy),mu(t,131072),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();!function(t){if(16&t.state){var e=$a(t);if(e){var n=e.template._projectedViews;n&&(As(n,n.indexOf(t)),Ra.dirtyParentQueries(t))}}}(t),t.renderer.destroyNode&&function(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(Oa(t,n).renderElement):2&r.flags?t.renderer.destroyNode(Da(t,n).renderText):(67108864&r.flags||134217728&r.flags)&&Ia(t,n).destroy()}}(t),Xa(t)&&t.renderer.destroy(),t.state|=128}}var Wu=function(t){return t[t.CreateViewNodes=0]="CreateViewNodes",t[t.CheckNoChanges=1]="CheckNoChanges",t[t.CheckNoChangesProjectedViews=2]="CheckNoChangesProjectedViews",t[t.CheckAndUpdate=3]="CheckAndUpdate",t[t.CheckAndUpdateProjectedViews=4]="CheckAndUpdateProjectedViews",t[t.Destroy=5]="Destroy",t}({});function Gu(t,e){var n=t.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];33554432&o.flags?Ku(Oa(t,r).componentView,e):0==(33554432&o.childFlags)&&(r+=o.childCount)}}function Qu(t,e){var n=t.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];if(16777216&o.flags)for(var i=Oa(t,r).viewContainer._embeddedViews,a=0;a<i.length;a++)Ku(i[a],e);else 0==(16777216&o.childFlags)&&(r+=o.childCount)}}function Ku(t,e){var n=t.state;switch(e){case Wu.CheckNoChanges:0==(128&n)&&(12==(12&n)?Fu(t):64&n&&Zu(t,Wu.CheckNoChangesProjectedViews));break;case Wu.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Fu(t):64&n&&Zu(t,e));break;case Wu.CheckAndUpdate:0==(128&n)&&(12==(12&n)?Lu(t):64&n&&Zu(t,Wu.CheckAndUpdateProjectedViews));break;case Wu.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?Lu(t):64&n&&Zu(t,e));break;case Wu.Destroy:qu(t);break;case Wu.CreateViewNodes:Vu(t)}}function Zu(t,e){Qu(t,e),Gu(t,e)}function $u(t,e,n,r){if(t.def.nodeFlags&e&&t.def.nodeFlags&n)for(var o=t.def.nodes.length,i=0;i<o;i++){var a=t.def.nodes[i];if(a.flags&e&&a.flags&n)switch(Ra.setCurrentNode(t,a.nodeIndex),r){case 0:bu(t,a);break;case 1:zu(t,a)}a.childFlags&e&&a.childFlags&n||(i+=a.childCount)}}var Yu=!1;function Ju(t,e,n,r,o,i){var a=o.injector.get(ro);return Ru(tl(t,o,a,e,n),r,i)}function Xu(t,e,n,r,o,i){var a=o.injector.get(ro),s=tl(t,o,new Nl(a),e,n),u=cl(r);return Il(_l.create,Ru,null,[s,u,i])}function tl(t,e,n,r,o){var i=e.injector.get(Go),a=e.injector.get(ei),s=n.createRenderer(null,null);return{ngModule:e,injector:t,projectableNodes:r,selectorOrNode:o,sanitizer:i,rendererFactory:n,renderer:s,errorHandler:a}}function el(t,e,n,r){var o=cl(n);return Il(_l.create,Iu,null,[t,e,o,r])}function nl(t,e,n,r){return n=al.get(e.element.componentProvider.provider.token)||cl(n),Il(_l.create,Nu,null,[t,e,n,r])}function rl(t,e,n,r){return Qs(t,e,n,function(t){var e=function(t){var e=!1,n=!1;return 0===ol.size?{hasOverrides:e,hasDeprecatedOverrides:n}:(t.providers.forEach(function(t){var r=ol.get(t.token);3840&t.flags&&r&&(e=!0,n=n||r.deprecatedBehavior)}),t.modules.forEach(function(t){il.forEach(function(r,o){St(o).providedIn===t&&(e=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:e,hasDeprecatedOverrides:n})}(t),n=e.hasDeprecatedOverrides;return e.hasOverrides?(function(t){for(var e=0;e<t.providers.length;e++){var r=t.providers[e];n&&(r.flags|=4096);var o=ol.get(r.token);o&&(r.flags=-3841&r.flags|o.flags,r.deps=ns(o.deps),r.value=o.value)}if(il.size>0){var i=new Set(t.modules);il.forEach(function(e,r){if(i.has(St(r).providedIn)){var o={token:r,flags:e.flags|(n?4096:0),deps:ns(e.deps),value:e.value,index:t.providers.length};t.providers.push(o),t.providersByKey[La(r)]=o}})}}(t=t.factory(function(){return Va})),t):t}(r))}var ol=new Map,il=new Map,al=new Map;function sl(t){var e;ol.set(t.token,t),"function"==typeof t.token&&(e=St(t.token))&&"function"==typeof e.providedIn&&il.set(t.token,t)}function ul(t,e){var n=is(e.viewDefFactory),r=is(n.nodes[0].element.componentView);al.set(t,r)}function ll(){ol.clear(),il.clear(),al.clear()}function cl(t){if(0===ol.size)return t;var e=function(t){for(var e=[],n=null,r=0;r<t.nodes.length;r++){var o=t.nodes[r];1&o.flags&&(n=o),n&&3840&o.flags&&ol.has(o.provider.token)&&(e.push(n.nodeIndex),n=null)}return e}(t);if(0===e.length)return t;t=t.factory(function(){return Va});for(var n=0;n<e.length;n++)r(t,e[n]);return t;function r(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){var o=r.provider,i=ol.get(o.token);i&&(r.flags=-3841&r.flags|i.flags,o.deps=ns(i.deps),o.value=i.value)}}}}function pl(t,e,n,r,o,i,a,s,u,l,c,p,h){var f=t.def.nodes[e];return Uu(t,f,n,r,o,i,a,s,u,l,c,p,h),224&f.flags?Aa(t,e).value:void 0}function hl(t,e,n,r,o,i,a,s,u,l,c,p,h){var f=t.def.nodes[e];return Bu(t,f,n,r,o,i,a,s,u,l,c,p,h),224&f.flags?Aa(t,e).value:void 0}function fl(t){return Il(_l.detectChanges,Lu,null,[t])}function dl(t){return Il(_l.checkNoChanges,Fu,null,[t])}function yl(t){return Il(_l.destroy,qu,null,[t])}var ml,vl,gl,_l=function(t){return t[t.create=0]="create",t[t.detectChanges=1]="detectChanges",t[t.checkNoChanges=2]="checkNoChanges",t[t.destroy=3]="destroy",t[t.handleEvent=4]="handleEvent",t}({});function bl(t,e){vl=t,gl=e}function wl(t,e,n,r){return bl(t,e),Il(_l.handleEvent,t.def.handleEvent,null,[t,e,n,r])}function Cl(t,e){if(128&t.state)throw ja(_l[ml]);return bl(t,Dl(t,0)),t.def.updateDirectives(function(t,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var a=t.def.nodes[n];return 0===e?Sl(t,a,r,o):xl(t,a,r,o),16384&a.flags&&bl(t,Dl(t,n)),224&a.flags?Aa(t,a.nodeIndex).value:void 0},t)}function El(t,e){if(128&t.state)throw ja(_l[ml]);return bl(t,Ol(t,0)),t.def.updateRenderer(function(t,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var a=t.def.nodes[n];return 0===e?Sl(t,a,r,o):xl(t,a,r,o),3&a.flags&&bl(t,Ol(t,n)),224&a.flags?Aa(t,a.nodeIndex).value:void 0},t)}function Sl(t,e,n,r){if(Uu.apply(void 0,c([t,e,n],r))){var o=1===n?r[0]:r;if(16384&e.flags){for(var i={},a=0;a<e.bindings.length;a++){var s=e.bindings[a],u=o[a];8&s.flags&&(i[(f=s.nonMinifiedName,d=void 0,d=f.replace(/[$@]/g,"_"),"ng-reflect-"+(f=d.replace(Tl,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()})))]=kl(u))}var l=e.parent,p=Oa(t,l.nodeIndex).renderElement;if(l.element.name)for(var h in i)null!=(u=i[h])?t.renderer.setAttribute(p,h,u):t.renderer.removeAttribute(p,h);else t.renderer.setValue(p,"bindings="+JSON.stringify(i,null,2))}}var f,d}function xl(t,e,n,r){Bu.apply(void 0,c([t,e,n],r))}var Tl=/([A-Z])/g;function kl(t){try{return null!=t?t.toString().slice(0,30):t}catch(e){return"[ERROR] Exception while trying to serialize the value"}}function Dl(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 Ol(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}var Pl=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=Ya(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return Oa(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return Bs(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.nodeIndex+1;e<=this.elDef.nodeIndex+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){Al(this.elView,this.elDef,t);for(var e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&Al(this.elView,n,t),e+=n.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=function(t){for(;t&&!Xa(t);)t=t.parent;return t.parent?Oa(t.parent,Ya(t).nodeIndex):null}(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?Ja(this.view,this.nodeDef):Ja(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e,n,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];2&this.nodeDef.flags?(e=this.view.def,n=this.nodeDef.nodeIndex):(e=this.elView.def,n=this.elDef.nodeIndex);var i=function(t,e){for(var n=-1,r=0;r<=e;r++)3&t.nodes[r].flags&&n++;return n}(e,n),a=-1;e.factory(function(){var e;return++a===i?(e=t.error).bind.apply(e,c([t],r)):Va}),a<i&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,c(r)))},t}();function Al(t,e,n){for(var r in e.references)n[r]=Cu(t,e,e.references[r])}function Il(t,e,n,r){var o=ml,i=vl,a=gl;try{ml=t;var s=e.apply(n,r);return vl=i,gl=a,ml=o,s}catch(u){if(Jo(u)||!vl)throw u;throw function(t,e){return t instanceof Error||(t=new Error(t.toString())),Ma(t,e),t}(u,Rl())}}function Rl(){return vl?new Pl(vl,gl):null}var Nl=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new Ml(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}(),Ml=function(){function t(t){this.delegate=t,this.debugContextFactory=Rl,this.data=this.delegate.data}return t.prototype.createDebugContext=function(t){return this.debugContextFactory(t)},t.prototype.destroyNode=function(t){!function(t){na.delete(t.nativeNode)}(ra(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=this.createDebugContext(n);if(r){var o=new ea(n,null,r);o.name=t,oa(o)}return n},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),n=this.createDebugContext(e);return n&&oa(new ta(e,null,n)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),n=this.createDebugContext(e);return n&&oa(new ta(e,null,n)),e},t.prototype.appendChild=function(t,e){var n=ra(t),r=ra(e);n&&r&&n instanceof ea&&n.addChild(r),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,n){var r=ra(t),o=ra(e),i=ra(n);r&&o&&r instanceof ea&&r.insertBefore(i,o),this.delegate.insertBefore(t,e,n)},t.prototype.removeChild=function(t,e){var n=ra(t),r=ra(e);n&&r&&n instanceof ea&&n.removeChild(r),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t,e){var n=this.delegate.selectRootElement(t,e),r=Rl()||null;return r&&oa(new ea(n,null,r)),n},t.prototype.setAttribute=function(t,e,n,r){var o=ra(t);o&&o instanceof ea&&(o.attributes[r?r+":"+e:e]=n),this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){var r=ra(t);r&&r instanceof ea&&(r.attributes[n?n+":"+e:e]=null),this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){var n=ra(t);n&&n instanceof ea&&(n.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var n=ra(t);n&&n instanceof ea&&(n.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){var o=ra(t);o&&o instanceof ea&&(o.styles[e]=n),this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){var r=ra(t);r&&r instanceof ea&&(r.styles[e]=null),this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){var r=ra(t);r&&r instanceof ea&&(r.properties[e]=n),this.delegate.setProperty(t,e,n)},t.prototype.listen=function(t,e,n){if("string"!=typeof t){var r=ra(t);r&&r.listeners.push(new Xi(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}();function jl(t,e,n){return new Vl(t,e,n)}var Vl=function(t){function e(e,n,r){var o=t.call(this)||this;return o.moduleType=e,o._bootstrapComponents=n,o._ngModuleDefFactory=r,o}return o(e,t),e.prototype.create=function(t){!function(){if(!Yu){Yu=!0;var t=_o()?{setCurrentNode:bl,createRootView:Xu,createEmbeddedView:el,createComponentView:nl,createNgModuleRef:rl,overrideProvider:sl,overrideComponentView:ul,clearOverrides:ll,checkAndUpdateView:fl,checkNoChangesView:dl,destroyView:yl,createDebugContext:function(t,e){return new Pl(t,e)},handleEvent:wl,updateDirectives:Cl,updateRenderer:El}:{setCurrentNode:function(){},createRootView:Ju,createEmbeddedView:Iu,createComponentView:Nu,createNgModuleRef:Qs,overrideProvider:Va,overrideComponentView:Va,clearOverrides:Va,checkAndUpdateView:Lu,checkNoChangesView:Fu,destroyView:qu,createDebugContext:function(t,e){return new Pl(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?pl:hl,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?pl:hl,t)}};Ra.setCurrentNode=t.setCurrentNode,Ra.createRootView=t.createRootView,Ra.createEmbeddedView=t.createEmbeddedView,Ra.createComponentView=t.createComponentView,Ra.createNgModuleRef=t.createNgModuleRef,Ra.overrideProvider=t.overrideProvider,Ra.overrideComponentView=t.overrideComponentView,Ra.clearOverrides=t.clearOverrides,Ra.checkAndUpdateView=t.checkAndUpdateView,Ra.checkNoChangesView=t.checkNoChangesView,Ra.destroyView=t.destroyView,Ra.resolveDep=fu,Ra.createDebugContext=t.createDebugContext,Ra.handleEvent=t.handleEvent,Ra.updateDirectives=t.updateDirectives,Ra.updateRenderer=t.updateRenderer,Ra.dirtyParentQueries=_u}}();var e=function(t){var e=Array.from(t.providers),n=Array.from(t.modules),r={};for(var o in t.providersByKey)r[o]=t.providersByKey[o];return{factory:t.factory,isRoot:t.isRoot,providers:e,modules:n,providersByKey:r}}(is(this._ngModuleDefFactory));return Ra.createNgModuleRef(this.moduleType,t||Fn.NULL,this._bootstrapComponents,e)},e}(Xn),Fl=function(){return function(){}}(),Ll=function(){return function(){this.title="CoolTasksApp"}}(),Ul=new R(function(t){return t.complete()});function Hl(t){return t?function(t){return new R(function(e){return t.schedule(function(){return e.complete()})})}(t):Ul}function Bl(t){var e=new R(function(e){e.next(t),e.complete()});return e._isScalar=!0,e.value=t,e}function zl(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];switch(H(n)?t.pop():n=void 0,t.length){case 0:return Hl(n);case 1:return n?rt(t,n):Bl(t[0]);default:return rt(t,n)}}var ql=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return o(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 j;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(L);function Wl(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}Wl.prototype=Object.create(Error.prototype);var Gl=Wl,Ql={},Kl=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Zl(t,this.resultSelector))},t}(),Zl=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return o(e,t),e.prototype._next=function(t){this.values.push(Ql),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(J(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,o){var i=this.values,a=this.toRespond?i[n]===Ql?--this.toRespond:this.toRespond:0;i[n]=e,0===a&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(X);function $l(t){return new R(function(e){var n;try{n=t()}catch(r){return void e.error(r)}return(n?ot(n):Hl()).subscribe(e)})}function Yl(){return lt(1)}function Jl(t,e){return function(n){return n.lift(new Xl(t,e))}}var Xl=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new tc(t,this.predicate,this.thisArg))},t}(),tc=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.count=0,o}return o(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)},e}(k);function ec(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}ec.prototype=Object.create(Error.prototype);var nc=ec;function rc(t){return function(e){return 0===t?Hl():e.lift(new oc(t))}}var oc=function(){function t(t){if(this.total=t,this.total<0)throw new nc}return t.prototype.call=function(t,e){return e.subscribe(new ic(t,this.total))},t}(),ic=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}return o(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):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,o=0;o<n;o++){var i=e++%n;t.next(r[i])}t.complete()},e}(k);function ac(t,e,n){return function(r){return r.lift(new sc(t,e,n))}}var sc=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 uc(t,this.nextOrObserver,this.error,this.complete))},t}(),uc=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i._tapNext=P,i._tapError=P,i._tapComplete=P,i._tapError=r||P,i._tapComplete=o||P,f(n)?(i._context=i,i._tapNext=n):n&&(i._context=n,i._tapNext=n.next||P,i._tapError=n.error||P,i._tapComplete=n.complete||P),i}return o(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(k),lc=function(t){return void 0===t&&(t=cc),ac({hasValue:!1,next:function(){this.hasValue=!0},complete:function(){if(!this.hasValue)throw t()}})};function cc(){return new Gl}function pc(t){return void 0===t&&(t=null),function(e){return e.lift(new hc(t))}}var hc=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new fc(t,this.defaultValue))},t}(),fc=function(t){function e(e,n){var r=t.call(this,e)||this;return r.defaultValue=n,r.isEmpty=!0,r}return o(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}(k);function dc(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Jl(function(e,n){return t(e,n,r)}):ut,rc(1),n?pc(e):lc(function(){return new Gl}))}}function yc(t){return function(e){var n=new mc(t),r=e.lift(n);return n.caught=r}}var mc=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new vc(t,this.selector,this.caught))},t}(),vc=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.selector=n,o.caught=r,o}return o(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(o){return void t.prototype.error.call(this,o)}this._unsubscribeAndRecycle();var r=new B(this,void 0,void 0);this.add(r),J(this,n,void 0,void 0,r)}},e}(X);function gc(t){return function(e){return 0===t?Hl():e.lift(new _c(t))}}var _c=function(){function t(t){if(this.total=t,this.total<0)throw new nc}return t.prototype.call=function(t,e){return e.subscribe(new bc(t,this.total))},t}(),bc=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return o(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}(k);function wc(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Jl(function(e,n){return t(e,n,r)}):ut,gc(1),n?pc(e):lc(function(){return new Gl}))}}var Cc=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 Ec(t,this.predicate,this.thisArg,this.source))},t}(),Ec=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.source=o,i.index=0,i.thisArg=r||i,i}return o(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(n){return void this.destination.error(n)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(k);function Sc(t,e){return"function"==typeof e?function(n){return n.pipe(Sc(function(n,r){return ot(t(n,r)).pipe(tt(function(t,o){return e(n,t,r,o)}))}))}:function(e){return e.lift(new xc(t))}}var xc=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Tc(t,this.project))},t}(),Tc=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return o(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var o=new B(this,void 0,void 0);this.destination.add(o),this.innerSubscription=J(this,t,e,n,o)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e}(X);function kc(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Dc(t,e,n))}}var Dc=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 Oc(t,this.accumulator,this.seed,this.hasSeed))},t}(),Oc=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return o(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(r){this.destination.error(r)}this.seed=e,this.destination.next(e)},e}(k);function Pc(t,e){return it(t,e,1)}var Ac=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new Ic(t,this.callback))},t}(),Ic=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new b(n)),r}return o(e,t),e}(k),Rc=function(){return function(){}}(),Nc=new Tt("Location Initialized"),Mc=function(){return function(){}}(),jc=new Tt("appBaseHref"),Vc=function(){function t(t){var n=this;this._subject=new Bo,this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._baseHref=e.stripTrailingSlash(Fc(r)),this._platformStrategy.onPopState(function(t){n._subject.emit({url:n.path(!0),pop:!0,state:t.state,type:t.type})})}var e;return e=t,t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(t,n){return void 0===n&&(n=""),this.path()==this.normalize(t+e.normalizeQueryParams(n))},t.prototype.normalize=function(t){return e.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Fc(t)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",t,e)},t.prototype.replaceState=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",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;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)},t}();function Fc(t){return t.replace(/\/index.html$/,"")}var Lc=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return o(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=Vc.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+Vc.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+Vc.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(Mc),Uc=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return o(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return Vc.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+Vc.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+Vc.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+Vc.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(Mc),Hc=void 0,Bc=["en",[["a","p"],["AM","PM"],Hc],[["AM","PM"],Hc,Hc],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Hc,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Hc,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Hc,"{1} 'at' {0}",Hc],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],zc={},qc=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),Wc=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),Gc=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),Qc=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),Kc=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function Zc(t,e,n){var r=op(t),o=np([r[3],r[4]],e);return np(o,n)}function $c(t,e,n){var r=op(t),o=np([r[5],r[6]],e);return np(o,n)}function Yc(t,e){return np(op(t)[10],e)}function Jc(t,e){return np(op(t)[11],e)}function Xc(t,e){return np(op(t)[12],e)}function tp(t,e){var n=op(t),r=n[13][e];if(void 0===r){if(e===Kc.CurrencyDecimal)return n[13][Kc.Decimal];if(e===Kc.CurrencyGroup)return n[13][Kc.Group]}return r}function ep(t){if(!t[19])throw new Error('Missing extra locale data for the locale "'+t[0]+'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.')}function np(t,e){for(var n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function rp(t){var e=l(t.split(":"),2);return{hours:+e[0],minutes:+e[1]}}function op(t){var e=t.toLowerCase().replace(/_/g,"-"),n=zc[e];if(n)return n;var r=e.split("-")[0];if(n=zc[r])return n;if("en"===r)return Bc;throw new Error('Missing locale data for the locale "'+t+'".')}var ip=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ap={},sp=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,up=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),lp=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),cp=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function pp(t,e,n,r){var o=function(t){if(Cp(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();var e,n=parseFloat(t);if(!isNaN(t-n))return new Date(n);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){var r=l(t.split("-").map(function(t){return+t}),3);return new Date(r[0],r[1]-1,r[2])}if(e=t.match(ip))return function(t){var e=new Date(0),n=0,r=0,o=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),r=Number(t[9]+t[11])),o.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));var a=Number(t[4]||0)-n,s=Number(t[5]||0)-r,u=Number(t[6]||0),l=Math.round(1e3*parseFloat("0."+(t[7]||0)));return i.call(e,a,s,u,l),e}(e)}var o=new Date(t);if(!Cp(o))throw new Error('Unable to convert "'+t+'" into a date');return o}(t);e=function t(e,n){var r=function(t){return op(t)[0]}(e);if(ap[r]=ap[r]||{},ap[r][n])return ap[r][n];var o="";switch(n){case"shortDate":o=Yc(e,Qc.Short);break;case"mediumDate":o=Yc(e,Qc.Medium);break;case"longDate":o=Yc(e,Qc.Long);break;case"fullDate":o=Yc(e,Qc.Full);break;case"shortTime":o=Jc(e,Qc.Short);break;case"mediumTime":o=Jc(e,Qc.Medium);break;case"longTime":o=Jc(e,Qc.Long);break;case"fullTime":o=Jc(e,Qc.Full);break;case"short":var i=t(e,"shortTime"),a=t(e,"shortDate");o=hp(Xc(e,Qc.Short),[i,a]);break;case"medium":var s=t(e,"mediumTime"),u=t(e,"mediumDate");o=hp(Xc(e,Qc.Medium),[s,u]);break;case"long":var l=t(e,"longTime"),c=t(e,"longDate");o=hp(Xc(e,Qc.Long),[l,c]);break;case"full":var p=t(e,"fullTime"),h=t(e,"fullDate");o=hp(Xc(e,Qc.Full),[p,h])}return o&&(ap[r][n]=o),o}(n,e)||e;for(var i,a=[];e;){if(!(i=sp.exec(e))){a.push(e);break}var s=(a=a.concat(i.slice(1))).pop();if(!s)break;e=s}var u=o.getTimezoneOffset();r&&(u=wp(r,u),o=function(t,e,n){var r=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(wp(e,r)-r))}(o,r));var c="";return a.forEach(function(t){var e=function(t){if(bp[t])return bp[t];var e;switch(t){case"G":case"GG":case"GGG":e=yp(cp.Eras,Gc.Abbreviated);break;case"GGGG":e=yp(cp.Eras,Gc.Wide);break;case"GGGGG":e=yp(cp.Eras,Gc.Narrow);break;case"y":e=dp(lp.FullYear,1,0,!1,!0);break;case"yy":e=dp(lp.FullYear,2,0,!0,!0);break;case"yyy":e=dp(lp.FullYear,3,0,!1,!0);break;case"yyyy":e=dp(lp.FullYear,4,0,!1,!0);break;case"M":case"L":e=dp(lp.Month,1,1);break;case"MM":case"LL":e=dp(lp.Month,2,1);break;case"MMM":e=yp(cp.Months,Gc.Abbreviated);break;case"MMMM":e=yp(cp.Months,Gc.Wide);break;case"MMMMM":e=yp(cp.Months,Gc.Narrow);break;case"LLL":e=yp(cp.Months,Gc.Abbreviated,Wc.Standalone);break;case"LLLL":e=yp(cp.Months,Gc.Wide,Wc.Standalone);break;case"LLLLL":e=yp(cp.Months,Gc.Narrow,Wc.Standalone);break;case"w":e=_p(1);break;case"ww":e=_p(2);break;case"W":e=_p(1,!0);break;case"d":e=dp(lp.Date,1);break;case"dd":e=dp(lp.Date,2);break;case"E":case"EE":case"EEE":e=yp(cp.Days,Gc.Abbreviated);break;case"EEEE":e=yp(cp.Days,Gc.Wide);break;case"EEEEE":e=yp(cp.Days,Gc.Narrow);break;case"EEEEEE":e=yp(cp.Days,Gc.Short);break;case"a":case"aa":case"aaa":e=yp(cp.DayPeriods,Gc.Abbreviated);break;case"aaaa":e=yp(cp.DayPeriods,Gc.Wide);break;case"aaaaa":e=yp(cp.DayPeriods,Gc.Narrow);break;case"b":case"bb":case"bbb":e=yp(cp.DayPeriods,Gc.Abbreviated,Wc.Standalone,!0);break;case"bbbb":e=yp(cp.DayPeriods,Gc.Wide,Wc.Standalone,!0);break;case"bbbbb":e=yp(cp.DayPeriods,Gc.Narrow,Wc.Standalone,!0);break;case"B":case"BB":case"BBB":e=yp(cp.DayPeriods,Gc.Abbreviated,Wc.Format,!0);break;case"BBBB":e=yp(cp.DayPeriods,Gc.Wide,Wc.Format,!0);break;case"BBBBB":e=yp(cp.DayPeriods,Gc.Narrow,Wc.Format,!0);break;case"h":e=dp(lp.Hours,1,-12);break;case"hh":e=dp(lp.Hours,2,-12);break;case"H":e=dp(lp.Hours,1);break;case"HH":e=dp(lp.Hours,2);break;case"m":e=dp(lp.Minutes,1);break;case"mm":e=dp(lp.Minutes,2);break;case"s":e=dp(lp.Seconds,1);break;case"ss":e=dp(lp.Seconds,2);break;case"S":e=dp(lp.FractionalSeconds,1);break;case"SS":e=dp(lp.FractionalSeconds,2);break;case"SSS":e=dp(lp.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=mp(up.Short);break;case"ZZZZZ":e=mp(up.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=mp(up.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=mp(up.Long);break;default:return null}return bp[t]=e,e}(t);c+=e?e(o,n,u):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function hp(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function fp(t,e,n,r,o){void 0===n&&(n="-");var i="";(t<0||o&&t<=0)&&(o?t=1-t:(t=-t,i=n));for(var a=String(t);a.length<e;)a="0"+a;return r&&(a=a.substr(a.length-e)),i+a}function dp(t,e,n,r,o){return void 0===n&&(n=0),void 0===r&&(r=!1),void 0===o&&(o=!1),function(i,a){var s,u=function(t,e){switch(t){case lp.FullYear:return e.getFullYear();case lp.Month:return e.getMonth();case lp.Date:return e.getDate();case lp.Hours:return e.getHours();case lp.Minutes:return e.getMinutes();case lp.Seconds:return e.getSeconds();case lp.FractionalSeconds:return e.getMilliseconds();case lp.Day:return e.getDay();default:throw new Error('Unknown DateType value "'+t+'".')}}(t,i);if((n>0||u>-n)&&(u+=n),t===lp.Hours)0===u&&-12===n&&(u=12);else if(t===lp.FractionalSeconds)return s=e,fp(u,3).substr(0,s);var l=tp(a,Kc.MinusSign);return fp(u,e,l,r,o)}}function yp(t,e,n,r){return void 0===n&&(n=Wc.Format),void 0===r&&(r=!1),function(o,i){return function(t,e,n,r,o,i){switch(n){case cp.Months:return $c(e,o,r)[t.getMonth()];case cp.Days:return Zc(e,o,r)[t.getDay()];case cp.DayPeriods:var a=t.getHours(),s=t.getMinutes();if(i){var u,l=function(t){var e=op(t);return ep(e),(e[19][2]||[]).map(function(t){return"string"==typeof t?rp(t):[rp(t[0]),rp(t[1])]})}(e),c=function(t,e,n){var r=op(t);ep(r);var o=np([r[19][0],r[19][1]],e)||[];return np(o,n)||[]}(e,o,r);if(l.forEach(function(t,e){if(Array.isArray(t)){var n=t[0],r=t[1],o=r.hours;a>=n.hours&&s>=n.minutes&&(a<o||a===o&&s<r.minutes)&&(u=c[e])}else t.hours===a&&t.minutes===s&&(u=c[e])}),u)return u}return function(t,e,n){var r=op(t),o=np([r[1],r[2]],e);return np(o,n)}(e,o,r)[a<12?0:1];case cp.Eras:return function(t,e){return np(op(t)[7],e)}(e,r)[t.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type "+n)}}(o,i,t,e,n,r)}}function mp(t){return function(e,n,r){var o=-1*r,i=tp(n,Kc.MinusSign),a=o>0?Math.floor(o/60):Math.ceil(o/60);switch(t){case up.Short:return(o>=0?"+":"")+fp(a,2,i)+fp(Math.abs(o%60),2,i);case up.ShortGMT:return"GMT"+(o>=0?"+":"")+fp(a,1,i);case up.Long:return"GMT"+(o>=0?"+":"")+fp(a,2,i)+":"+fp(Math.abs(o%60),2,i);case up.Extended:return 0===r?"Z":(o>=0?"+":"")+fp(a,2,i)+":"+fp(Math.abs(o%60),2,i);default:throw new Error('Unknown zone width "'+t+'"')}}}var vp=0,gp=4;function _p(t,e){return void 0===e&&(e=!1),function(n,r){var o,i,a,s;if(e){var u=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,l=n.getDate();o=1+Math.floor((l+u)/7)}else{var c=(a=n.getFullYear(),s=new Date(a,vp,1).getDay(),new Date(a,0,1+(s<=gp?gp:gp+7)-s)),p=(i=n,new Date(i.getFullYear(),i.getMonth(),i.getDate()+(gp-i.getDay()))).getTime()-c.getTime();o=1+Math.round(p/6048e5)}return fp(o,t,tp(r,Kc.MinusSign))}}var bp={};function wp(t,e){t=t.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function Cp(t){return t instanceof Date&&!isNaN(t.valueOf())}var Ep=new Tt("UseV4Plurals"),Sp=function(){return function(){}}(),xp=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return o(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return op(t)[18]}(e||this.locale)(t)){case qc.Zero:return"zero";case qc.One:return"one";case qc.Two:return"two";case qc.Few:return"few";case qc.Many:return"many";default:return"other"}},e}(Sp);function Tp(t,e){var n,r;e=encodeURIComponent(e);try{for(var o=u(t.split(";")),i=o.next();!i.done;i=o.next()){var a=i.value,s=a.indexOf("="),c=l(-1==s?[a,""]:[a.slice(0,s),a.slice(s+1)],2),p=c[1];if(c[0].trim()===e)return decodeURIComponent(p)}}catch(h){n={error:h}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}var kp=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}(),Dp=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(t.prototype,"ngForOf",{set:function(t){this._ngForOf=t,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){_o()&&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.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new kp(null,e._ngForOf,-1,-1),o),a=new Op(t,i);n.push(a)}else null==o?e._viewContainer.remove(r):(i=e._viewContainer.get(r),e._viewContainer.move(i,o),a=new Op(t,i),n.push(a))});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);r=0;for(var o=this._viewContainer.length;r<o;r++){var i=this._viewContainer.get(r);i.context.index=r,i.context.count=o,i.context.ngForOf=this._ngForOf}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.ngTemplateContextGuard=function(t,e){return!0},t}(),Op=function(){return function(t,e){this.record=t,this.view=e}}(),Pp=function(){function t(t,e){this._viewContainer=t,this._context=new Ap,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){Ip("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){Ip("ngIfElse",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.ngTemplateGuard_ngIf=function(t,e){return!0},t}(),Ap=function(){return function(){this.$implicit=null,this.ngIf=null}}();function Ip(t,e){if(e&&!e.createEmbeddedView)throw new Error(t+" must be a TemplateRef, but received '"+Lt(e)+"'.")}var Rp=function(){function t(t){this._viewContainerRef=t}return t.prototype.ngOnChanges=function(t){this._shouldRecreateView(t)?(this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))):this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)},t.prototype._shouldRecreateView=function(t){var e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)},t.prototype._hasContextShapeChanged=function(t){var e,n,r=Object.keys(t.previousValue||{}),o=Object.keys(t.currentValue||{});if(r.length===o.length){try{for(var i=u(o),a=i.next();!a.done;a=i.next())if(-1===r.indexOf(a.value))return!0}catch(s){e={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return!1}return!0},t.prototype._updateExistingContext=function(t){var e,n;try{for(var r=u(Object.keys(t)),o=r.next();!o.done;o=r.next()){var i=o.value;this._viewRef.context[i]=this.ngTemplateOutletContext[i]}}catch(a){e={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},t}(),Np=function(){function t(t){this.locale=t}var e;return e=t,t.prototype.transform=function(t,n,r,o){if(void 0===n&&(n="mediumDate"),null==t||""===t||t!=t)return null;try{return pp(t,n,o||this.locale,r)}catch(i){throw Error("InvalidPipeArgument: '"+i.message+"' for pipe '"+Lt(e)+"'")}},t}(),Mp=function(){return function(){}}(),jp=new Tt("DocumentToken"),Vp="server",Fp=function(){function t(){}return t.ngInjectableDef=Et({providedIn:"root",factory:function(){return new Lp(Kt(jp),window)}}),t}(),Lp=function(){function t(t,e){this.document=t,this.window=e,this.offset=function(){return[0,0]}}return t.prototype.setOffset=function(t){this.offset=Array.isArray(t)?function(){return t}:t},t.prototype.getScrollPosition=function(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]},t.prototype.scrollToPosition=function(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])},t.prototype.scrollToAnchor=function(t){if(this.supportScrollRestoration()){var e=this.document.querySelector("#"+t);if(e)return void this.scrollToElement(e);var n=this.document.querySelector("[name='"+t+"']");if(n)return void this.scrollToElement(n)}},t.prototype.setHistoryScrollRestoration=function(t){if(this.supportScrollRestoration()){var e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}},t.prototype.scrollToElement=function(t){var e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],r-o[1])},t.prototype.supportScrollRestoration=function(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}},t}(),Up=null;function Hp(){return Up}var Bp,zp={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},qp={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Wp={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"};Rt.Node&&(Bp=Rt.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var Gp,Qp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){var t;t=new e,Up||(Up=t)},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){var r;(r=t)[e].apply(r,c(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 zp},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return Bp.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=this.getDefaultDocument().createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=this.getDefaultDocument().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&&this.isTemplateElement(t)?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 this.getDefaultDocument().createComment(t)},e.prototype.createTemplate=function(t){var e=this.getDefaultDocument().createElement("template");return e.innerHTML=t,e},e.prototype.createElement=function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)},e.prototype.createElementNS=function(t,e,n){return(n=n||this.getDefaultDocument()).createElementNS(t,e)},e.prototype.createTextNode=function(t,e){return(e=e||this.getDefaultDocument()).createTextNode(t)},e.prototype.createScriptTag=function(t,e,n){var r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(t,e),r},e.prototype.createStyleElement=function(t,e){var n=(e=e||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(t,e)),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 o=n.item(r);e.set(o.name,o.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.getDefaultDocument=function(){return document},e.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(e){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},e.prototype.getTitle=function(t){return t.title},e.prototype.setTitle=function(t,e){t.title=e||""},e.prototype.elementMatches=function(t,e){return!!this.isElementNode(t)&&(t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e))},e.prototype.isTemplateElement=function(t){return this.isElementNode(t)&&"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.getAttribute("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&&Wp.hasOwnProperty(e)&&(e=Wp[e]))}return qp[e]||e},e.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null},e.prototype.getHistory=function(){return window.history},e.prototype.getLocation=function(){return window.location},e.prototype.getBaseHref=function(t){var e,n=Kp||(Kp=document.querySelector("base"))?Kp.getAttribute("href"):null;return null==n?null:(e=n,Gp||(Gp=document.createElement("a")),Gp.setAttribute("href",e),"/"===Gp.pathname.charAt(0)?Gp.pathname:"/"+Gp.pathname)},e.prototype.resetBaseElement=function(){Kp=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 Tp(document.cookie,t)},e.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},e}(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"],o=0;o<r.length;o++)if(null!=e.getStyle(n,r[o]+"AnimationName")){e._animationPrefix="-"+r[o].toLowerCase()+"-";break}var i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(i).forEach(function(t){null!=e.getStyle(n,t)&&(e._transitionEnd=i[t])})}catch(a){e._animationPrefix=null,e._transitionEnd=null}return e}return o(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}(function(){function t(){this.resourceLoaderType=null}return Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t}())),Kp=null,Zp=jp;function $p(){return!!window.history.pushState}var Yp=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}var n;return o(e,t),e.prototype._init=function(){this.location=Hp().getLocation(),this._history=Hp().getHistory()},e.prototype.getBaseHrefFromDOM=function(){return Hp().getBaseHref(this._doc)},e.prototype.onPopState=function(t){Hp().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){Hp().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){$p()?this._history.pushState(t,e,n):this.location.hash=n},e.prototype.replaceState=function(t,e,n){$p()?this._history.replaceState(t,e,n):this.location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},a([(n=Ht(Zp),function(t,e){n(t,e,0)}),s("design:paramtypes",[Object])],e)}(Rc),Jp=new Tt("TRANSITION_ID"),Xp=[{provide:oi,useFactory:function(t,e,n){return function(){n.get(ii).donePromise.then(function(){var n=Hp();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)})})}},deps:[Jp,Zp,Fn],multi:!0}],th=function(){function t(){}return t.init=function(){var e;e=new t,Ri=e},t.prototype.addToWindow=function(t){Rt.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},Rt.getAllAngularTestabilities=function(){return t.getAllTestabilities()},Rt.getAllAngularRootElements=function(){return t.getAllRootElements()},Rt.frameworkStabilizers||(Rt.frameworkStabilizers=[]),Rt.frameworkStabilizers.push(function(t){var e=Rt.getAllAngularTestabilities(),n=e.length,r=!1,o=function(e){r=r||e,0==--n&&t(r)};e.forEach(function(t){t.whenStable(o)})})},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var r=t.getTestability(e);return null!=r?r:n?Hp().isShadowRoot(e)?this.findTestabilityInTree(t,Hp().getHost(e),!0):this.findTestabilityInTree(t,Hp().parentElement(e),!0):null},t}();function eh(t,e){"undefined"!=typeof COMPILED&&COMPILED||((Rt.ng=Rt.ng||{})[t]=e)}var nh={ApplicationRef:Ui,NgZone:Ei};function rh(t){return ra(t)}var oh=new Tt("EventManagerPlugins"),ih=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 o=n[r];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error("No event manager plugin found for event "+t)},t}(),ah=function(){function t(t){this._doc=t}return t.prototype.addGlobalEventListener=function(t,e,n){var r=Hp().getGlobalEventTarget(this._doc,t);if(!r)throw new Error("Unsupported event target "+r+" for event "+e);return this.addEventListener(r,e,n)},t}(),sh=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}(),uh=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 o(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 Hp().remove(t)})},e}(sh),lh={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/"},ch=/%COMP%/g,ph="_nghost-%COMP%",hh="_ngcontent-%COMP%";function fh(t,e,n){for(var r=0;r<e.length;r++){var o=e[r];Array.isArray(o)?fh(t,o,n):(o=o.replace(ch,t),n.push(o))}return n}function dh(t){return function(e){!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}var yh=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new mh(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case Pt.Emulated:var n=this.rendererByCompId.get(e.id);return n||(n=new bh(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n;case Pt.Native:case Pt.ShadowDom:return new wh(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var r=fh(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}(),mh=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(lh[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,e){var n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error('The selector "'+t+'" did not match any elements');return e||(n.textContent=""),n},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 o=lh[r];o?t.setAttributeNS(o,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var r=lh[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&oo.DashCase?t.style.setProperty(e,n,r&oo.Important?"important":""):t.style[e]=n},t.prototype.removeStyle=function(t,e,n){n&oo.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,n){gh(e,"property"),t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return gh(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,dh(n)):this.eventManager.addEventListener(t,e,dh(n))},t}(),vh="@".charCodeAt(0);function gh(t,e){if(t.charCodeAt(0)===vh)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var _h,bh=function(t){function e(e,n,r){var o=t.call(this,e)||this;o.component=r;var i=fh(r.id,r.styles,[]);return n.addStyles(i),o.contentAttr=hh.replace(ch,r.id),o.hostAttr=ph.replace(ch,r.id),o}return o(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}(mh),wh=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;i.sharedStylesHost=n,i.hostEl=r,i.component=o,i.shadowRoot=o.encapsulation===Pt.ShadowDom?r.attachShadow({mode:"open"}):r.createShadowRoot(),i.sharedStylesHost.addHost(i.shadowRoot);for(var a=fh(o.id,o.styles,[]),s=0;s<a.length;s++){var u=document.createElement("style");u.textContent=a[s],i.shadowRoot.appendChild(u)}return i}return o(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}(mh),Ch="undefined"!=typeof Zone&&Zone.__symbol__||function(t){return"__zone_symbol__"+t},Eh=Ch("addEventListener"),Sh=Ch("removeEventListener"),xh={},Th="__zone_symbol__propagationStopped";"undefined"!=typeof Zone&&Zone[Ch("BLACK_LISTED_EVENTS")]&&(_h={});var kh=function(t){return!!_h&&_h.hasOwnProperty(t)},Dh=function(t){var e=xh[t.type];if(e){var n=this[e];if(n){var r=[t];if(1===n.length)return(a=n[0]).zone!==Zone.current?a.zone.run(a.handler,this,r):a.handler.apply(this,r);for(var o=n.slice(),i=0;i<o.length&&!0!==t[Th];i++){var a;(a=o[i]).zone!==Zone.current?a.zone.run(a.handler,this,r):a.handler.apply(this,r)}}}},Oh=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.ngZone=n,r&&function(t){return t===Vp}(r)||o.patchEvent(),o}return o(e,t),e.prototype.patchEvent=function(){if("undefined"!=typeof Event&&Event&&Event.prototype&&!Event.prototype.__zone_symbol__stopImmediatePropagation){var t=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[Th]=!0),t&&t.apply(this,arguments)}}},e.prototype.supports=function(t){return!0},e.prototype.addEventListener=function(t,e,n){var r=this,o=n;if(!t[Eh]||Ei.isInAngularZone()&&!kh(e))t.addEventListener(e,o,!1);else{var i=xh[e];i||(i=xh[e]=Ch("ANGULAR"+e+"FALSE"));var a=t[i],s=a&&a.length>0;a||(a=t[i]=[]);var u=kh(e)?Zone.root:Zone.current;if(0===a.length)a.push({zone:u,handler:o});else{for(var l=!1,c=0;c<a.length;c++)if(a[c].handler===o){l=!0;break}l||a.push({zone:u,handler:o})}s||t[Eh](e,Dh,!1)}return function(){return r.removeEventListener(t,e,o)}},e.prototype.removeEventListener=function(t,e,n){var r=t[Sh];if(!r)return t.removeEventListener.apply(t,[e,n,!1]);var o=xh[e],i=o&&t[o];if(!i)return t.removeEventListener.apply(t,[e,n,!1]);for(var a=!1,s=0;s<i.length;s++)if(i[s].handler===n){a=!0,i.splice(s,1);break}a?0===i.length&&r.apply(t,[e,Dh,!1]):t.removeEventListener.apply(t,[e,n,!1])},e}(ah),Ph={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},Ah=new Tt("HammerGestureConfig"),Ih=new Tt("HammerLoader"),Rh=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t,this.options);for(var n in e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0}),this.overrides)e.get(n).set(this.overrides[n]);return e},t}(),Nh=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i._config=n,i.console=r,i.loader=o,i}return o(e,t),e.prototype.supports=function(t){return!(!Ph.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t)||!window.Hammer&&!this.loader&&(this.console.warn('The "'+t+'" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.'),1))},e.prototype.addEventListener=function(t,e,n){var r=this,o=this.manager.getZone();if(e=e.toLowerCase(),!window.Hammer&&this.loader){var i=!1,a=function(){i=!0};return this.loader().then(function(){if(!window.Hammer)return r.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(a=function(){});i||(a=r.addEventListener(t,e,n))}).catch(function(){r.console.warn('The "'+e+'" event cannot be bound because the custom Hammer.JS loader failed.'),a=function(){}}),function(){a()}}return o.runOutsideAngular(function(){var i=r._config.buildHammer(t),a=function(t){o.runGuarded(function(){n(t)})};return i.on(e,a),function(){i.off(e,a),"function"==typeof i.destroy&&i.destroy()}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e}(ah),Mh=["alt","control","meta","shift"],jh={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Vh=function(t){function e(e){return t.call(this,e)||this}var n;return o(e,t),n=e,e.prototype.supports=function(t){return null!=n.parseEventName(t)},e.prototype.addEventListener=function(t,e,r){var o=n.parseEventName(e),i=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Hp().onAndCancel(t,o.domEventName,i)})},e.parseEventName=function(t){var e=t.toLowerCase().split("."),r=e.shift();if(0===e.length||"keydown"!==r&&"keyup"!==r)return null;var o=n._normalizeKey(e.pop()),i="";if(Mh.forEach(function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),i+=t+".")}),i+=o,0!=e.length||0===o.length)return null;var a={};return a.domEventName=r,a.fullKey=i,a},e.getEventFullKey=function(t){var e="",n=Hp().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Mh.forEach(function(r){r!=n&&(0,jh[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,e,r){return function(o){n.getEventFullKey(o)===t&&r.runGuarded(function(){return e(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(ah),Fh=function(){return function(){}}(),Lh=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return o(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case Wo.NONE:return e;case Wo.HTML:return e instanceof Hh?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=null;try{To=To||new bo(t);var r=e?String(e):"";n=To.getInertBodyElement(r);var o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=To.getInertBodyElement(r)}while(r!==i);var a=new Mo,s=a.sanitizeChildren(Lo(n)||n);return _o()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),s}finally{if(n)for(var u=Lo(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}(this._doc,String(e)));case Wo.STYLE:return e instanceof Bh?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(Ko);return e&&Eo(e[1])===e[1]||t.match(Qo)&&function(t){for(var e=!0,n=!0,r=0;r<t.length;r++){var o=t.charAt(r);"'"===o&&n?e=!e:'"'===o&&e&&(n=!n)}return e&&n}(t)?t:(_o()&&console.warn("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}(e));case Wo.SCRIPT:if(e instanceof zh)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case Wo.URL:return e instanceof Wh||e instanceof qh?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),Eo(String(e)));case Wo.RESOURCE_URL:if(e instanceof Wh)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 Uh)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 Hh(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new Bh(t)},e.prototype.bypassSecurityTrustScript=function(t){return new zh(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new qh(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new Wh(t)},e}(Fh),Uh=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),Hh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(Uh),Bh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getTypeName=function(){return"Style"},e}(Uh),zh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getTypeName=function(){return"Script"},e}(Uh),qh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getTypeName=function(){return"URL"},e}(Uh),Wh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(Uh),Gh=ji(ba,"browser",[{provide:ci,useValue:"browser"},{provide:li,useValue:function(){Qp.makeCurrent(),th.init()},multi:!0},{provide:Rc,useClass:Yp,deps:[Zp]},{provide:Zp,useFactory:function(){return document},deps:[]}]);function Qh(){return new ei}var Kh=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.")}var e;return e=t,t.withServerTransition=function(t){return{ngModule:e,providers:[{provide:ai,useValue:t.appId},{provide:Jp,useExisting:ai},Xp]}},t}();"undefined"!=typeof window&&window;var Zh=function(){return function(t,e){this.id=t,this.url=e}}(),$h=function(t){function e(e,n,r,o){void 0===r&&(r="imperative"),void 0===o&&(o=null);var i=t.call(this,e,n)||this;return i.navigationTrigger=r,i.restoredState=o,i}return o(e,t),e.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},e}(Zh),Yh=function(t){function e(e,n,r){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o}return o(e,t),e.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},e}(Zh),Jh=function(t){function e(e,n,r){var o=t.call(this,e,n)||this;return o.reason=r,o}return o(e,t),e.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},e}(Zh),Xh=function(t){function e(e,n,r){var o=t.call(this,e,n)||this;return o.error=r,o}return o(e,t),e.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},e}(Zh),tf=function(t){function e(e,n,r,o){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i.state=o,i}return o(e,t),e.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(Zh),ef=function(t){function e(e,n,r,o){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i.state=o,i}return o(e,t),e.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(Zh),nf=function(t){function e(e,n,r,o,i){var a=t.call(this,e,n)||this;return a.urlAfterRedirects=r,a.state=o,a.shouldActivate=i,a}return o(e,t),e.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},e}(Zh),rf=function(t){function e(e,n,r,o){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i.state=o,i}return o(e,t),e.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(Zh),of=function(t){function e(e,n,r,o){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i.state=o,i}return o(e,t),e.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(Zh),af=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),sf=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),uf=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),lf=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),cf=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),pf=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),hf=function(){function t(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}return t.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"},t}(),ff=function(){return function(){}}(),df="primary",yf=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}();function mf(t){return new yf(t)}var vf="ngNavigationCancelingError";function gf(t){var e=Error("NavigationCancelingError: "+t);return e[vf]=!0,e}function _f(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 o={},i=0;i<r.length;i++){var a=r[i],s=t[i];if(a.startsWith(":"))o[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:t.slice(0,r.length),posParams:o}}var bf=function(){return function(t,e){this.routes=t,this.module=e}}();function wf(t,e){void 0===e&&(e="");for(var n=0;n<t.length;n++){var r=t[n];Cf(r,Ef(e,r))}}function Cf(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.children&&!t.loadChildren&&t.outlet&&t.outlet!==df)throw new Error("Invalid configuration of route '"+e+"': a componentless route without children or loadChildren 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&&wf(t.children,e)}function Ef(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function Sf(t){var e=t.children&&t.children.map(Sf),n=e?i({},t,{children:e}):i({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==df&&(n.component=ff),n}function xf(t,e){var n,r=Object.keys(t),o=Object.keys(e);if(r.length!=o.length)return!1;for(var i=0;i<r.length;i++)if(t[n=r[i]]!==e[n])return!1;return!0}function Tf(t){return Array.prototype.concat.apply([],t)}function kf(t){return t.length>0?t[t.length-1]:null}function Df(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Of(t){return ri(t)?t:ni(t)?ot(Promise.resolve(t)):zl(t)}function Pf(t,e,n){return n?function(t,e){return xf(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Nf(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,o){if(n.segments.length>o.length)return!!Nf(a=n.segments.slice(0,o.length),o)&&!r.hasChildren();if(n.segments.length===o.length){if(!Nf(n.segments,o))return!1;for(var i in r.children){if(!n.children[i])return!1;if(!t(n.children[i],r.children[i]))return!1}return!0}var a=o.slice(0,n.segments.length),s=o.slice(n.segments.length);return!!Nf(n.segments,a)&&!!n.children[df]&&e(n.children[df],r,s)}(e,n,n.segments)}(t.root,e.root)}var Af=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=mf(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Ff.serialize(this)},t}(),If=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,Df(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 Lf(this)},t}(),Rf=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=mf(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Wf(this)},t}();function Nf(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function Mf(t,e){var n=[];return Df(t.children,function(t,r){r===df&&(n=n.concat(e(t,r)))}),Df(t.children,function(t,r){r!==df&&(n=n.concat(e(t,r)))}),n}var jf=function(){return function(){}}(),Vf=function(){function t(){}return t.prototype.parse=function(t){var e=new $f(t);return new Af(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return Lf(e);if(n){var r=e.children[df]?t(e.children[df],!1):"",o=[];return Df(e.children,function(e,n){n!==df&&o.push(n+":"+t(e,!1))}),o.length>0?r+"("+o.join("//")+")":r}var i=Mf(e,function(n,r){return r===df?[t(e.children[df],!1)]:[r+":"+t(n,!1)]});return Lf(e)+"/("+i.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return Hf(t)+"="+Hf(e)}).join("&"):Hf(t)+"="+Hf(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),Ff=new Vf;function Lf(t){return t.segments.map(function(t){return Wf(t)}).join("/")}function Uf(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Hf(t){return Uf(t).replace(/%3B/gi,";")}function Bf(t){return Uf(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function zf(t){return decodeURIComponent(t)}function qf(t){return zf(t.replace(/\+/g,"%20"))}function Wf(t){return""+Bf(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+Bf(t)+"="+Bf(e[t])}).join(""));var e}var Gf=/^[^\/()?;=#]+/;function Qf(t){var e=t.match(Gf);return e?e[0]:""}var Kf=/^[^=?&#]+/,Zf=/^[^?&#]+/,$f=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 If([],{}):new If([],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("#")?decodeURIComponent(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[df]=new If(t,e)),n},t.prototype.parseSegment=function(){var t=Qf(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new Rf(zf(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Qf(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=Qf(this.remaining);r&&this.capture(n=r)}t[zf(e)]=zf(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(Kf))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var o=function(t){var e=t.match(Zf);return e?e[0]:""}(this.remaining);o&&this.capture(r=o)}var i=qf(n),a=qf(r);if(t.hasOwnProperty(i)){var s=t[i];Array.isArray(s)||(t[i]=s=[s]),s.push(a)}else t[i]=a}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Qf(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=df);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[df]:new If([],i),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}(),Yf=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=Jf(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=Jf(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=Xf(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 Xf(t,this._root).map(function(t){return t.value})},t}();function Jf(t,e){var n,r;if(t===e.value)return e;try{for(var o=u(e.children),i=o.next();!i.done;i=o.next()){var a=Jf(t,i.value);if(a)return a}}catch(s){n={error:s}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}function Xf(t,e){var n,r;if(t===e.value)return[e];try{for(var o=u(e.children),i=o.next();!i.done;i=o.next()){var a=Xf(t,i.value);if(a.length)return a.unshift(e),a}}catch(s){n={error:s}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return[]}var td=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function ed(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var nd=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,ud(r,e),r}return o(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(Yf);function rd(t,e){var n=function(t,e){var n=new ad([],{},{},"",{},df,e,null,t.root,-1,{});return new sd("",new td(n,[]))}(t,e),r=new ql([new Rf("",{})]),o=new ql({}),i=new ql({}),a=new ql({}),s=new ql(""),u=new od(r,o,a,s,i,df,e,n.root);return u.snapshot=n.root,new nd(new td(u,[]),n)}var od=function(){function t(t,e,n,r,o,i,a,s){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=a,this._futureSnapshot=s}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=this.params.pipe(tt(function(t){return mf(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(tt(function(t){return mf(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function id(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var o=n[r],a=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(a.component)break;r--}}return function(t){return t.reduce(function(t,e){return{params:i({},t.params,e.params),data:i({},t.data,e.data),resolve:i({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var ad=function(){function t(t,e,n,r,o,i,a,s,u,l,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=a,this.routeConfig=s,this._urlSegment=u,this._lastPathIndex=l,this._resolve=c}return 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=mf(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=mf(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}(),sd=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,ud(r,n),r}return o(e,t),e.prototype.toString=function(){return ld(this._root)},e}(Yf);function ud(t,e){e.value._routerState=t,e.children.forEach(function(e){return ud(t,e)})}function ld(t){var e=t.children.length>0?" { "+t.children.map(ld).join(", ")+" } ":"";return""+t.value+e}function cd(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,xf(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),xf(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!xf(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),xf(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function pd(t,e){var n,r;return xf(t.params,e.params)&&Nf(n=t.url,r=e.url)&&n.every(function(t,e){return xf(t.parameters,r[e].parameters)})&&!(!t.parent!=!e.parent)&&(!t.parent||pd(t.parent,e.parent))}function hd(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function fd(t,e,n,r,o){var i={};return r&&Df(r,function(t,e){i[e]=Array.isArray(t)?t.map(function(t){return""+t}):""+t}),new Af(n.root===t?e:function t(e,n,r){var o={};return Df(e.children,function(e,i){o[i]=e===n?r:t(e,n,r)}),new If(e.segments,o)}(n.root,t,e),i,o)}var dd=function(){function t(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&hd(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!==kf(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}(),yd=function(){return function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}();function md(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[df]:""+t}function vd(t,e,n){if(t||(t=new If([],{})),0===t.segments.length&&t.hasChildren())return gd(t,e,n);var r=function(t,e,n){for(var r=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o<t.segments.length;){if(r>=n.length)return i;var a=t.segments[o],s=md(n[r]),u=r<n.length-1?n[r+1]:null;if(o>0&&void 0===s)break;if(s&&u&&"object"==typeof u&&void 0===u.outlets){if(!Cd(s,u,a))return i;r+=2}else{if(!Cd(s,{},a))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){var i=new If(t.segments.slice(0,r.pathIndex),{});return i.children[df]=new If(t.segments.slice(r.pathIndex),t.children),gd(i,0,o)}return r.match&&0===o.length?new If(t.segments,{}):r.match&&!t.hasChildren()?_d(t,e,n):r.match?gd(t,0,o):_d(t,e,n)}function gd(t,e,n){if(0===n.length)return new If(t.segments,{});var r=function(t){var e,n;return"object"!=typeof t[0]?((e={})[df]=t,e):void 0===t[0].outlets?((n={})[df]=t,n):t[0].outlets}(n),o={};return Df(r,function(n,r){null!==n&&(o[r]=vd(t.children[r],e,n))}),Df(t.children,function(t,e){void 0===r[e]&&(o[e]=t)}),new If(t.segments,o)}function _d(t,e,n){for(var r=t.segments.slice(0,e),o=0;o<n.length;){if("object"==typeof n[o]&&void 0!==n[o].outlets){var i=bd(n[o].outlets);return new If(r,i)}if(0===o&&hd(n[0]))r.push(new Rf(t.segments[e].path,n[0])),o++;else{var a=md(n[o]),s=o<n.length-1?n[o+1]:null;a&&s&&hd(s)?(r.push(new Rf(a,wd(s))),o+=2):(r.push(new Rf(a,{})),o++)}}return new If(r,{})}function bd(t){var e={};return Df(t,function(t,n){null!==t&&(e[n]=_d(new If([],{}),0,t))}),e}function wd(t){var e={};return Df(t,function(t,n){return e[n]=""+t}),e}function Cd(t,e,n){return t==n.path&&xf(e,n.parameters)}var Ed=function(){function t(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}return t.prototype.activate=function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),cd(this.futureState.root),this.activateChildRoutes(e,n,t)},t.prototype.deactivateChildRoutes=function(t,e,n){var r=this,o=ed(e);t.children.forEach(function(t){var e=t.value.outlet;r.deactivateRoutes(t,o[e],n),delete o[e]}),Df(o,function(t,e){r.deactivateRouteAndItsChildren(t,n)})},t.prototype.deactivateRoutes=function(t,e,n){var r=t.value,o=e?e.value:null;if(r===o)if(r.component){var i=n.getContext(r.outlet);i&&this.deactivateChildRoutes(t,e,i.children)}else this.deactivateChildRoutes(t,e,n);else o&&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(),o=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t,contexts:o})}},t.prototype.deactivateRouteAndOutlet=function(t,e){var n=this,r=e.getContext(t.value.outlet);if(r){var o=ed(t),i=t.value.component?r.children:e;Df(o,function(t,e){return n.deactivateRouteAndItsChildren(t,i)}),r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated())}},t.prototype.activateChildRoutes=function(t,e,n){var r=this,o=ed(e);t.children.forEach(function(t){r.activateRoutes(t,o[t.value.outlet],n),r.forwardEvent(new pf(t.value.snapshot))}),t.children.length&&this.forwardEvent(new lf(t.value.snapshot))},t.prototype.activateRoutes=function(t,e,n){var r=t.value,o=e?e.value:null;if(cd(r),r===o)if(r.component){var i=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,i.children)}else this.activateChildRoutes(t,e,n);else if(r.component)if(i=n.getOrCreateContext(r.outlet),this.routeReuseStrategy.shouldAttach(r.snapshot)){var a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),i.children.onOutletReAttached(a.contexts),i.attachRef=a.componentRef,i.route=a.route.value,i.outlet&&i.outlet.attach(a.componentRef,a.route.value),Sd(a.route)}else{var s=function(t){for(var e=r.snapshot.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(),u=s?s.module.componentFactoryResolver:null;i.attachRef=null,i.route=r,i.resolver=u,i.outlet&&i.outlet.activateWith(r,u),this.activateChildRoutes(t,null,i.children)}else this.activateChildRoutes(t,null,n)},t}();function Sd(t){cd(t.value),t.children.forEach(Sd)}function xd(t){return"function"==typeof t}function Td(t){return t instanceof Af}var kd=function(){return function(t){this.segmentGroup=t||null}}(),Dd=function(){return function(t){this.urlTree=t}}();function Od(t){return new R(function(e){return e.error(new kd(t))})}function Pd(t){return new R(function(e){return e.error(new Dd(t))})}function Ad(t){return new R(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}var Id=function(){function t(t,e,n,r,o){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(Jn)}return t.prototype.apply=function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,df).pipe(tt(function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)})).pipe(yc(function(e){if(e instanceof Dd)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof kd)throw t.noMatchError(e);throw e}))},t.prototype.match=function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,df).pipe(tt(function(n){return e.createUrlTree(n,t.queryParams,t.fragment)})).pipe(yc(function(t){if(t instanceof kd)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,o=t.segments.length>0?new If([],((r={})[df]=t,r)):t;return new Af(o,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(tt(function(t){return new If([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,o){if(0===Object.keys(n).length)return zl({});var i=[],a=[],s={};return Df(n,function(n,o){var u,l,c=(u=o,l=n,r.expandSegmentGroup(t,e,l,u)).pipe(tt(function(t){return s[o]=t}));o===df?i.push(c):a.push(c)}),zl.apply(null,i.concat(a)).pipe(Yl(),dc(),tt(function(){return s}))}(n.children)},t.prototype.expandSegment=function(t,e,n,r,o,i){var a=this;return zl.apply(void 0,c(n)).pipe(tt(function(s){return a.expandSegmentAgainstRoute(t,e,n,s,r,o,i).pipe(yc(function(t){if(t instanceof kd)return zl(null);throw t}))}),Yl(),wc(function(t){return!!t}),yc(function(t,n){if(t instanceof Gl||"EmptyError"===t.name){if(a.noLeftoversInUrl(e,r,o))return zl(new If([],{}));throw new kd(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,o,i,a){return jd(r)!==i?Od(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i):Od(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var o=this,i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Pd(i):this.lineralizeSegments(n,i).pipe(it(function(n){var i=new If(n,{});return o.expandSegment(t,i,e,n,r,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){var a=this,s=Rd(e,r,o),u=s.consumedSegments,l=s.lastChild,c=s.positionalParamSegments;if(!s.matched)return Od(e);var p=this.applyRedirectCommands(u,r.redirectTo,c);return r.redirectTo.startsWith("/")?Pd(p):this.lineralizeSegments(r,p).pipe(it(function(r){return a.expandSegment(t,e,n,r.concat(o.slice(l)),i,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(tt(function(t){return n._loadedConfig=t,new If(r,{})})):zl(new If(r,{}));var a=Rd(e,n,r),s=a.consumedSegments,l=a.lastChild;if(!a.matched)return Od(e);var c=r.slice(l);return this.getChildConfig(t,n,r).pipe(it(function(t){var n=t.module,r=t.routes,a=function(t,e,n,r){return n.length>0&&function(t,e,n){return r.some(function(n){return Md(t,e,n)&&jd(n)!==df})}(t,n)?{segmentGroup:Nd(new If(e,function(t,e){var n,r,o={};o[df]=e;try{for(var i=u(t),a=i.next();!a.done;a=i.next()){var s=a.value;""===s.path&&jd(s)!==df&&(o[jd(s)]=new If([],{}))}}catch(l){n={error:l}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}(r,new If(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return r.some(function(n){return Md(t,e,n)})}(t,n)?{segmentGroup:Nd(new If(t.segments,function(t,e,n,r){var o,a,s={};try{for(var l=u(n),c=l.next();!c.done;c=l.next()){var p=c.value;Md(t,e,p)&&!r[jd(p)]&&(s[jd(p)]=new If([],{}))}}catch(h){o={error:h}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}return i({},r,s)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,s,c,r),l=a.segmentGroup,p=a.slicedSegments;return 0===p.length&&l.hasChildren()?o.expandChildren(n,r,l).pipe(tt(function(t){return new If(s,t)})):0===r.length&&0===p.length?zl(new If(s,{})):o.expandSegment(n,l,r,p,df,!0).pipe(tt(function(t){return new If(s.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e,n){var r=this;return e.children?zl(new bf(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?zl(e._loadedConfig):function(t,e,n){var r,o=e.canLoad;return o&&0!==o.length?ot(o).pipe(tt(function(r){var o,i=t.get(r);if(function(t){return t&&xd(t.canLoad)}(i))o=i.canLoad(e,n);else{if(!xd(i))throw new Error("Invalid CanLoad guard");o=i(e,n)}return Of(o)})).pipe(Yl(),(r=function(t){return!0===t},function(t){return t.lift(new Cc(r,void 0,t))})):zl(!0)}(t.injector,e,n).pipe(it(function(n){return n?r.configLoader.load(t.injector,e).pipe(tt(function(t){return e._loadedConfig=t,t})):function(t){return new R(function(e){return e.error(gf("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}(e)})):zl(new bf([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return zl(n);if(r.numberOfChildren>1||!r.children[df])return Ad(t.redirectTo);r=r.children[df]}},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 o=this.createSegmentGroup(t,e.root,n,r);return new Af(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return Df(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var o=t.substring(1);n[r]=e[o]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var o=this,i=this.createSegments(t,e.segments,n,r),a={};return Df(e.children,function(e,i){a[i]=o.createSegmentGroup(t,e,n,r)}),new If(i,a)},t.prototype.createSegments=function(t,e,n,r){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,r):o.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){var n,r,o=0;try{for(var i=u(e),a=i.next();!a.done;a=i.next()){var s=a.value;if(s.path===t.path)return e.splice(o),s;o++}}catch(l){n={error:l}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return t},t}();function Rd(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||_f)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Nd(t){if(1===t.numberOfChildren&&t.children[df]){var e=t.children[df];return new If(t.segments.concat(e.segments),e.children)}return t}function Md(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function jd(t){return t.outlet||df}var Vd=function(){return function(t){this.path=t,this.route=this.path[this.path.length-1]}}(),Fd=function(){return function(t,e){this.component=t,this.route=e}}();function Ld(t,e,n){var r=function(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}(e);return(r?r.module.injector:n).get(t)}function Ud(t,e,n){var r=ed(t),o=t.value;Df(r,function(t,r){Ud(t,o.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new Fd(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))}var Hd=Symbol("INITIAL_VALUE");function Bd(){return Sc(function(t){return(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null,r=null;return H(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&p(t[0])&&(t=t[0]),rt(t,r).lift(new Kl(n))}).apply(void 0,c(t.map(function(t){return t.pipe(gc(1),function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n=t[t.length-1];H(n)?t.pop():n=null;var r=t.length;return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length||2===t.length&&H(t[1])?ot(t[0]):Yl()(zl.apply(void 0,t))}(1!==r||n?r>0?rt(t,n):Hl(n):Bl(t[0]),e)}}(Hd))}))).pipe(kc(function(t,e){var n=!1;return e.reduce(function(t,r,o){if(t!==Hd)return t;if(r===Hd&&(n=!0),!n){if(!1===r)return r;if(o===e.length-1||Td(r))return r}return t},t)},Hd),Jl(function(t){return t!==Hd}),tt(function(t){return Td(t)?t:!0===t}),gc(1))})}var zd=function(){return function(){}}(),qd=function(){function t(t,e,n,r,o,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=i}return t.prototype.recognize=function(){try{var t=Qd(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,df),n=new ad([],Object.freeze({}),Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,{},df,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new td(n,e),o=new sd(this.url,r);return this.inheritParamsAndData(o._root),zl(o)}catch(a){return new R(function(t){return t.error(a)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=id(n,this.paramsInheritanceStrategy);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,r=this,o=Mf(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},o.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.url.map(function(t){return t.toString()}).join("/"),o=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+o+"'.")}n[t.value.outlet]=t.value}),o.sort(function(t,e){return t.value.outlet===df?-1:e.value.outlet===df?1:t.value.outlet.localeCompare(e.value.outlet)}),o},t.prototype.processSegment=function(t,e,n,r){var o,i;try{for(var a=u(t),s=a.next();!s.done;s=a.next()){var l=s.value;try{return this.processSegmentAgainstRoute(l,e,n,r)}catch(c){if(!(c instanceof zd))throw c}}}catch(p){o={error:p}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}if(this.noLeftoversInUrl(e,n,r))return[];throw new zd},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 zd;if((t.outlet||df)!==r)throw new zd;var o,a=[],s=[];if("**"===t.path){var u=n.length>0?kf(n).parameters:{};o=new ad(n,u,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,$d(t),r,t.component,t,Wd(e),Gd(e)+n.length,Yd(t))}else{var l=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new zd;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||_f)(n,t,e);if(!r)throw new zd;var o={};Df(r.posParams,function(t,e){o[e]=t.path});var a=r.consumed.length>0?i({},o,r.consumed[r.consumed.length-1].parameters):o;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a}}(e,t,n);a=l.consumedSegments,s=n.slice(l.lastChild),o=new ad(a,l.parameters,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,$d(t),r,t.component,t,Wd(e),Gd(e)+a.length,Yd(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),p=Qd(e,a,s,c,this.relativeLinkResolution),h=p.segmentGroup,f=p.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(c,h);return[new td(o,d)]}if(0===c.length&&0===f.length)return[new td(o,[])];var y=this.processSegment(c,h,f,df);return[new td(o,y)]},t}();function Wd(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Gd(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Qd(t,e,n,r,o){if(n.length>0&&function(t,e,n){return r.some(function(n){return Kd(t,e,n)&&Zd(n)!==df})}(t,n)){var a=new If(e,function(t,e,n,r){var o,i,a={};a[df]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;try{for(var s=u(n),l=s.next();!l.done;l=s.next()){var c=l.value;if(""===c.path&&Zd(c)!==df){var p=new If([],{});p._sourceSegment=t,p._segmentIndexShift=e.length,a[Zd(c)]=p}}}catch(h){o={error:h}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return a}(t,e,r,new If(n,t.children)));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return r.some(function(n){return Kd(t,e,n)})}(t,n)){var s=new If(t.segments,function(t,e,n,r,o,a){var s,l,c={};try{for(var p=u(r),h=p.next();!h.done;h=p.next()){var f=h.value;if(Kd(t,n,f)&&!o[Zd(f)]){var d=new If([],{});d._sourceSegment=t,d._segmentIndexShift="legacy"===a?t.segments.length:e.length,c[Zd(f)]=d}}}catch(y){s={error:y}}finally{try{h&&!h.done&&(l=p.return)&&l.call(p)}finally{if(s)throw s.error}}return i({},o,c)}(t,e,n,r,t.children,o));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}var l=new If(t.segments,t.children);return l._sourceSegment=t,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:n}}function Kd(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Zd(t){return t.outlet||df}function $d(t){return t.data||{}}function Yd(t){return t.resolve||{}}function Jd(t,e,n,r){var o=Ld(t,e,r);return Of(o.resolve?o.resolve(e,n):o(e,n))}function Xd(t){return function(e){return e.pipe(Sc(function(e){var n=t(e);return n?ot(n).pipe(tt(function(){return e})):ot([e])}))}}var ty=function(){return function(){}}(),ey=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}(),ny=new Tt("ROUTES"),ry=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;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(tt(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var o=r.create(t);return new bf(Tf(o.injector.get(ny)).map(Sf),o)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?ot(this.loader.load(t)):Of(t()).pipe(it(function(t){return t instanceof Xn?zl(t):ot(e.compiler.compileModuleAsync(t))}))},t}(),oy=function(){return function(){}}(),iy=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}();function ay(t){throw t}function sy(t,e,n){return e.parse("/")}function uy(t,e){return zl(null)}var ly=function(){function t(t,e,n,r,o,i,a,s){var u=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=s,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new L,this.errorHandler=ay,this.malformedUriErrorHandler=sy,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:uy,afterPreactivation:uy},this.urlHandlingStrategy=new iy,this.routeReuseStrategy=new ey,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(Jn),this.console=o.get(hi);var l=o.get(Ei);this.isNgZoneEnabled=l instanceof Ei,this.resetConfig(s),this.currentUrlTree=new Af(new If([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new ry(i,a,function(t){return u.triggerEvent(new af(t))},function(t){return u.triggerEvent(new sf(t))}),this.routerState=rd(this.currentUrlTree,this.rootComponentType),this.transitions=new ql({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",state:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return t.prototype.setupNavigations=function(t){var e=this,n=this.events;return t.pipe(Jl(function(t){return 0!==t.id}),tt(function(t){return i({},t,{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),Sc(function(t){var r,o,a,s,l=!1,c=!1;return zl(t).pipe(Sc(function(t){var r,o,a,s,u=!e.navigated||t.extractedUrl.toString()!==e.currentUrlTree.toString();if(("reload"===e.onSameUrlNavigation||u)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return zl(t).pipe(ac(function(t){return"eager"===e.urlUpdateStrategy&&!t.extras.skipLocationChange&&e.setBrowserUrl(t.rawUrl,!!t.extras.replaceUrl,t.id)}),Sc(function(t){var r=e.transitions.getValue();return n.next(new $h(t.id,e.serializeUrl(t.extractedUrl),t.source,t.state)),r!==e.transitions.getValue()?Ul:[t]}),Sc(function(t){return Promise.resolve(t)}),(r=e.ngModule.injector,o=e.configLoader,a=e.urlSerializer,s=e.config,function(t){return t.pipe(Sc(function(t){return function(e,n,r,o,i){return new Id(e,n,r,t.extractedUrl,i).apply()}(r,o,a,0,s).pipe(tt(function(e){return i({},t,{urlAfterRedirects:e})}))}))}),function(t,n,r,o,a){return function(r){return r.pipe(it(function(r){return function(t,e,n,r,o,i){return void 0===o&&(o="emptyOnly"),void 0===i&&(i="legacy"),new qd(t,e,n,r,o,i).recognize()}(t,n,r.urlAfterRedirects,(s=r.urlAfterRedirects,e.serializeUrl(s)),o,a).pipe(tt(function(t){return i({},r,{targetSnapshot:t})}));var s}))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),ac(function(t){var r=new tf(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(r)}));if(u&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var l=t.extractedUrl,c=t.source,p=t.state,h=t.extras,f=new $h(t.id,e.serializeUrl(l),c,p);n.next(f);var d=rd(l,e.rootComponentType).snapshot;return zl(i({},t,{targetSnapshot:d,urlAfterRedirects:l,extras:i({},h,{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,t.resolve(null),Ul}),Xd(function(t){var n=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),ac(function(t){var n=new ef(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),tt(function(t){return i({},t,{guards:(n=t.targetSnapshot,r=t.currentSnapshot,o=e.rootContexts,a=n._root,function t(e,n,r,o,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var a=ed(n);return e.children.forEach(function(e){!function(e,n,r,o,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var a=e.value,s=n?n.value:null,u=r?r.getContext(e.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){var l=function(t,e,n){switch(n){case"pathParamsChange":return!Nf(t.url,e.url);case"always":return!0;case"paramsOrQueryParamsChange":return!pd(t,e)||!xf(t.queryParams,e.queryParams);case"paramsChange":default:return!pd(t,e)}}(s,a,a.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new Vd(o)):(a.data=s.data,a._resolvedData=s._resolvedData),t(e,n,a.component?u?u.children:null:r,o,i),l&&i.canDeactivateChecks.push(new Fd(u&&u.outlet&&u.outlet.component||null,s))}else s&&Ud(n,u,i),i.canActivateChecks.push(new Vd(o)),t(e,null,a.component?u?u.children:null:r,o,i)}(e,a[e.value.outlet],r,o.concat([e.value]),i),delete a[e.value.outlet]}),Df(a,function(t,e){return Ud(t,r.getContext(e),i)}),i}(a,r?r._root:null,o,[a.value]))});var n,r,o,a}),function(t,e){return function(n){return n.pipe(it(function(n){var r=n.targetSnapshot,o=n.currentSnapshot,a=n.guards,s=a.canActivateChecks,u=a.canDeactivateChecks;return 0===u.length&&0===s.length?zl(i({},n,{guardsResult:!0})):function(t,e,n,r){return ot(u).pipe(it(function(t){return function(t,e,n,r,o){var i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return i&&0!==i.length?zl(i.map(function(i){var a,s=Ld(i,e,o);if(function(t){return t&&xd(t.canDeactivate)}(s))a=Of(s.canDeactivate(t,e,n,r));else{if(!xd(s))throw new Error("Invalid CanDeactivate guard");a=Of(s(t,e,n,r))}return a.pipe(wc())})).pipe(Bd()):zl(!0)}(t.component,t.route,n,e,r)}),wc(function(t){return!0!==t},!0))}(0,r,o,t).pipe(it(function(n){return n&&"boolean"==typeof n?function(t,e,n,r){return ot(s).pipe(Pc(function(e){return ot([function(t,e){return null!==t&&e&&e(new uf(t)),zl(!0)}(e.route.parent,r),function(t,e){return null!==t&&e&&e(new cf(t)),zl(!0)}(e.route,r),function(t,e,n){var r=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)}).filter(function(t){return null!==t}).map(function(e){return $l(function(){return zl(e.guards.map(function(o){var i,a=Ld(o,e.node,n);if(function(t){return t&&xd(t.canActivateChild)}(a))i=Of(a.canActivateChild(r,t));else{if(!xd(a))throw new Error("Invalid CanActivateChild guard");i=Of(a(r,t))}return i.pipe(wc())})).pipe(Bd())})});return zl(o).pipe(Bd())}(t,e.path,n),function(t,e,n){var r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?zl(r.map(function(r){return $l(function(){var o,i=Ld(r,e,n);if(function(t){return t&&xd(t.canActivate)}(i))o=Of(i.canActivate(e,t));else{if(!xd(i))throw new Error("Invalid CanActivate guard");o=Of(i(e,t))}return o.pipe(wc())})})).pipe(Bd()):zl(!0)}(t,e.route,n)]).pipe(Yl(),wc(function(t){return!0!==t},!0))}),wc(function(t){return!0!==t},!0))}(r,0,t,e):zl(n)}),tt(function(t){return i({},n,{guardsResult:t})}))}))}}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),ac(function(t){if(Td(t.guardsResult)){var n=gf('Redirecting to "'+e.serializeUrl(t.guardsResult)+'"');throw n.url=t.guardsResult,n}}),ac(function(t){var n=new nf(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)}),Jl(function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var r=new Jh(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(r),t.resolve(!1),!1}return!0}),Xd(function(t){if(t.guards.canActivateChecks.length)return zl(t).pipe(ac(function(t){var n=new rf(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),(n=e.paramsInheritanceStrategy,r=e.ngModule.injector,function(t){return t.pipe(it(function(t){var e=t.targetSnapshot,o=t.guards.canActivateChecks;return o.length?ot(o).pipe(Pc(function(t){return function(t,n,r,o){return function(t,e,n,r){var o=Object.keys(t);if(0===o.length)return zl({});if(1===o.length){var i=o[0];return Jd(t[i],e,n,r).pipe(tt(function(t){var e;return(e={})[i]=t,e}))}var a={};return ot(o).pipe(it(function(o){return Jd(t[o],e,n,r).pipe(tt(function(t){return a[o]=t,t}))})).pipe(dc(),tt(function(){return a}))}(t._resolve,t,e,o).pipe(tt(function(e){return t._resolvedData=e,t.data=i({},t.data,id(t,r).resolve),null}))}(t.route,0,n,r)}),function(t,e){return arguments.length>=2?function(e){return A(kc(t,void 0),rc(1),pc(void 0))(e)}:function(e){return A(kc(function(e,n,r){return t(e)}),rc(1))(e)}}(function(t,e){return t}),tt(function(e){return t})):zl(t)}))}),ac(function(t){var n=new of(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}));var n,r}),Xd(function(t){var n=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),tt(function(t){var n,r,o,a=(o=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){(l=r.value)._futureSnapshot=n.value;var o=function(e,n,r){return n.children.map(function(n){var o,i;try{for(var a=u(r.children),s=a.next();!s.done;s=a.next()){var l=s.value;if(e.shouldReuseRoute(l.value.snapshot,n.value))return t(e,n,l)}}catch(c){o={error:c}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return t(e,n)})}(e,n,r);return new td(l,o)}var i=e.retrieve(n.value);if(i){var a=i.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(var r=0;r<e.children.length;++r)t(e.children[r],n.children[r])}(n,a),a}var s,l=new od(new ql((s=n.value).url),new ql(s.params),new ql(s.queryParams),new ql(s.fragment),new ql(s.data),s.outlet,s.component,s);return o=n.children.map(function(n){return t(e,n)}),new td(l,o)}(e.routeReuseStrategy,(n=t.targetSnapshot)._root,(r=t.currentRouterState)?r._root:void 0),new nd(o,n));return i({},t,{targetRouterState:a})}),ac(function(t){e.currentUrlTree=t.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(e.currentUrlTree,t.rawUrl),e.routerState=t.targetRouterState,"deferred"!==e.urlUpdateStrategy||t.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,!!t.extras.replaceUrl,t.id)}),(o=e.rootContexts,a=e.routeReuseStrategy,s=function(t){return e.triggerEvent(t)},tt(function(t){return new Ed(a,t.targetRouterState,t.currentRouterState,s).activate(o),t})),ac({next:function(){l=!0},complete:function(){l=!0}}),(r=function(){if(!l&&!c){e.resetUrlToCurrentUrlTree();var r=new Jh(t.id,e.serializeUrl(t.extractedUrl),"Navigation ID "+t.id+" is not equal to the current navigation id "+e.navigationId);n.next(r),t.resolve(!1)}},function(t){return t.lift(new Ac(r))}),yc(function(r){if(c=!0,(s=r)&&s[vf]){e.navigated=!0;var o=Td(r.url);o||e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var i=new Jh(t.id,e.serializeUrl(t.extractedUrl),r.message);n.next(i),t.resolve(!1),o&&e.navigateByUrl(r.url)}else{e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var a=new Xh(t.id,e.serializeUrl(t.extractedUrl),r);n.next(a);try{t.resolve(e.errorHandler(r))}catch(u){t.reject(u)}}var s;return Ul}))}))},t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType},t.prototype.getTransition=function(){return this.transitions.value},t.prototype.setTransition=function(t){this.transitions.next(i({},this.getTransition(),t))},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(function(e){var n=t.parseUrl(e.url),r="popstate"===e.type?"popstate":"hashchange",o=e.state&&e.state.navigationId?{navigationId:e.state.navigationId}:null;setTimeout(function(){t.scheduleNavigation(n,r,o,{replaceUrl:!0})},0)}))},Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.events.next(t)},t.prototype.resetConfig=function(t){wf(t),this.config=t.map(Sf),this.navigated=!1,this.lastSuccessfulId=-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,o=e.fragment,a=e.preserveQueryParams,s=e.queryParamsHandling,u=e.preserveFragment;_o()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=n||this.routerState.root,p=u?this.currentUrlTree.fragment:o,h=null;if(s)switch(s){case"merge":h=i({},this.currentUrlTree.queryParams,r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}else h=a?this.currentUrlTree.queryParams:r||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,r,o){if(0===n.length)return fd(e.root,e.root,e,r,o);var i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new dd(!0,0,t);var e=0,n=!1,r=t.reduce(function(t,r,o){if("object"==typeof r&&null!=r){if(r.outlets){var i={};return Df(r.outlets,function(t,e){i[e]="string"==typeof t?t.split("/"):t}),c(t,[{outlets:i}])}if(r.segmentPath)return c(t,[r.segmentPath])}return"string"!=typeof r?c(t,[r]):0===o?(r.split("/").forEach(function(r,o){0==o&&"."===r||(0==o&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):c(t,[r])},[]);return new dd(n,e,r)}(n);if(i.toRoot())return fd(e.root,new If([],{}),e,r,o);var a=function(t,n,r){if(t.isAbsolute)return new yd(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new yd(r.snapshot._urlSegment,!0,0);var o=hd(t.commands[0])?0:1;return function(e,n,i){for(var a=r.snapshot._urlSegment,s=r.snapshot._lastPathIndex+o,u=t.numberOfDoubleDots;u>s;){if(u-=s,!(a=a.parent))throw new Error("Invalid number of '../'");s=a.segments.length}return new yd(a,!1,s-u)}()}(i,0,t),s=a.processChildren?gd(a.segmentGroup,a.index,i.commands):vd(a.segmentGroup,a.index,i.commands);return fd(a.segmentGroup,s,e,r,o)}(l,this.currentUrlTree,t,h,p)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),_o()&&this.isNgZoneEnabled&&!Ei.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=Td(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(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)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){var e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e},t.prototype.isActive=function(t,e){if(Td(t))return Pf(this.currentUrlTree,t,e);var n=this.parseUrl(t);return Pf(this.currentUrlTree,n,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce(function(e,n){var r=t[n];return null!=r&&(e[n]=r),e},{})},t.prototype.processNavigations=function(){var t=this;this.navigations.subscribe(function(e){t.navigated=!0,t.lastSuccessfulId=e.id,t.events.next(new Yh(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(t.currentUrlTree))),e.resolve(!0)},function(e){t.console.warn("Unhandled Navigation Error: ")})},t.prototype.scheduleNavigation=function(t,e,n,r){var o=this.getTransition();if(o&&"imperative"!==e&&"imperative"===o.source&&o.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(o&&"hashchange"==e&&"popstate"===o.source&&o.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(o&&"popstate"==e&&"hashchange"===o.source&&o.rawUrl.toString()===t.toString())return Promise.resolve(!0);var i=null,a=null,s=new Promise(function(t,e){i=t,a=e}),u=++this.navigationId;return this.setTransition({id:u,source:e,state:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:i,reject:a,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(function(t){return Promise.reject(t)})},t.prototype.setBrowserUrl=function(t,e,n){var r=this.urlSerializer.serialize(t);this.location.isCurrentPathEqualTo(r)||e?this.location.replaceState(r,"",{navigationId:n}):this.location.go(r,"",{navigationId:n})},t.prototype.resetStateAndUrl=function(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()},t.prototype.resetUrlToCurrentUrlTree=function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})},t}(),cy=function(){return function(){this.outlet=null,this.route=null,this.resolver=null,this.children=new py,this.attachRef=null}}(),py=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 cy,this.contexts.set(t,e)),e},t.prototype.getContext=function(t){return this.contexts.get(t)||null},t}(),hy=function(){function t(t,e,n,r,o){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new Bo,this.deactivateEvents=new Bo,this.name=r||df,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,"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=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,o=new fy(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,o),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)},t}(),fy=function(){function t(t,e,n){this.route=t,this.childContexts=e,this.parent=n}return t.prototype.get=function(t,e){return t===od?this.route:t===py?this.childContexts:this.parent.get(t,e)},t}(),dy=function(){return function(){}}(),yy=function(){function t(){}return t.prototype.preload=function(t,e){return e().pipe(yc(function(){return zl(null)}))},t}(),my=function(){function t(){}return t.prototype.preload=function(t,e){return zl(null)},t}(),vy=function(){function t(t,e,n,r,o){this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=new ry(e,n,function(e){return t.triggerEvent(new af(e))},function(e){return t.triggerEvent(new sf(e))})}return t.prototype.setUpPreloading=function(){var t=this;this.subscription=this.router.events.pipe(Jl(function(t){return t instanceof Yh}),Pc(function(){return t.preload()})).subscribe(function(){})},t.prototype.preload=function(){var t=this.injector.get(Jn);return this.processRoutes(t,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){var n,r,o=[];try{for(var i=u(e),a=i.next();!a.done;a=i.next()){var s=a.value;if(s.loadChildren&&!s.canLoad&&s._loadedConfig){var l=s._loadedConfig;o.push(this.processRoutes(l.module,l.routes))}else s.loadChildren&&!s.canLoad?o.push(this.preloadConfig(t,s)):s.children&&o.push(this.processRoutes(t,s.children))}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return ot(o).pipe(lt(),tt(function(t){}))},t.prototype.preloadConfig=function(t,e){var n=this;return this.preloadingStrategy.preload(e,function(){return n.loader.load(t.injector,e).pipe(it(function(t){return e._loadedConfig=t,n.processRoutes(t.module,t.routes)}))})},t}(),gy=function(){function t(t,e,n){void 0===n&&(n={}),this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}return t.prototype.init=function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()},t.prototype.createScrollEvents=function(){var t=this;return this.router.events.subscribe(function(e){e instanceof $h?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Yh&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))})},t.prototype.consumeScrollEvents=function(){var t=this;return this.router.events.subscribe(function(e){e instanceof hf&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))})},t.prototype.scheduleScrollEvent=function(t,e){this.router.triggerEvent(new hf(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))},t.prototype.ngOnDestroy=function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()},t}(),_y=new Tt("ROUTER_CONFIGURATION"),by=new Tt("ROUTER_FORROOT_GUARD"),wy=[Vc,{provide:jf,useClass:Vf},{provide:ly,useFactory:Dy,deps:[Ui,jf,py,Vc,Fn,Bi,mi,ny,_y,[oy,new Bt],[ty,new Bt]]},py,{provide:od,useFactory:Oy,deps:[ly]},{provide:Bi,useClass:Gi},vy,my,yy,{provide:_y,useValue:{enableTracing:!1}}];function Cy(){return new Mi("Router",ly)}var Ey=function(){function t(t,e){}var e;return e=t,t.forRoot=function(t,n){return{ngModule:e,providers:[wy,ky(t),{provide:by,useFactory:Ty,deps:[[ly,new Bt,new qt]]},{provide:_y,useValue:n||{}},{provide:Mc,useFactory:xy,deps:[Rc,[new Ht(jc),new Bt],_y]},{provide:gy,useFactory:Sy,deps:[ly,Fp,_y]},{provide:dy,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:my},{provide:Mi,multi:!0,useFactory:Cy},[Py,{provide:oi,multi:!0,useFactory:Ay,deps:[Py]},{provide:Ry,useFactory:Iy,deps:[Py]},{provide:pi,multi:!0,useExisting:Ry}]]}},t.forChild=function(t){return{ngModule:e,providers:[ky(t)]}},t}();function Sy(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new gy(t,e,n)}function xy(t,e,n){return void 0===n&&(n={}),n.useHash?new Lc(t,e):new Uc(t,e)}function Ty(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function ky(t){return[{provide:Ot,multi:!0,useValue:t},{provide:ny,multi:!0,useValue:t}]}function Dy(t,e,n,r,o,i,a,s,u,l,c){void 0===u&&(u={});var p=new ly(null,e,n,r,o,i,a,Tf(s));if(l&&(p.urlHandlingStrategy=l),c&&(p.routeReuseStrategy=c),u.errorHandler&&(p.errorHandler=u.errorHandler),u.malformedUriErrorHandler&&(p.malformedUriErrorHandler=u.malformedUriErrorHandler),u.enableTracing){var h=Hp();p.events.subscribe(function(t){h.logGroup("Router Event: "+t.constructor.name),h.log(t.toString()),h.log(t),h.logGroupEnd()})}return u.onSameUrlNavigation&&(p.onSameUrlNavigation=u.onSameUrlNavigation),u.paramsInheritanceStrategy&&(p.paramsInheritanceStrategy=u.paramsInheritanceStrategy),u.urlUpdateStrategy&&(p.urlUpdateStrategy=u.urlUpdateStrategy),u.relativeLinkResolution&&(p.relativeLinkResolution=u.relativeLinkResolution),p}function Oy(t){return t.routerState.root}var Py=function(){function t(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new L}return t.prototype.appInitializer=function(){var t=this;return this.injector.get(Nc,Promise.resolve(null)).then(function(){var e=null,n=new Promise(function(t){return e=t}),r=t.injector.get(ly),o=t.injector.get(_y);if(t.isLegacyDisabled(o)||t.isLegacyEnabled(o))e(!0);else if("disabled"===o.initialNavigation)r.setUpLocationChangeListener(),e(!0);else{if("enabled"!==o.initialNavigation)throw new Error("Invalid initialNavigation options: '"+o.initialNavigation+"'");r.hooks.afterPreactivation=function(){return t.initNavigation?zl(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()}return n})},t.prototype.bootstrapListener=function(t){var e=this.injector.get(_y),n=this.injector.get(vy),r=this.injector.get(gy),o=this.injector.get(ly),i=this.injector.get(Ui);t===i.components[0]&&(this.isLegacyEnabled(e)?o.initialNavigation():this.isLegacyDisabled(e)&&o.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),o.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}();function Ay(t){return t.appInitializer.bind(t)}function Iy(t){return t.bootstrapListener.bind(t)}var Ry=new Tt("Router Initializer"),Ny=Ba({encapsulation:2,styles:[],data:{}});function My(t){return Ou(0,[(t()(),ys(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),ru(1,212992,null,0,hy,[py,Zi,Yr,[8,null],Yi],null,null)],function(t,e){t(e,1,0)},null)}function jy(t){return Ou(0,[(t()(),ys(0,0,null,null,1,"ng-component",[],null,null,null,My,Ny)),ru(1,49152,null,0,ff,[],null,null)],null,null)}var Vy=Rs("ng-component",ff,jy,{},{},[]),Fy=function(t){function e(e,n){var r=t.call(this,e)||this;r.sources=n,r.completed=0,r.haveValues=0;var o=n.length;r.values=new Array(o);for(var i=0;i<o;i++){var a=J(r,n[i],null,i);a&&r.add(a)}return r}return o(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.values[n]=e,o._hasValue||(o._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,n=this.haveValues,r=this.values,o=r.length;t._hasValue?(this.completed++,this.completed===o&&(n===o&&e.next(r),e.complete())):e.complete()},e}(X),Ly=function(){function t(){}return Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.control?this.control.status:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return!!this.control&&this.control.hasError(t,e)},t.prototype.getError=function(t,e){return this.control?this.control.getError(t,e):null},t}(),Uy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e}(Ly);function Hy(t){return null==t||0===t.length}var By=new Tt("NgValidators"),zy=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,qy=function(){function t(){}return t.min=function(t){return function(e){if(Hy(e.value)||Hy(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}},t.max=function(t){return function(e){if(Hy(e.value)||Hy(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return Hy(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return Hy(t.value)?null:zy.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(Hy(e.value))return null;var n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}},t.maxLength=function(t){return function(e){var n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(Hy(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(Wy);return 0==e.length?null:function(t){return Qy(function(t,n){return e.map(function(e){return e(t)})}(t))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(Wy);return 0==e.length?null:function(t){return function t(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&p(n[0])&&(n=n[0]),0===n.length?Ul:e?t(n).pipe(tt(function(t){return e.apply(void 0,t)})):new R(function(t){return new Fy(t,n)})}(function(t,n){return e.map(function(e){return e(t)})}(t).map(Gy)).pipe(tt(Qy))}},t}();function Wy(t){return null!=t}function Gy(t){var e=ni(t)?ot(t):t;if(!ri(e))throw new Error("Expected validator to return Promise or Observable.");return e}function Qy(t){var e=t.reduce(function(t,e){return null!=e?i({},t,e):t},{});return 0===Object.keys(e).length?null:e}var Ky=new Tt("NgValueAccessor"),Zy=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),$y=new Tt("CompositionEventMode"),Yy=function(){function t(t,e,n){var r;this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=Hp()?Hp().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t}();function Jy(t){return t.validate?function(e){return t.validate(e)}:t}function Xy(t){return t.validate?function(e){return t.validate(e)}:t}var tm=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}();function em(){throw new Error("unimplemented")}var nm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return o(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return em()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return em()},enumerable:!0,configurable:!0}),e}(Ly),rm=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name},t}(),om=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(nm),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n      If you define both a name and a formControlName attribute on your radio button, their values\n      must match. Ex: <input type="radio" formControlName="food" name="food">\n    ')},t}(),im=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),am='\n    <div [formGroup]="myGroup">\n       <div formGroupName="person">\n          <input formControlName="firstName">\n       </div>\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });',sm='\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>';function um(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}var lm=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Ft}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=um(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){var e,n;try{for(var r=u(Array.from(this._optionMap.keys())),o=r.next();!o.done;o=r.next()){var i=o.value;if(this._compareWith(this._optionMap.get(i),t))return i}}catch(a){e={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return null},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}(),cm=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(um(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setProperty(this._element.nativeElement,"value",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t}();function pm(t,e){return null==t?""+e:("string"==typeof e&&(e="'"+e+"'"),e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}var hm=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Ft}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e,n=this;if(this.value=t,Array.isArray(t)){var r=t.map(function(t){return n._getOptionId(t)});e=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,i=0;i<o.length;i++){var a=o.item(i),s=e._getOptionValue(a.value);r.push(s)}else for(o=n.options,i=0;i<o.length;i++)(a=o.item(i)).selected&&(s=e._getOptionValue(a.value),r.push(s));e.value=r,t(r)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(t){var e=(this._idCounter++).toString();return this._optionMap.set(e,t),e},t.prototype._getOptionId=function(t){var e,n;try{for(var r=u(Array.from(this._optionMap.keys())),o=r.next();!o.done;o=r.next()){var i=o.value;if(this._compareWith(this._optionMap.get(i)._value,t))return i}}catch(a){e={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return null},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t},t}(),fm=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._value=t,this._setElementValue(pm(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._select?(this._value=t,this._setElementValue(pm(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setProperty(this._element.nativeElement,"value",t)},t.prototype._setSelected=function(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t}();function dm(t,e){return c(e.path,[t])}function ym(t,e){t||vm(e,"Cannot find control with"),e.valueAccessor||vm(e,"No value accessor for form control with"),t.validator=qy.compose([t.validator,e.validator]),t.asyncValidator=qy.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&mm(t,e)})}(t,e),function(t,e){t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&mm(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function mm(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function vm(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function gm(t){return null!=t?qy.compose(t.map(Jy)):null}function _m(t){return null!=t?qy.composeAsync(t.map(Xy)):null}var bm=[Zy,im,tm,lm,hm,om],wm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return dm(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return gm(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return _m(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(Uy),Cm=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e}(function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),t}());function Em(t){var e=xm(t)?t.validators:t;return Array.isArray(e)?gm(e):e||null}function Sm(t,e){var n=xm(e)?e.asyncValidators:t;return Array.isArray(n)?_m(n):n||null}function xm(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var Tm=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=Em(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=Sm(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){void 0===t&&(t={}),this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)},t.prototype.markAsUntouched=function(t){void 0===t&&(t={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype.markAsDirty=function(t){void 0===t&&(t={}),this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)},t.prototype.markAsPristine=function(t){void 0===t&&(t={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype.markAsPending=function(t){void 0===t&&(t={}),this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)},t.prototype.disable=function(t){void 0===t&&(t={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(e){e.disable(i({},t,{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(t),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){void 0===t&&(t={}),this.status="VALID",this._forEachChild(function(e){e.enable(i({},t,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(t),this._onDisabledChange.forEach(function(t){return t(!1)})},t.prototype._updateAncestors=function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.updateValueAndValidity=function(t){void 0===t&&(t={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)},t.prototype._updateTreeValidity=function(t){void 0===t&&(t={emitEvent:!0}),this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})},t.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this.status="PENDING";var n=Gy(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return e.setErrors(n,{emitEvent:t})})}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){void 0===e&&(e={}),this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)},t.prototype.get=function(t){return function(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(".")),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof Dm?t.controls.hasOwnProperty(e)?t.controls[e]:null:t instanceof Om&&t.at(e)||null},t))}(this,t)},t.prototype.getError=function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this.valueChanges=new Bo,this.statusChanges=new Bo},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls(function(e){return e.status===t})},t.prototype._anyControlsDirty=function(){return this._anyControls(function(t){return t.dirty})},t.prototype._anyControlsTouched=function(){return this._anyControls(function(t){return t.touched})},t.prototype._updatePristine=function(t){void 0===t&&(t={}),this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype._updateTouched=function(t){void 0===t&&(t={}),this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t.prototype._setUpdateStrategy=function(t){xm(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t}(),km=function(t){function e(e,n,r){void 0===e&&(e=null);var o=t.call(this,Em(n),Sm(r,n))||this;return o._onChange=[],o._applyFormState(e),o._setUpdateStrategy(n),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o._initObservables(),o}return o(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(function(t){return t(n.value,!1!==e.emitViewToModelChange)}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1},e.prototype._updateValue=function(){},e.prototype._anyControls=function(t){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(t){},e.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t},e}(Tm),Dm=function(t){function e(e,n,r){var o=t.call(this,Em(n),Sm(r,n))||this;return o.controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return o(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),Object.keys(t).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),Object.keys(t).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof km?e.value:e.getRawValue(),t})},e.prototype._syncPendingControls=function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[t])throw new Error("Cannot find form control with name: "+t+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach(function(n){return t(e.controls[n],n)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})},e.prototype._updateValue=function(){this.value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,n=!1;return this._forEachChild(function(r,o){n=n||e.contains(o)&&t(r)}),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},function(e,n,r){return(n.enabled||t.disabled)&&(e[r]=n.value),e})},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild(function(t,r){n=e(n,t,r)}),n},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=u(Object.keys(this.controls)),r=n.next();!r.done;r=n.next())if(this.controls[r.value].enabled)return!1}catch(o){t={error:o}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return Object.keys(this.controls).length>0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(Tm),Om=function(t){function e(e,n,r){var o=t.call(this,Em(n),Sm(r,n))||this;return o.controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return o(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof km?t.value:t.getRawValue()})},e.prototype._syncPendingControls=function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=u(this.controls),r=n.next();!r.done;r=n.next())if(r.value.enabled)return!1}catch(o){t={error:o}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(Tm),Pm=Promise.resolve(null),Am=function(t){function e(e,n){var r=t.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new Bo,r.form=new Dm({},gm(e),_m(n)),r}return o(e,t),e.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;Pm.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),ym(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;Pm.then(function(){var n,r,o=e._findContainer(t.path);o&&o.removeControl(t.name),(r=(n=e._directives).indexOf(t))>-1&&n.splice(r,1)})},e.prototype.addFormGroup=function(t){var e=this;Pm.then(function(){var n=e._findContainer(t.path),r=new Dm({});(function(t,e){null==t&&vm(e,"Cannot find control with"),t.validator=qy.compose([t.validator,e.validator]),t.asyncValidator=qy.composeAsync([t.asyncValidator,e.asyncValidator])})(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;Pm.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;Pm.then(function(){n.form.get(t.path).setValue(e)})},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this.submitted=!0,e=this._directives,this.form._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e}(Uy),Im=function(){function t(){}return t.modelParentException=function(){throw new Error('\n      ngModel cannot be used to register form controls with a parent formGroup directive.  Try using\n      formGroup\'s partner directive "formControlName" instead.  Example:\n\n      \n    <div [formGroup]="myGroup">\n      <input formControlName="firstName">\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });\n\n      Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n      Example:\n\n      \n    <div [formGroup]="myGroup">\n       <input formControlName="firstName">\n       <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n    </div>\n  ')},t.formGroupNameException=function(){throw new Error("\n      ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n      Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n      "+am+"\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      "+sm)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n      control must be defined as \'standalone\' in ngModelOptions.\n\n      Example 1: <input [(ngModel)]="person.firstName" name="first">\n      Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},t.modelGroupParentException=function(){throw new Error("\n      ngModelGroup cannot be used with a parent formGroup directive.\n\n      Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n      "+am+"\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      "+sm)},t.ngFormWarning=function(){console.warn("\n    It looks like you're using 'ngForm'.\n\n    Support for using the 'ngForm' element selector has been deprecated in Angular v6 and will be removed\n    in Angular v9.\n\n    Use 'ng-form' instead.\n\n    Before:\n    <ngForm #myForm=\"ngForm\">\n\n    After:\n    <ng-form #myForm=\"ngForm\">\n    ")},t}(),Rm=new Tt("NgFormSelectorWarning"),Nm=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}var n;return o(e,t),n=e,e.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof Am||Im.modelGroupParentException()},e}(wm),Mm=Promise.resolve(null),jm=function(t){function e(e,n,r,o){var i=t.call(this)||this;return i.control=new km,i._registered=!1,i.update=new Bo,i._parent=e,i._rawValidators=n||[],i._rawAsyncValidators=r||[],i.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||vm(t,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,o=void 0;return e.forEach(function(e){var i;e.constructor===Yy?n=e:(i=e,bm.some(function(t){return i.constructor===t})?(r&&vm(t,"More than one built-in value accessor matches form control with"),r=e):(o&&vm(t,"More than one custom value accessor matches form control with"),o=e))}),o||r||n||(vm(t,"No valid value accessor for form control with"),null)}(i,o),i}return o(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Ft(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?dm(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return gm(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return _m(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},e.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},e.prototype._setUpStandalone=function(){ym(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof Nm)&&this._parent instanceof wm?Im.formGroupNameException():this._parent instanceof Nm||this._parent instanceof Am||Im.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Im.missingNameException()},e.prototype._updateValue=function(t){var e=this;Mm.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;Mm.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},e}(nm),Vm=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?qy.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}(),Fm=function(){return function(){}}(),Lm=function(){function t(){}var e;return e=t,t.withConfig=function(t){return{ngModule:e,providers:[{provide:Rm,useValue:t.warnOnDeprecatedNgFormSelector}]}},t}();function Um(t,e,n,r){return f(n)&&(r=n,n=void 0),r?Um(t,e,n).pipe(tt(function(t){return p(t)?r.apply(void 0,t):r(t)})):new R(function(r){!function t(e,n,r,o,i){var a;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(n,r,i),a=function(){return s.removeEventListener(n,r,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var u=e;e.on(n,r),a=function(){return u.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var l=e;e.addListener(n,r),a=function(){return l.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var c=0,p=e.length;c<p;c++)t(e[c],n,r,o,i)}o.add(a)}(t,e,function(t){r.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},r,n)})}function Hm(t){return function(e){return e.lift(new Bm(t))}}Object;var Bm=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new zm(t),r=J(n,this.notifier);return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),zm=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return o(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(X);function qm(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n;return"function"==typeof t[t.length-1]&&(n=t.pop()),e.lift(new Wm(t,n))}}var Wm=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new Gm(t,this.observables,this.project))},t}(),Gm=function(t){function e(e,n,r){var o=t.call(this,e)||this;o.observables=n,o.project=r,o.toRespond=[];var i=n.length;o.values=new Array(i);for(var a=0;a<i;a++)o.toRespond.push(a);for(a=0;a<i;a++){var s=n[a];o.add(J(o,s,s,a))}return o}return o(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.values[n]=e;var i=this.toRespond;if(i.length>0){var a=i.indexOf(n);-1!==a&&i.splice(a,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(n){return void this.destination.error(n)}this.destination.next(e)},e}(X);function Qm(t){return parseInt(""+t,10)}function Km(t){return null!=t?""+t:""}function Zm(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}function $m(t){return null!=t}var Ym=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),Jm=function(){function t(){this.dismissible=!0,this.type="warning"}return t.ngInjectableDef=Et({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Xm=function(){function t(t,e,n){this._renderer=e,this._element=n,this.close=new Bo,this.dismissible=t.dismissible,this.type=t.type}return t.prototype.closeHandler=function(){this.close.emit(null)},t.prototype.ngOnChanges=function(t){var e=t.type;e&&!e.firstChange&&(this._renderer.removeClass(this._element.nativeElement,"alert-"+e.previousValue),this._renderer.addClass(this._element.nativeElement,"alert-"+e.currentValue))},t.prototype.ngOnInit=function(){this._renderer.addClass(this._element.nativeElement,"alert-"+this.type)},t}(),tv=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),ev=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),nv=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),rv=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),ov=function(){function t(t,e,n){this.year=Zm(t)?t:null,this.month=Zm(e)?e:null,this.day=Zm(n)?n:null}return t.from=function(e){return e instanceof t?e:e?new t(e.year,e.month,e.day):null},t.prototype.equals=function(t){return t&&this.year===t.year&&this.month===t.month&&this.day===t.day},t.prototype.before=function(t){return!!t&&(this.year===t.year?this.month===t.month?this.day!==t.day&&this.day<t.day:this.month<t.month:this.year<t.year)},t.prototype.after=function(t){return!!t&&(this.year===t.year?this.month===t.month?this.day!==t.day&&this.day>t.day:this.month>t.month:this.year>t.year)},t}();function iv(t){return new ov(t.getFullYear(),t.getMonth()+1,t.getDate())}function av(t){var e=new Date(t.year,t.month-1,t.day,12);return isNaN(e.getTime())||e.setFullYear(t.year),e}function sv(){return new lv}var uv=function(){function t(){}return t.ngInjectableDef=Et({factory:sv,token:t,providedIn:"root"}),t}(),lv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getDaysPerWeek=function(){return 7},e.prototype.getMonths=function(){return[1,2,3,4,5,6,7,8,9,10,11,12]},e.prototype.getWeeksPerMonth=function(){return 6},e.prototype.getNext=function(t,e,n){void 0===e&&(e="d"),void 0===n&&(n=1);var r=av(t);switch(e){case"y":return new ov(t.year+n,1,1);case"m":r=new Date(t.year,t.month+n-1,1,12);break;case"d":r.setDate(r.getDate()+n);break;default:return t}return iv(r)},e.prototype.getPrev=function(t,e,n){return void 0===e&&(e="d"),void 0===n&&(n=1),this.getNext(t,e,-n)},e.prototype.getWeekday=function(t){var e=av(t).getDay();return 0===e?7:e},e.prototype.getWeekNumber=function(t,e){7===e&&(e=0);var n=av(t[(11-e)%7]);n.setDate(n.getDate()+4-(n.getDay()||7));var r=n.getTime();return n.setMonth(0),n.setDate(1),Math.floor(Math.round((r-n.getTime())/864e5)/7)+1},e.prototype.getToday=function(){return iv(new Date)},e.prototype.isValid=function(t){if(!(t&&Zm(t.year)&&Zm(t.month)&&Zm(t.day)))return!1;if(0===t.year)return!1;var e=av(t);return!isNaN(e.getTime())&&e.getFullYear()===t.year&&e.getMonth()+1===t.month&&e.getDate()===t.day},e}(uv);function cv(t,e){return!function(t,e){return!t&&!e||!!t&&!!e&&t.equals(e)}(t,e)}function pv(t,e,n){return t&&e&&t.before(e)?e:t&&n&&t.after(n)?n:t}function hv(t,e){var n=e.minDate,r=e.maxDate,o=e.disabled,i=e.markDisabled;return!(!$m(t)||o||i&&i(t,{year:t.year,month:t.month})||n&&t.before(n)||r&&t.after(r))}var fv=function(){function t(){}return t.prototype.getDayNumerals=function(t){return""+t.day},t.prototype.getWeekNumerals=function(t){return""+t},t.prototype.getYearNumerals=function(t){return""+t},t.ngInjectableDef=Et({factory:function(){return t=Kt(wa),new dv(t);var t},token:t,providedIn:"root"}),t}(),dv=function(t){function e(e){var n=t.call(this)||this;n._locale=e;var r=Zc(e,Wc.Standalone,Gc.Short);return n._weekdaysShort=r.map(function(t,e){return r[(e+1)%7]}),n._monthsShort=$c(e,Wc.Standalone,Gc.Abbreviated),n._monthsFull=$c(e,Wc.Standalone,Gc.Wide),n}return o(e,t),e.prototype.getWeekdayShortName=function(t){return this._weekdaysShort[t-1]},e.prototype.getMonthShortName=function(t){return this._monthsShort[t-1]},e.prototype.getMonthFullName=function(t){return this._monthsFull[t-1]},e.prototype.getDayAriaLabel=function(t){return pp(new Date(t.year,t.month-1,t.day),"fullDate",this._locale)},e}(fv),yv=function(){function t(t,e){this._calendar=t,this._i18n=e,this._model$=new L,this._select$=new L,this._state={disabled:!1,displayMonths:1,firstDayOfWeek:1,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectBoxes:{years:[],months:[]},selectedDate:null}}return Object.defineProperty(t.prototype,"model$",{get:function(){return this._model$.pipe(Jl(function(t){return t.months.length>0}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"select$",{get:function(){return this._select$.pipe(Jl(function(t){return null!==t}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dayTemplateData",{set:function(t){this._state.dayTemplateData!==t&&this._nextState({dayTemplateData:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{set:function(t){this._state.disabled!==t&&this._nextState({disabled:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayMonths",{set:function(t){Zm(t=Qm(t))&&t>0&&this._state.displayMonths!==t&&this._nextState({displayMonths:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstDayOfWeek",{set:function(t){Zm(t=Qm(t))&&t>=0&&this._state.firstDayOfWeek!==t&&this._nextState({firstDayOfWeek:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusVisible",{set:function(t){this._state.focusVisible===t||this._state.disabled||this._nextState({focusVisible:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxDate",{set:function(t){var e=this.toValidDate(t,null);cv(this._state.maxDate,e)&&this._nextState({maxDate:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markDisabled",{set:function(t){this._state.markDisabled!==t&&this._nextState({markDisabled:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minDate",{set:function(t){var e=this.toValidDate(t,null);cv(this._state.minDate,e)&&this._nextState({minDate:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"navigation",{set:function(t){this._state.navigation!==t&&this._nextState({navigation:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outsideDays",{set:function(t){this._state.outsideDays!==t&&this._nextState({outsideDays:t})},enumerable:!0,configurable:!0}),t.prototype.focus=function(t){!this._state.disabled&&this._calendar.isValid(t)&&cv(this._state.focusDate,t)&&this._nextState({focusDate:t})},t.prototype.focusMove=function(t,e){this.focus(this._calendar.getNext(this._state.focusDate,t,e))},t.prototype.focusSelect=function(){hv(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})},t.prototype.open=function(t){var e=this.toValidDate(t,this._calendar.getToday());this._state.disabled||this._nextState({firstDate:e})},t.prototype.select=function(t,e){void 0===e&&(e={});var n=this.toValidDate(t,null);this._state.disabled||(cv(this._state.selectedDate,n)&&this._nextState({selectedDate:n}),e.emitEvent&&hv(n,this._state)&&this._select$.next(n))},t.prototype.toValidDate=function(t,e){var n=ov.from(t);return void 0===e&&(e=this._calendar.getToday()),this._calendar.isValid(n)?n:e},t.prototype._nextState=function(t){var e=this._updateState(t);this._patchContexts(e),this._state=e,this._model$.next(this._state)},t.prototype._patchContexts=function(t){var e=t.months,n=t.displayMonths,r=t.selectedDate,o=t.focusDate,i=t.focusVisible,a=t.disabled,s=t.outsideDays;t.months.forEach(function(t){t.weeks.forEach(function(u){u.days.forEach(function(u){o&&(u.context.focused=o.equals(u.date)&&i),u.tabindex=!a&&u.date.equals(o)&&o.month===t.number?0:-1,!0===a&&(u.context.disabled=!0),void 0!==r&&(u.context.selected=null!==r&&r.equals(u.date)),t.number!==u.date.month&&(u.hidden="hidden"===s||"collapsed"===s||n>1&&u.date.after(e[0].firstDate)&&u.date.before(e[n-1].lastDate))})})})},t.prototype._updateState=function(t){var e,n,r=Object.assign({},this._state,t),o=r.firstDate;if(("minDate"in t||"maxDate"in t)&&(function(t,e){if(e&&t&&e.before(t))throw new Error("'maxDate' "+e+" should be greater than 'minDate' "+t)}(r.minDate,r.maxDate),r.focusDate=pv(r.focusDate,r.minDate,r.maxDate),r.firstDate=pv(r.firstDate,r.minDate,r.maxDate),o=r.focusDate),"disabled"in t&&(r.focusVisible=!1),"selectedDate"in t&&0===this._state.months.length&&(o=r.selectedDate),"focusDate"in t&&(r.focusDate=pv(r.focusDate,r.minDate,r.maxDate),o=r.focusDate,0!==r.months.length&&!r.focusDate.before(r.firstDate)&&!r.focusDate.after(r.lastDate)))return r;if("firstDate"in t&&(r.firstDate=pv(r.firstDate,r.minDate,r.maxDate),o=r.firstDate),o){var i=function(t,e,n,r,o){var i=n.displayMonths,a=n.months,s=a.splice(0,a.length);return Array.from({length:i},function(n,r){var i=t.getNext(e,"m",r);if(a[r]=null,!o){var u=s.findIndex(function(t){return t.firstDate.equals(i)});-1!==u&&(a[r]=s.splice(u,1)[0])}return i}).forEach(function(e,o){null===a[o]&&(a[o]=function(t,e,n,r,o){void 0===o&&(o={});var i=n.dayTemplateData,a=n.minDate,s=n.maxDate,u=n.firstDayOfWeek,l=n.markDisabled,c=n.outsideDays;o.firstDate=null,o.lastDate=null,o.number=e.month,o.year=e.year,o.weeks=o.weeks||[],o.weekdays=o.weekdays||[],e=function(t,e,n){var r=t.getDaysPerWeek(),o=new ov(e.year,e.month,1),i=t.getWeekday(o)%r;return t.getPrev(o,"d",(r+i-n)%r)}(t,e,u);for(var p=0;p<t.getWeeksPerMonth();p++){var h=o.weeks[p];h||(h=o.weeks[p]={number:0,days:[],collapsed:!0});for(var f=h.days,d=0;d<t.getDaysPerWeek();d++){0===p&&(o.weekdays[d]=t.getWeekday(e));var y=new ov(e.year,e.month,e.day),m=t.getNext(y),v=r.getDayAriaLabel(y),g=!!(a&&y.before(a)||s&&y.after(s));!g&&l&&(g=l(y,{month:o.number,year:o.year}));var _=i?i(y,{month:o.number,year:o.year}):void 0;null===o.firstDate&&y.month===o.number&&(o.firstDate=y),y.month===o.number&&m.month!==o.number&&(o.lastDate=y);var b=f[d];b||(b=f[d]={}),b.date=y,b.context=Object.assign(b.context||{},{$implicit:y,date:y,data:_,currentMonth:o.number,disabled:g,focused:!1,selected:!1}),b.tabindex=-1,b.ariaLabel=v,b.hidden=!1,e=m}h.number=t.getWeekNumber(f.map(function(t){return t.date}),u),h.collapsed="collapsed"===c&&f[0].date.month!==o.number&&f[f.length-1].date.month!==o.number}return o}(t,e,n,r,s.shift()||{}))}),a}(this._calendar,o,r,this._i18n,"dayTemplateData"in t||"firstDayOfWeek"in t||"markDisabled"in t||"minDate"in t||"maxDate"in t||"disabled"in t||"outsideDays"in t);r.months=i,r.firstDate=i.length>0?i[0].firstDate:void 0,r.lastDate=i.length>0?i[i.length-1].lastDate:void 0,"selectedDate"in t&&!hv(r.selectedDate,r)&&(r.selectedDate=null),"firstDate"in t&&(void 0===r.focusDate||r.focusDate.before(r.firstDate)||r.focusDate.after(r.lastDate))&&(r.focusDate=o);var a=!this._state.firstDate||this._state.firstDate.year!==r.firstDate.year,s=!this._state.firstDate||this._state.firstDate.month!==r.firstDate.month;"select"===r.navigation?(("minDate"in t||"maxDate"in t||0===r.selectBoxes.years.length||a)&&(r.selectBoxes.years=function(t,e,n){if(!t)return[];var r=e&&e.year||t.year-10;return Array.from({length:(n&&n.year||t.year+10)-r+1},function(t,e){return r+e})}(r.firstDate,r.minDate,r.maxDate)),("minDate"in t||"maxDate"in t||0===r.selectBoxes.months.length||a)&&(r.selectBoxes.months=function(t,e,n,r){if(!e)return[];var o=t.getMonths(e.year);if(n&&e.year===n.year){var i=o.findIndex(function(t){return t===n.month});o=o.slice(i)}return r&&e.year===r.year&&(i=o.findIndex(function(t){return t===r.month}),o=o.slice(0,i+1)),o}(this._calendar,r.firstDate,r.minDate,r.maxDate))):r.selectBoxes={years:[],months:[]},"arrows"!==r.navigation&&"select"!==r.navigation||!(s||a||"minDate"in t||"maxDate"in t||"disabled"in t)||(r.prevDisabled=r.disabled||(e=r.minDate,n=this._calendar.getPrev(r.firstDate,"m"),e&&(n.year===e.year&&n.month<e.month||n.year<e.year&&1===e.month)),r.nextDisabled=r.disabled||function(t,e,n){return n&&t.getNext(r.lastDate,"m").after(n)}(this._calendar,0,r.maxDate))}return r},t}(),mv=function(){var t={Tab:9,Enter:13,Escape:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40};return t[t.Tab]="Tab",t[t.Enter]="Enter",t[t.Escape]="Escape",t[t.Space]="Space",t[t.PageUp]="PageUp",t[t.PageDown]="PageDown",t[t.End]="End",t[t.Home]="Home",t[t.ArrowLeft]="ArrowLeft",t[t.ArrowUp]="ArrowUp",t[t.ArrowRight]="ArrowRight",t[t.ArrowDown]="ArrowDown",t}(),vv=function(){function t(t,e){var n=this;this._service=t,this._calendar=e,t.model$.subscribe(function(t){n._minDate=t.minDate,n._maxDate=t.maxDate,n._firstViewDate=t.firstDate,n._lastViewDate=t.lastDate})}return t.prototype.processKey=function(t){var e=t.which;if(mv[Km(e)]){switch(e){case mv.PageUp:this._service.focusMove(t.shiftKey?"y":"m",-1);break;case mv.PageDown:this._service.focusMove(t.shiftKey?"y":"m",1);break;case mv.End:this._service.focus(t.shiftKey?this._maxDate:this._lastViewDate);break;case mv.Home:this._service.focus(t.shiftKey?this._minDate:this._firstViewDate);break;case mv.ArrowLeft:this._service.focusMove("d",-1);break;case mv.ArrowUp:this._service.focusMove("d",-this._calendar.getDaysPerWeek());break;case mv.ArrowRight:this._service.focusMove("d",1);break;case mv.ArrowDown:this._service.focusMove("d",this._calendar.getDaysPerWeek());break;case mv.Enter:case mv.Space:this._service.focusSelect();break;default:return}t.preventDefault(),t.stopPropagation()}},t}(),gv=function(){var t={PREV:0,NEXT:1};return t[t.PREV]="PREV",t[t.NEXT]="NEXT",t}(),_v=function(){function t(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekdays=!0,this.showWeekNumbers=!1}return t.ngInjectableDef=Et({factory:function(){return new t},token:t,providedIn:"root"}),t}();function bv(){return new Cv}var wv=function(){function t(){}return t.ngInjectableDef=Et({factory:bv,token:t,providedIn:"root"}),t}(),Cv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.fromModel=function(t){return t&&Zm(t.year)&&Zm(t.month)&&Zm(t.day)?{year:t.year,month:t.month,day:t.day}:null},e.prototype.toModel=function(t){return t&&Zm(t.year)&&Zm(t.month)&&Zm(t.day)?{year:t.year,month:t.month,day:t.day}:null},e}(wv),Ev=function(){function t(t,e,n,r,o,i,a,s,u){var l=this;this._keyMapService=t,this._service=e,this._calendar=n,this.i18n=r,this._cd=i,this._elementRef=a,this._ngbDateAdapter=s,this._ngZone=u,this.navigate=new Bo,this.select=new Bo,this.onChange=function(t){},this.onTouched=function(){},["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showWeekdays","showWeekNumbers","startDate"].forEach(function(t){return l[t]=o[t]}),this._selectSubscription=e.select$.subscribe(function(t){l.select.emit(t)}),this._subscription=e.model$.subscribe(function(t){var e=t.firstDate,n=l.model?l.model.firstDate:null,r=t.selectedDate,o=t.focusDate,a=l.model?l.model.focusDate:null;l.model=t,cv(r,l._controlValue)&&(l._controlValue=r,l.onTouched(),l.onChange(l._ngbDateAdapter.toModel(r))),cv(o,a)&&a&&t.focusVisible&&l.focus(),e.equals(n)||l.navigate.emit({current:n?{year:n.year,month:n.month}:null,next:{year:e.year,month:e.month}}),i.markForCheck()})}return t.prototype.focus=function(){var t=this;this._ngZone.onStable.asObservable().pipe(gc(1)).subscribe(function(){var e=t._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');e&&e.focus()})},t.prototype.navigateTo=function(t){this._service.open(ov.from(t?t.day?t:i({},t,{day:1}):null))},t.prototype.ngOnDestroy=function(){this._subscription.unsubscribe(),this._selectSubscription.unsubscribe()},t.prototype.ngOnInit=function(){var t=this;void 0===this.model&&(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays"].forEach(function(e){return t._service[e]=t[e]}),this.navigateTo(this.startDate))},t.prototype.ngOnChanges=function(t){var e=this;["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays"].filter(function(e){return e in t}).forEach(function(t){return e._service[t]=e[t]}),"startDate"in t&&this.navigateTo(this.startDate)},t.prototype.onDateSelect=function(t){this._service.focus(t),this._service.select(t,{emitEvent:!0})},t.prototype.onKeyDown=function(t){this._keyMapService.processKey(t)},t.prototype.onNavigateDateSelect=function(t){this._service.open(t)},t.prototype.onNavigateEvent=function(t){switch(t){case gv.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case gv.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._service.disabled=t},t.prototype.showFocus=function(t){this._service.focusVisible=t},t.prototype.writeValue=function(t){this._controlValue=ov.from(this._ngbDateAdapter.fromModel(t)),this._service.select(this._controlValue)},t}(),Sv=function(){function t(t){this.i18n=t,this.select=new Bo}return t.prototype.doSelect=function(t){t.context.disabled||t.hidden||this.select.emit(t.date)},t}(),xv=function(){return function(t){this.i18n=t,this.navigation=gv,this.months=[],this.navigate=new Bo,this.select=new Bo}}(),Tv=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function kv(t){var e=t.querySelectorAll(Tv);return[e[0],e[e.length-1]]}var Dv=function(t,e,n){void 0===n&&(n=!1);var r=Um(t,"focusin").pipe(Hm(e),tt(function(t){return t.target}));Um(t,"keydown").pipe(Hm(e),Jl(function(t){return t.which===mv.Tab}),qm(r)).subscribe(function(e){var n=l(e,2),r=n[0],o=n[1],i=l(kv(t),2),a=i[0],s=i[1];o!==a&&o!==t||!r.shiftKey||(s.focus(),r.preventDefault()),o!==s||r.shiftKey||(a.focus(),r.preventDefault())}),n&&Um(t,"click").pipe(Hm(e),qm(r),tt(function(t){return t[1]})).subscribe(function(t){return t.focus()})},Ov=function(){function t(t){this.i18n=t}return t.prototype.isMuted=function(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)},t}(),Pv=function(){function t(t){this.i18n=t,this.select=new Bo}return t.prototype.changeMonth=function(t){this.select.emit(new ov(this.date.year,Qm(t),1))},t.prototype.changeYear=function(t){this.select.emit(new ov(Qm(t),this.date.month,1))},t}(),Av=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),Iv=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),Rv=function(){function t(){this.backdrop=!0,this.keyboard=!0}return t.ngInjectableDef=Et({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Nv=function(){return function(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n}}(),Mv=function(){},jv=function(){function t(t){this._document=t}return t.prototype.compensate=function(){return this._isPresent()?this._adjustBody(this._getWidth()):Mv},t.prototype._adjustBody=function(t){var e=this._document.body,n=e.style.paddingRight,r=parseFloat(window.getComputedStyle(e)["padding-right"]);return e.style["padding-right"]=r+t+"px",function(){return e.style["padding-right"]=n}},t.prototype._isPresent=function(){var t=this._document.body.getBoundingClientRect();return t.left+t.right<window.innerWidth},t.prototype._getWidth=function(){var t=this._document.createElement("div");t.className="modal-scrollbar-measure";var e=this._document.body;e.appendChild(t);var n=t.getBoundingClientRect().width-t.clientWidth;return e.removeChild(t),n},t.ngInjectableDef=Et({factory:function(){return new t(Kt(jp))},token:t,providedIn:"root"}),t}(),Vv=function(){return function(){}}(),Fv=function(){function t(){}return t.prototype.close=function(t){},t.prototype.dismiss=function(t){},t}(),Lv=function(){function t(t,e,n,r){var o=this;this._windowCmptRef=t,this._contentRef=e,this._backdropCmptRef=n,this._beforeDismiss=r,t.instance.dismissEvent.subscribe(function(t){o.dismiss(t)}),this.result=new Promise(function(t,e){o._resolve=t,o._reject=e}),this.result.then(null,function(){})}return Object.defineProperty(t.prototype,"componentInstance",{get:function(){if(this._contentRef.componentRef)return this._contentRef.componentRef.instance},enumerable:!0,configurable:!0}),t.prototype.close=function(t){this._windowCmptRef&&(this._resolve(t),this._removeModalElements())},t.prototype._dismiss=function(t){this._reject(t),this._removeModalElements()},t.prototype.dismiss=function(t){var e=this;if(this._windowCmptRef)if(this._beforeDismiss){var n=this._beforeDismiss();n&&n.then?n.then(function(n){!1!==n&&e._dismiss(t)},function(){}):!1!==n&&this._dismiss(t)}else this._dismiss(t)},t.prototype._removeModalElements=function(){var t=this._windowCmptRef.location.nativeElement;if(t.parentNode.removeChild(t),this._windowCmptRef.destroy(),this._backdropCmptRef){var e=this._backdropCmptRef.location.nativeElement;e.parentNode.removeChild(e),this._backdropCmptRef.destroy()}this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._backdropCmptRef=null,this._contentRef=null},t}(),Uv=function(){var t={BACKDROP_CLICK:0,ESC:1};return t[t.BACKDROP_CLICK]="BACKDROP_CLICK",t[t.ESC]="ESC",t}(),Hv=function(){function t(t,e){this._document=t,this._elRef=e,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new Bo}return t.prototype.backdropClick=function(t){!0===this.backdrop&&this._elRef.nativeElement===t.target&&this.dismiss(Uv.BACKDROP_CLICK)},t.prototype.escKey=function(t){this.keyboard&&!t.defaultPrevented&&this.dismiss(Uv.ESC)},t.prototype.dismiss=function(t){this.dismissEvent.emit(t)},t.prototype.ngOnInit=function(){this._elWithFocus=this._document.activeElement},t.prototype.ngAfterViewInit=function(){if(!this._elRef.nativeElement.contains(document.activeElement)){var t=this._elRef.nativeElement.querySelector("[ngbAutofocus]"),e=kv(this._elRef.nativeElement)[0];(t||e||this._elRef.nativeElement).focus()}},t.prototype.ngOnDestroy=function(){var t=this._document.body,e=this._elWithFocus;(e&&e.focus&&t.contains(e)?e:t).focus(),this._elWithFocus=null},t}(),Bv=function(){function t(t,e,n,r,o){var i=this;this._applicationRef=t,this._injector=e,this._document=n,this._scrollBar=r,this._rendererFactory=o,this._windowAttributes=["ariaLabelledBy","backdrop","centered","keyboard","size","windowClass"],this._backdropAttributes=["backdropClass"],this._modalRefs=[],this._windowCmpts=[],this._activeWindowCmptHasChanged=new L,this._activeWindowCmptHasChanged.subscribe(function(){i._windowCmpts.length&&Dv(i._windowCmpts[i._windowCmpts.length-1].location.nativeElement,i._activeWindowCmptHasChanged)})}return t.prototype.open=function(t,e,n,r){var o=this,i=$m(r.container)?this._document.querySelector(r.container):this._document.body,a=this._rendererFactory.createRenderer(null,null),s=this._scrollBar.compensate(),u=function(){o._modalRefs.length||a.removeClass(o._document.body,"modal-open")};if(!i)throw new Error('The specified modal container "'+(r.container||"body")+'" was not found in the DOM.');var l=new Fv,c=this._getContentRef(t,r.injector||e,n,l),p=!1!==r.backdrop?this._attachBackdrop(t,i):null,h=this._attachWindowComponent(t,i,c),f=new Lv(h,c,p,r.beforeDismiss);return this._registerModalRef(f),this._registerWindowCmpt(h),f.result.then(s,s),f.result.then(u,u),l.close=function(t){f.close(t)},l.dismiss=function(t){f.dismiss(t)},this._applyWindowOptions(h.instance,r),1===this._modalRefs.length&&a.addClass(this._document.body,"modal-open"),p&&p.instance&&this._applyBackdropOptions(p.instance,r),f},t.prototype.dismissAll=function(t){this._modalRefs.forEach(function(e){return e.dismiss(t)})},t.prototype.hasOpenModals=function(){return this._modalRefs.length>0},t.prototype._attachBackdrop=function(t,e){var n=t.resolveComponentFactory(Vv).create(this._injector);return this._applicationRef.attachView(n.hostView),e.appendChild(n.location.nativeElement),n},t.prototype._attachWindowComponent=function(t,e,n){var r=t.resolveComponentFactory(Hv).create(this._injector,n.nodes);return this._applicationRef.attachView(r.hostView),e.appendChild(r.location.nativeElement),r},t.prototype._applyWindowOptions=function(t,e){this._windowAttributes.forEach(function(n){$m(e[n])&&(t[n]=e[n])})},t.prototype._applyBackdropOptions=function(t,e){this._backdropAttributes.forEach(function(n){$m(e[n])&&(t[n]=e[n])})},t.prototype._getContentRef=function(t,e,n,r){return n?n instanceof zo?this._createFromTemplateRef(n,r):"string"==typeof n?this._createFromString(n):this._createFromComponent(t,e,n,r):new Nv([])},t.prototype._createFromTemplateRef=function(t,e){var n=t.createEmbeddedView({$implicit:e,close:function(t){e.close(t)},dismiss:function(t){e.dismiss(t)}});return this._applicationRef.attachView(n),new Nv([n.rootNodes],n)},t.prototype._createFromString=function(t){var e=this._document.createTextNode(""+t);return new Nv([[e]])},t.prototype._createFromComponent=function(t,e,n,r){var o=t.resolveComponentFactory(n),i=Fn.create({providers:[{provide:Fv,useValue:r}],parent:e}),a=o.create(i);return this._applicationRef.attachView(a.hostView),new Nv([[a.location.nativeElement]],a.hostView,a)},t.prototype._registerModalRef=function(t){var e=this,n=function(){var n=e._modalRefs.indexOf(t);n>-1&&e._modalRefs.splice(n,1)};this._modalRefs.push(t),t.result.then(n,n)},t.prototype._registerWindowCmpt=function(t){var e=this;this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(function(){var n=e._windowCmpts.indexOf(t);n>-1&&(e._windowCmpts.splice(n,1),e._activeWindowCmptHasChanged.next())})},t.ngInjectableDef=Et({factory:function(){return new t(Kt(Ui),Kt(jn),Kt(jp),Kt(jv),Kt(ro))},token:t,providedIn:"root"}),t}(),zv=function(){function t(t,e,n,r){this._moduleCFR=t,this._injector=e,this._modalStack=n,this._config=r}return t.prototype.open=function(t,e){void 0===e&&(e={});var n=Object.assign({},this._config,e);return this._modalStack.open(this._moduleCFR,this._injector,t,n)},t.prototype.dismissAll=function(t){this._modalStack.dismissAll(t)},t.prototype.hasOpenModals=function(){return this._modalStack.hasOpenModals()},t.ngInjectableDef=Et({factory:function(){return new t(Kt(Yr),Kt(jn),Kt(Bv),Kt(Rv))},token:t,providedIn:"root"}),t}(),qv=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),Wv=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),Gv=function(){function t(t,e){this._element=t,this._renderer=e,this.placement="top"}return t.prototype.isTitleTemplate=function(){return this.title instanceof zo},t.prototype.applyPlacement=function(t){this._renderer.removeClass(this._element.nativeElement,"bs-popover-"+this.placement.toString().split("-")[0]),this._renderer.removeClass(this._element.nativeElement,"bs-popover-"+this.placement.toString()),this.placement=t,this._renderer.addClass(this._element.nativeElement,"bs-popover-"+this.placement.toString().split("-")[0]),this._renderer.addClass(this._element.nativeElement,"bs-popover-"+this.placement.toString())},t.prototype.isEventFrom=function(t){return this._element.nativeElement.contains(t.target)},t}(),Qv=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),Kv=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),Zv=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),$v=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),Yv=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),Jv=function(){function t(t,e){this._element=t,this._renderer=e,this.placement="top"}return t.prototype.applyPlacement=function(t){this._renderer.removeClass(this._element.nativeElement,"bs-tooltip-"+this.placement.toString().split("-")[0]),this._renderer.removeClass(this._element.nativeElement,"bs-tooltip-"+this.placement.toString()),this.placement=t,this._renderer.addClass(this._element.nativeElement,"bs-tooltip-"+this.placement.toString().split("-")[0]),this._renderer.addClass(this._element.nativeElement,"bs-tooltip-"+this.placement.toString())},t.prototype.isEventFrom=function(t){return this._element.nativeElement.contains(t.target)},t}(),Xv=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),tg=function(){function t(){this.highlightClass="ngb-highlight"}return t.prototype.ngOnChanges=function(t){var e,n=Km(this.result),r=n.toLowerCase(),o=Km(this.term).toLowerCase(),i=0;this.parts=o.length>0?r.split(new RegExp("("+(e=o,e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"))+")")).map(function(t){var e=n.substr(i,t.length);return i+=t.length,e}):[n]},t}(),eg=function(){function t(){this.activeIdx=0,this.focusFirst=!0,this.formatter=Km,this.selectEvent=new Bo,this.activeChangeEvent=new Bo}return t.prototype.hasActive=function(){return this.activeIdx>-1&&this.activeIdx<this.results.length},t.prototype.getActive=function(){return this.results[this.activeIdx]},t.prototype.markActive=function(t){this.activeIdx=t,this._activeChanged()},t.prototype.next=function(){this.activeIdx===this.results.length-1?this.activeIdx=this.focusFirst?(this.activeIdx+1)%this.results.length:-1:this.activeIdx++,this._activeChanged()},t.prototype.prev=function(){this.activeIdx<0?this.activeIdx=this.results.length-1:0===this.activeIdx?this.activeIdx=this.focusFirst?this.results.length-1:-1:this.activeIdx--,this._activeChanged()},t.prototype.resetActive=function(){this.activeIdx=this.focusFirst?0:-1,this._activeChanged()},t.prototype.select=function(t){this.selectEvent.emit(t)},t.prototype.ngOnInit=function(){this.resetActive()},t.prototype._activeChanged=function(){this.activeChangeEvent.emit(this.activeIdx>=0?this.id+"-"+this.activeIdx:void 0)},t}(),ng=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),rg=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),og=Ba({encapsulation:2,styles:["ngb-alert{display:block}"],data:{}});function ig(t){return Ou(0,[(t()(),ys(0,0,null,null,2,"button",[["aria-label","Close"],["class","close"],["type","button"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.closeHandler()&&r),r},null,null)),(t()(),ys(1,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(t()(),Tu(-1,null,["\xd7"]))],null,null)}function ag(t){return Ou(2,[(t()(),ds(16777216,null,null,1,null,ig)),ru(1,16384,null,0,Pp,[Zi,zo],{ngIf:[0,"ngIf"]},null),Eu(null,0)],function(t,e){t(e,1,0,e.component.dismissible)},null)}function sg(t){return Ou(0,[(t()(),ys(0,0,null,null,1,"ngb-alert",[["class","alert"],["role","alert"]],[[2,"alert-dismissible",null]],null,null,ag,og)),ru(1,638976,null,0,Xm,[Jm,io,to],null,null)],function(t,e){t(e,1,0)},function(t,e){t(e,0,0,qs(e,1).dismissible)})}var ug=Rs("ngb-alert",Xm,sg,{dismissible:"dismissible",type:"type"},{close:"close"},["*"]),lg=Ba({encapsulation:2,styles:["ngb-datepicker-month-view{display:block}.ngb-dp-week-number,.ngb-dp-weekday{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:#5bc0de;color:var(--info)}.ngb-dp-week{border-radius:.25rem;display:-ms-flexbox;display:flex}.ngb-dp-weekdays{border-bottom:1px solid rgba(0,0,0,.125);border-radius:0}.ngb-dp-day,.ngb-dp-week-number,.ngb-dp-weekday{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default}"],data:{}});function cg(t){return Ou(0,[(t()(),ys(0,0,null,null,0,"div",[["class","ngb-dp-weekday ngb-dp-showweek"]],null,null,null,null,null))],null,null)}function pg(t){return Ou(0,[(t()(),ys(0,0,null,null,1,"div",[["class","ngb-dp-weekday small"]],null,null,null,null,null)),(t()(),Tu(1,null,[" "," "]))],null,function(t,e){t(e,1,0,e.component.i18n.getWeekdayShortName(e.context.$implicit))})}function hg(t){return Ou(0,[(t()(),ys(0,0,null,null,4,"div",[["class","ngb-dp-week ngb-dp-weekdays bg-light"]],null,null,null,null,null)),(t()(),ds(16777216,null,null,1,null,cg)),ru(2,16384,null,0,Pp,[Zi,zo],{ngIf:[0,"ngIf"]},null),(t()(),ds(16777216,null,null,1,null,pg)),ru(4,278528,null,0,Dp,[Zi,zo,ya],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,2,0,n.showWeekNumbers),t(e,4,0,n.month.weekdays)},null)}function fg(t){return Ou(0,[(t()(),ys(0,0,null,null,1,"div",[["class","ngb-dp-week-number small text-muted"]],null,null,null,null,null)),(t()(),Tu(1,null,["",""]))],null,function(t,e){t(e,1,0,e.component.i18n.getWeekNumerals(e.parent.parent.context.$implicit.number))})}function dg(t){return Ou(0,[(t()(),ds(0,null,null,0))],null,null)}function yg(t){return Ou(0,[(t()(),ds(16777216,null,null,1,null,dg)),ru(1,540672,null,0,Rp,[Zi],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),(t()(),ds(0,null,null,0))],function(t,e){t(e,1,0,e.parent.context.$implicit.context,e.component.dayTemplate)},null)}function mg(t){return Ou(0,[(t()(),ys(0,0,null,null,2,"div",[["class","ngb-dp-day"],["role","gridcell"]],[[2,"disabled",null],[8,"tabIndex",0],[2,"hidden",null],[1,"aria-label",0]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.doSelect(t.context.$implicit)&&r),r},null,null)),(t()(),ds(16777216,null,null,1,null,yg)),ru(2,16384,null,0,Pp,[Zi,zo],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,2,0,!e.context.$implicit.hidden)},function(t,e){t(e,0,0,e.context.$implicit.context.disabled,e.context.$implicit.tabindex,e.context.$implicit.hidden,e.context.$implicit.ariaLabel)})}function vg(t){return Ou(0,[(t()(),ys(0,0,null,null,4,"div",[["class","ngb-dp-week"],["role","row"]],null,null,null,null,null)),(t()(),ds(16777216,null,null,1,null,fg)),ru(2,16384,null,0,Pp,[Zi,zo],{ngIf:[0,"ngIf"]},null),(t()(),ds(16777216,null,null,1,null,mg)),ru(4,278528,null,0,Dp,[Zi,zo,ya],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,2,0,e.component.showWeekNumbers),t(e,4,0,e.parent.context.$implicit.days)},null)}function gg(t){return Ou(0,[(t()(),ds(16777216,null,null,1,null,vg)),ru(1,16384,null,0,Pp,[Zi,zo],{ngIf:[0,"ngIf"]},null),(t()(),ds(0,null,null,0))],function(t,e){t(e,1,0,!e.context.$implicit.collapsed)},null)}function _g(t){return Ou(0,[(t()(),ds(16777216,null,null,1,null,hg)),ru(1,16384,null,0,Pp,[Zi,zo],{ngIf:[0,"ngIf"]},null),(t()(),ds(16777216,null,null,1,null,gg)),ru(3,278528,null,0,Dp,[Zi,zo,ya],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,1,0,n.showWeekdays),t(e,3,0,n.month.weeks)},null)}var bg=Ba({encapsulation:2,styles:["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:0 0}[ngbDatepickerDayView].outside{opacity:.5}"],data:{}});function wg(t){return Ou(2,[(t()(),Tu(0,null,["",""]))],null,function(t,e){var n=e.component;t(e,0,0,n.i18n.getDayNumerals(n.date))})}var Cg=Ba({encapsulation:2,styles:["ngb-datepicker-navigation{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;-webkit-transform:rotate(-135deg);transform:rotate(-135deg)}.right .ngb-dp-navigation-chevron{-webkit-transform:rotate(45deg);transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow.right{-ms-flex-pack:end;justify-content:flex-end}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline:auto 1px}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:-ms-flexbox;display:flex;-ms-flex:1 1 9rem;flex:1 1 9rem}"],data:{}});function Eg(t){return Ou(0,[(t()(),ys(0,0,null,null,1,"ngb-datepicker-navigation-select",[["class","ngb-dp-navigation-select"]],null,[[null,"select"]],function(t,e,n){var r=!0;return"select"===e&&(r=!1!==t.component.select.emit(n)&&r),r},Ig,Og)),ru(1,49152,null,0,Pv,[fv],{date:[0,"date"],disabled:[1,"disabled"],months:[2,"months"],years:[3,"years"]},{select:"select"})],function(t,e){var n=e.component;t(e,1,0,n.date,n.disabled,n.selectBoxes.months,n.selectBoxes.years)},null)}function Sg(t){return Ou(0,[(t()(),ys(0,0,null,null,0,"div",[["class","ngb-dp-arrow"]],null,null,null,null,null))],null,null)}function xg(t){return Ou(0,[(t()(),ys(0,0,null,null,0,"div",[["class","ngb-dp-arrow"]],null,null,null,null,null))],null,null)}function Tg(t){return Ou(0,[(t()(),ds(16777216,null,null,1,null,Sg)),ru(1,16384,null,0,Pp,[Zi,zo],{ngIf:[0,"ngIf"]},null),(t()(),ys(2,0,null,null,1,"div",[["class","ngb-dp-month-name"]],null,null,null,null,null)),(t()(),Tu(3,null,[" "," "," "])),(t()(),ds(16777216,null,null,1,null,xg)),ru(5,16384,null,0,Pp,[Zi,zo],{ngIf:[0,"ngIf"]},null),(t()(),ds(0,null,null,0))],function(t,e){var n=e.component;t(e,1,0,e.context.index>0),t(e,5,0,e.context.index!==n.months.length-1)},function(t,e){var n=e.component;t(e,3,0,n.i18n.getMonthFullName(e.context.$implicit.number,e.context.$implicit.year),n.i18n.getYearNumerals(e.context.$implicit.year))})}function kg(t){return Ou(0,[(t()(),ds(16777216,null,null,1,null,Tg)),ru(1,278528,null,0,Dp,[Zi,zo,ya],{ngForOf:[0,"ngForOf"]},null),(t()(),ds(0,null,null,0))],function(t,e){t(e,1,0,e.component.months)},null)}function Dg(t){return Ou(2,[(t()(),ys(0,0,null,null,2,"div",[["class","ngb-dp-arrow"]],null,null,null,null,null)),(t()(),ys(1,0,null,null,1,"button",[["aria-label","Previous month"],["class","btn btn-link ngb-dp-arrow-btn"],["title","Previous month"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(t,e,n){var r=!0,o=t.component;return"click"===e&&(r=!1!==o.navigate.emit(o.navigation.PREV)&&r),r},null,null)),(t()(),ys(2,0,null,null,0,"span",[["class","ngb-dp-navigation-chevron"]],null,null,null,null,null)),(t()(),ds(16777216,null,null,1,null,Eg)),ru(4,16384,null,0,Pp,[Zi,zo],{ngIf:[0,"ngIf"]},null),(t()(),ds(16777216,null,null,1,null,kg)),ru(6,16384,null,0,Pp,[Zi,zo],{ngIf:[0,"ngIf"]},null),(t()(),ys(7,0,null,null,2,"div",[["class","ngb-dp-arrow right"]],null,null,null,null,null)),(t()(),ys(8,0,null,null,1,"button",[["aria-label","Next month"],["class","btn btn-link ngb-dp-arrow-btn"],["title","Next month"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(t,e,n){var r=!0,o=t.component;return"click"===e&&(r=!1!==o.navigate.emit(o.navigation.NEXT)&&r),r},null,null)),(t()(),ys(9,0,null,null,0,"span",[["class","ngb-dp-navigation-chevron"]],null,null,null,null,null))],function(t,e){var n=e.component;t(e,4,0,n.showSelect),t(e,6,0,!n.showSelect)},function(t,e){var n=e.component;t(e,1,0,n.prevDisabled),t(e,8,0,n.nextDisabled)})}var Og=Ba({encapsulation:2,styles:["ngb-datepicker-navigation-select>.custom-select{-ms-flex:1 1 auto;flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}"],data:{}});function Pg(t){return Ou(0,[(t()(),ys(0,0,null,null,3,"option",[],[[1,"aria-label",0]],null,null,null,null)),ru(1,147456,null,0,cm,[to,io,[8,null]],{value:[0,"value"]},null),ru(2,147456,null,0,fm,[to,io,[8,null]],{value:[0,"value"]},null),(t()(),Tu(3,null,["",""]))],function(t,e){t(e,1,0,e.context.$implicit),t(e,2,0,e.context.$implicit)},function(t,e){var n=e.component;t(e,0,0,n.i18n.getMonthFullName(e.context.$implicit,null==n.date?null:n.date.year)),t(e,3,0,n.i18n.getMonthShortName(e.context.$implicit,null==n.date?null:n.date.year))})}function Ag(t){return Ou(0,[(t()(),ys(0,0,null,null,3,"option",[],null,null,null,null,null)),ru(1,147456,null,0,cm,[to,io,[8,null]],{value:[0,"value"]},null),ru(2,147456,null,0,fm,[to,io,[8,null]],{value:[0,"value"]},null),(t()(),Tu(3,null,["",""]))],function(t,e){t(e,1,0,e.context.$implicit),t(e,2,0,e.context.$implicit)},function(t,e){t(e,3,0,e.component.i18n.getYearNumerals(e.context.$implicit))})}function Ig(t){return Ou(2,[(t()(),ys(0,0,null,null,2,"select",[["aria-label","Select month"],["class","custom-select"],["title","Select month"]],[[8,"disabled",0],[8,"value",0]],[[null,"change"]],function(t,e,n){var r=!0;return"change"===e&&(r=!1!==t.component.changeMonth(n.target.value)&&r),r},null,null)),(t()(),ds(16777216,null,null,1,null,Pg)),ru(2,278528,null,0,Dp,[Zi,zo,ya],{ngForOf:[0,"ngForOf"]},null),(t()(),ys(3,0,null,null,2,"select",[["aria-label","Select year"],["class","custom-select"],["title","Select year"]],[[8,"disabled",0],[8,"value",0]],[[null,"change"]],function(t,e,n){var r=!0;return"change"===e&&(r=!1!==t.component.changeYear(n.target.value)&&r),r},null,null)),(t()(),ds(16777216,null,null,1,null,Ag)),ru(5,278528,null,0,Dp,[Zi,zo,ya],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,2,0,n.months),t(e,5,0,n.years)},function(t,e){var n=e.component;t(e,0,0,n.disabled,null==n.date?null:n.date.month),t(e,3,0,n.disabled,null==n.date?null:n.date.year)})}var Rg=Ba({encapsulation:2,styles:["ngb-datepicker{border:1px solid #dfdfdf;border-radius:.25rem;display:inline-block}.ngb-dp-month{pointer-events:none}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem}ngb-datepicker-month-view{pointer-events:auto}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-month+.ngb-dp-month>.ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month>ngb-datepicker-month-view>.ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month>ngb-datepicker-month-view>.ngb-dp-week:last-child{padding-bottom:.25rem}.ngb-dp-months{display:-ms-flexbox;display:flex}"],data:{}});function Ng(t){return Ou(0,[(t()(),ys(0,0,null,null,1,"div",[["class","btn-light"],["ngbDatepickerDayView",""]],[[2,"bg-primary",null],[2,"text-white",null],[2,"text-muted",null],[2,"outside",null],[2,"active",null]],null,null,wg,bg)),ru(1,49152,null,0,Ov,[fv],{currentMonth:[0,"currentMonth"],date:[1,"date"],disabled:[2,"disabled"],focused:[3,"focused"],selected:[4,"selected"]},null)],function(t,e){t(e,1,0,e.context.currentMonth,e.context.date,e.context.disabled,e.context.focused,e.context.selected)},function(t,e){t(e,0,0,qs(e,1).selected,qs(e,1).selected,qs(e,1).isMuted(),qs(e,1).isMuted(),qs(e,1).focused)})}function Mg(t){return Ou(0,[(t()(),ys(0,0,null,null,1,"ngb-datepicker-navigation",[],null,[[null,"navigate"],[null,"select"]],function(t,e,n){var r=!0,o=t.component;return"navigate"===e&&(r=!1!==o.onNavigateEvent(n)&&r),"select"===e&&(r=!1!==o.onNavigateDateSelect(n)&&r),r},Dg,Cg)),ru(1,49152,null,0,xv,[fv],{date:[0,"date"],disabled:[1,"disabled"],months:[2,"months"],showSelect:[3,"showSelect"],prevDisabled:[4,"prevDisabled"],nextDisabled:[5,"nextDisabled"],selectBoxes:[6,"selectBoxes"]},{navigate:"navigate",select:"select"})],function(t,e){var n=e.component;t(e,1,0,n.model.firstDate,n.model.disabled,n.model.months,"select"===n.model.navigation,n.model.prevDisabled,n.model.nextDisabled,n.model.selectBoxes)},null)}function jg(t){return Ou(0,[(t()(),ys(0,0,null,null,1,"div",[["class","ngb-dp-month-name bg-light"]],null,null,null,null,null)),(t()(),Tu(1,null,[" "," "," "]))],null,function(t,e){var n=e.component;t(e,1,0,n.i18n.getMonthFullName(e.parent.context.$implicit.number,e.parent.context.$implicit.year),n.i18n.getYearNumerals(e.parent.context.$implicit.year))})}function Vg(t){return Ou(0,[(t()(),ys(0,0,null,null,4,"div",[["class","ngb-dp-month"]],null,null,null,null,null)),(t()(),ds(16777216,null,null,1,null,jg)),ru(2,16384,null,0,Pp,[Zi,zo],{ngIf:[0,"ngIf"]},null),(t()(),ys(3,0,null,null,1,"ngb-datepicker-month-view",[["role","grid"]],null,[[null,"select"]],function(t,e,n){var r=!0;return"select"===e&&(r=!1!==t.component.onDateSelect(n)&&r),r},_g,lg)),ru(4,49152,null,0,Sv,[fv],{dayTemplate:[0,"dayTemplate"],month:[1,"month"],showWeekdays:[2,"showWeekdays"],showWeekNumbers:[3,"showWeekNumbers"]},{select:"select"})],function(t,e){var n=e.component;t(e,2,0,"none"===n.navigation||n.displayMonths>1&&"select"===n.navigation),t(e,4,0,n.dayTemplate||qs(e.parent,0),e.context.$implicit,n.showWeekdays,n.showWeekNumbers)},null)}function Fg(t){return Ou(0,[(t()(),ds(0,null,null,0))],null,null)}function Lg(t){return Ou(2,[(t()(),ds(0,[["dt",2]],null,0,null,Ng)),(t()(),ys(1,0,null,null,2,"div",[["class","ngb-dp-header bg-light"]],null,null,null,null,null)),(t()(),ds(16777216,null,null,1,null,Mg)),ru(3,16384,null,0,Pp,[Zi,zo],{ngIf:[0,"ngIf"]},null),(t()(),ys(4,0,null,null,2,"div",[["class","ngb-dp-months"]],null,[[null,"keydown"],[null,"focusin"],[null,"focusout"]],function(t,e,n){var r=!0,o=t.component;return"keydown"===e&&(r=!1!==o.onKeyDown(n)&&r),"focusin"===e&&(r=!1!==o.showFocus(!0)&&r),"focusout"===e&&(r=!1!==o.showFocus(!1)&&r),r},null,null)),(t()(),ds(16777216,null,null,1,null,Vg)),ru(6,278528,null,0,Dp,[Zi,zo,ya],{ngForOf:[0,"ngForOf"]},null),(t()(),ds(16777216,null,null,1,null,Fg)),ru(8,540672,null,0,Rp,[Zi],{ngTemplateOutlet:[0,"ngTemplateOutlet"]},null)],function(t,e){var n=e.component;t(e,3,0,"none"!==n.navigation),t(e,6,0,n.model.months),t(e,8,0,n.footerTemplate)},null)}function Ug(t){return Ou(0,[(t()(),ys(0,0,null,null,4,"ngb-datepicker",[],null,null,null,Lg,Rg)),ou(5120,null,Ky,function(t){return[t]},[Ev]),ou(512,null,yv,yv,[uv,fv]),ou(512,null,vv,vv,[yv,uv]),ru(4,770048,null,0,Ev,[vv,yv,uv,fv,_v,Yi,to,wv,Ei],null,null)],function(t,e){t(e,4,0)},null)}var Hg=Rs("ngb-datepicker",Ev,Ug,{dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekdays:"showWeekdays",showWeekNumbers:"showWeekNumbers",startDate:"startDate"},{navigate:"navigate",select:"select"},[]),Bg=Ba({encapsulation:2,styles:["ngb-popover-window.bs-popover-bottom .arrow,ngb-popover-window.bs-popover-top .arrow{left:50%;margin-left:-5px}ngb-popover-window.bs-popover-bottom-left .arrow,ngb-popover-window.bs-popover-top-left .arrow{left:2em}ngb-popover-window.bs-popover-bottom-right .arrow,ngb-popover-window.bs-popover-top-right .arrow{left:auto;right:2em}ngb-popover-window.bs-popover-left .arrow,ngb-popover-window.bs-popover-right .arrow{top:50%;margin-top:-5px}ngb-popover-window.bs-popover-left-top .arrow,ngb-popover-window.bs-popover-right-top .arrow{top:.7em}ngb-popover-window.bs-popover-left-bottom .arrow,ngb-popover-window.bs-popover-right-bottom .arrow{top:auto;bottom:.7em}"],data:{}});function zg(t){return Ou(0,[(t()(),Tu(0,null,["",""]))],null,function(t,e){t(e,0,0,e.component.title)})}function qg(t){return Ou(0,[(t()(),ds(0,null,null,0))],null,null)}function Wg(t){return Ou(0,[(t()(),ys(0,0,null,null,3,"h3",[["class","popover-header"]],null,null,null,null,null)),(t()(),ds(0,[["simpleTitle",2]],null,0,null,zg)),(t()(),ds(16777216,null,null,1,null,qg)),ru(3,540672,null,0,Rp,[Zi],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null)],function(t,e){var n=e.component;t(e,3,0,n.context,n.isTitleTemplate()?n.title:qs(e,1))},null)}function Gg(t){return Ou(2,[(t()(),ys(0,0,null,null,0,"div",[["class","arrow"]],null,null,null,null,null)),(t()(),ds(16777216,null,null,1,null,Wg)),ru(2,16384,null,0,Pp,[Zi,zo],{ngIf:[0,"ngIf"]},null),(t()(),ys(3,0,null,null,1,"div",[["class","popover-body"]],null,null,null,null,null)),Eu(null,0)],function(t,e){t(e,2,0,null!=e.component.title)},null)}function Qg(t){return Ou(0,[(t()(),ys(0,0,null,null,1,"ngb-popover-window",[["role","tooltip"]],[[8,"className",0],[8,"id",0]],null,null,Gg,Bg)),ru(1,49152,null,0,Gv,[to,io],null,null)],null,function(t,e){t(e,0,0,"popover bs-popover-"+qs(e,1).placement.split("-")[0]+" bs-popover-"+qs(e,1).placement+(qs(e,1).popoverClass?" "+qs(e,1).popoverClass:""),qs(e,1).id)})}var Kg=Rs("ngb-popover-window",Gv,Qg,{placement:"placement",title:"title",id:"id",popoverClass:"popoverClass",context:"context"},{},["*"]),Zg=Ba({encapsulation:2,styles:["ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{top:auto;bottom:.4rem}"],data:{}});function $g(t){return Ou(2,[(t()(),ys(0,0,null,null,0,"div",[["class","arrow"]],null,null,null,null,null)),(t()(),ys(1,0,null,null,1,"div",[["class","tooltip-inner"]],null,null,null,null,null)),Eu(null,0)],null,null)}function Yg(t){return Ou(0,[(t()(),ys(0,0,null,null,1,"ngb-tooltip-window",[["role","tooltip"]],[[8,"className",0],[8,"id",0]],null,null,$g,Zg)),ru(1,49152,null,0,Jv,[to,io],null,null)],null,function(t,e){t(e,0,0,"tooltip show bs-tooltip-"+qs(e,1).placement.split("-")[0]+" bs-tooltip-"+qs(e,1).placement+(qs(e,1).tooltipClass?" "+qs(e,1).tooltipClass:""),qs(e,1).id)})}var Jg=Rs("ngb-tooltip-window",Jv,Yg,{placement:"placement",id:"id",tooltipClass:"tooltipClass"},{},["*"]),Xg=Ba({encapsulation:2,styles:[],data:{}});function t_(t){return Ou(0,[(t()(),ys(0,0,null,null,1,"ngb-highlight",[],null,null,null,c_,a_)),ru(1,573440,null,0,tg,[],{result:[0,"result"],term:[1,"term"]},null)],function(t,e){var n=e.context.formatter(e.context.result);t(e,1,0,n,e.context.term)},null)}function e_(t){return Ou(0,[(t()(),ds(0,null,null,0))],null,null)}function n_(t){return Ou(0,[(t()(),ys(0,0,null,null,3,"button",[["class","dropdown-item"],["role","option"],["type","button"]],[[8,"id",0],[2,"active",null]],[[null,"mouseenter"],[null,"click"]],function(t,e,n){var r=!0,o=t.component;return"mouseenter"===e&&(r=!1!==o.markActive(t.context.index)&&r),"click"===e&&(r=!1!==o.select(t.context.$implicit)&&r),r},null,null)),(t()(),ds(16777216,null,null,2,null,e_)),ru(2,540672,null,0,Rp,[Zi],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),function(t,e){for(var n=Object.keys(e),r=n.length,o=new Array(r),i=0;i<r;i++){var a=n[i];o[e[a]]=a}return xu(64,3,o)}(0,{result:0,term:1,formatter:2})],function(t,e){var n=e.component,r=t(e,3,0,e.context.$implicit,n.term,n.formatter);t(e,2,0,r,n.resultTemplate||qs(e.parent,0))},function(t,e){var n=e.component;t(e,0,0,n.id+"-"+e.context.index,e.context.index===n.activeIdx)})}function r_(t){return Ou(0,[(t()(),ds(0,[["rt",2]],null,0,null,t_)),(t()(),ds(16777216,null,null,1,null,n_)),ru(2,278528,null,0,Dp,[Zi,zo,ya],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,2,0,e.component.results)},null)}function o_(t){return Ou(0,[(t()(),ys(0,0,null,null,1,"ngb-typeahead-window",[["class","dropdown-menu show"],["role","listbox"]],[[8,"id",0]],null,null,r_,Xg)),ru(1,114688,null,0,eg,[],null,null)],function(t,e){t(e,1,0)},function(t,e){t(e,0,0,qs(e,1).id)})}var i_=Rs("ngb-typeahead-window",eg,o_,{id:"id",focusFirst:"focusFirst",results:"results",term:"term",formatter:"formatter",resultTemplate:"resultTemplate"},{selectEvent:"select",activeChangeEvent:"activeChange"},[]),a_=Ba({encapsulation:2,styles:[".ngb-highlight{font-weight:700}"],data:{}});function s_(t){return Ou(0,[(t()(),ys(0,0,null,null,1,"span",[],[[8,"className",0]],null,null,null,null)),(t()(),Tu(1,null,["",""]))],null,function(t,e){t(e,0,0,e.component.highlightClass),t(e,1,0,e.parent.context.$implicit)})}function u_(t){return Ou(0,[(t()(),Tu(0,null,["",""]))],null,function(t,e){t(e,0,0,e.parent.context.$implicit)})}function l_(t){return Ou(0,[(t()(),ds(16777216,null,null,1,null,s_)),ru(1,16384,null,0,Pp,[Zi,zo],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),ds(0,[["even",2]],null,0,null,u_))],function(t,e){t(e,1,0,e.context.odd,qs(e,2))},null)}function c_(t){return Ou(2,[(t()(),ds(16777216,null,null,1,null,l_)),ru(1,278528,null,0,Dp,[Zi,zo,ya],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,1,0,e.component.parts)},null)}var p_=Ba({encapsulation:2,styles:[],data:{}});function h_(t){return Ou(0,[],null,null)}function f_(t){return Ou(0,[(t()(),ys(0,0,null,null,1,"ngb-modal-backdrop",[["style","z-index: 1050"]],[[8,"className",0]],null,null,h_,p_)),ru(1,49152,null,0,Vv,[],null,null)],null,function(t,e){t(e,0,0,"modal-backdrop fade show"+(qs(e,1).backdropClass?" "+qs(e,1).backdropClass:""))})}var d_=Rs("ngb-modal-backdrop",Vv,f_,{backdropClass:"backdropClass"},{},[]),y_=Ba({encapsulation:2,styles:[],data:{}});function m_(t){return Ou(0,[(t()(),ys(0,0,null,null,2,"div",[["role","document"]],[[8,"className",0]],null,null,null,null)),(t()(),ys(1,0,null,null,1,"div",[["class","modal-content"]],null,null,null,null,null)),Eu(null,0)],null,function(t,e){var n=e.component;t(e,0,0,"modal-dialog"+(n.size?" modal-"+n.size:"")+(n.centered?" modal-dialog-centered":""))})}function v_(t){return Ou(0,[(t()(),ys(0,0,null,null,1,"ngb-modal-window",[["role","dialog"],["tabindex","-1"]],[[8,"className",0],[1,"aria-labelledby",0]],[[null,"keyup.esc"],[null,"click"]],function(t,e,n){var r=!0;return"keyup.esc"===e&&(r=!1!==qs(t,1).escKey(n)&&r),"click"===e&&(r=!1!==qs(t,1).backdropClick(n)&&r),r},m_,y_)),ru(1,4440064,null,0,Hv,[jp,to],null,null)],function(t,e){t(e,1,0)},function(t,e){t(e,0,0,"modal fade show d-block"+(qs(e,1).windowClass?" "+qs(e,1).windowClass:""),qs(e,1).ariaLabelledBy)})}var g_=Rs("ngb-modal-window",Hv,v_,{ariaLabelledBy:"ariaLabelledBy",backdrop:"backdrop",centered:"centered",keyboard:"keyboard",size:"size",windowClass:"windowClass"},{dismissEvent:"dismiss"},["*"]),__=function(){function t(t,e,n,r,o,i){var a=this;this.toastId=t,this.config=e,this.message=n,this.title=r,this.toastType=o,this.toastRef=i,this._onTap=new L,this._onAction=new L,this.toastRef.afterClosed().subscribe(function(){a._onAction.complete(),a._onTap.complete()})}return t.prototype.triggerTap=function(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()},t.prototype.onTap=function(){return this._onTap.asObservable()},t.prototype.triggerAction=function(t){this._onAction.next(t)},t.prototype.onAction=function(){return this._onAction.asObservable()},t}(),b_={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,resetTimeoutOnDuplicate:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"toast",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},w_=new Tt("ToastConfig"),C_=function(){function t(t,e){this.component=t,this.injector=e}return t.prototype.attach=function(t,e){return this._attachedHost=t,t.attach(this,e)},t.prototype.detach=function(){var t=this._attachedHost;if(t)return this._attachedHost=void 0,t.detach()},Object.defineProperty(t.prototype,"isAttached",{get:function(){return null!=this._attachedHost},enumerable:!0,configurable:!0}),t.prototype.setAttachedHost=function(t){this._attachedHost=t},t}(),E_=function(t){function e(e,n,r){var o=t.call(this)||this;return o._hostDomElement=e,o._componentFactoryResolver=n,o._appRef=r,o}return o(e,t),e.prototype.attachComponentPortal=function(t,e){var n,r=this,o=this._componentFactoryResolver.resolveComponentFactory(t.component);return n=o.create(t.injector),this._appRef.attachView(n.hostView),this.setDisposeFn(function(){r._appRef.detachView(n.hostView),n.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(n),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(n)),n},e.prototype._getComponentRootNode=function(t){return t.hostView.rootNodes[0]},e}(function(){function t(){}return t.prototype.attach=function(t,e){return this._attachedPortal=t,this.attachComponentPortal(t,e)},t.prototype.detach=function(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)},t.prototype.setDisposeFn=function(t){this._disposeFn=t},t}()),S_=function(){function t(t){this._document=t}return t.prototype.ngOnDestroy=function(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)},t.prototype.getContainerElement=function(){return this._containerElement||this._createContainer(),this._containerElement},t.prototype._createContainer=function(){var t=this._document.createElement("div");t.classList.add("overlay-container"),this._document.body.appendChild(t),this._containerElement=t},t.ngInjectableDef=Et({factory:function(){return new t(Kt(jp))},token:t,providedIn:"root"}),t}(),x_=function(){function t(t){this._portalHost=t}return t.prototype.attach=function(t,e){return void 0===e&&(e=!0),this._portalHost.attach(t,e)},t.prototype.detach=function(){return this._portalHost.detach()},t}(),T_=function(){function t(t,e,n,r){this._overlayContainer=t,this._componentFactoryResolver=e,this._appRef=n,this._document=r,this._paneElements=new Map}return t.prototype.create=function(t,e){return this._createOverlayRef(this.getPaneElement(t,e))},t.prototype.getPaneElement=function(t,e){return void 0===t&&(t=""),this._paneElements.get(e)||this._paneElements.set(e,{}),this._paneElements.get(e)[t]||(this._paneElements.get(e)[t]=this._createPaneElement(t,e)),this._paneElements.get(e)[t]},t.prototype._createPaneElement=function(t,e){var n=this._document.createElement("div");return n.id="toast-container",n.classList.add(t),n.classList.add("toast-container"),e?e.getContainerElement().appendChild(n):this._overlayContainer.getContainerElement().appendChild(n),n},t.prototype._createPortalHost=function(t){return new E_(t,this._componentFactoryResolver,this._appRef)},t.prototype._createOverlayRef=function(t){return new x_(this._createPortalHost(t))},t.ngInjectableDef=Et({factory:function(){return new t(Kt(S_),Kt(Yr),Kt(Ui),Kt(jp))},token:t,providedIn:"root"}),t}(),k_=function(){function t(t){this._overlayRef=t,this._afterClosed=new L,this._activate=new L,this._manualClose=new L,this._resetTimeout=new L}return t.prototype.manualClose=function(){this._manualClose.next(),this._manualClose.complete()},t.prototype.manualClosed=function(){return this._manualClose.asObservable()},t.prototype.timeoutReset=function(){return this._resetTimeout.asObservable()},t.prototype.close=function(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete()},t.prototype.afterClosed=function(){return this._afterClosed.asObservable()},t.prototype.isInactive=function(){return this._activate.isStopped},t.prototype.activate=function(){this._activate.next(),this._activate.complete()},t.prototype.afterActivate=function(){return this._activate.asObservable()},t.prototype.resetTimeout=function(){this._resetTimeout.next()},t}(),D_=function(){function t(t,e){this._toastPackage=t,this._parentInjector=e}return t.prototype.get=function(t,e,n){return t===__?this._toastPackage:this._parentInjector.get(t,e,n)},t}(),O_=function(){function t(t,e,n,r,o){this.overlay=e,this._injector=n,this.sanitizer=r,this.ngZone=o,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=i({},t.default,t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=i({},t.default.iconClasses,t.config.iconClasses))}return t.prototype.show=function(t,e,n,r){return void 0===n&&(n={}),void 0===r&&(r=""),this._preBuildNotification(r,t,e,this.applyConfig(n))},t.prototype.success=function(t,e,n){return void 0===n&&(n={}),this._preBuildNotification(this.toastrConfig.iconClasses.success||"",t,e,this.applyConfig(n))},t.prototype.error=function(t,e,n){return void 0===n&&(n={}),this._preBuildNotification(this.toastrConfig.iconClasses.error||"",t,e,this.applyConfig(n))},t.prototype.info=function(t,e,n){return void 0===n&&(n={}),this._preBuildNotification(this.toastrConfig.iconClasses.info||"",t,e,this.applyConfig(n))},t.prototype.warning=function(t,e,n){return void 0===n&&(n={}),this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",t,e,this.applyConfig(n))},t.prototype.clear=function(t){var e,n;try{for(var r=u(this.toasts),o=r.next();!o.done;o=r.next()){var i=o.value;if(void 0!==t){if(i.toastId===t)return void i.toastRef.manualClose()}else i.toastRef.manualClose()}}catch(a){e={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},t.prototype.remove=function(t){var e=this._findToast(t);if(!e)return!1;if(e.activeToast.toastRef.close(),this.toasts.splice(e.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length)return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){var n=this.toasts[this.currentlyActive].toastRef;n.isInactive()||(this.currentlyActive=this.currentlyActive+1,n.activate())}return!0},t.prototype.findDuplicate=function(t,e){for(var n=0;n<this.toasts.length;n++){var r=this.toasts[n];if(r.message===t)return e&&r.toastRef.componentInstance.resetTimeout&&r.toastRef.resetTimeout(),r}return null},t.prototype.applyConfig=function(t){return void 0===t&&(t={}),i({},this.toastrConfig,t)},t.prototype._findToast=function(t){for(var e=0;e<this.toasts.length;e++)if(this.toasts[e].toastId===t)return{index:e,activeToast:this.toasts[e]};return null},t.prototype._preBuildNotification=function(t,e,n,r){var o=this;return r.onActivateTick?this.ngZone.run(function(){return o._buildNotification(t,e,n,r)}):this._buildNotification(t,e,n,r)},t.prototype._buildNotification=function(t,e,n,r){var o=this;if(!r.toastComponent)throw new Error("toastComponent required");if(e&&this.toastrConfig.preventDuplicates){var i=this.findDuplicate(e,this.toastrConfig.resetTimeoutOnDuplicate);if(null!==i)return i}this.previousToastMessage=e;var a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));var s=this.overlay.create(r.positionClass,this.overlayContainer);this.index=this.index+1;var u=e;e&&r.enableHtml&&(u=this.sanitizer.sanitize(Wo.HTML,e));var l=new k_(s),c=new __(this.index,r,u,n,t,l),p=new D_(c,this._injector),h=new C_(r.toastComponent,p),f=s.attach(h,this.toastrConfig.newestOnTop);l.componentInstance=f._component;var d={toastId:this.index,message:e||"",toastRef:l,onShown:l.afterActivate(),onHidden:l.afterClosed(),onTap:c.onTap(),onAction:c.onAction(),portal:f};return a||setTimeout(function(){d.toastRef.activate(),o.currentlyActive=o.currentlyActive+1}),this.toasts.push(d),d},t.ngInjectableDef=Et({factory:function(){return new t(Kt(w_),Kt(T_),Kt(jn),Kt(Fh),Kt(Ei))},token:t,providedIn:"root"}),t}(),P_=function(){function t(t,e,n){var r=this;this.toastrService=t,this.toastPackage=e,this.ngZone=n,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=e.toastType+" "+e.config.toastClass,this.sub=e.toastRef.afterActivate().subscribe(function(){r.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(function(){r.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(function(){r.resetTimeout()})}return t.prototype.ngOnDestroy=function(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)},t.prototype.activateToast=function(){var t=this;this.state=i({},this.state,{value:"active"}),!this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(function(){return t.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(function(){return t.updateProgress()},10))},t.prototype.updateProgress=function(){if(0!==this.width&&100!==this.width&&this.options.timeOut){var t=(new Date).getTime();this.width=(this.hideTime-t)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}},t.prototype.resetTimeout=function(){var t=this;clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=i({},this.state,{value:"active"}),this.outsideTimeout(function(){return t.remove()},this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(function(){return t.updateProgress()},10)},t.prototype.remove=function(){var t=this;"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=i({},this.state,{value:"removed"}),this.outsideTimeout(function(){return t.toastrService.remove(t.toastPackage.toastId)},+this.toastPackage.config.easeTime))},t.prototype.tapToast=function(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())},t.prototype.stickAround=function(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)},t.prototype.delayedHideToast=function(){var t=this;this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(function(){return t.remove()},this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(function(){return t.updateProgress()},10))},t.prototype.outsideTimeout=function(t,e){var n=this;this.ngZone?this.ngZone.runOutsideAngular(function(){return n.timeout=setTimeout(function(){return n.runInsideAngular(t)},e)}):this.timeout=setTimeout(function(){return t()},e)},t.prototype.outsideInterval=function(t,e){var n=this;this.ngZone?this.ngZone.runOutsideAngular(function(){return n.intervalId=setInterval(function(){return n.runInsideAngular(t)},e)}):this.intervalId=setInterval(function(){return t()},e)},t.prototype.runInsideAngular=function(t){this.ngZone?this.ngZone.run(function(){return t()}):t()},t}(),A_=i({},b_,{toastComponent:P_}),I_=function(){function t(){}return t.forRoot=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[{provide:w_,useValue:{default:A_,config:e}}]}},t}(),R_=Ba({encapsulation:2,styles:[],data:{animation:[{type:7,name:"flyInOut",definitions:[{type:0,name:"inactive",styles:{type:6,styles:{display:"none",opacity:0},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{},offset:null},options:void 0},{type:0,name:"removed",styles:{type:6,styles:{opacity:0},offset:null},options:void 0},{type:1,expr:"inactive => active",animation:{type:4,styles:null,timings:"{{ easeTime }}ms {{ easing }}"},options:null},{type:1,expr:"active => removed",animation:{type:4,styles:null,timings:"{{ easeTime }}ms {{ easing }}"},options:null}],options:{}}]}});function N_(t){return Ou(0,[(t()(),ys(0,0,null,null,2,"button",[["aria-label","Close"],["class","toast-close-button"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.remove()&&r),r},null,null)),(t()(),ys(1,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(t()(),Tu(-1,null,["\xd7"]))],null,null)}function M_(t){return Ou(0,[(t()(),ys(0,0,null,null,1,"div",[],[[8,"className",0],[1,"aria-label",0]],null,null,null,null)),(t()(),Tu(1,null,[" "," "]))],null,function(t,e){var n=e.component;t(e,0,0,n.options.titleClass,n.title),t(e,1,0,n.title)})}function j_(t){return Ou(0,[(t()(),ys(0,0,null,null,0,"div",[["aria-live","polite"],["role","alertdialog"]],[[8,"className",0],[8,"innerHTML",1]],null,null,null,null))],null,function(t,e){var n=e.component;t(e,0,0,n.options.messageClass,n.message)})}function V_(t){return Ou(0,[(t()(),ys(0,0,null,null,1,"div",[["aria-live","polite"],["role","alertdialog"]],[[8,"className",0],[1,"aria-label",0]],null,null,null,null)),(t()(),Tu(1,null,[" "," "]))],null,function(t,e){var n=e.component;t(e,0,0,n.options.messageClass,n.message),t(e,1,0,n.message)})}function F_(t){return Ou(0,[(t()(),ys(0,0,null,null,1,"div",[],null,null,null,null,null)),(t()(),ys(1,0,null,null,0,"div",[["class","toast-progress"]],[[4,"width",null]],null,null,null,null))],null,function(t,e){t(e,1,0,e.component.width+"%")})}function L_(t){return Ou(0,[(t()(),ds(16777216,null,null,1,null,N_)),ru(1,16384,null,0,Pp,[Zi,zo],{ngIf:[0,"ngIf"]},null),(t()(),ds(16777216,null,null,1,null,M_)),ru(3,16384,null,0,Pp,[Zi,zo],{ngIf:[0,"ngIf"]},null),(t()(),ds(16777216,null,null,1,null,j_)),ru(5,16384,null,0,Pp,[Zi,zo],{ngIf:[0,"ngIf"]},null),(t()(),ds(16777216,null,null,1,null,V_)),ru(7,16384,null,0,Pp,[Zi,zo],{ngIf:[0,"ngIf"]},null),(t()(),ds(16777216,null,null,1,null,F_)),ru(9,16384,null,0,Pp,[Zi,zo],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,1,0,n.options.closeButton),t(e,3,0,n.title),t(e,5,0,n.message&&n.options.enableHtml),t(e,7,0,n.message&&!n.options.enableHtml),t(e,9,0,n.options.progressBar)},null)}function U_(t){return Ou(0,[(t()(),ys(0,0,null,null,1,"div",[["toast-component",""]],[[8,"className",0],[40,"@flyInOut",0]],[[null,"click"],[null,"mouseenter"],[null,"mouseleave"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==qs(t,1).tapToast()&&r),"mouseenter"===e&&(r=!1!==qs(t,1).stickAround()&&r),"mouseleave"===e&&(r=!1!==qs(t,1).delayedHideToast()&&r),r},L_,R_)),ru(1,180224,null,0,P_,[O_,__,Ei],null,null)],null,function(t,e){t(e,0,0,qs(e,1).toastClasses,qs(e,1).state)})}var H_=Rs("[toast-component]",P_,U_,{},{},[]),B_=function(){return function(){}}(),z_=function(){return function(){}}(),q_=function(){function t(t){var e=this;this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){e.headers=new Map,t.split("\n").forEach(function(t){var n=t.indexOf(":");if(n>0){var r=t.slice(0,n),o=r.toLowerCase(),i=t.slice(n+1).trim();e.maybeSetNormalizedName(r,o),e.headers.has(o)?e.headers.get(o).push(i):e.headers.set(o,[i])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var r=t[n],o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(o,r),e.maybeSetNormalizedName(n,o))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,c(n)),this.headers.set(e,r);break;case"d":var o=t.value;if(o){var i=this.headers.get(e);if(!i)return;0===(i=i.filter(function(t){return-1===o.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,i)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),W_=function(){function t(){}return t.prototype.encodeKey=function(t){return G_(t)},t.prototype.encodeValue=function(t){return G_(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function G_(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,"/")}var Q_=function(){function t(t){void 0===t&&(t={});var e,n,r,o=this;if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new W_,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,r=new Map,e.length>0&&e.split("&").forEach(function(t){var e=t.indexOf("="),o=l(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),i=o[0],a=o[1],s=r.get(i)||[];s.push(a),r.set(i,s)}),r)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(e){var n=t.fromObject[e];o.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],o=r.indexOf(e.value);-1!==o&&r.splice(o,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=null)},t}();function K_(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Z_(t){return"undefined"!=typeof Blob&&t instanceof Blob}function $_(t){return"undefined"!=typeof FormData&&t instanceof FormData}var Y_=function(){function t(t,e,n,r){var o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new q_),this.params){var i=this.params.toString();if(0===i.length)this.urlWithParams=e;else{var a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+i}}else this.params=new Q_,this.urlWithParams=e}return t.prototype.serializeBody=function(){return null===this.body?null:K_(this.body)||Z_(this.body)||$_(this.body)||"string"==typeof this.body?this.body:this.body instanceof Q_?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()},t.prototype.detectContentTypeHeader=function(){return null===this.body?null:$_(this.body)?null:Z_(this.body)?this.body.type||null:K_(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Q_?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null},t.prototype.clone=function(e){void 0===e&&(e={});var n=e.method||this.method,r=e.url||this.url,o=e.responseType||this.responseType,i=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,s=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,u=e.headers||this.headers,l=e.params||this.params;return void 0!==e.setHeaders&&(u=Object.keys(e.setHeaders).reduce(function(t,n){return t.set(n,e.setHeaders[n])},u)),e.setParams&&(l=Object.keys(e.setParams).reduce(function(t,n){return t.set(n,e.setParams[n])},l)),new t(n,r,i,{params:l,headers:u,reportProgress:s,responseType:o,withCredentials:a})},t}(),J_=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({}),X_=function(){return function(t,e,n){void 0===e&&(e=200),void 0===n&&(n="OK"),this.headers=t.headers||new q_,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}(),tb=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=J_.ResponseHeader,n}return o(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(X_),eb=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=J_.Response,n.body=void 0!==e.body?e.body:null,n}return o(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(X_),nb=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return o(e,t),e}(X_);function rb(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var ob=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var r,o=this;if(void 0===n&&(n={}),t instanceof Y_)r=t;else{var i;i=n.headers instanceof q_?n.headers:new q_(n.headers);var a=void 0;n.params&&(a=n.params instanceof Q_?n.params:new Q_({fromObject:n.params})),r=new Y_(t,e,void 0!==n.body?n.body:null,{headers:i,params:a,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var s=zl(r).pipe(Pc(function(t){return o.handler.handle(t)}));if(t instanceof Y_||"events"===n.observe)return s;var u=s.pipe(Jl(function(t){return t instanceof eb}));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return u.pipe(tt(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return u.pipe(tt(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return u.pipe(tt(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return u.pipe(tt(function(t){return t.body}))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new Q_).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,rb(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,rb(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,rb(n,e))},t}(),ib=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),ab=new Tt("HTTP_INTERCEPTORS"),sb=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t}(),ub=/^\)\]\}',?\n/,lb=function(){return function(){}}(),cb=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}(),pb=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new R(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var o=t.detectContentTypeHeader();null!==o&&r.setRequestHeader("Content-Type",o)}if(t.responseType){var i=t.responseType.toLowerCase();r.responseType="json"!==i?i:"text"}var a=t.serializeBody(),s=null,u=function(){if(null!==s)return s;var e=1223===r.status?204:r.status,n=r.statusText||"OK",o=new q_(r.getAllResponseHeaders()),i=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return s=new tb({headers:o,status:e,statusText:n,url:i})},l=function(){var e=u(),o=e.headers,i=e.status,a=e.statusText,s=e.url,l=null;204!==i&&(l=void 0===r.response?r.responseText:r.response),0===i&&(i=l?200:0);var c=i>=200&&i<300;if("json"===t.responseType&&"string"==typeof l){var p=l;l=l.replace(ub,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=p,c&&(c=!1,l={error:h,text:l})}}c?(n.next(new eb({body:l,headers:o,status:i,statusText:a,url:s||void 0})),n.complete()):n.error(new nb({error:l,headers:o,status:i,statusText:a,url:s||void 0}))},c=function(t){var e=new nb({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error"});n.error(e)},p=!1,h=function(e){p||(n.next(u()),p=!0);var o={type:J_.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(o.total=e.total),"text"===t.responseType&&r.responseText&&(o.partialText=r.responseText),n.next(o)},f=function(t){var e={type:J_.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",l),r.addEventListener("error",c),t.reportProgress&&(r.addEventListener("progress",h),null!==a&&r.upload&&r.upload.addEventListener("progress",f)),r.send(a),n.next({type:J_.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",l),t.reportProgress&&(r.removeEventListener("progress",h),null!==a&&r.upload&&r.upload.removeEventListener("progress",f)),r.abort()}})},t}(),hb=new Tt("XSRF_COOKIE_NAME"),fb=new Tt("XSRF_HEADER_NAME"),db=function(){return function(){}}(),yb=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Tp(t,this.cookieName),this.lastCookieString=t),this.lastToken},t}(),mb=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},t}(),vb=function(){function t(t,e){this.backend=t,this.injector=e,this.chain=null}return t.prototype.handle=function(t){if(null===this.chain){var e=this.injector.get(ab,[]);this.chain=e.reduceRight(function(t,e){return new ib(t,e)},this.backend)}return this.chain.handle(t)},t}(),gb=function(){function t(){}var e;return e=t,t.disable=function(){return{ngModule:e,providers:[{provide:mb,useClass:sb}]}},t.withOptions=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[t.cookieName?{provide:hb,useValue:t.cookieName}:[],t.headerName?{provide:fb,useValue:t.headerName}:[]]}},t}(),_b=function(){return function(){}}(),bb=function(){function t(t){this.http=t,this.httpOptions={headers:new q_({"Access-Control-Allow-Origin":"*","Content-Type":"application/json"})},this.clickOnSave=!1,this.apiUrl="http://localhost:55479/api/Tasks"}return t.prototype.getTasks=function(){return this.http.get(this.apiUrl).pipe(ac(function(t){return console.log("Got the list of tasks")}))},t.prototype.getTask=function(t){return this.http.get(this.apiUrl+t).pipe(ac(function(t){return console.log("Got a particular task.")}))},t.prototype.addTask=function(t){return console.log(t),this.http.post(this.apiUrl,JSON.stringify(t),this.httpOptions)},t.prototype.updateTask=function(t,e){return this.http.put(this.apiUrl+"/"+e,t,this.httpOptions)},t.prototype.deleteTask=function(t){return this.http.delete(this.apiUrl+"/"+t,this.httpOptions).pipe(ac(function(e){return console.log("deleted task id="+t)}))},t.ngInjectableDef=Et({factory:function(){return new t(Kt(ob))},token:t,providedIn:"root"}),t}(),wb=function(){return function(t){this.Name="",this.CreationDate=new Date,this.Completed=!1,t&&(this.Id=t.id,this.Name=t.name,t.creationDate&&(this.CreationDate=new Date(t.creationDate)),this.Completed=t.completed)}}(),Cb=function(){function t(t,e,n){this.modalService=t,this.taskService=e,this.notificationService=n,this.task=new wb}return t.prototype.ngOnInit=function(){},t.prototype.open=function(t){var e=this;this.modalService.open(t,{ariaLabelledBy:"modal-basic-title"}).result.then(function(t){e.task=new wb})},t.prototype.saveTask=function(t){t.CreationDate=new Date,t.Completed=!1,console.log(t),this.taskService.addTask(t).subscribe(),this.notificationService.success("The task was succesfully added.","Task added!")},t.prototype.getTasks=function(){var t=this;this.taskService.getTasks().subscribe(function(e){return t.tasks=e})},t.prototype.getDismissReason=function(t){return t===Uv.ESC?"by pressing ESC":t===Uv.BACKDROP_CLICK?"by clicking on a backdrop":"with: "+t},t}(),Eb=Ba({encapsulation:0,styles:[[""]],data:{}});function Sb(t){return Ou(0,[(t()(),ys(0,0,null,null,1,"div",[["class","validation-error danger text-danger"]],null,null,null,null,null)),(t()(),Tu(-1,null,[" The name can't be empty! "]))],null,null)}function xb(t){return Ou(0,[(t()(),ys(0,0,null,null,5,"div",[["class","modal-header"]],null,null,null,null,null)),(t()(),ys(1,0,null,null,1,"h4",[["class","modal-title"],["id","modal-basic-title"]],null,null,null,null,null)),(t()(),Tu(-1,null,["Add new task"])),(t()(),ys(3,0,null,null,2,"button",[["aria-label","Close"],["class","close"],["type","button"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.context.$implicit.dismiss("Cross click")&&r),r},null,null)),(t()(),ys(4,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(t()(),Tu(-1,null,["\xd7"])),(t()(),ys(6,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(t()(),ys(7,0,null,null,10,"div",[["class","modal-body"]],null,null,null,null,null)),(t()(),ys(8,0,null,null,7,"input",[["class","form-control"],["placeholder","Task name"],["required",""],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==qs(t,9)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==qs(t,9).onTouched()&&r),"compositionstart"===e&&(r=!1!==qs(t,9)._compositionStart()&&r),"compositionend"===e&&(r=!1!==qs(t,9)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.task.Name=n)&&r),r},null,null)),ru(9,16384,null,0,Yy,[io,to,[2,$y]],null,null),ru(10,16384,null,0,Vm,[],{required:[0,"required"]},null),ou(1024,null,By,function(t){return[t]},[Vm]),ou(1024,null,Ky,function(t){return[t]},[Yy]),ru(13,671744,[["name",4]],0,jm,[[8,null],[6,By],[8,null],[6,Ky]],{model:[0,"model"]},{update:"ngModelChange"}),ou(2048,null,nm,null,[jm]),ru(15,16384,null,0,Cm,[[4,nm]],null,null),(t()(),ds(16777216,null,null,1,null,Sb)),ru(17,16384,null,0,Pp,[Zi,zo],{ngIf:[0,"ngIf"]},null),(t()(),ys(18,0,null,null,2,"div",[["class","modal-footer"]],null,null,null,null,null)),(t()(),ys(19,0,null,null,1,"button",[["class","btn btn-outline-dark"],["type","submit"]],[[8,"disabled",0]],[[null,"click"]],function(t,e,n){var r=!0,o=t.component;return"click"===e&&(o.saveTask(o.task),r=!1!==t.context.$implicit.close()&&r),r},null,null)),(t()(),Tu(-1,null,["Save"]))],function(t,e){var n=e.component;t(e,10,0,""),t(e,13,0,n.task.Name),t(e,17,0,qs(e,13).invalid&&(qs(e,13).dirty||qs(e,13).touched))},function(t,e){t(e,8,0,qs(e,10).required?"":null,qs(e,15).ngClassUntouched,qs(e,15).ngClassTouched,qs(e,15).ngClassPristine,qs(e,15).ngClassDirty,qs(e,15).ngClassValid,qs(e,15).ngClassInvalid,qs(e,15).ngClassPending),t(e,19,0,qs(e,13).invalid)})}function Tb(t){return Ou(0,[(t()(),ys(0,0,null,null,5,"nav",[["class","navbar navbar-light bg-light"]],null,null,null,null,null)),(t()(),ys(1,0,null,null,1,"span",[["class","navbar-brand mb-0 h1"]],null,null,null,null,null)),(t()(),Tu(-1,null,["\ud83d\udcdaMy cool task viewer"])),(t()(),ys(3,0,null,null,2,"button",[["class","btn btn-outline-success my-2 my-sm-0"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.open(qs(t,6))&&r),r},null,null)),(t()(),ys(4,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(t()(),Tu(-1,null,[" Add"])),(t()(),ds(0,[["content",2]],null,0,null,xb))],null,null)}var kb=function(){function t(t,e){this.taskService=t,this.notificationService=e}return t.prototype.ngOnInit=function(){this.getTasks()},t.prototype.setAsComplete=function(t,e){t.Completed=!0,this.taskService.updateTask(t,e).subscribe(function(t){}),this.notificationService.info("The task was marked as completed.","You completed the task!")},t.prototype.deleteTask=function(t){var e=this;console.log(t),this.taskService.deleteTask(t).subscribe(function(t){e.getTasks()}),this.notificationService.error("The task was succesfully deleted.","Task deleted!")},t.prototype.getTasks=function(){var t=this;this.taskService.getTasks().subscribe(function(e){return t.tasks=e})},t}(),Db=Ba({encapsulation:0,styles:[[""]],data:{}});function Ob(t){return Ou(0,[(t()(),ys(0,0,null,null,3,"div",[],null,null,null,null,null)),(t()(),ys(1,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),ys(2,0,null,null,0,"i",[["class","text-danger fa fa-exclamation-circle danger"]],null,null,null,null,null)),(t()(),Tu(-1,null,[" Not completed "]))],null,null)}function Pb(t){return Ou(0,[(t()(),ys(0,0,null,null,3,"div",[],null,null,null,null,null)),(t()(),ys(1,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),ys(2,0,null,null,0,"i",[["class","text-succes fa fa-check"]],null,null,null,null,null)),(t()(),Tu(-1,null,[" Completed! "]))],null,null)}function Ab(t){return Ou(0,[(t()(),ys(0,0,null,null,3,"div",[],null,null,null,null,null)),(t()(),ys(1,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),ys(2,0,null,null,1,"button",[["class","btn btn-outline-success"],["type","button"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.setAsComplete(t.parent.context.$implicit,t.parent.context.$implicit.Id)&&r),r},null,null)),(t()(),ys(3,0,null,null,0,"i",[["class","fa fa-check"]],null,null,null,null,null))],null,null)}function Ib(t){return Ou(0,[(t()(),ys(0,0,null,null,15,"tr",[],null,null,null,null,null)),(t()(),ys(1,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Tu(2,null,[" "," "])),(t()(),ys(3,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),Tu(4,null,[" "," "])),xu(128,5,new Array(2)),(t()(),ds(16777216,null,null,1,null,Ob)),ru(7,16384,null,0,Pp,[Zi,zo],{ngIf:[0,"ngIf"]},null),(t()(),ds(16777216,null,null,1,null,Pb)),ru(9,16384,null,0,Pp,[Zi,zo],{ngIf:[0,"ngIf"]},null),(t()(),ys(10,0,null,null,5,"div",[["class","row"]],null,null,null,null,null)),(t()(),ys(11,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),ys(12,0,null,null,1,"button",[["class","btn btn-outline-danger"],["type","button"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.deleteTask(t.context.$implicit.Id)&&r),r},null,null)),(t()(),ys(13,0,null,null,0,"i",[["class","fa fa-trash-alt"]],null,null,null,null,null)),(t()(),ds(16777216,null,null,1,null,Ab)),ru(15,16384,null,0,Pp,[Zi,zo],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,7,0,!e.context.$implicit.Completed),t(e,9,0,e.context.$implicit.Completed),t(e,15,0,!e.context.$implicit.Completed)},function(t,e){t(e,2,0,e.context.$implicit.Name);var n=function(t,e,n,r){if(xe.isWrapped(r)){r=xe.unwrap(r);var o=t.def.nodes[4].bindingIndex+0,i=xe.unwrap(t.oldValues[o]);t.oldValues[o]=new xe(i)}return r}(e,0,0,t(e,5,0,qs(e.parent,0),e.context.$implicit.CreationDate));t(e,4,0,n)})}function Rb(t){return Ou(0,[(e=0,n=Np,r=[wa],iu(-1,e|=16,null,0,n,n,r)),(t()(),ys(1,0,null,null,4,"div",[["class","container"]],null,null,null,null,null)),(t()(),ys(2,0,null,null,3,"table",[["class","table"]],null,null,null,null,null)),(t()(),ys(3,0,null,null,2,"tbody",[],null,null,null,null,null)),(t()(),ds(16777216,null,null,1,null,Ib)),ru(5,278528,null,0,Dp,[Zi,zo,ya],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,5,0,e.component.tasks)},null);var e,n,r}var Nb=function(){function t(){}return t.prototype.ngOnInit=function(){},t}(),Mb=Ba({encapsulation:0,styles:[[""]],data:{}});function jb(t){return Ou(0,[(t()(),ys(0,0,null,null,9,"div",[["class","container"]],null,null,null,null,null)),(t()(),ys(1,0,null,null,1,"h2",[["class","text-center display-4"]],null,null,null,null,null)),(t()(),Tu(-1,null,["Welcome to my cool tasks manager"])),(t()(),ys(3,0,null,null,0,"hr",[],null,null,null,null,null)),(t()(),ys(4,0,null,null,1,"p",[["class","text-center lead"]],null,null,null,null,null)),(t()(),Tu(-1,null,["Here you can add your tasks to do, modify and mark it as completed."])),(t()(),ys(6,0,null,null,3,"div",[["class","container"]],null,null,null,null,null)),(t()(),ys(7,0,null,null,2,"div",[["class","jumbotron"]],null,null,null,null,null)),(t()(),ys(8,0,null,null,1,"app-list-to-do",[],null,null,null,Rb,Db)),ru(9,114688,null,0,kb,[bb,O_],null,null)],function(t,e){t(e,9,0)},null)}var Vb=function(){function t(){}return t.prototype.ngOnInit=function(){},t}(),Fb=Ba({encapsulation:0,styles:[["body[_ngcontent-%COMP%]{background-color:#5cb85c}"]],data:{}});function Lb(t){return Ou(0,[(t()(),ys(0,0,null,null,2,"body",[],null,null,null,null,null)),(t()(),ys(1,0,null,null,1,"div",[["class","text-center"]],null,null,null,null,null)),(t()(),Tu(-1,null,[" Made with \u2764\ufe0f and \u2615\ufe0f by Fede Giobergia for EnovaPoint "]))],null,null)}var Ub=Ba({encapsulation:0,styles:[[""]],data:{}});function Hb(t){return Ou(0,[(t()(),ys(0,0,null,null,1,"app-header",[],null,null,null,Tb,Eb)),ru(1,114688,null,0,Cb,[zv,bb,O_],null,null),(t()(),ys(2,0,null,null,1,"app-home",[],null,null,null,jb,Mb)),ru(3,114688,null,0,Nb,[],null,null),(t()(),ys(4,0,null,null,0,"hr",[],null,null,null,null,null)),(t()(),ys(5,0,null,null,1,"app-footer",[],null,null,null,Lb,Fb)),ru(6,114688,null,0,Vb,[],null,null)],function(t,e){t(e,1,0),t(e,3,0),t(e,6,0)},null)}function Bb(t){return Ou(0,[(t()(),ys(0,0,null,null,1,"app-root",[],null,null,null,Hb,Ub)),ru(1,49152,null,0,Ll,[],null,null)],null,null)}var zb=Rs("app-root",Ll,Bb,{},{},[]),qb=function(){return function(){}}(),Wb=function(){return function(){}}(),Gb="*";function Qb(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}}function Kb(t){return{type:6,styles:t,offset:null}}function Zb(t){Promise.resolve(null).then(t)}var $b=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.init=function(){},t.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},t.prototype.triggerMicrotask=function(){var t=this;Zb(function(){return t._onFinish()})},t.prototype._onStart=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){this._onFinish()},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){},t.prototype.setPosition=function(t){},t.prototype.getPosition=function(){return 0},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),Yb=function(){function t(t){var e=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var n=0,r=0,o=0,i=this.players.length;0==i?Zb(function(){return e._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++n==i&&e._onFinish()}),t.onDestroy(function(){++r==i&&e._onDestroy()}),t.onStart(function(){++o==i&&e._onStart()})}),this.totalTime=this.players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this.players.forEach(function(t){return t.init()})},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})},t.prototype.pause=function(){this.players.forEach(function(t){return t.pause()})},t.prototype.restart=function(){this.players.forEach(function(t){return t.restart()})},t.prototype.finish=function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})},t.prototype.destroy=function(){this._onDestroy()},t.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.setPosition=function(t){var e=t*this.totalTime;this.players.forEach(function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})},t.prototype.getPosition=function(){var t=0;return this.players.forEach(function(e){var n=e.getPosition();t=Math.min(n,t)}),t},t.prototype.beforeDestroy=function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),Jb="!";function Xb(){return"undefined"!=typeof process}function tw(t){switch(t.length){case 0:return new $b;case 1:return t[0];default:return new Yb(t)}}function ew(t,e,n,r,o,i){void 0===o&&(o={}),void 0===i&&(i={});var a=[],s=[],u=-1,l=null;if(r.forEach(function(t){var n=t.offset,r=n==u,c=r&&l||{};Object.keys(t).forEach(function(n){var r=n,s=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,a),s){case Jb:s=o[n];break;case Gb:s=i[n];break;default:s=e.normalizeStyleValue(n,r,s,a)}c[r]=s}),r||s.push(c),l=c,u=n}),a.length)throw new Error("Unable to animate due to the following errors:\n - "+a.join("\n - "));return s}function nw(t,e,n,r){switch(e){case"start":t.onStart(function(){return r(n&&rw(n,"start",t))});break;case"done":t.onDone(function(){return r(n&&rw(n,"done",t))});break;case"destroy":t.onDestroy(function(){return r(n&&rw(n,"destroy",t))})}}function rw(t,e,n){var r=n.totalTime,o=ow(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==r?t.totalTime:r,!!n.disabled),i=t._data;return null!=i&&(o._data=i),o}function ow(t,e,n,r,o,i,a){return void 0===o&&(o=""),void 0===i&&(i=0),{element:t,triggerName:e,fromState:n,toState:r,phaseName:o,totalTime:i,disabled:!!a}}function iw(t,e,n){var r;return t instanceof Map?(r=t.get(e))||t.set(e,r=n):(r=t[e])||(r=t[e]=n),r}function aw(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var sw=function(t,e){return!1},uw=function(t,e){return!1},lw=function(t,e,n){return[]},cw=Xb();if(cw||"undefined"!=typeof Element){if(sw=function(t,e){return t.contains(e)},cw||Element.prototype.matches)uw=function(t,e){return t.matches(e)};else{var pw=Element.prototype,hw=pw.matchesSelector||pw.mozMatchesSelector||pw.msMatchesSelector||pw.oMatchesSelector||pw.webkitMatchesSelector;hw&&(uw=function(t,e){return hw.apply(t,[e])})}lw=function(t,e,n){var r=[];if(n)r.push.apply(r,c(t.querySelectorAll(e)));else{var o=t.querySelector(e);o&&r.push(o)}return r}}var fw=null,dw=!1;function yw(t){fw||(fw=("undefined"!=typeof document?document.body:null)||{},dw=!!fw.style&&"WebkitAppearance"in fw.style);var e=!0;return fw.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&!(e=t in fw.style)&&dw&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in fw.style),e}var mw=uw,vw=sw,gw=lw;function _w(t){var e={};return Object.keys(t).forEach(function(n){var r=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[r]=t[n]}),e}var bw=function(){function t(){}return t.prototype.validateStyleProperty=function(t){return yw(t)},t.prototype.matchesElement=function(t,e){return mw(t,e)},t.prototype.containsElement=function(t,e){return vw(t,e)},t.prototype.query=function(t,e,n){return gw(t,e,n)},t.prototype.computeStyle=function(t,e,n){return n||""},t.prototype.animate=function(t,e,n,r,o,i,a){return void 0===i&&(i=[]),new $b(n,r)},t}(),ww=function(){function t(){}return t.NOOP=new bw,t}(),Cw=1e3;function Ew(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Sw(parseFloat(e[1]),e[2])}function Sw(t,e){switch(e){case"s":return t*Cw;default:return t}}function xw(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var r,o=0,i="";if("string"==typeof t){var a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push('The provided timing value "'+t+'" is invalid.'),{duration:0,delay:0,easing:""};r=Sw(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(o=Sw(Math.floor(parseFloat(s)),a[4]));var u=a[5];u&&(i=u)}else r=t;if(!n){var l=!1,c=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),l=!0),o<0&&(e.push("Delay values below 0 are not allowed for this animation step."),l=!0),l&&e.splice(c,0,'The provided timing value "'+t+'" is invalid.')}return{duration:r,delay:o,easing:i}}(t,e,n)}function Tw(t,e){return void 0===e&&(e={}),Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function kw(t,e,n){if(void 0===n&&(n={}),e)for(var r in t)n[r]=t[r];else Tw(t,n);return n}function Dw(t,e,n){return n?e+":"+n+";":""}function Ow(t){for(var e="",n=0;n<t.style.length;n++)e+=Dw(0,r=t.style.item(n),t.style.getPropertyValue(r));for(var r in t.style)t.style.hasOwnProperty(r)&&!r.startsWith("_")&&(e+=Dw(0,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[r]));t.setAttribute("style",e)}function Pw(t,e){t.style&&(Object.keys(e).forEach(function(n){var r=Fw(n);t.style[r]=e[n]}),Xb()&&Ow(t))}function Aw(t,e){t.style&&(Object.keys(e).forEach(function(e){var n=Fw(e);t.style[n]=""}),Xb()&&Ow(t))}function Iw(t){return Array.isArray(t)?1==t.length?t[0]:Qb(t):t}var Rw=new RegExp("{{\\s*(.+?)\\s*}}","g");function Nw(t){var e=[];if("string"==typeof t){for(var n=t.toString(),r=void 0;r=Rw.exec(n);)e.push(r[1]);Rw.lastIndex=0}return e}function Mw(t,e,n){var r=t.toString(),o=r.replace(Rw,function(t,r){var o=e[r];return e.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),o=""),o.toString()});return o==r?t:o}function jw(t){for(var e=[],n=t.next();!n.done;)e.push(n.value),n=t.next();return e}var Vw=/-+([a-z0-9])/g;function Fw(t){return t.replace(Vw,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function Lw(t,e){return 0===t||0===e}function Uw(t,e,n){var r=Object.keys(n);if(r.length&&e.length){var o=e[0],i=[];if(r.forEach(function(t){o.hasOwnProperty(t)||i.push(t),o[t]=n[t]}),i.length)for(var a=function(){var n=e[s];i.forEach(function(e){n[e]=Bw(t,e)})},s=1;s<e.length;s++)a()}return e}function Hw(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}function Bw(t,e){return window.getComputedStyle(t)[e]}var zw="*",qw=new Set(["true","1"]),Ww=new Set(["false","0"]);function Gw(t,e){var n=qw.has(t)||Ww.has(t),r=qw.has(e)||Ww.has(e);return function(o,i){var a=t==zw||t==o,s=e==zw||e==i;return!a&&n&&"boolean"==typeof o&&(a=o?qw.has(t):Ww.has(t)),!s&&r&&"boolean"==typeof i&&(s=i?qw.has(e):Ww.has(e)),a&&s}}var Qw=new RegExp("s*:selfs*,?","g");function Kw(t,e,n){return new Zw(t).build(e,n)}var Zw=function(){function t(t){this._driver=t}return t.prototype.build=function(t,e){var n=new $w(e);return this._resetContextStyleTimingState(n),Hw(this,Iw(t),n)},t.prototype._resetContextStyleTimingState=function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0},t.prototype.visitTrigger=function(t,e){var n=this,r=e.queryCount=0,o=e.depCount=0,i=[],a=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(function(t){if(n._resetContextStyleTimingState(e),0==t.type){var s=t,u=s.name;u.toString().split(/\s*,\s*/).forEach(function(t){s.name=t,i.push(n.visitState(s,e))}),s.name=u}else if(1==t.type){var l=n.visitTransition(t,e);r+=l.queryCount,o+=l.depCount,a.push(l)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:i,transitions:a,queryCount:r,depCount:o,options:null}},t.prototype.visitState=function(t,e){var n=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){var o=new Set,i=r||{};if(n.styles.forEach(function(t){if(Yw(t)){var e=t;Object.keys(e).forEach(function(t){Nw(e[t]).forEach(function(t){i.hasOwnProperty(t)||o.add(t)})})}}),o.size){var a=jw(o.values());e.errors.push('state("'+t.name+'", ...) must define default values for all the following style substitutions: '+a.join(", "))}}return{type:0,name:t.name,style:n,options:r?{params:r}:null}},t.prototype.visitTransition=function(t,e){e.queryCount=0,e.depCount=0;var n,r,o,i=Hw(this,Iw(t.animation),e);return{type:1,matchers:(n=t.expr,r=e.errors,o=[],"string"==typeof n?n.split(/\s*,\s*/).forEach(function(t){return function(t,e,n){if(":"==t[0]){var r=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e)<parseFloat(t)};default:return e.push('The transition alias value "'+t+'" is not supported'),"* => *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}var o=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==o||o.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var i=o[1],a=o[2],s=o[3];e.push(Gw(i,s)),"<"!=a[0]||i==zw&&s==zw||e.push(Gw(s,i))}(t,o,r)}):o.push(n),o),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Jw(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return Hw(n,t,e)}),options:Jw(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,r=e.currentTime,o=0,i=t.steps.map(function(t){e.currentTime=r;var i=Hw(n,t,e);return o=Math.max(o,e.currentTime),i});return e.currentTime=o,{type:3,steps:i,options:Jw(t.options)}},t.prototype.visitAnimate=function(t,e){var n,r=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return Xw(xw(t,e).duration,0,"");var r=t;if(r.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var o=Xw(0,0,"");return o.dynamic=!0,o.strValue=r,o}return Xw((n=n||xw(r,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;var o=t.styles?t.styles:Kb({});if(5==o.type)n=this.visitKeyframes(o,e);else{var i=t.styles,a=!1;if(!i){a=!0;var s={};r.easing&&(s.easing=r.easing),i=Kb(s)}e.currentTime+=r.duration+r.delay;var u=this.visitStyle(i,e);u.isEmptyStep=a,n=u}return e.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==Gb?n.push(t):e.errors.push("The provided style string value "+t+" is not allowed."):n.push(t)}):n.push(t.styles);var r=!1,o=null;return n.forEach(function(t){if(Yw(t)){var e=t,n=e.easing;if(n&&(o=n,delete e.easing),!r)for(var i in e)if(e[i].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:o,offset:t.offset,containsDynamicStyles:r,options:null}},t.prototype._validateStyleAst=function(t,e){var n=this,r=e.currentAnimateTimings,o=e.currentTime,i=e.currentTime;r&&i>0&&(i-=r.duration+r.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(r){if(n._driver.validateStyleProperty(r)){var a,s,u,l=e.collectedStyles[e.currentQuerySelector],c=l[r],p=!0;c&&(i!=o&&i>=c.startTime&&o<=c.endTime&&(e.errors.push('The CSS property "'+r+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+i+'ms" and "'+o+'ms"'),p=!1),i=c.startTime),p&&(l[r]={startTime:i,endTime:o}),e.options&&(a=e.errors,s=e.options.params||{},(u=Nw(t[r])).length&&u.forEach(function(t){s.hasOwnProperty(t)||a.push("Unable to resolve the local animation param "+t+" in the given list of values")}))}else e.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')})})},t.prototype.visitKeyframes=function(t,e){var n=this,r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),r;var o=0,i=[],a=!1,s=!1,u=0,l=t.steps.map(function(t){var r=n._makeStyleAst(t,e),l=null!=r.offset?r.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(Yw(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(Yw(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(r.styles),c=0;return null!=l&&(o++,c=r.offset=l),s=s||c<0||c>1,a=a||c<u,u=c,i.push(c),r});s&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&e.errors.push("Please ensure that all keyframe offsets are in order");var c=t.steps.length,p=0;o>0&&o<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==o&&(p=1/(c-1));var h=c-1,f=e.currentTime,d=e.currentAnimateTimings,y=d.duration;return l.forEach(function(t,o){var a=p>0?o==h?1:p*o:i[o],s=a*y;e.currentTime=f+d.delay+s,d.duration=s,n._validateStyleAst(t,e),t.offset=a,r.styles.push(t)}),r},t.prototype.visitReference=function(t,e){return{type:8,animation:Hw(this,Iw(t.animation),e),options:Jw(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:Jw(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Jw(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;var o=l(function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return":self"==t});return e&&(t=t.replace(Qw,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),i=o[0],a=o[1];e.currentQuerySelector=n.length?n+" "+i:i,iw(e.collectedStyles,e.currentQuerySelector,{});var s=Hw(this,Iw(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:i,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:t.selector,options:Jw(t.options)}},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:xw(t.timings,e.errors,!0);return{type:12,animation:Hw(this,Iw(t.animation),e),timings:n,options:null}},t}(),$w=function(){return function(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}();function Yw(t){return!Array.isArray(t)&&"object"==typeof t}function Jw(t){var e;return t?(t=Tw(t)).params&&(t.params=(e=t.params)?Tw(e):null):t={},t}function Xw(t,e,n){return{duration:t,delay:e,easing:n}}function tC(t,e,n,r,o,i,a,s){return void 0===a&&(a=null),void 0===s&&(s=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:o,delay:i,totalTime:o+i,easing:a,subTimeline:s}}var eC=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,c(e))},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),nC=new RegExp(":enter","g"),rC=new RegExp(":leave","g");function oC(t,e,n,r,o,i,a,s,u,l){return void 0===i&&(i={}),void 0===a&&(a={}),void 0===l&&(l=[]),(new iC).buildKeyframes(t,e,n,r,o,i,a,s,u,l)}var iC=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,r,o,i,a,s,u,l){void 0===l&&(l=[]),u=u||new eC;var c=new sC(t,e,u,r,o,l,[]);c.options=s,c.currentTimeline.setStyles([i],null,c.errors,s),Hw(this,n,c);var p=c.timelines.filter(function(t){return t.containsAnimation()});if(p.length&&Object.keys(a).length){var h=p[p.length-1];h.allowOnlyTimelineStyles()||h.setStyles([a],null,c.errors,s)}return p.length?p.map(function(t){return t.buildKeyframes()}):[tC(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,i=this._visitSubInstructions(n,r,r.options);o!=i&&e.transformIntoNewTimeline(i)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var r=e.currentTimeline.currentTime,o=null!=n.duration?Ew(n.duration):null,i=null!=n.delay?Ew(n.delay):null;return 0!==o&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,o,i);r=Math.max(r,n.duration+n.delay)}),r},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),Hw(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,r=e.subContextCount,o=e,i=t.options;if(i&&(i.params||i.delay)&&((o=e.createSubContext(i)).transformIntoNewTimeline(),null!=i.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=aC);var a=Ew(i.delay);o.delayNextStep(a)}t.steps.length&&(t.steps.forEach(function(t){return Hw(n,t,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>r&&o.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,r=[],o=e.currentTimeline.currentTime,i=t.options&&t.options.delay?Ew(t.options.delay):0;t.steps.forEach(function(a){var s=e.createSubContext(t.options);i&&s.delayNextStep(i),Hw(n,a,s),o=Math.max(o,s.currentTimeline.currentTime),r.push(s.currentTimeline)}),r.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(o),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return xw(e.params?Mw(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());var o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(n.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var o=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(o):n.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,o=n.duration,i=e.createSubContext().currentTimeline;i.easing=n.easing,t.styles.forEach(function(t){i.forwardTime((t.offset||0)*o),i.setStyles(t.styles,t.easing,e.errors,e.options),i.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(i),e.transformIntoNewTimeline(r+o),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,r=e.currentTimeline.currentTime,o=t.options||{},i=o.delay?Ew(o.delay):0;i&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=aC);var a=r,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=s.length;var u=null;s.forEach(function(r,o){e.currentQueryIndex=o;var s=e.createSubContext(t.options,r);i&&s.delayNextStep(i),r===e.element&&(u=s.currentTimeline),Hw(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,r=e.currentTimeline,o=t.timings,i=Math.abs(o.duration),a=i*(e.currentQueryTotal-1),s=i*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=e.currentTimeline;s&&u.delayNextStep(s);var l=u.currentTime;Hw(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-l+(r.startTime-n.currentTimeline.startTime)},t}(),aC={},sC=function(){function t(t,e,n,r,o,i,a,s){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=i,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=aC,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new uC(this._driver,e,0),a.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var r=t,o=this.options;null!=r.duration&&(o.duration=Ew(r.duration)),null!=r.delay&&(o.delay=Ew(r.delay));var i=r.params;if(i){var a=o.params;a||(a=this.options.params={}),Object.keys(i).forEach(function(t){e&&a.hasOwnProperty(t)||(a[t]=Mw(i[t],a,n.errors))})}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t},t.prototype.createSubContext=function(e,n,r){void 0===e&&(e=null);var o=n||this.element,i=new t(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,r||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=aC,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},o=new lC(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,e,n,r,o,i){var a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(nC,"."+this._enterClassName)).replace(rC,"."+this._leaveClassName);var s=this._driver.query(this.element,t,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,c(s))}return o||0!=a.length||i.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),a},t}(),uC=function(){function t(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)},t.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||Gb,e._currentKeyframe[t]=Gb}),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,e,n,r){var o=this;e&&(this._previousKeyframe.easing=e);var i=r&&r.params||{},a=function(t,e){var n,r={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e)).forEach(function(t){r[t]=Gb}):kw(t,!1,r)}),r}(t,this._globalTimelineStyles);Object.keys(a).forEach(function(t){var e=Mw(a[t],i,n);o._pendingStyles[t]=e,o._localTimelineStyles.hasOwnProperty(t)||(o._backFill[t]=o._globalTimelineStyles.hasOwnProperty(t)?o._globalTimelineStyles[t]:Gb),o._updateStyle(t,e)})},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){t._currentKeyframe[n]=e[n]}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var r=e._styleSummary[n],o=t._styleSummary[n];(!r||o.time>r.time)&&e._updateStyle(n,o.value)})},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(i,a){var s=kw(i,!0);Object.keys(s).forEach(function(t){var r=s[t];r==Jb?e.add(t):r==Gb&&n.add(t)}),r||(s.offset=a/t.duration),o.push(s)});var i=e.size?jw(e.values()):[],a=n.size?jw(n.values()):[];if(r){var s=o[0],u=Tw(s);s.offset=0,u.offset=1,o=[s,u]}return tC(this.element,o,i,a,this.duration,this.startTime,this.easing,!1)},t}(),lC=function(t){function e(e,n,r,o,i,a,s){void 0===s&&(s=!1);var u=t.call(this,e,n,a.delay)||this;return u.element=n,u.keyframes=r,u.preStyleProps=o,u.postStyleProps=i,u._stretchStartingKeyframe=s,u.timings={duration:a.duration,delay:a.delay,easing:a.easing},u}return o(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,r=e.duration,o=e.easing;if(this._stretchStartingKeyframe&&n){var i=[],a=r+n,s=n/a,u=kw(t[0],!1);u.offset=0,i.push(u);var l=kw(t[0],!1);l.offset=cC(s),i.push(l);for(var c=t.length-1,p=1;p<=c;p++){var h=kw(t[p],!1);h.offset=cC((n+h.offset*r)/a),i.push(h)}r=a,n=0,o="",t=i}return tC(this.element,t,this.preStyleProps,this.postStyleProps,r,n,o,!0)},e}(uC);function cC(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}var pC=function(){return function(){}}(),hC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.normalizePropertyName=function(t,e){return Fw(t)},e.prototype.normalizeStyleValue=function(t,e,n,r){var o="",i=n.toString().trim();if(fC[e]&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push("Please provide a CSS unit value for "+t+":"+n)}return i+o},e}(pC),fC=dC("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function dC(t){var e={};return t.forEach(function(t){return e[t]=!0}),e}function yC(t,e,n,r,o,i,a,s,u,l,c,p,h){return{type:0,element:t,triggerName:e,isRemovalTransition:o,fromState:n,fromStyles:i,toState:r,toStyles:a,timelines:s,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:p,errors:h}}var mC={},vC=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e,n,r){return function(t,e,n,r,o){return t.some(function(t){return t(e,n,r,o)})}(this.ast.matchers,t,e,n,r)},t.prototype.buildStyles=function(t,e,n){var r=this._stateStyles["*"],o=this._stateStyles[t],i=r?r.buildStyles(e,n):{};return o?o.buildStyles(e,n):i},t.prototype.build=function(t,e,n,r,o,a,s,u,l,c){var p=[],h=this.ast.options&&this.ast.options.params||mC,f=this.buildStyles(n,s&&s.params||mC,p),d=u&&u.params||mC,y=this.buildStyles(r,d,p),m=new Set,v=new Map,g=new Map,_="void"===r,b={params:i({},h,d)},w=c?[]:oC(t,e,this.ast.animation,o,a,f,y,b,l,p),C=0;if(w.forEach(function(t){C=Math.max(t.duration+t.delay,C)}),p.length)return yC(e,this._triggerName,n,r,_,f,y,[],[],v,g,C,p);w.forEach(function(t){var n=t.element,r=iw(v,n,{});t.preStyleProps.forEach(function(t){return r[t]=!0});var o=iw(g,n,{});t.postStyleProps.forEach(function(t){return o[t]=!0}),n!==e&&m.add(n)});var E=jw(m.values());return yC(e,this._triggerName,n,r,_,f,y,w,E,v,g,C)},t}(),gC=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},r=Tw(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var o=t;Object.keys(o).forEach(function(t){var i=o[t];i.length>1&&(i=Mw(i,r,e)),n[t]=i})}}),n},t}(),_C=function(){function t(t,e){var n=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(function(t){n.states[t.name]=new gC(t.style,t.options&&t.options.params||{})}),bC(this.states,"true","1"),bC(this.states,"false","0"),e.transitions.forEach(function(e){n.transitionFactories.push(new vC(t,e,n.states))}),this.fallbackTransition=new vC(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,e,n,r){return this.transitionFactories.find(function(o){return o.match(t,e,n,r)})||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}();function bC(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var wC=new eC,CC=function(){function t(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],r=Kw(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r},t.prototype._buildPlayer=function(t,e,n){var r=t.element,o=ew(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)},t.prototype.create=function(t,e,n){var r=this;void 0===n&&(n={});var o,i=[],a=this._animations[t],s=new Map;if(a?(o=oC(this._driver,e,a,"ng-enter","ng-leave",{},{},n,wC,i)).forEach(function(t){var e=iw(s,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));s.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=r._driver.computeStyle(e,n,Gb)})});var u=tw(o.map(function(t){var e=s.get(t.element);return r._buildPlayer(t,{},e)}));return this._playersById[t]=u,u.onDestroy(function(){return r.destroy(t)}),this.players.push(u),u},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,r){var o=ow(e,"","","");return nw(this._getPlayer(t),n,o,r),function(){}},t.prototype.command=function(t,e,n,r){if("register"!=n)if("create"!=n){var o=this._getPlayer(t);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,r[0]||{});else this.register(t,r[0])},t}(),EC=[],SC={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},xC={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},TC="__ng_removed",kC=function(){function t(t,e){void 0===e&&(e=""),this.namespaceId=e;var n=t&&t.hasOwnProperty("value");if(this.value=function(t){return null!=t?t:null}(n?t.value:t),n){var r=Tw(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.absorbOptions=function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}},t}(),DC=new kC("void"),OC=function(){function t(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,VC(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,r){var o,i=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if("start"!=(o=n)&&"done"!=o)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var a=iw(this._elementListeners,t,[]),s={name:e,phase:n,callback:r};a.push(s);var u=iw(this._engine.statesByElement,t,{});return u.hasOwnProperty(e)||(VC(t,"ng-trigger"),VC(t,"ng-trigger-"+e),u[e]=DC),function(){i._engine.afterFlush(function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),i._triggers[e]||delete u[e]})}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,r){var o=this;void 0===r&&(r=!0);var i=this._getTrigger(e),a=new AC(this.id,e,t),s=this._engine.statesByElement.get(t);s||(VC(t,"ng-trigger"),VC(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var u=s[e],l=new kC(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),s[e]=l,u||(u=DC),"void"===l.value||u.value!==l.value){var c=iw(this._engine.playersByElement,t,[]);c.forEach(function(t){t.namespaceId==o.id&&t.triggerName==e&&t.queued&&t.destroy()});var p=i.matchTransition(u.value,l.value,t,l.params),h=!1;if(!p){if(!r)return;p=i.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:p,fromState:u,toState:l,player:a,isFallbackTransition:h}),h||(VC(t,"ng-animate-queued"),a.onStart(function(){FC(t,"ng-animate-queued")})),a.onDone(function(){var e=o.players.indexOf(a);e>=0&&o.players.splice(e,1);var n=o._engine.playersByElement.get(t);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),c.push(a),a}if(!function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var o=0;o<n.length;o++){var i=n[o];if(!e.hasOwnProperty(i)||t[i]!==e[i])return!1}return!0}(u.params,l.params)){var f=[],d=i.matchStyles(u.value,u.params,f),y=i.matchStyles(l.value,l.params,f);f.length?this._engine.reportError(f):this._engine.afterFlush(function(){Aw(t,d),Pw(t,y)})}},t.prototype.deregister=function(t){var e=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(e,n){delete e[t]}),this._elementListeners.forEach(function(n,r){e._elementListeners.set(r,n.filter(function(e){return e.name!=t}))})},t.prototype.clearElementCache=function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var e=this._engine.playersByElement.get(t);e&&(e.forEach(function(t){return t.destroy()}),this._engine.playersByElement.delete(t))},t.prototype._signalRemovalForInnerTriggers=function(t,e,n){var r=this;void 0===n&&(n=!1),this._engine.driver.query(t,".ng-trigger",!0).forEach(function(t){if(!t[TC]){var n=r._engine.fetchNamespacesByElement(t);n.size?n.forEach(function(n){return n.triggerLeaveAnimation(t,e,!1,!0)}):r.clearElementCache(t)}})},t.prototype.triggerLeaveAnimation=function(t,e,n,r){var o=this,i=this._engine.statesByElement.get(t);if(i){var a=[];if(Object.keys(i).forEach(function(e){if(o._triggers[e]){var n=o.trigger(t,e,"void",r);n&&a.push(n)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&tw(a).onDone(function(){return o._engine.processLeaveNode(t)}),!0}return!1},t.prototype.prepareLeaveAnimationListeners=function(t){var e=this,n=this._elementListeners.get(t);if(n){var r=new Set;n.forEach(function(n){var o=n.name;if(!r.has(o)){r.add(o);var i=e._triggers[o].fallbackTransition,a=e._engine.statesByElement.get(t)[o]||DC,s=new kC("void"),u=new AC(e.id,o,t);e._engine.totalQueuedPlayers++,e._queue.push({element:t,triggerName:o,transition:i,fromState:a,toState:s,player:u,isFallbackTransition:!0})}})}},t.prototype.removeNode=function(t,e){var n=this,r=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e,!0),!this.triggerLeaveAnimation(t,e,!0)){var o=!1;if(r.totalAnimations){var i=r.players.length?r.playersByQueriedElement.get(t):[];if(i&&i.length)o=!0;else for(var a=t;a=a.parentNode;)if(r.statesByElement.get(a)){o=!0;break}}this.prepareLeaveAnimationListeners(t),o?r.markElementAsRemoved(this.id,t,!1,e):(r.afterFlush(function(){return n.clearElementCache(t)}),r.destroyInnerAnimations(t),r._onRemovalComplete(t,e))}},t.prototype.insertNode=function(t,e){VC(t,this._hostClassName)},t.prototype.drainQueuedTransitions=function(t){var e=this,n=[];return this._queue.forEach(function(r){var o=r.player;if(!o.destroyed){var i=r.element,a=e._elementListeners.get(i);a&&a.forEach(function(e){if(e.name==r.triggerName){var n=ow(i,r.triggerName,r.fromState.value,r.toState.value);n._data=t,nw(r.player,e.phase,n,e.callback)}}),o.markedForDestroy?e._engine.afterFlush(function(){o.destroy()}):n.push(r)}}),this._queue=[],n.sort(function(t,n){var r=t.transition.ast.depCount,o=n.transition.ast.depCount;return 0==r||0==o?r-o:e._engine.driver.containsElement(t.element,n.element)?1:-1})},t.prototype.destroy=function(t){this.players.forEach(function(t){return t.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)},t.prototype.elementContainsData=function(t){var e=!1;return this._elementListeners.has(t)&&(e=!0),!!this._queue.find(function(e){return e.element===t})||e},t}(),PC=function(){function t(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(t,e){}}return t.prototype._onRemovalComplete=function(t,e){this.onRemovalComplete(t,e)},Object.defineProperty(t.prototype,"queuedPlayers",{get:function(){var t=[];return this._namespaceList.forEach(function(e){e.players.forEach(function(e){e.queued&&t.push(e)})}),t},enumerable:!0,configurable:!0}),t.prototype.createNamespace=function(t,e){var n=new OC(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n},t.prototype._balanceNamespaceList=function(t,e){var n=this._namespaceList.length-1;if(n>=0){for(var r=!1,o=n;o>=0;o--)if(this.driver.containsElement(this._namespaceList[o].hostElement,e)){this._namespaceList.splice(o+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var r=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(r);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(e)})}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.fetchNamespacesByElement=function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=n[r[o]].namespaceId;if(i){var a=this._fetchNamespace(i);a&&e.add(a)}}return e},t.prototype.trigger=function(t,e,n,r){if(IC(e)){var o=this._fetchNamespace(t);if(o)return o.trigger(e,n,r),!0}return!1},t.prototype.insertNode=function(t,e,n,r){if(IC(e)){var o=e[TC];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;var i=this.collectedLeaveElements.indexOf(e);i>=0&&this.collectedLeaveElements.splice(i,1)}if(t){var a=this._fetchNamespace(t);a&&a.insertNode(e,n)}r&&this.collectEnterElement(e)}},t.prototype.collectEnterElement=function(t){this.collectedEnterElements.push(t)},t.prototype.markElementAsDisabled=function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),VC(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),FC(t,"ng-animate-disabled"))},t.prototype.removeNode=function(t,e,n){if(IC(e)){var r=t?this._fetchNamespace(t):null;r?r.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n)}else this._onRemovalComplete(e,n)},t.prototype.markElementAsRemoved=function(t,e,n,r){this.collectedLeaveElements.push(e),e[TC]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},t.prototype.listen=function(t,e,n,r,o){return IC(e)?this._fetchNamespace(t).listen(e,n,r,o):function(){}},t.prototype._buildInstruction=function(t,e,n,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,o)},t.prototype.destroyInnerAnimations=function(t){var e=this,n=this.driver.query(t,".ng-trigger",!0);n.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,".ng-animating",!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})},t.prototype.destroyActiveAnimationsForElement=function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()})},t.prototype.finishActiveQueriedAnimationOnElement=function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})},t.prototype.whenRenderingDone=function(){var t=this;return new Promise(function(e){if(t.players.length)return tw(t.players).onDone(function(){return e()});e()})},t.prototype.processLeaveNode=function(t){var e=this,n=t[TC];if(n&&n.setForRemoval){if(t[TC]=SC,n.namespaceId){this.destroyInnerAnimations(t);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(n){e.markElementAsDisabled(t,!1)})},t.prototype.flush=function(t){var e=this;void 0===t&&(t=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r<this.collectedEnterElements.length;r++)VC(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var o=[];try{n=this._flushAnimations(o,t)}finally{for(r=0;r<o.length;r++)o[r]()}}else for(r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(t){return t()}),this._flushFns=[],this._whenQuietFns.length){var i=this._whenQuietFns;this._whenQuietFns=[],n.length?tw(n).onDone(function(){i.forEach(function(t){return t()})}):i.forEach(function(t){return t()})}},t.prototype.reportError=function(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))},t.prototype._flushAnimations=function(t,e){var n=this,r=new eC,o=[],a=new Map,s=[],u=new Map,l=new Map,p=new Map,h=new Set;this.disabledNodes.forEach(function(t){h.add(t);for(var e=n.driver.query(t,".ng-animate-queued",!0),r=0;r<e.length;r++)h.add(e[r])});var f=this.bodyNode,d=Array.from(this.statesByElement.keys()),y=MC(d,this.collectedEnterElements),m=new Map,v=0;y.forEach(function(t,e){var n="ng-enter"+v++;m.set(e,n),t.forEach(function(t){return VC(t,n)})});for(var g=[],_=new Set,b=new Set,w=0;w<this.collectedLeaveElements.length;w++)(F=(V=this.collectedLeaveElements[w])[TC])&&F.setForRemoval&&(g.push(V),_.add(V),F.hasAnimation?this.driver.query(V,".ng-star-inserted",!0).forEach(function(t){return _.add(t)}):b.add(V));var C=new Map,E=MC(d,Array.from(_));E.forEach(function(t,e){var n="ng-leave"+v++;C.set(e,n),t.forEach(function(t){return VC(t,n)})}),t.push(function(){y.forEach(function(t,e){var n=m.get(e);t.forEach(function(t){return FC(t,n)})}),E.forEach(function(t,e){var n=C.get(e);t.forEach(function(t){return FC(t,n)})}),g.forEach(function(t){n.processLeaveNode(t)})});for(var S=[],x=[],T=this._namespaceList.length-1;T>=0;T--)this._namespaceList[T].drainQueuedTransitions(e).forEach(function(t){var e=t.player,i=t.element;if(S.push(e),n.collectedEnterElements.length){var a=i[TC];if(a&&a.setForMove)return void e.destroy()}var c=!f||!n.driver.containsElement(f,i),h=C.get(i),d=m.get(i),y=n._buildInstruction(t,r,d,h,c);if(y.errors&&y.errors.length)x.push(y);else{if(c)return e.onStart(function(){return Aw(i,y.fromStyles)}),e.onDestroy(function(){return Pw(i,y.toStyles)}),void o.push(e);if(t.isFallbackTransition)return e.onStart(function(){return Aw(i,y.fromStyles)}),e.onDestroy(function(){return Pw(i,y.toStyles)}),void o.push(e);y.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),r.append(i,y.timelines),s.push({instruction:y,player:e,element:i}),y.queriedElements.forEach(function(t){return iw(u,t,[]).push(e)}),y.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var r=l.get(e);r||l.set(e,r=new Set),n.forEach(function(t){return r.add(t)})}}),y.postStyleProps.forEach(function(t,e){var n=Object.keys(t),r=p.get(e);r||p.set(e,r=new Set),n.forEach(function(t){return r.add(t)})})}});if(x.length){var k=[];x.forEach(function(t){k.push("@"+t.triggerName+" has failed due to:\n"),t.errors.forEach(function(t){return k.push("- "+t+"\n")})}),S.forEach(function(t){return t.destroy()}),this.reportError(k)}var D=new Map,O=new Map;s.forEach(function(t){var e=t.element;r.has(e)&&(O.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,D))}),o.forEach(function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){iw(D,e,[]).push(t),t.destroy()})});var P=g.filter(function(t){return UC(t,l,p)}),A=new Map;NC(A,this.driver,b,p,Gb).forEach(function(t){UC(t,l,p)&&P.push(t)});var I=new Map;y.forEach(function(t,e){NC(I,n.driver,new Set(t),l,Jb)}),P.forEach(function(t){var e=A.get(t),n=I.get(t);A.set(t,i({},e,n))});var R=[],N=[],M={};s.forEach(function(t){var e=t.element,i=t.player,s=t.instruction;if(r.has(e)){if(h.has(e))return i.onDestroy(function(){return Pw(e,s.toStyles)}),i.disabled=!0,i.overrideTotalTime(s.totalTime),void o.push(i);var u=M;if(O.size>1){for(var l=e,c=[];l=l.parentNode;){var p=O.get(l);if(p){u=p;break}c.push(l)}c.forEach(function(t){return O.set(t,u)})}var f=n._buildAnimation(i.namespaceId,s,D,a,I,A);if(i.setRealPlayer(f),u===M)R.push(i);else{var d=n.playersByElement.get(u);d&&d.length&&(i.parentPlayer=tw(d)),o.push(i)}}else Aw(e,s.fromStyles),i.onDestroy(function(){return Pw(e,s.toStyles)}),N.push(i),h.has(e)&&o.push(i)}),N.forEach(function(t){var e=a.get(t.element);if(e&&e.length){var n=tw(e);t.setRealPlayer(n)}}),o.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var j=0;j<g.length;j++){var V,F=(V=g[j])[TC];if(FC(V,"ng-leave"),!F||!F.hasAnimation){var L=[];if(u.size){var U=u.get(V);U&&U.length&&L.push.apply(L,c(U));for(var H=this.driver.query(V,".ng-animating",!0),B=0;B<H.length;B++){var z=u.get(H[B]);z&&z.length&&L.push.apply(L,c(z))}}var q=L.filter(function(t){return!t.destroyed});q.length?LC(this,V,q):this.processLeaveNode(V)}}return g.length=0,R.forEach(function(t){n.players.push(t),t.onDone(function(){t.destroy();var e=n.players.indexOf(t);n.players.splice(e,1)}),t.play()}),R},t.prototype.elementContainsData=function(t,e){var n=!1,r=e[TC];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n},t.prototype.afterFlush=function(t){this._flushFns.push(t)},t.prototype.afterFlushAnimationsDone=function(t){this._whenQuietFns.push(t)},t.prototype._getPreviousPlayers=function(t,e,n,r,o){var i=[];if(e){var a=this.playersByQueriedElement.get(t);a&&(i=a)}else{var s=this.playersByElement.get(t);if(s){var u=!o||"void"==o;s.forEach(function(t){t.queued||(u||t.triggerName==r)&&i.push(t)})}}return(n||r)&&(i=i.filter(function(t){return!(n&&n!=t.namespaceId||r&&r!=t.triggerName)})),i},t.prototype._beforeAnimationBuild=function(t,e,n){var r,o,i=e.element,a=e.isRemovalTransition?void 0:t,s=e.isRemovalTransition?void 0:e.triggerName,l=function(t){var r=t.element,o=r!==i,u=iw(n,r,[]);c._getPreviousPlayers(r,o,a,s,e.toState).forEach(function(t){var e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),u.push(t)})},c=this;try{for(var p=u(e.timelines),h=p.next();!h.done;h=p.next())l(h.value)}catch(f){r={error:f}}finally{try{h&&!h.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}Aw(i,e.fromStyles)},t.prototype._buildAnimation=function(t,e,n,r,o,i){var a=this,s=e.triggerName,u=e.element,l=[],c=new Set,p=new Set,h=e.timelines.map(function(e){var h=e.element;c.add(h);var f=h[TC];if(f&&f.removedBeforeQueried)return new $b(e.duration,e.delay);var d,y,m=h!==u,v=(d=(n.get(h)||EC).map(function(t){return t.getRealPlayer()}),y=[],function t(e,n){for(var r=0;r<e.length;r++){var o=e[r];o instanceof Yb?t(o.players,n):n.push(o)}}(d,y),y).filter(function(t){return!!t.element&&t.element===h}),g=o.get(h),_=i.get(h),b=ew(0,a._normalizer,0,e.keyframes,g,_),w=a._buildPlayer(e,b,v);if(e.subTimeline&&r&&p.add(h),m){var C=new AC(t,s,h);C.setRealPlayer(w),l.push(C)}return w});l.forEach(function(t){iw(a.playersByQueriedElement,t.element,[]).push(t),t.onDone(function(){return function(t,e,n){var r;if(t instanceof Map){if(r=t.get(e)){if(r.length){var o=r.indexOf(n);r.splice(o,1)}0==r.length&&t.delete(e)}}else(r=t[e])&&(r.length&&(o=r.indexOf(n),r.splice(o,1)),0==r.length&&delete t[e]);return r}(a.playersByQueriedElement,t.element,t)})}),c.forEach(function(t){return VC(t,"ng-animating")});var f=tw(h);return f.onDestroy(function(){c.forEach(function(t){return FC(t,"ng-animating")}),Pw(u,e.toStyles)}),p.forEach(function(t){iw(r,t,[]).push(f)}),f},t.prototype._buildPlayer=function(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new $b(t.duration,t.delay)},t}(),AC=function(){function t(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new $b,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return t.prototype.setRealPlayer=function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return nw(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)},t.prototype.getRealPlayer=function(){return this._player},t.prototype.overrideTotalTime=function(t){this.totalTime=t},t.prototype.syncPlayerEvents=function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})},t.prototype._queueEvent=function(t,e){iw(this._queuedCallbacks,t,[]).push(e)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},t.prototype.triggerCallback=function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)},t}();function IC(t){return t&&1===t.nodeType}function RC(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function NC(t,e,n,r,o){var i=[];n.forEach(function(t){return i.push(RC(t))});var a=[];r.forEach(function(n,r){var i={};n.forEach(function(t){var n=i[t]=e.computeStyle(r,t,o);n&&0!=n.length||(r[TC]=xC,a.push(r))}),t.set(r,i)});var s=0;return n.forEach(function(t){return RC(t,i[s++])}),a}function MC(t,e){var n=new Map;if(t.forEach(function(t){return n.set(t,[])}),0==e.length)return n;var r=new Set(e),o=new Map;return e.forEach(function(t){var e=function t(e){if(!e)return 1;var i=o.get(e);if(i)return i;var a=e.parentNode;return i=n.has(a)?a:r.has(a)?1:t(a),o.set(e,i),i}(t);1!==e&&n.get(e).push(t)}),n}var jC="$$classes";function VC(t,e){if(t.classList)t.classList.add(e);else{var n=t[jC];n||(n=t[jC]={}),n[e]=!0}}function FC(t,e){if(t.classList)t.classList.remove(e);else{var n=t[jC];n&&delete n[e]}}function LC(t,e,n){tw(n).onDone(function(){return t.processLeaveNode(e)})}function UC(t,e,n){var r=n.get(t);if(!r)return!1;var o=e.get(t);return o?r.forEach(function(t){return o.add(t)}):e.set(t,r),n.delete(t),!0}var HC=function(){function t(t,e,n){var r=this;this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new PC(t,e,n),this._timelineEngine=new CC(t,e,n),this._transitionEngine.onRemovalComplete=function(t,e){return r.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,r,o){var i=t+"-"+r,a=this._triggerCache[i];if(!a){var s=[],u=Kw(this._driver,o,s);if(s.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+s.join("\n - "));a=function(t,e){return new _C(t,e)}(r,u),this._triggerCache[i]=a}this._transitionEngine.registerTrigger(e,r,a)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)},t.prototype.onRemove=function(t,e,n){this._transitionEngine.removeNode(t,e,n)},t.prototype.disableAnimations=function(t,e){this._transitionEngine.markElementAsDisabled(t,e)},t.prototype.process=function(t,e,n,r){if("@"==n.charAt(0)){var o=l(aw(n),2);this._timelineEngine.command(o[0],e,o[1],r)}else this._transitionEngine.trigger(t,e,n,r)},t.prototype.listen=function(t,e,n,r,o){if("@"==n.charAt(0)){var i=l(aw(n),2);return this._timelineEngine.listen(i[0],e,i[1],o)}return this._transitionEngine.listen(t,e,n,r,o)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}(),BC="animation",zC="animationend",qC=function(){function t(t,e,n,r,o,i,a){var s=this;this._element=t,this._name=e,this._duration=n,this._delay=r,this._easing=o,this._fillMode=i,this._onDoneFn=a,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(t){return s._handleCallback(t)}}return t.prototype.apply=function(){var t,e,n;e=this._duration+"ms "+this._easing+" "+this._delay+"ms 1 normal "+this._fillMode+" "+this._name,(n=$C(t=this._element,"").trim()).length&&(function(t,e){for(var n=0;n<t.length;n++)","===t.charAt(n)&&0}(n),e=n+", "+e),ZC(t,"",e),KC(this._element,this._eventFn,!1),this._startTime=Date.now()},t.prototype.pause=function(){WC(this._element,this._name,"paused")},t.prototype.resume=function(){WC(this._element,this._name,"running")},t.prototype.setPosition=function(t){var e=GC(this._element,this._name);this._position=t*this._duration,ZC(this._element,"Delay","-"+this._position+"ms",e)},t.prototype.getPosition=function(){return this._position},t.prototype._handleCallback=function(t){var e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()},t.prototype.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),KC(this._element,this._eventFn,!0))},t.prototype.destroy=function(){var t,e,n,r;this._destroyed||(this._destroyed=!0,this.finish(),e=this._name,(r=QC(n=$C(t=this._element,"").split(","),e))>=0&&(n.splice(r,1),ZC(t,"",n.join(","))))},t}();function WC(t,e,n){ZC(t,"PlayState",n,GC(t,e))}function GC(t,e){var n=$C(t,"");return n.indexOf(",")>0?QC(n.split(","),e):QC([n],e)}function QC(t,e){for(var n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function KC(t,e,n){n?t.removeEventListener(zC,e):t.addEventListener(zC,e)}function ZC(t,e,n,r){var o=BC+e;if(null!=r){var i=t.style[o];if(i.length){var a=i.split(",");a[r]=n,n=a.join(",")}}t.style[o]=n}function $C(t,e){return t.style[BC+e]}var YC="linear",JC=function(){function t(t,e,n,r,o,i,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=r,this._delay=o,this._finalStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=i||YC,this.totalTime=r+o,this._buildStyler()}return t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.destroy=function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype._flushDoneFns=function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]},t.prototype._flushStartFns=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.finish=function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._flushDoneFns())},t.prototype.setPosition=function(t){this._styler.setPosition(t)},t.prototype.getPosition=function(){return this._styler.getPosition()},t.prototype.hasStarted=function(){return this._state>=2},t.prototype.init=function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())},t.prototype.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2),this._styler.resume()},t.prototype.pause=function(){this.init(),this._styler.pause()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},t.prototype._buildStyler=function(){var t=this;this._styler=new qC(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t.prototype.beforeDestroy=function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(r){"offset"!=r&&(e[r]=n?t._finalStyles[r]:Bw(t.element,r))})}this.currentSnapshot=e},t}(),XC=function(t){function e(e,n){var r=t.call(this)||this;return r.element=e,r._startingStyles={},r.__initialized=!1,r._styles=_w(n),r}return o(e,t),e.prototype.init=function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),t.prototype.init.call(this))},e.prototype.play=function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),t.prototype.play.call(this))},e.prototype.destroy=function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,t.prototype.destroy.call(this))},e}($b),tE=function(){function t(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return t.prototype.validateStyleProperty=function(t){return yw(t)},t.prototype.matchesElement=function(t,e){return mw(t,e)},t.prototype.containsElement=function(t,e){return vw(t,e)},t.prototype.query=function(t,e,n){return gw(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.buildKeyframeElement=function(t,e,n){n=n.map(function(t){return _w(t)});var r="@keyframes "+e+" {\n",o="";n.forEach(function(t){o=" ";var e=parseFloat(t.offset);r+=""+o+100*e+"% {\n",o+=" ",Object.keys(t).forEach(function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(r+=o+"animation-timing-function: "+n+";\n"));default:return void(r+=""+o+e+": "+n+";\n")}}),r+=o+"}\n"}),r+="}\n";var i=document.createElement("style");return i.innerHTML=r,i},t.prototype.animate=function(t,e,n,r,o,i,a){void 0===i&&(i=[]),a&&this._notifyFaultyScrubber();var s=i.filter(function(t){return t instanceof JC}),u={};Lw(n,r)&&s.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return u[t]=e[t]})});var l=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach(function(t){Object.keys(t).forEach(function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=Uw(t,e,u));if(0==n)return new XC(t,l);var c="gen_css_kf_"+this._count++,p=this.buildKeyframeElement(t,c,e);document.querySelector("head").appendChild(p);var h=new JC(t,e,c,n,r,o,l);return h.onDestroy(function(){var t;(t=p).parentNode.removeChild(t)}),h},t.prototype._notifyFaultyScrubber=function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n","  visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)},t}(),eE=function(){function t(t,e,n){this.element=t,this.keyframes=e,this.options=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}},t.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},t.prototype._triggerWebAnimation=function(t,e,n){return t.animate(e,n)},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this.domPlayer.play()},t.prototype.pause=function(){this.init(),this.domPlayer.pause()},t.prototype.finish=function(){this.init(),this._onFinish(),this.domPlayer.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.setPosition=function(t){this.domPlayer.currentTime=t*this.time},t.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),t.prototype.beforeDestroy=function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:Bw(t.element,n))}),this.currentSnapshot=e},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),nE=function(){function t(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(rE().toString()),this._cssKeyframesDriver=new tE}return t.prototype.validateStyleProperty=function(t){return yw(t)},t.prototype.matchesElement=function(t,e){return mw(t,e)},t.prototype.containsElement=function(t,e){return vw(t,e)},t.prototype.query=function(t,e,n){return gw(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.overrideWebAnimationsSupport=function(t){this._isNativeImpl=t},t.prototype.animate=function(t,e,n,r,o,i,a){if(void 0===i&&(i=[]),!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,o,i);var s={duration:n,delay:r,fill:0==r?"both":"forwards"};o&&(s.easing=o);var u={},l=i.filter(function(t){return t instanceof eE});return Lw(n,r)&&l.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return u[t]=e[t]})}),e=Uw(t,e=e.map(function(t){return kw(t,!1)}),u),new eE(t,e,s)},t}();function rE(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var oE=function(t){function e(e,n){var r=t.call(this)||this;return r._nextAnimationId=0,r._renderer=e.createRenderer(n.body,{id:"0",encapsulation:Pt.None,styles:[],data:{animation:[]}}),r}return o(e,t),e.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?Qb(t):t;return sE(this._renderer,null,e,"register",[n]),new iE(e,this._renderer)},e}(qb),iE=function(t){function e(e,n){var r=t.call(this)||this;return r._id=e,r._renderer=n,r}return o(e,t),e.prototype.create=function(t,e){return new aE(this._id,t,e||{},this._renderer)},e}(Wb),aE=function(){function t(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return t.prototype._listen=function(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)},t.prototype._command=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return sE(this._renderer,this.element,this.id,t,e)},t.prototype.onDone=function(t){this._listen("done",t)},t.prototype.onStart=function(t){this._listen("start",t)},t.prototype.onDestroy=function(t){this._listen("destroy",t)},t.prototype.init=function(){this._command("init")},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this._command("play"),this._started=!0},t.prototype.pause=function(){this._command("pause")},t.prototype.restart=function(){this._command("restart")},t.prototype.finish=function(){this._command("finish")},t.prototype.destroy=function(){this._command("destroy")},t.prototype.reset=function(){this._command("reset")},t.prototype.setPosition=function(t){this._command("setPosition",t)},t.prototype.getPosition=function(){return 0},t}();function sE(t,e,n,r,o){return t.setProperty(e,"@@"+n+":"+r,o)}var uE=function(){function t(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=function(t,e){e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}return t.prototype.createRenderer=function(t,e){var n=this,r=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){var o=this._rendererCache.get(r);return o||(o=new lE("",r,this.engine),this._rendererCache.set(r,o)),o}var i=e.id,a=e.id+"-"+this._currentId;return this._currentId++,this.engine.register(a,t),e.data.animation.forEach(function(e){return n.engine.registerTrigger(i,a,t,e.name,e)}),new cE(this,a,r,this.engine)},t.prototype.begin=function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()},t.prototype._scheduleCountTask=function(){var t=this;this.promise.then(function(){t._microtaskId++})},t.prototype.scheduleListenerCallback=function(t,e,n){var r=this;t>=0&&t<this._microtaskId?this._zone.run(function(){return e(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){r._zone.run(function(){r._animationCallbacksBuffer.forEach(function(t){var e=l(t,2);(0,e[0])(e[1])}),r._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))},t.prototype.end=function(){var t=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){t._scheduleCountTask(),t.engine.flush(t._microtaskId)}),this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.engine.whenRenderingDone()},t}(),lE=function(){function t(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?function(t){return e.destroyNode(t)}:null}return Object.defineProperty(t.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()},t.prototype.createElement=function(t,e){return this.delegate.createElement(t,e)},t.prototype.createComment=function(t){return this.delegate.createComment(t)},t.prototype.createText=function(t){return this.delegate.createText(t)},t.prototype.appendChild=function(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)},t.prototype.insertBefore=function(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)},t.prototype.removeChild=function(t,e){this.engine.onRemove(this.namespaceId,e,this.delegate)},t.prototype.selectRootElement=function(t,e){return this.delegate.selectRootElement(t,e)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setAttribute=function(t,e,n,r){this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)},t.prototype.setValue=function(t,e){this.delegate.setValue(t,e)},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.disableAnimations=function(t,e){this.engine.disableAnimations(t,e)},t}(),cE=function(t){function e(e,n,r,o){var i=t.call(this,n,r,o)||this;return i.factory=e,i.namespaceId=n,i}return o(e,t),e.prototype.setProperty=function(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)},e.prototype.listen=function(t,e,n){var r,o,i,a=this;if("@"==e.charAt(0)){var s=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t),u=e.substr(1),c="";return"@"!=u.charAt(0)&&(u=(r=l((o=u,i=o.indexOf("."),[o.substring(0,i),o.substr(i+1)]),2))[0],c=r[1]),this.engine.listen(this.namespaceId,s,u,c,function(t){a.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)},e}(lE),pE=function(t){function e(e,n,r){return t.call(this,e.body,n,r)||this}return o(e,t),e}(HC);function hE(){return"function"==typeof rE()?new nE:new tE}function fE(){return new hC}function dE(t,e,n){return new uE(t,e,n)}var yE=new Tt("AnimationModuleType"),mE=function(){return function(){}}(),vE=function(){return function(){}}(),gE=jl(Fl,[Ll],function(t){return function(t){for(var e={},n=[],r=!1,o=0;o<t.length;o++){var i=t[o];i.token===Nr&&!0===i.value&&(r=!0),1073741824&i.flags&&n.push(i.token),i.index=o,e[La(i.token)]=i}return{factory:null,providersByKey:e,providers:t,modules:n,isRoot:r}}([Ss(512,Yr,Jr,[[8,[Vy,ug,Hg,d_,g_,Kg,Jg,i_,H_,zb]],[3,Yr],Jn]),Ss(5120,wa,Sa,[[3,wa]]),Ss(4608,Sp,xp,[wa,[2,Ep]]),Ss(5120,ai,si,[]),Ss(5120,ya,Ca,[]),Ss(5120,ma,Ea,[]),Ss(4608,Fh,Lh,[jp]),Ss(6144,Go,null,[Fh]),Ss(4608,Ah,Rh,[]),Ss(5120,oh,function(t,e,n,r,o,i,a,s){return[new Oh(t,e,n),new Vh(r),new Nh(o,i,a,s)]},[jp,Ei,ci,jp,jp,Ah,hi,[2,Ih]]),Ss(4608,ih,ih,[oh,Ei]),Ss(135680,uh,uh,[jp]),Ss(4608,yh,yh,[ih,uh]),Ss(5120,ww,hE,[]),Ss(5120,pC,fE,[]),Ss(4608,HC,pE,[jp,ww,pC]),Ss(5120,ro,dE,[yh,HC,Ei]),Ss(6144,sh,null,[uh]),Ss(4608,Ai,Ai,[Ei]),Ss(4608,rm,rm,[]),Ss(5120,od,Oy,[ly]),Ss(4608,my,my,[]),Ss(6144,dy,null,[my]),Ss(135680,vy,vy,[ly,Bi,mi,Fn,dy]),Ss(4608,yy,yy,[]),Ss(5120,gy,Sy,[ly,Fp,_y]),Ss(5120,Ry,Iy,[Py]),Ss(5120,pi,function(t){return[t]},[Ry]),Ss(4608,zv,zv,[Yr,Fn,Bv,Rv]),Ss(4608,db,yb,[jp,ci,hb]),Ss(4608,mb,mb,[db,fb]),Ss(5120,ab,function(t){return[t]},[mb]),Ss(4608,cb,cb,[]),Ss(6144,lb,null,[cb]),Ss(4608,pb,pb,[lb]),Ss(6144,z_,null,[pb]),Ss(4608,B_,vb,[z_,Fn]),Ss(4608,ob,ob,[B_]),Ss(4608,qb,oE,[ro,Zp]),Ss(1073742336,Mp,Mp,[]),Ss(1024,ei,Qh,[]),Ss(1024,Mi,function(){return[Cy()]},[]),Ss(512,Py,Py,[Fn]),Ss(1024,oi,function(t,e){return[(n=t,eh("probe",rh),eh("coreTokens",i({},nh,(n||[]).reduce(function(t,e){return t[e.name]=e.token,t},{}))),function(){return rh}),Ay(e)];var n},[[2,Mi],Py]),Ss(512,ii,ii,[[2,oi]]),Ss(131584,Ui,Ui,[Ei,hi,Fn,ei,Yr,ii]),Ss(1073742336,xa,xa,[Ui]),Ss(1073742336,Kh,Kh,[[3,Kh]]),Ss(1073742336,Fm,Fm,[]),Ss(1073742336,Lm,Lm,[]),Ss(1024,by,Ty,[[3,ly]]),Ss(512,jf,Vf,[]),Ss(512,py,py,[]),Ss(256,_y,{},[]),Ss(1024,Mc,xy,[Rc,[2,jc],_y]),Ss(512,Vc,Vc,[Mc]),Ss(512,mi,mi,[]),Ss(512,Bi,Gi,[mi,[2,qi]]),Ss(1024,ny,function(){return[[]]},[]),Ss(1024,ly,Dy,[Ui,jf,py,Vc,Fn,Bi,mi,ny,_y,[2,oy],[2,ty]]),Ss(1073742336,Ey,Ey,[[2,by],[2,ly]]),Ss(1073742336,vE,vE,[]),Ss(1073742336,Ym,Ym,[]),Ss(1073742336,tv,tv,[]),Ss(1073742336,ev,ev,[]),Ss(1073742336,nv,nv,[]),Ss(1073742336,rv,rv,[]),Ss(1073742336,Av,Av,[]),Ss(1073742336,Iv,Iv,[]),Ss(1073742336,qv,qv,[]),Ss(1073742336,Wv,Wv,[]),Ss(1073742336,Qv,Qv,[]),Ss(1073742336,Kv,Kv,[]),Ss(1073742336,Zv,Zv,[]),Ss(1073742336,$v,$v,[]),Ss(1073742336,Yv,Yv,[]),Ss(1073742336,Xv,Xv,[]),Ss(1073742336,ng,ng,[]),Ss(1073742336,rg,rg,[]),Ss(1073742336,gb,gb,[]),Ss(1073742336,_b,_b,[]),Ss(1073742336,I_,I_,[]),Ss(1073742336,mE,mE,[]),Ss(1073742336,Fl,Fl,[]),Ss(256,Nr,!0,[]),Ss(256,hb,"XSRF-TOKEN",[]),Ss(256,fb,"X-XSRF-TOKEN",[]),Ss(256,yE,"BrowserAnimations",[]),Ss(256,w_,{default:A_,config:{}},[])])});(function(){if(go)throw new Error("Cannot enable prod mode after platform setup.");vo=!1})(),Gh().bootstrapModuleFactory(gE).catch(function(t){return console.error(t)})}},[[0,0]]]);