text: (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 i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(t,e,n,r){var i,o=arguments.length,a=o<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--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>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,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function c(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(l(arguments[e]));return t}var h=Array.isArray||function(t){return t&&"number"==typeof t.length};function p(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 g(t){return d=t,m}function v(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}v.prototype=Object.create(Error.prototype);var _=v,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,i=this._unsubscribe,o=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(i)&&g(i).call(this)===y&&(e=!0,t=t||(y.e instanceof _?w(y.e.errors):[y.e])),h(o))for(a=-1,s=o.length;++a<s;){var u=o[a];if(p(u)&&g(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,S={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){C=t},get useDeprecatedSynchronousErrorHandling(){return C}};function E(t){setTimeout(function(){throw t})}var x={closed:!0,next:function(t){},error:function(t){if(S.useDeprecatedSynchronousErrorHandling)throw t;E(t)},complete:function(){}},T="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),P=function(t){function e(n,r,i){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,o._parentSubscription=null,arguments.length){case 0:o.destination=x;break;case 1:if(!n){o.destination=x;break}if("object"==typeof n){n instanceof e?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new k(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new k(o,n,r,i)}return o}return i(e,t),e.prototype[T]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._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),k=function(t){function e(e,n,r,i){var o,a=t.call(this)||this;a._parentSubscriber=e;var s=a;return f(n)?o=n:n&&(o=n.next,r=n.error,i=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=o,a._error=r,a._complete=i,a}return i(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;S.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=S.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):E(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;E(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)};S.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(),S.useDeprecatedSynchronousErrorHandling)throw n;E(n)}},e.prototype.__tryOrSetError=function(t,e,n){if(!S.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return S.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(E(r),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(P),A="function"==typeof Symbol&&Symbol.observable||"@@observable";function I(){}function O(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return D(t)}function D(t){return t?1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}:I}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,i=function(t,e,n){if(t){if(t instanceof P)return t;if(t[T])return t[T]()}return t||e||n?new P(t,e,n):new P(x)}(t,e,n);if(r?r.call(i,this.source):i.add(this.source||S.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),S.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){S.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 P?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 i;i=n.subscribe(function(e){try{t(e)}catch(n){r(n),i&&i.unsubscribe()}},r,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[A]=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:D(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=S.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 i(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 i(e,t),e}(P),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 i(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(),i=0;i<n;i++)r[i].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(),i=0;i<n;i++)r[i].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 i(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 z=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return i(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}(P),G=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()}},B=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,E),e}};function q(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var Q=q(),K=function(t){return function(e){for(var n=t[Q]();;){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}},W=function(t){return function(e){var n=t[A]();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 Y(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var X=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[A])return W(t);if(Z(t))return G(t);if(Y(t))return B(t);if(t&&"function"==typeof t[Q])return K(t);var e=p(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 $(t,e,n,r,i){if(void 0===i&&(i=new z(t,n,r)),!i.closed)return X(e)(i)}var J=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(P);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 i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return i(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}(P);function rt(t,e){return new R(e?function(n){var r=new b,i=0;return r.add(e.schedule(function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()})),r}:G(t))}function it(t,e){if(!e)return t instanceof R?t:new R(X(t));if(null!=t){if(function(t){return t&&"function"==typeof t[A]}(t))return function(t,e){return new R(e?function(n){var r=new b;return r.add(e.schedule(function(){var i=t[A]();r.add(i.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}:W(t))}(t,e);if(Y(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}:B(t))}(t,e);if(Z(t))return rt(t,e);if(function(t){return t&&"function"==typeof t[Q]}(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,i=new b;return i.add(function(){r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(function(){r=t[Q](),i.add(e.schedule(function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(o){return void n.error(o)}e?n.complete():(n.next(t),this.schedule())}}))})),i}:K(t))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function ot(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(ot(function(n,r){return it(t(n,r)).pipe(tt(function(t,i){return e(n,t,r,i)}))},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 i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return i(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=new z(this,void 0,void 0);this.destination.add(r),$(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,i){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}(J);function ut(t){return t}function lt(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),ot(ut,t)}function ct(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,i=t[t.length-1];return H(i)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof R?t[0]:lt(n)(rt(t,r))}function ht(){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 ft(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),ft=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return i(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}(P),dt=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 i(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 mt(this.getSubject(),this))),t.closed?(this._connection=null,t=b.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return ht()(this)},e}(R).prototype,yt={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:dt._subscribe},_isComplete:{value:dt._isComplete,writable:!0},getSubject:{value:dt.getSubject},connect:{value:dt.connect},refCount:{value:dt.refCount}},mt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return i(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 gt(){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 _t=vt({ngComponentDef:vt}),bt=vt({ngInjectableDef:vt}),wt=vt({ngInjectorDef:vt}),Ct=vt({ngModuleDef:vt}),St=vt({__NG_ELEMENT_ID__:vt});function Et(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function xt(t){return t.hasOwnProperty(bt)?t[bt]:null}function Tt(t){return t.hasOwnProperty(wt)?t[wt]:null}var Pt=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 At(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 i in r)this[i]=r[i]}}}(e);function i(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this instanceof i)return r.apply(this,e),this;var o=new((t=i).bind.apply(t,c([void 0],e)));return a.annotation=o,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(o),t}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i}var It=new Pt("AnalyzeForEntryComponents"),Ot=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),Dt="undefined"!=typeof window&&window,Rt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Nt="undefined"!=typeof global&&global||Dt||Rt,Mt=Promise.resolve(0),jt=null;function Vt(){if(!jt){var t=Nt.Symbol;if(t&&t.iterator)jt=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&&(jt=r)}}return jt}function Ft(t){"undefined"==typeof Zone?Mt.then(function(){t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function Lt(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function Ut(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(Ut).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 Ht,zt=At("Inject",function(t){return{token:t}}),Gt=At("Optional"),Bt=At("Self"),qt=At("SkipSelf"),Qt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({}),Kt=void 0;function Wt(t){var e=Kt;return Kt=t,e}function Zt(t){var e=Ht;return Ht=t,e}function Yt(t,e){return void 0===e&&(e=Qt.Default),(Ht||function(t,e){if(void 0===e&&(e=Qt.Default),void 0===Kt)throw new Error("inject() must be called from an injection context");return null===Kt?Xt(t,void 0,e):Kt.get(t,e&Qt.Optional?null:void 0,e)})(t,e)}function Xt(t,e,n){var r=xt(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&Qt.Optional)return null;if(void 0!==e)return e;throw new Error("Injector: NOT_FOUND ["+Ut(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 i=void 0,o=Qt.Default,a=0;a<r.length;a++){var s=r[a];s instanceof Gt||"Optional"===s.ngMetadataName?o|=Qt.Optional:s instanceof qt||"SkipSelf"===s.ngMetadataName?o|=Qt.SkipSelf:s instanceof Bt||"Self"===s.ngMetadataName?o|=Qt.Self:i=s instanceof zt?s.token:s}e.push(Yt(i,o))}else e.push(Yt(r))}return e}var Jt=8,te=8,ee=9,ne=-1,re=function(){return function(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}(),ie=re.prototype,oe=17,ae=0,se=1,ue=2,le=3,ce=4,he=5,pe=6,fe=7,de=8,ye=9,me=10,ge=11,ve=12,_e=14,be=16;function we(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 Ce(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 Se(t,e,n){null!=t.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(n,t.onDestroy)}function Ee(t,e,n,r){var i=r?e:n;i&&xe(t,i)}function xe(t,e){for(var n=0;n<e.length;n+=2)e[n+1].call(t[e[n]])}function Te(t,e){var n=Ae(t),r=Ae(e);return n&&r?function(t,e,n){for(var r=t[Vt()](),i=e[Vt()]();;){var o=r.next(),a=i.next();if(o.done&&a.done)return!0;if(o.done||a.done)return!1;if(!n(o.value,a.value))return!1}}(t,e,Te):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||Lt(t,e)}var Pe=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}(),ke=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 Ae(t){return!!Ie(t)&&(Array.isArray(t)||!(t instanceof Map)&&Vt()in t)}function Ie(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var Oe=0,De=1,Re=6,Ne="__ngContext__";function Me(t){return"function"==typeof t?t.name||t:"string"==typeof t?t:null==t?"":""+t}function je(t){for(;Array.isArray(t);)t=t[he];return t}function Ve(t,e){return je(e[t.index])}function Fe(t,e){var n=e[t];return n.length>=oe?n:n[he]}function Le(t){return t[Ne]}function Ue(t){var e=Le(t);return e?Array.isArray(e)?e:e.lViewData:null}function He(t){return 32767&t}function ze(t,e){for(var n=t>>16,r=e;n>0;)r=r[be],n--;return r}var Ge,Be,qe,Qe,Ke,We,Ze,Ye,Xe=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Nt);function $e(){return Ge}function Je(){return Be}function tn(){return qe}function en(t){qe=t}function nn(t,e){qe=t,Ye=e}function rn(){return Qe}function on(t){Qe=t}function an(){return Ke}function sn(){return Ze}function un(){return Ye}var ln=!1;function cn(){return ln}function hn(t){ln=t}var pn=!0;function fn(t){pn=t}function dn(t,e){var n=Ye;return Ke=t&&t[ae],Ze=t&&1==(1&t[se]),pn=t&&Ke.firstTemplatePass,Ge=t&&t[ge],qe=e,Qe=!0,Ye=t,n&&(n[ce]=We),We=t&&t[ce],n}function yn(t,e){e||(ln||Ee(Ye,Ke.viewHooks,Ke.viewCheckHooks,Ze),Ye[se]&=-6),Ye[se]|=16,Ye[fe]=Ke.bindingStartIndex,dn(t,null)}var mn=!1;function gn(t){var e=mn;return mn=t,e}var vn=255,_n=0;function bn(t,e){var n=Cn(t,e);if(-1!==n)return n;var r=e[ae];r.firstTemplatePass&&(t.injectorIndex=e.length,wn(r.data,t),wn(e,null),wn(r.blueprint,null));var i=Sn(t,e),o=He(i),a=ze(i,e),s=t.injectorIndex;if(i!==ne)for(var u=a[ae].data,l=0;l<8;l++)e[s+l]=a[o+l]|u[o+l];return e[s+te]=i,s}function wn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Cn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+te]?-1:t.injectorIndex}function Sn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=e[pe],r=1;n&&-1===n.injectorIndex;)n=(e=e[be])[pe],r++;return n?n.injectorIndex|r<<16|(n&&3===n.type?32768:0):-1}var En={};function xn(t,e,n,r){var i=e[ae],o=i.data[t+Jt],a=o.flags,s=o.providerIndexes,u=i.data,l=!1;(null==r&&function(t){return 4096==(4096&t.flags)}(o)&&mn||null!=r&&r!=i&&(null==i.node||3===i.node.type))&&(l=!0);for(var c=65535&s,h=a>>16,p=4095&a,f=l?c:c+(s>>16);f<h+p;f++){var d=u[f];if(f<h&&n===d||f>=h&&d.type===n)return Tn(u,e,f,o)}return En}function Tn(t,e,n,r){var i,o=e[n];if(null!=(i=o)&&"object"==typeof i&&Object.getPrototypeOf(i)==ie){var a=o;if(a.resolving)throw new Error("Circular dep for "+Me(t[n]));var s=gn(a.canSeeViewProviders);a.resolving=!0;var u=void 0;a.injectImpl&&(u=Zt(a.injectImpl));var l=tn(),c=un();nn(r,e);try{o=e[n]=a.factory(null,t,e,r)}finally{a.injectImpl&&Zt(u),gn(s),a.resolving=!1,nn(l,c)}}return o}function Pn(t,e,n){var r=64&t,i=32&t;return!!((128&t?r?i?n[e+7]:n[e+6]:i?n[e+5]:n[e+4]:r?i?n[e+3]:n[e+2]:i?n[e+1]:n[e])&1<<t)}function kn(t,e){return!(t&Qt.Self||t&Qt.Host&&32768&e)}var An=function(){function t(t,e){this._tNode=t,this._hostView=e,this._injectorIndex=bn(t,e)}return t.prototype.get=function(t){return nn(this._tNode,this._hostView),function(t,e,n,r,i){void 0===r&&(r=Qt.Default);var o=function(t){var e=t[St];return"number"==typeof e?e&vn:e}(n);if("function"==typeof o){var a=tn(),s=un();nn(t,e);try{var u=o();if(null!=u||r&Qt.Optional)return u;throw new Error("No provider for "+Me(n))}finally{nn(a,s)}}else if("number"==typeof o){var l=null,c=Cn(t,e),h=ne;for((-1===c||r&Qt.SkipSelf)&&(kn(r,h=-1===c?Sn(t,e):e[c+te])?(l=e[ae],c=He(h),e=ze(h,e)):c=-1);-1!==c;){h=e[c+te];var p=e[ae];if(Pn(o,c,p.data)){var f=xn(c,e,n,l);if(f!==En)return f}kn(r,h)&&Pn(o,c,e)?(l=p,c=He(h),e=ze(h,e)):c=-1}}if(r&Qt.Optional&&void 0===i&&(i=null),0==(r&(Qt.Self|Qt.Host))){var d=e[me];return d?d.get(n,i,r&Qt.Optional):Xt(n,i,r&Qt.Optional)}if(r&Qt.Optional)return i;throw new Error("NodeInjector: NOT_FOUND ["+Me(n)+"]")}(this._tNode,this._hostView,t)},t}();function In(t,e){t[Ne]=e}function On(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]}var Dn=vt({__forward_ref__:vt});function Rn(t){return t.__forward_ref__=Rn,t.toString=function(){return Ut(this())},t}function Nn(t){var e=t;return"function"==typeof e&&e.hasOwnProperty(Dn)&&e.__forward_ref__===Rn?e():t}var Mn="__source",jn=new Object,Vn=jn,Fn=new Pt("INJECTOR"),Ln=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=jn),e===jn)throw new Error("NullInjectorError: No provider for "+Ut(t)+"!");return e},t}(),Un=function(){function t(){}return t.create=function(t,e){return Array.isArray(t)?new Yn(t,e):new Yn(t.providers,t.parent,t.name||null)},t.THROW_IF_NOT_FOUND=jn,t.NULL=new Ln,t.ngInjectableDef=Et({providedIn:"any",factory:function(){return Yt(Fn)}}),t.__NG_ELEMENT_ID__=function(){return Hn()},t}(),Hn=On,zn=function(t){return t},Gn=[],Bn=zn,qn=function(){return Array.prototype.slice.call(arguments)},Qn=vt({provide:String,useValue:vt}),Kn=Un.NULL,Wn=/\n/gm,Zn="\u0275",Yn=function(){function t(t,e,n){void 0===e&&(e=Kn),void 0===n&&(n=null),this.parent=e,this.source=n;var r=this._records=new Map;r.set(Un,{token:Un,fn:zn,deps:Gn,value:this,useNew:!1}),r.set(Fn,{token:Fn,fn:zn,deps:Gn,value:this,useNew:!1}),function t(e,n){if(n)if((n=Nn(n))instanceof Array)for(var r=0;r<n.length;r++)t(e,n[r]);else{if("function"==typeof n)throw Jn("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw Jn("Unexpected provider",n);var i=Nn(n.provide),o=function(t){var e=function(t){var e=Gn,n=t.deps;if(n&&n.length){e=[];for(var r=0;r<n.length;r++){var i=6;if((u=Nn(n[r]))instanceof Array)for(var o=0,a=u;o<a.length;o++){var s=a[o];s instanceof Gt||s==Gt?i|=1:s instanceof qt||s==qt?i&=-3:s instanceof Bt||s==Bt?i&=-5:u=s instanceof zt?s.token:Nn(s)}e.push({token:u,options:i})}}else if(t.useExisting){var u;e=[{token:u=Nn(t.useExisting),options:6}]}else if(!(n||Qn in t))throw Jn("'deps' required",t);return e}(t),n=zn,r=Gn,i=!1,o=Nn(t.provide);if(Qn in t)r=t.useValue;else if(t.useFactory)n=t.useFactory;else if(t.useExisting);else if(t.useClass)i=!0,n=Nn(t.useClass);else{if("function"!=typeof o)throw Jn("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",t);i=!0,n=o}return{deps:e,fn:n,useNew:i,value:r}}(n);if(!0===n.multi){var a=e.get(i);if(a){if(a.fn!==qn)throw Xn(i)}else e.set(i,a={token:n.provide,deps:[],useNew:!1,fn:qn,value:Gn});a.deps.push({token:i=n,options:6})}var s=e.get(i);if(s&&s.fn==qn)throw Xn(i);e.set(i,o)}}(r,t)}return t.prototype.get=function(t,e,n){void 0===n&&(n=Qt.Default);var r=this._records.get(t);try{return function t(e,n,r,i,o,a){try{return function(e,n,r,i,o,a){var s,u;if(!n||a&Qt.SkipSelf)a&Qt.Self||(u=i.get(e,o,Qt.Default));else{if((u=n.value)==Bn)throw Error(Zn+"Circular dependency");if(u===Gn){n.value=Bn;var l=n.useNew,h=n.fn,p=n.deps,f=Gn;if(p.length){f=[];for(var d=0;d<p.length;d++){var y=p[d],m=y.options,g=2&m?r.get(y.token):void 0;f.push(t(y.token,g,r,g||4&m?i:Kn,1&m?null:Un.THROW_IF_NOT_FOUND,Qt.Default))}}n.value=u=l?new((s=h).bind.apply(s,c([void 0],f))):h.apply(void 0,f)}}return u}(e,n,r,i,o,a)}catch(s){throw s instanceof Error||(s=new Error(s)),(s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(e),n&&n.value==Bn&&(n.value=Gn),s}}(t,r,this._records,this.parent,e,n)}catch(o){var i=o.ngTempTokenPath;throw t[Mn]&&i.unshift(t[Mn]),o.message=$n("\n"+o.message,i,this.source),o.ngTokenPath=i,o.ngTempTokenPath=null,o}},t.prototype.toString=function(){var t=[];return this._records.forEach(function(e,n){return t.push(Ut(n))}),"StaticInjector["+t.join(", ")+"]"},t}();function Xn(t){return Jn("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)==Zn?t.substr(2):t;var r=Ut(e);if(e instanceof Array)r=e.map(Ut).join(" -> ");else if("object"==typeof e){var i=[];for(var o in e)if(e.hasOwnProperty(o)){var a=e[o];i.push(o+":"+("string"==typeof a?JSON.stringify(a):Ut(a)))}r="{"+i.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(Wn,"\n  ")}function Jn(t,e){return new Error($n(t,e))}var tr=function(){return function(){}}(),er=function(){return function(){}}(),nr="ngProjectAs";function rr(t){return!!t.listen}var ir={createRenderer:function(t,e){return document}},or=[];function ar(t){for(var e=t[pe];e&&2===e.type;)e=(t=t[ue])[pe];return t}function sr(t,e,n,r,i){0===t?rr(e)?e.insertBefore(n,r,i):n.insertBefore(r,i,!0):1===t?rr(e)?e.removeChild(n,r):n.removeChild(r):2===t&&e.destroyNode(r)}function ur(t){var e=t[ae].childIndex;return-1===e?null:t[e]}function lr(t,e){var n;return t.length>=oe&&(n=t[pe])&&2===n.type?function(e,n){if(-1===e.index){var r=t[_e];return r>-1?t[ue][r]:null}return t[ue][e.parent.index]}(n):t[ue]===e?null:t[ue]}function cr(t){if(t.length>=oe){var e=t;!function(t){var e=t[ae].cleanup;if(null!=e){for(var n=0;n<e.length-1;n+=2)"string"==typeof e[n]?(je(t[e[n+1]]).removeEventListener(e[n],t[de][e[n+2]],e[n+3]),n+=2):"number"==typeof e[n]?(0,t[de][e[n]])():e[n].call(t[de][e[n+1]]);t[de]=null}}(e),function(t){var e,n=t[ae];null!=n&&null!=(e=n.destroyHooks)&&xe(t,e)}(e),(r=(n=e)[ae]&&n[ae].pipeDestroyHooks)&&xe(n,r),-1===e[ae].id&&rr(e[ge])&&e[ge].destroy()}var n,r}var hr={},pr=Promise.resolve(null);function fr(t,e){var n=an(),r=pn;if(n.firstTemplatePass=!1,fn(!1),1!==e){var i=sn(),o=cn();o||function(t,e,n){16&t[se]&&(Ee(t,e.initHooks,e.checkHooks,n),t[se]&=-17)}(t,n,i),function(e){for(var n=ur(t);null!==n;n=n[le])if(n.length<oe&&-1===n[Oe])for(var r=n,i=0;i<r[De].length;i++){var o=r[De][i];mr(o,o[ae],o[ye],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-oe,t.contentQueries[e+1])}}(n),o||Ee(t,n.contentHooks,n.contentCheckHooks,i),function(t,e){if(t.expandoInstructions)for(var n=e[fe]=t.expandoStartIndex,r=-1,i=-1,o=0;o<t.expandoInstructions.length;o++){var a=t.expandoInstructions[o];if("number"==typeof a)if(a<=0){i=-a;var s=t.expandoInstructions[++o];r=n+=ee+s}else n+=a;else e[fe]=n,en(an().data[i+oe]),a(r-oe,i),r++}}(n,t)}!function(t,e,n){if(null!=t)for(var r=0;r<t.length;r++)Er(t[r],e,n)}(n.components,r,e)}function dr(t,e,n,r,i,o,a){var s=n.blueprint.slice();return s[se]=25|i,s[ue]=s[be]=t,s[ye]=r,s[me]=void 0===a?t?t[me]:null:a,s[ge]=e,s[ve]=o||null,s}function yr(t,e,n,r,i){var o=un(),a=an(),s=t+oe;o[s]=n;var u=a.data[s];if(null==u){var l=tn(),c=rn();u=a.data[s]=Sr(o,e,s,r,i,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),en(u),on(!0),u}function mr(t,e,n,r){var i,o=rn(),a=tn();if(on(!0),en(null),64&t[se])Tr(function(t){for(var e=Array.isArray(t)?t:Ue(t);e&&!(64&e[se]);)e=e[ue];return e}(t)[ye]);else try{on(!0),en(null),i=dn(t,t[pe]),br(),e.template(r,n),2&r?fr(t,null):(t[ae].firstTemplatePass=!1,fn(!1))}finally{yn(i,1==(1&r)),on(o),en(a)}}function gr(t,e,n,r){var i=Je(),o=dn(t,t[pe]);try{i.begin&&i.begin(),r&&(br(),r(n||vr(t),e)),fr(t,n)}finally{i.end&&i.end(),yn(o)}}function vr(t){return 1&t[se]?3:2}var _r=null;function br(){_r=null}function wr(t,e,n,r,i,o,a){var s=oe+n,u=s+r,l=function(t,e){var n=new Array(e).fill(null,0,t).fill(hr,t);return n[_e]=-1,n[fe]=t,n}(s,u);return l[ae]={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 i?i():i,pipeRegistry:"function"==typeof o?o():o,firstChild:null}}function Cr(t,e){!function(t){Be=t}(t);var n=t.createRenderer(null,null);return"string"==typeof e?rr(n)?n.selectRootElement(e):n.querySelector(e):e}function Sr(t,e,n,r,i,o){var a=tn(),s=rn()?a:a&&a.parent,u=s&&t&&s!==t[pe]?s:null;return{type:e,index:n,injectorIndex:u?u.injectorIndex:-1,flags:0,providerIndexes:0,tagName:r,attrs:i,localNames:null,initialInputs:void 0,inputs:void 0,outputs:void 0,tViews:o,next:null,child:null,parent:u,detached:null,stylingTemplate:null,projection:null}}function Er(t,e,n){var r=Fe(t,un());xr(r)&&6&r[se]&&(e&&function(t){for(var e=t[ae],n=t.length;n<e.blueprint.length;n++)t[n]=e.blueprint[n]}(r),Ar(r,r[ye],n))}function xr(t){return 8==(8&t[se])}function Tr(t){for(var e=0;e<t.components.length;e++){var n=t.components[e];gr(Ue(n),n,2)}}function Pr(t){Ar(function(t){var e,n=Le(t);if(Array.isArray(n)){var r=function(t,e){var n=t[ae].components;if(n)for(var r=0;r<n.length;r++){var i=n[r];if(Fe(i,t)[ye]===e)return i}else if(Fe(oe,t)[ye]===e)return oe;return-1}(n,t);(i=function(t,e,n){return{lViewData:t,nodeIndex:e,native:n,component:void 0,directives:void 0,localRefs:void 0}}(n,r,(e=Fe(r,n))[he])).component=t,In(t,i),In(i.native,i)}else{var i;e=Fe((i=n).nodeIndex,i.lViewData)}return e}(t),t,null)}function kr(t){Tr(t[ye])}function Ar(t,e,n){var r=t[ae],i=dn(t,t[pe]),o=r.template,a=r.viewQuery;try{br(),function(e,r,i,o){e&&(1===n||null===n&&1&t[se])&&e(1,o)}(a,0,0,e),o(n||vr(t),e),fr(t,n),function(e,n,r){e&&2&t[se]&&e(2,r)}(a,0,e)}finally{yn(i,1===n)}}var Ir,Or=pr,Dr=function(t){function e(e){var n=t.call(this,e,null,-1)||this;return n._view=e,n}return i(e,t),e.prototype.detectChanges=function(){kr(this._view)},e.prototype.checkNoChanges=function(){!function(t){hn(!0);try{kr(t)}finally{hn(!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[he]?function t(e,n,r){for(var i=n.child;i;)r.push(Ve(i,e)),4===i.type&&t(e,i,r),i=i.next;return r}(this._view,this._view[pe],[]):[]},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[se])},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){var t,e;this._viewContainerRef&&xr(this._view)&&(this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),this._viewContainerRef=null),rr(e=(t=this._view)[ge])&&e.destroyNode&&function(e,n,r,i,o){for(var a=t[ae].node,s=-1,u=t,l=a.child;l;){var c=null;if(3===l.type){sr(2,r,null,Ve(l,u),o);var h=u[l.index];y=h,Array.isArray(y)&&"number"==typeof y[Oe]&&sr(2,r,null,h[Re],o)}else if(0===l.type){var p=u[l.index];sr(2,r,null,p[Re],o),p[De].length&&(c=(u=p[De][0])[ae].node,o=p[Re])}else if(1===l.type){var f=ar(u),d=f[pe].projection[l.projection];or[++s]=l,or[++s]=u,d&&(c=(u=f[ue])[ae].data[d.index])}else c=l.child;if(null===c)for(null===l.next&&8192&l.flags&&(u=or[s--],l=or[s--]),c=l.next;!c;){if(null===(l=l.parent||u[ae].node)||l===a)return null;0===l.type&&(o=(u=u[ue])[l.index][Re]),c=2===l.type&&u[le]?(u=u[le])[ae].node:l.next}l=c}var y}(0,0,e),function(t){if(-1===t[ae].childIndex)return cr(t);for(var e=ur(t);e;){var n=null;if(e.length>=oe?e[ae].childIndex>-1&&(n=ur(e)):e[De].length&&(n=e[De][0]),null==n){for(;e&&!e[le]&&e!==t;)cr(e),e=lr(e,t);cr(e||t),n=e&&e[le]}e=n}}(t),t[se]|=32},t.prototype.onDestroy=function(t){var e,n;n=t,function(t){return t[de]||(t[de]=[])}(e=this._view).push(n),e[ae].firstTemplatePass&&function(t){return t[ae].cleanup||(t[ae].cleanup=[])}(e).push(e[de].length-1,null)},t.prototype.markForCheck=function(){!function(t){for(var e=t;e&&!(64&e[se]);)e[se]|=4,e=e[ue];var n,r,i;e[se]|=4,i=0===(n=e[ye]).flags,n.flags|=1,i&&n.clean==pr&&(n.clean=new Promise(function(t){return r=t}),n.scheduler(function(){if(1&n.flags&&(n.flags&=-2,Tr(n)),2&n.flags){n.flags&=-3;var t=n.playerHandler;t&&t.flushPlayers()}n.clean=pr,r(null)}))}(this._view)},t.prototype.detach=function(){this._view[se]&=-9},t.prototype.reattach=function(){this._view[se]|=8},t.prototype.detectChanges=function(){var t=Je();t.begin&&t.begin(),Pr(this.context),t.end&&t.end()},t.prototype.checkNoChanges=function(){!function(t){hn(!0);try{Pr(t)}finally{hn(!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[ue][this._componentIndex]},t}());function Rr(t,e,n,r,i){var o=n[ae],a=function(t,e,n){var r=tn();t.firstTemplatePass&&(n.providersResolver&&n.providersResolver(n),function(t,e,n){var i=-(r.index-oe),o=t.data.length-(65535&r.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(i,o,1)}(t),function(t,e,n,r){t.data.push(n);var i=new re(r,function(t){return null!==t.template}(n),null);t.blueprint.push(i),e.push(i),function(t,e){t.expandoInstructions.push(e.hostBindings||On),e.hostVars&&t.expandoInstructions.push(e.hostVars)}(t,n)}(t,e,n,n.factory));var i=Tn(t.data,e,e.length-1,r);return function(t,e,n,r){var i=Ve(e,t);In(n,t),i&&In(i,t),null!=r.attributes&&3==e.type&&function(t,e){for(var n=$e(),r=rr(n),i=0;i<e.length;){var o=e[i];if(1===o)break;if(o===nr)i+=2;else if(0===o){var a=e[i+1],s=e[i+2],u=e[i+3];r?n.setAttribute(t,s,u,a):t.setAttributeNS(a,s,u),i+=4}else u=e[i+1],r?n.setAttribute(t,o,u):t.setAttribute(o,u),i+=2}}(i,r.attributes)}(e,r,i,n),i}(o,n,e);return r.components.push(a),t[ye]=a,i&&i.forEach(function(t){return t(a,e)}),o.firstTemplatePass&&function(t,e,n){for(var r=0;r<n;r++)e.push(hr),t.blueprint.push(hr),t.data.push(null)}(o,n,e.hostVars),a}function Nr(t,e){return{components:[],scheduler:t||Xe,clean:Or,playerHandler:e||null,flags:0}}function Mr(t,e){var n,r,i,o,a=Ue(t)[ae],s=a.data.length-1;n=s,i=e.doCheck,o=a,(r=e.onInit)&&(o.initHooks||(o.initHooks=[])).push(n,r),i&&((o.initHooks||(o.initHooks=[])).push(n,i),(o.checkHooks||(o.checkHooks=[])).push(n,i)),function(t,e){if(e.firstTemplatePass)for(var n=t>>16,r=n+(4095&t),i=n;i<r;i++){var o=e.data[i];we(o,e,i),Ce(o,e,i),Se(o,e,i)}}(s<<16|1,a)}var jr=new Pt("The presence of this token marks an injector as being the root injector."),Vr={},Fr={},Lr=[],Ur=void 0;function Hr(){return void 0===Ur&&(Ur=new Ln),Ur}var zr=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 i=[];qr([t],function(t){return r.processInjectorType(t,[],i)}),e&&qr(e,function(t){return r.processProvider(t)}),this.records.set(Fn,Br(void 0,this)),this.isRootInjector=this.records.has(jr),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=Vn),void 0===n&&(n=Qt.Default),this.assertNotDestroyed();var r,i=Wt(this);try{if(!(n&Qt.SkipSelf)){var o=this.records.get(t);if(void 0===o){var a=("function"==typeof(r=t)||"object"==typeof r&&r instanceof Pt)&&xt(t);a&&this.injectableDefInScope(a)&&(o=Br(Gr(t),Vr),this.records.set(t,o))}if(void 0!==o)return this.hydrate(t,o)}return(n&Qt.Self?Hr():this.parent).get(t,e)}finally{Wt(i)}},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=Nn(t)){var i=Tt(t),o=null==i&&t.ngModule||void 0,a=void 0===o?t:o;if(-1===n.indexOf(a)){var s=void 0!==o&&t.providers||Lr;if(void 0!==o&&(i=Tt(o)),null!=i){if(this.injectorDefTypes.add(a),this.records.set(a,Br(i.factory)),null!=i.imports){n.push(a);try{qr(i.imports,function(t){return r.processInjectorType(t,e,n)})}finally{}}null!=i.providers&&qr(i.providers,function(t){return r.processProvider(t)}),qr(s,function(t){return r.processProvider(t)})}}}},t.prototype.processProvider=function(t){var e=Kr(t=Nn(t))?t:Nn(t.provide),n=function(t){var e=function(t){var e=void 0;if(Kr(t))return Gr(Nn(t));if(Qr(t))e=function(){return Nn(t.useValue)};else if(t.useExisting)e=function(){return Yt(Nn(t.useExisting))};else if(t.useFactory)e=function(){return t.useFactory.apply(t,c($t(t.deps||[])))};else{var n=Nn(t.useClass||t.provide);if(!t.deps)return Gr(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,Vr)}(t);if(Kr(t)||!0!==t.multi){var r=this.records.get(e);if(r&&void 0!==r.multi)throw new Error("Mixed multi-provider for "+Ut(e))}else{var i=this.records.get(e);if(i){if(void 0===i.multi)throw new Error("Mixed multi-provider for "+e+".")}else(i=Br(void 0,Vr,!0)).factory=function(){return $t(i.multi)},this.records.set(e,i);e=t,i.multi.push(t)}this.records.set(e,n)},t.prototype.hydrate=function(t,e){if(e.value===Fr)throw new Error("Circular dep for "+Ut(t));var n;return e.value===Vr&&(e.value=Fr,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 Gr(t){var e=xt(t);if(null===e){if(t instanceof Pt)throw new Error("Token "+Ut(t)+" is missing an ngInjectableDef definition.");return function(){return new t}}return e.factory}function Br(t,e,n){return void 0===e&&(e=Vr),void 0===n&&(n=!1),{factory:t,value:e,multi:n?[]:void 0}}function qr(t,e){t.forEach(function(t){return Array.isArray(t)?qr(t,e):e(t)})}function Qr(t){return Qn in t}function Kr(t){return"function"==typeof t}var Wr=function(){return function(){}}(),Zr=function(){return function(){}}();function Yr(t){var e=Error("No component factory found for "+Ut(t)+". Did you add it to @NgModule.entryComponents?");return e[Xr]=t,e}var Xr="ngComponent",$r=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw Yr(t)},t}(),Jr=function(){function t(){}return t.NULL=new $r,t}(),ti=function(){function t(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(var r=0;r<t.length;r++){var i=t[r];this._factories.set(i.componentType,i)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t);if(!e&&this._parent&&(e=this._parent.resolveComponentFactory(t)),!e)throw Yr(t);return new ei(e,this._ngModule)},t}(),ei=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 i(e,t),e.prototype.create=function(t,e,n,r){return this.factory.create(t,e,n,r||this.ngModule)},e}(Zr),ni=function(){function t(t){this.nativeElement=t}return t.__NG_ELEMENT_ID__=function(){return ri(t)},t}(),ri=On,ii=function(){return function(){}}(),oi=function(){return function(){}}(),ai=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({}),si=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return ui()},t}(),ui=On,li=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.1"),ci=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.resolveComponentFactory=function(t){return new mi(t[_t]||null)},e}(Jr);function hi(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var pi=new Pt("ROOT_CONTEXT_TOKEN",{providedIn:"root",factory:function(){return Nr(Yt(fi))}}),fi=new Pt("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Xe}}),di=new Pt("WRAP_RENDERER_FACTORY2"),yi={},mi=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 i(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){return hi(this.componentDef.inputs)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return hi(this.componentDef.outputs)},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){var o,a=void 0===n;o=r?r.injector.get(di,function(t){return t})(r.injector.get(oi)):ir;var s,u,l=a?(s=this.selector,rr(u=o.createRenderer(null,this.componentDef)||$e())?u.createElement(s,_r):null===_r?u.createElement(s):u.createElementNS(_r,s)):Cr(o,n),c=this.componentDef.onPush?68:66,h=r&&!a?r.injector.get(pi):Nr(),p=o.createRenderer(l,this.componentDef),f=r?function(t,e){return{get:function(n,r){var i=t.get(n,yi);return i!==yi?i:e.get(n,r)}}}(t,r.injector):t;n&&l&&(rr(p)?p.setAttribute(l,"ng-version",li.full):l.setAttribute("ng-version",li.full));var d,y,m=dr(null,p,wr(-1,null,1,0,null,null,null),h,c,void 0,f),g=dn(m,null);try{o.begin&&o.begin();var v=function(t,e,n,r,i){Qe=!1,qe=null;var o,a,s,u=n[ae],l=dr(n,r,(o=e.template).ngPrivateData||(o.ngPrivateData=wr(-1,o,e.consts,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery)),null,e.onPush?4:2,i),c=yr(0,3,t,null,null);return u.firstTemplatePass&&(a=bn(c,n),s=e.type,function(t,e,n){var r=s[St];null==r&&(r=s[St]=_n++);var i=r&vn,o=1<<i,a=64&i,u=32&i,l=e.data;128&i?a?u?l[t+7]|=o:l[t+6]|=o:u?l[t+5]|=o:l[t+4]|=o:a?u?l[t+3]|=o:l[t+2]|=o:u?l[t+1]|=o:l[t]|=o}(a,n[ae]),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=an();(e.components||(e.components=[])).push(t.index)}(c)),l[he]=n[oe],l[pe]=c,n[oe]=l}(l,this.componentDef,m,p);if(y=m[ae].data[0+oe],e)for(var _=0,b=m[ae],w=y.projection=[],C=0;C<e.length;C++){for(var S=e[C],E=null,x=null,T=0;T<S.length;T++){b.firstTemplatePass&&(b.expandoStartIndex++,b.blueprint.splice(++_+oe,0,null),b.data.splice(_+oe,0,null),m.splice(_+oe,0,null));var P=yr(_,3,S[T],null,null);x?x.next=P:E=P,x=P}w.push(E)}d=Rr(v,this.componentDef,m,h,[Mr]),fr(m,1)}finally{yn(g,!0),o.end&&o.end()}var k=new gi(this.componentType,d,function(t,e,n){return Ir||(Ir=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(ni)),new Ir(Ve(e,n))}(0,y,m),m,y);return a&&(k.hostView._tViewNode.child=y),k},e}(Zr),gi=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a.location=r,a._rootView=i,a._tNode=o,a.destroyCbs=[],a.instance=n,a.hostView=a.changeDetectorRef=new Dr(i),a.hostView._tViewNode=function(t,e){null==e[ae].node&&(e[ae].node=Sr(e,2,-1,null,null,null)),on(!0);var n=e[ae].node;return en(n),e[pe]=n}(0,i),a.componentType=e,a}return i(e,t),Object.defineProperty(e.prototype,"injector",{get:function(){return new An(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}(Wr),vi=!0,_i=!1;function bi(){return _i=!0,vi}var wi=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 i=t.firstChild;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling},t}(),Ci=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,Si=/^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 Ei(t){return(t=String(t)).match(Ci)||t.match(Si)?t:(bi()&&console.warn("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function xi(t){var e,n,r={};try{for(var i=u(t.split(",")),o=i.next();!o.done;o=i.next())r[o.value]=!0}catch(a){e={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}function Ti(){for(var t,e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={};try{for(var o=u(n),a=o.next();!a.done;a=o.next()){var s=a.value;for(var l in s)s.hasOwnProperty(l)&&(i[l]=!0)}}catch(c){t={error:c}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}return i}var Pi,ki=xi("area,br,col,hr,img,wbr"),Ai=xi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ii=xi("rp,rt"),Oi=Ti(Ii,Ai),Di=Ti(ki,Ti(Ai,xi("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")),Ti(Ii,xi("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")),Oi),Ri=xi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ni=xi("srcset"),Mi=Ti(Ri,Ni,xi("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")),ji=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(!Di.hasOwnProperty(n))return this.sanitizedSomething=!0,!1;this.buf.push("<"),this.buf.push(n);for(var r=t.attributes,i=0;i<r.length;i++){var o=r.item(i),a=o.name,s=a.toLowerCase();if(Mi.hasOwnProperty(s)){var u=o.value;Ri[s]&&(u=Ei(u)),Ni[s]&&(e=u,u=(e=String(e)).split(",").map(function(t){return Ei(t.trim())}).join(", ")),this.buf.push(" ",a,'="',Li(u),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();Di.hasOwnProperty(e)&&!ki.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(Li(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}(),Vi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Fi=/([^\#-~ |!])/g;function Li(t){return t.replace(/&/g,"&amp;").replace(Vi,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Fi,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Ui(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Hi={provide:Jr,useFactory:function(){return new ci},deps:[]},zi=function(t){function e(e,n){var r=t.call(this)||this;return r._bootstrapComponents=[],r.destroyCbs=[],r._bootstrapComponents=(e[Ct]||null).bootstrap,r.injector=function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),e=e||Hr(),new zr(t,n,e)}(e,n,[Hi,{provide:tr,useValue:r}]),r.instance=r.injector.get(e),r.componentFactoryResolver=new ci,r}return i(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}(tr);!function(t){function e(e){var n=t.call(this)||this;return n.moduleType=e,n}i(e,t),e.prototype.create=function(t){return new zi(this.moduleType,t)}}(er);var Gi=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return i(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var i,o=function(t){return null},a=function(){return null};e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(a=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(o=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(a=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var s=t.prototype.subscribe.call(this,i,o,a);return e instanceof b&&e.add(s),s},e}(L),Bi=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return qi(t,ni)},t}(),qi=On,Qi=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}({}),Ki=function(){return function(){}}(),Wi=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"),Zi=/^url\(([^)]+)\)$/;Function,String,String;var Yi="ngDebugContext",Xi="ngOriginalError",$i="ngErrorLogger";function Ji(t){return t[Yi]}function to(t){return t[Xi]}function eo(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,c(e))}var no=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[$i]||eo}(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?Ji(t)?Ji(t):this._findContext(to(t)):null},t.prototype._findOriginalError=function(t){for(var e=to(t);e&&to(e);)e=to(e);return e},t}();function ro(t){return!!t&&"function"==typeof t.then}function io(t){return!!t&&"function"==typeof t.subscribe}var oo=new Pt("Application Initializer"),ao=function(){function t(t){var e=this;this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(t,n){e.resolve=t,e.reject=n})}return t.prototype.runInitializers=function(){var t=this;if(!this.initialized){var e=[],n=function(){t.done=!0,t.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var i=this.appInits[r]();ro(i)&&e.push(i)}Promise.all(e).then(function(){n()}).catch(function(e){t.reject(e)}),0===e.length&&n(),this.initialized=!0}},t}(),so=new Pt("AppId");function uo(){return""+lo()+lo()+lo()}function lo(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var co=new Pt("Platform Initializer"),ho=new Pt("Platform ID"),po=new Pt("appBootstrapListener"),fo=function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t}();function yo(){throw new Error("Runtime compiler is not loaded")}var mo,go,vo=function(){function t(){}return t.prototype.compileModuleSync=function(t){throw yo()},t.prototype.compileModuleAsync=function(t){throw yo()},t.prototype.compileModuleAndAllComponentsSync=function(t){throw yo()},t.prototype.compileModuleAndAllComponentsAsync=function(t){throw yo()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(t){},t.prototype.getModuleId=function(t){},t}(),_o=function(){return function(){}}();function bo(){var t=Nt.wtf;return!(!t||!(mo=t.trace)||(go=mo.events,0))}var wo=bo();function Co(t,e){return null}var So=wo?function(t,e){return void 0===e&&(e=null),go.createScope(t,e)}:function(t,e){return Co},Eo=wo?function(t,e){return mo.leaveScope(t,e),e}:function(t,e){return e},xo=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 Gi(!1),this.onMicrotaskEmpty=new Gi(!1),this.onStable=new Gi(!1),this.onError=new Gi(!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,i,o,a){try{return Ao(e),t.invokeTask(r,i,o,a)}finally{Io(e)}},onInvoke:function(t,n,r,i,o,a,s){try{return Ao(e),t.invoke(r,i,o,a,s)}finally{Io(e)}},onHasTask:function(t,n,r,i){t.hasTask(r,i),n===r&&("microTask"==i.change?(e.hasPendingMicrotasks=i.microTask,ko(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:function(t,n,r,i){return t.handleError(r,i),e.runOutsideAngular(function(){return e.onError.emit(i)}),!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 i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,t,Po,To,To);try{return i.runTask(o,e,n)}finally{i.cancelTask(o)}},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 To(){}var Po={};function ko(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 Ao(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Io(t){t._nesting--,ko(t)}var Oo,Do=function(){function t(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Gi,this.onMicrotaskEmpty=new Gi,this.onStable=new Gi,this.onError=new Gi}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}(),Ro=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(){xo.assertNotInAngularZone(),Ft(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())Ft(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,i=-1;e&&e>0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==i}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,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}(),No=function(){function t(){this._applications=new Map,Mo.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),Mo.findTestabilityInTree(this,t,e)},a([s("design:paramtypes",[])],t)}(),Mo=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),jo=new Pt("AllowMultipleToken"),Vo=function(){return function(t,e){this.name=t,this.token=e}}();function Fo(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,i=new Pt(r);return function(e){void 0===e&&(e=[]);var o=Lo();if(!o||o.injector.get(jo,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{var a=n.concat(e).concat({provide:i,useValue:!0});!function(t){if(Oo&&!Oo.destroyed&&!Oo.injector.get(jo,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Oo=t.get(Uo);var e=t.get(co,null);e&&e.forEach(function(t){return t()})}(Un.create({providers:a,name:r}))}return function(t){var e=Lo();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}(i)}}function Lo(){return Oo&&!Oo.destroyed?Oo:null}var Uo=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,i="noop"===(n=e?e.ngZone:void 0)?new Do:("zone.js"===n?void 0:n)||new xo({enableLongStackTrace:bi()}),o=[{provide:xo,useValue:i}];return i.run(function(){var e=Un.create({providers:o,parent:r.injector,name:t.moduleType.name}),n=t.create(e),a=n.injector.get(no,null);if(!a)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return Go(r._modules,n)}),i.runOutsideAngular(function(){return i.onError.subscribe({next:function(t){a.handleError(t)}})}),function(t,e,i){try{var o=((a=n.injector.get(ao)).runInitializers(),a.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return ro(o)?o.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):o}catch(s){throw e.runOutsideAngular(function(){return t.handleError(s)}),s}var a}(a,i)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=Ho({},e);return function(t,e,n){return t.get(_o).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(zo);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+Ut(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 Ho(t,e){return Array.isArray(e)?e.reduce(Ho,t):o({},t,e)}var zo=function(){function t(t,e,n,r,i,o){var a=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=bi(),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(){xo.assertNotInAngularZone(),Ft(function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,t.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){xo.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=ct(s,u.pipe(function(t){return ht()((e=gt,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,yt);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 Zr?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n instanceof ei?null:this._injector.get(tr),o=n.create(Un.NULL,[],e||n.selector,i);o.onDestroy(function(){r._unloadComponent(o)});var a=o.injector.get(Ro,null);return a&&o.injector.get(No).registerApplication(o.location.nativeElement,a),this._loadComponent(o),bi()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},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,Eo(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;Go(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(po,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),Go(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=So("ApplicationRef#tick()"),t}();function Go(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Bo=function(){return function(){}}(),qo=function(){function t(){this.dirty=!0,this._results=[],this.changes=new Gi,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[Vt()]=function(){return this._results[Vt()]()},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}(),Qo=function(){return function(){}}(),Ko={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Wo=function(){function t(t,e){this._compiler=t,this._config=e||Ko}return t.prototype.load=function(t){return this._compiler instanceof vo?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=l(t.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),n("crnd")(i).then(function(t){return t[o]}).then(function(t){return Zo(t,i,o)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=l(t.split("#"),2),r=e[0],i=e[1],o="NgFactory";return void 0===i&&(i="default",o=""),n("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[i+o]}).then(function(t){return Zo(t,r,i)})},t}();function Zo(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var Yo,Xo=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return $o(t,ni)},t}(),$o=On,Jo=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return ta()},t}(),ta=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},ea=(i(function(){return null!==Yo&&Yo.apply(this,arguments)||this},Yo=Jo),function(){return function(t,e){this.name=t,this.callback=e}}()),na=function(){function t(t,e,n){this.nativeNode=t,this._debugContext=n,this.listeners=[],this.parent=null,e&&e instanceof ra&&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}(),ra=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return i(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,i=this.childNodes.indexOf(t);-1!==i&&((n=this.childNodes).splice.apply(n,c([i+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 ra&&(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 ra&&e.childNodes.forEach(function(e){n(e)&&r.push(e),e instanceof ra&&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}(na),ia=new Map;function oa(t){return ia.get(t)||null}function aa(t){ia.set(t.nativeNode,t)}var sa=function(){function t(){}return t.prototype.supports=function(t){return Ae(t)},t.prototype.create=function(t){return new la(t)},t}(),ua=function(t,e){return e},la=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||ua}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,i=null;e||n;){var o=!n||e&&e.currentIndex<fa(n,r,i)?e:n,a=fa(o,r,i),s=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);var u=a-r,l=s-r;if(u!=l){for(var c=0;c<u;c++){var h=c<i.length?i[c]:i[c]=0,p=h+c;l<=p&&p<u&&(i[c]=h+1)}i[o.previousIndex]=l-u}}a!==s&&t(o,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=[]),!Ae(t))throw new Error("Error trying to diff '"+Ut(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n,r,i,o=this._itHead,a=!1;if(Array.isArray(t)){this.length=t.length;for(var s=0;s<this.length;s++)i=this._trackByFn(s,r=t[s]),null!==o&&Lt(o.trackById,i)?(a&&(o=this._verifyReinsertion(o,r,i,s)),Lt(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,s),a=!0),o=o._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[Vt()](),i=void 0;!(i=r.next()).done;)e(i.value)}(t,function(t){i=e._trackByFn(n,t),null!==o&&Lt(o.trackById,i)?(a&&(o=e._verifyReinsertion(o,t,i,n)),Lt(o.item,t)||e._addIdentityChange(o,t)):(o=e._mismatch(o,t,i,n),a=!0),o=o._next,n++}),this.length=n;return this._truncate(o),this.collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,n,r){var i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Lt(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Lt(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new ca(e,n),i,r),t},t.prototype._verifyReinsertion=function(t,e,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._moveAfter=function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._addAfter=function(t,e,n){return this._insertAfter(t,e,n),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 pa),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 pa),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}(),ca=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}}(),ha=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)&&Lt(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}(),pa=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 ha,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 fa(t,e,n){var r=t.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+e+i}var da=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||Ie(t)},t.prototype.create=function(){return new ya},t}(),ya=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||Ie(t)))throw new Error("Error trying to diff '"+Ut(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(t,r){if(n&&n.key===r)e._maybeAddToChanges(n,t),e._appendAfter=n,n=n._next;else{var i=e._getOrCreateRecordForKey(r,t);n=e._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},t.prototype._insertBeforeOrAppend=function(t,e){if(t){var n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null},t.prototype._getOrCreateRecordForKey=function(t,e){if(this._records.has(t)){var n=this._records.get(t);this._maybeAddToChanges(n,e);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new ma(t);return this._records.set(t,o),o.currentValue=e,this._addToAdditions(o),o},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},t.prototype._maybeAddToChanges=function(t,e){Lt(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}(),ma=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}}(),ga=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 Gt]]}},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 sa])}}),t}(),va=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 Gt]]}},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 da])}}),t}(),_a=[new da],ba=new ga([new sa]),wa=new va(_a),Ca=Fo(null,"core",[{provide:ho,useValue:"unknown"},{provide:Uo,deps:[Un]},{provide:No,deps:[]},{provide:fo,deps:[]}]),Sa=new Pt("LocaleId");function Ea(){return ba}function xa(){return wa}function Ta(t){return t||"en-US"}var Pa=function(){return function(t){}}();function ka(t,e,n){var r=t.state,i=1792&r;return i===e?(t.state=-1793&r|n,t.initIndex=-1,!0):i===n}function Aa(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function Ia(t,e){return t.nodes[e]}function Oa(t,e){return t.nodes[e]}function Da(t,e){return t.nodes[e]}function Ra(t,e){return t.nodes[e]}function Na(t,e){return t.nodes[e]}var Ma={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 ja(t,e,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(t,e){var n=new Error(t);return Va(n,e),n}(i,t)}function Va(t,e){t[Yi]=e,t[$i]=e.logError.bind(e)}function Fa(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}var La=function(){},Ua=new Map;function Ha(t){var e=Ua.get(t);return e||(e=Ut(t)+"_"+Ua.size,Ua.set(t,e)),e}var za="$$undefined",Ga="$$empty";function Ba(t){return{id:za,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}var qa=0;function Qa(t,e,n,r){return!(!(2&t.state)&&Lt(t.oldValues[e.bindingIndex+n],r))}function Ka(t,e,n,r){return!!Qa(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function Wa(t,e,n,r){var i=t.oldValues[e.bindingIndex+n];if(1&t.state||!Te(i,r)){var o=e.bindings[n].name;throw ja(Ma.createDebugContext(t,e.nodeIndex),o+": "+i,o+": "+r,0!=(1&t.state))}}function Za(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function Ya(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function Xa(t,e,n,r){try{return Za(33554432&t.def.nodes[e].flags?Oa(t,e).componentView:t),Ma.handleEvent(t,e,n,r)}catch(i){t.root.errorHandler.handleError(i)}}function $a(t){return t.parent?Oa(t.parent,t.parentNodeDef.nodeIndex):null}function Ja(t){return t.parent?t.parentNodeDef.parent:null}function ts(t,e){switch(201347067&e.flags){case 1:return Oa(t,e.nodeIndex).renderElement;case 2:return Ia(t,e.nodeIndex).renderText}}function es(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function ns(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function rs(t){return 1<<t%32}function is(t){var e={},n=0,r={};return t&&t.forEach(function(t){var i=l(t,2),o=i[0],a=i[1];"number"==typeof o?(e[o]=a,n|=rs(o)):r[o]=a}),{matchedQueries:e,references:r,matchedQueryIds:n}}function os(t,e){return t.map(function(t){var n,r,i;return Array.isArray(t)?(i=(n=l(t,2))[0],r=n[1]):(i=0,r=t),r&&("function"==typeof r||"object"==typeof r)&&e&&Object.defineProperty(r,Mn,{value:e,configurable:!0}),{flags:i,token:r,tokenKey:Ha(r)}})}function as(t,e,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===Ot.Native?Oa(t,n.renderParent.nodeIndex).renderElement:void 0:e}var ss=new WeakMap;function us(t){var e=ss.get(t);return e||((e=t(function(){return La})).factory=t,ss.set(t,e)),e}function ls(t,e,n,r,i){3===e&&(n=t.renderer.parentNode(ts(t,t.def.lastRenderRootNode))),cs(t,e,0,t.def.nodes.length-1,n,r,i)}function cs(t,e,n,r,i,o,a){for(var s=n;s<=r;s++){var u=t.def.nodes[s];11&u.flags&&ps(t,u,e,i,o,a),s+=u.childCount}}function hs(t,e,n,r,i,o){for(var a=t;a&&!es(a);)a=a.parent;for(var s=a.parent,u=Ja(a),l=u.nodeIndex+u.childCount,c=u.nodeIndex+1;c<=l;c++){var h=s.def.nodes[c];h.ngContentIndex===e&&ps(s,h,n,r,i,o),c+=h.childCount}if(!s.parent){var p=t.root.projectableNodes[e];if(p)for(c=0;c<p.length;c++)fs(t,p[c],n,r,i,o)}}function ps(t,e,n,r,i,o){if(8&e.flags)hs(t,e.ngContent.index,n,r,i,o);else{var a=ts(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags?(16&e.bindingFlags&&fs(t,a,n,r,i,o),32&e.bindingFlags&&fs(Oa(t,e.nodeIndex).componentView,a,n,r,i,o)):fs(t,a,n,r,i,o),16777216&e.flags)for(var s=Oa(t,e.nodeIndex).viewContainer._embeddedViews,u=0;u<s.length;u++)ls(s[u],n,r,i,o);1&e.flags&&!e.element.name&&cs(t,n,e.nodeIndex+1,e.nodeIndex+e.childCount,r,i,o)}}function fs(t,e,n,r,i,o){var a=t.renderer;switch(n){case 1:a.appendChild(r,e);break;case 2:a.insertBefore(r,e,i);break;case 3:a.removeChild(r,e);break;case 0:o.push(e)}}var ds=/^:([^:]+):(.+)$/;function ys(t){if(":"===t[0]){var e=t.match(ds);return[e[1],e[2]]}return["",t]}function ms(t){for(var e=0,n=0;n<t.length;n++)e|=t[n].flags;return e}function gs(t,e,n,r,i,o,a,s,u,l,c,h,p,f,d,y,m,g,v,_){switch(t){case 1:return e+vs(n)+r;case 2:return e+vs(n)+r+vs(i)+o;case 3:return e+vs(n)+r+vs(i)+o+vs(a)+s;case 4:return e+vs(n)+r+vs(i)+o+vs(a)+s+vs(u)+l;case 5:return e+vs(n)+r+vs(i)+o+vs(a)+s+vs(u)+l+vs(c)+h;case 6:return e+vs(n)+r+vs(i)+o+vs(a)+s+vs(u)+l+vs(c)+h+vs(p)+f;case 7:return e+vs(n)+r+vs(i)+o+vs(a)+s+vs(u)+l+vs(c)+h+vs(p)+f+vs(d)+y;case 8:return e+vs(n)+r+vs(i)+o+vs(a)+s+vs(u)+l+vs(c)+h+vs(p)+f+vs(d)+y+vs(m)+g;case 9:return e+vs(n)+r+vs(i)+o+vs(a)+s+vs(u)+l+vs(c)+h+vs(p)+f+vs(d)+y+vs(m)+g+vs(v)+_;default:throw new Error("Does not support more than 9 expressions")}}function vs(t){return null!=t?t.toString():""}function _s(t,e,n,r,i,o){t|=1;var a=is(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:o?us(o):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||La},provider:null,text:null,query:null,ngContent:null}}function bs(t,e,n,r,i,o,a,s,u,c,h,p){var f;void 0===a&&(a=[]),c||(c=La);var d=is(n),y=d.matchedQueries,m=d.references,g=d.matchedQueryIds,v=null,_=null;o&&(v=(f=l(ys(o),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),S=C[0],E=C[2],x=l(ys(C[1]),2),T=x[0],P=x[1],k=void 0,A=void 0;switch(15&S){case 4:A=E;break;case 1:case 8:k=E}b[w]={flags:S,ns:T,name:P,nonMinifiedName:P,securityContext:k,suffix:A}}u=u||[];var I=new Array(u.length);for(w=0;w<u.length;w++){var O=l(u[w],2);I[w]={type:0,target:O[0],eventName:O[1],propName:null}}var D=(a=a||[]).map(function(t){var e=l(t,2),n=e[1],r=l(ys(e[0]),2);return[r[0],r[1],n]});return p=function(t){if(t&&t.id===za){var e=null!=t.encapsulation&&t.encapsulation!==Ot.None||t.styles.length||Object.keys(t.data).length;t.id=e?"c"+qa++:Ga}return t&&t.id===Ga&&(t=null),t||null}(p),h&&(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:g,references:m,ngContentIndex:r,childCount:i,bindings:b,bindingFlags:ms(b),outputs:I,element:{ns:v,name:_,attrs:D,template:null,componentProvider:null,componentView:h||null,componentRendererType:p,publicProviders:null,allProviders:null,handleEvent:c||La},provider:null,text:null,query:null,ngContent:null}}function ws(t,e,n){var r,i=n.element,o=t.root.selectorOrNode,a=t.renderer;if(t.parent||!o){r=i.name?a.createElement(i.name,i.ns):a.createComment("");var s=as(t,e,n);s&&a.appendChild(s,r)}else r=a.selectRootElement(o,!!i.componentRendererType&&i.componentRendererType.encapsulation===Ot.ShadowDom);if(i.attrs)for(var u=0;u<i.attrs.length;u++){var c=l(i.attrs[u],3);a.setAttribute(r,c[1],c[2],c[0])}return r}function Cs(t,e,n,r){for(var i=0;i<n.outputs.length;i++){var o=n.outputs[i],a=Ss(t,n.nodeIndex,(h=o.eventName,(c=o.target)?c+":"+h:h)),s=o.target,u=t;"component"===o.target&&(s=null,u=e);var l=u.renderer.listen(s||r,o.eventName,a);t.disposables[n.outputIndex+i]=l}var c,h}function Ss(t,e,n){return function(r){return Xa(t,e,n,r)}}function Es(t,e,n,r){if(!Ka(t,e,n,r))return!1;var i=e.bindings[n],o=Oa(t,e.nodeIndex),a=o.renderElement,s=i.name;switch(15&i.flags){case 1:!function(t,e,n,r,i,o){var a=e.securityContext,s=a?t.root.sanitizer.sanitize(a,o):o;s=null!=s?s.toString():null;var u=t.renderer;null!=o?u.setAttribute(n,i,s,r):u.removeAttribute(n,i,r)}(t,i,a,i.ns,s,r);break;case 2:!function(t,e,n,r){var i=t.renderer;r?i.addClass(e,n):i.removeClass(e,n)}(t,a,s,r);break;case 4:!function(t,e,n,r,i){var o=t.root.sanitizer.sanitize(Qi.STYLE,i);if(null!=o){o=o.toString();var a=e.suffix;null!=a&&(o+=a)}else o=null;var s=t.renderer;null!=o?s.setStyle(n,r,o):s.removeStyle(n,r)}(t,i,a,s,r);break;case 8:!function(t,e,n,r,i){var o=e.securityContext,a=o?t.root.sanitizer.sanitize(o,i):i;t.renderer.setProperty(n,r,a)}(33554432&e.flags&&32&i.flags?o.componentView:t,i,a,s,r)}return!0}var xs=new Object,Ts=Ha(Un),Ps=Ha(Fn),ks=Ha(tr);function As(t,e,n,r){return n=Nn(n),{index:-1,deps:os(r,Ut(e)),flags:t,token:e,value:n}}function Is(t,e,n){void 0===n&&(n=Un.THROW_IF_NOT_FOUND);var r,i,o=Wt(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 Ts:case Ps:case ks: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]=Os(t,u)),l===xs?void 0:l}if((s=xt(e.token))&&(r=t,null!=(i=s).providedIn&&(function(t,e){return t._def.modules.indexOf(i.providedIn)>-1}(r)||"root"===i.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]=xs,t._providers[c]=Os(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{Wt(o)}}function Os(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(Is(t,n[0]));case 2:return new e(Is(t,n[0]),Is(t,n[1]));case 3:return new e(Is(t,n[0]),Is(t,n[1]),Is(t,n[2]));default:for(var i=new Array(r),o=0;o<r;o++)i[o]=Is(t,n[o]);return new(e.bind.apply(e,c([void 0],i)))}}(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(Is(t,n[0]));case 2:return e(Is(t,n[0]),Is(t,n[1]));case 3:return e(Is(t,n[0]),Is(t,n[1]),Is(t,n[2]));default:for(var i=Array(r),o=0;o<r;o++)i[o]=Is(t,n[o]);return e.apply(void 0,c(i))}}(t,e.value,e.deps);break;case 2048:n=Is(t,e.deps[0]);break;case 256:n=e.value}return n===xs||null==n||"object"!=typeof n||131072&e.flags||"function"!=typeof n.ngOnDestroy||(e.flags|=131072),void 0===n?xs:n}function Ds(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,js(n,e),Ma.dirtyParentQueries(r),Ns(r),r}function Rs(t,e,n){var r=e?ts(e,e.def.lastRenderRootNode):t.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);ls(n,2,i,o,void 0)}function Ns(t){ls(t,3,null,null,void 0)}function Ms(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function js(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var Vs=new Object;function Fs(t,e,n,r,i,o){return new Ls(t,e,n,r,i,o)}var Ls=function(t){function e(e,n,r,i,o,a){var s=t.call(this)||this;return s.selector=e,s.componentType=n,s._inputs=i,s._outputs=o,s.ngContentSelectors=a,s.viewDefFactory=r,s}return i(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 i=us(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,a=Ma.createRootView(t,e||[],n,i,r,Vs),s=Da(a,o).instance;return n&&a.renderer.setAttribute(Oa(a,0).renderElement,"ng-version",li.full),new Us(a,new Bs(a),s)},e}(Zr),Us=function(t){function e(e,n,r){var i=t.call(this)||this;return i._view=e,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return i(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new ni(Oa(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Ws(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}(Wr);function Hs(t,e,n){return new zs(t,e,n)}var zs=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 ni(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Ws(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=Ja(t),t=t.parent;return t?new Ws(t,e):new Ws(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Ds(this._data,t);Ma.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new Bs(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;i||t instanceof ei||(i=o.get(tr));var a=t.create(o,r,void 0,i);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,i,o,a=t;return o=(n=this._data).viewContainer._embeddedViews,null==(r=e)&&(r=o.length),(i=a._view).viewContainerParent=this._view,Ms(o,r,i),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,i),Ma.dirtyParentQueries(i),Rs(n,r>0?o[r-1]:null,i),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,i,o,a,s=this._embeddedViews.indexOf(t._view);return i=e,a=(o=(n=this._data).viewContainer._embeddedViews)[r=s],js(o,r),null==i&&(i=o.length),Ms(o,i,a),Ma.dirtyParentQueries(a),Ns(a),Rs(n,i>0?o[i-1]:null,a),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Ds(this._data,t);e&&Ma.destroyView(e)},t.prototype.detach=function(t){var e=Ds(this._data,t);return e?new Bs(e):null},t}();function Gs(t){return new Bs(t)}var Bs=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return ls(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(){Za(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{Ma.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Ma.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)),Ma.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Ns(this._view),Ma.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 qs(t,e){return new Qs(t,e)}var Qs=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return i(e,t),e.prototype.createEmbeddedView=function(t){return new Bs(Ma.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new ni(Oa(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(Bi);function Ks(t,e){return new Ws(t,e)}var Ws=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=Un.THROW_IF_NOT_FOUND),Ma.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Ha(t)},e)},t}();function Zs(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 Ia(t,n.nodeIndex).renderText;if(20240&n.flags)return Da(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function Ys(t){return new Xs(t.renderer)}var Xs=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(ys(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),i=0;i<e.length;i++)this.delegate.insertBefore(n,e[i],r)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},t.prototype.destroyView=function(t,e){for(var n=0;n<e.length;n++)this.delegate.destroyNode(e[n])},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.listenGlobal=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.setElementProperty=function(t,e,n){this.delegate.setProperty(t,e,n)},t.prototype.setElementAttribute=function(t,e,n){var r=l(ys(e),2),i=r[0],o=r[1];null!=n?this.delegate.setAttribute(t,o,n,i):this.delegate.removeAttribute(t,o,i)},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){n?this.delegate.addClass(t,e):this.delegate.removeClass(t,e)},t.prototype.setElementStyle=function(t,e,n){null!=n?this.delegate.setStyle(t,e,n):this.delegate.removeStyle(t,e)},t.prototype.invokeElementMethod=function(t,e,n){t[e].apply(t,n)},t.prototype.setText=function(t,e){this.delegate.setValue(t,e)},t.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},t}();function $s(t,e,n,r){return new Js(t,e,n,r)}var Js=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 i=e.providers[r];4096&i.flags||void 0===n[r]&&(n[r]=Os(t,i))}}(this)}return t.prototype.get=function(t,e,n){void 0===e&&(e=Un.THROW_IF_NOT_FOUND),void 0===n&&(n=Qt.Default);var r=0;return n&Qt.SkipSelf?r|=1:n&Qt.Self&&(r|=4),Is(this,{token:t,tokenKey:Ha(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(Jr)},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+Ut(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,function(t,e){for(var n=t._def,r=new Set,i=0;i<n.providers.length;i++)if(131072&n.providers[i].flags){var o=t._providers[i];if(o&&o!==xs){var a=o.ngOnDestroy;"function"!=typeof a||r.has(o)||(a.apply(o),r.add(o))}}}(this),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t}(),tu=Ha(ii),eu=Ha(si),nu=Ha(ni),ru=Ha(Xo),iu=Ha(Bi),ou=Ha(Jo),au=Ha(Un),su=Ha(Fn);function uu(t,e,n,r,i,o,a,s){var u=[];if(a)for(var c in a){var h=l(a[c],2);u[h[0]]={flags:8,name:c,nonMinifiedName:h[1],ns:null,securityContext:null,suffix:null}}var p=[];if(s)for(var f in s)p.push({type:1,propName:f,target:null,eventName:s[f]});return cu(t,e|=16384,n,r,i,i,o,u,p)}function lu(t,e,n,r,i){return cu(-1,t,e,0,n,r,i)}function cu(t,e,n,r,i,o,a,s,u){var l=is(n),c=l.matchedQueries,h=l.references,p=l.matchedQueryIds;u||(u=[]),s||(s=[]),o=Nn(o);var f=os(a,Ut(i));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:p,references:h,ngContentIndex:-1,childCount:r,bindings:s,bindingFlags:ms(s),outputs:u,element:null,provider:{token:i,value:o,deps:f},text:null,query:null,ngContent:null}}function hu(t,e){return yu(t,e)}function pu(t,e){for(var n=t;n.parent&&!es(n);)n=n.parent;return mu(n.parent,Ja(n),!0,e.provider.value,e.provider.deps)}function fu(t,e){var n=mu(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 i=e.outputs[r],o=n[i.propName];if(!io(o))throw new Error("@Output "+i.propName+" not initialized in '"+n.constructor.name+"'.");var a=o.subscribe(du(t,e.parent.nodeIndex,i.eventName));t.disposables[e.outputIndex+r]=a.unsubscribe.bind(a)}return n}function du(t,e,n){return function(r){return Xa(t,e,n,r)}}function yu(t,e){var n=(8192&e.flags)>0,r=e.provider;switch(201347067&e.flags){case 512:return mu(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,i){var o=i.length;switch(o){case 0:return r();case 1:return r(vu(t,e,n,i[0]));case 2:return r(vu(t,e,n,i[0]),vu(t,e,n,i[1]));case 3:return r(vu(t,e,n,i[0]),vu(t,e,n,i[1]),vu(t,e,n,i[2]));default:for(var a=Array(o),s=0;s<o;s++)a[s]=vu(t,e,n,i[s]);return r.apply(void 0,c(a))}}(t,e.parent,n,r.value,r.deps);case 2048:return vu(t,e.parent,n,r.deps[0]);case 256:return r.value}}function mu(t,e,n,r,i){var o=i.length;switch(o){case 0:return new r;case 1:return new r(vu(t,e,n,i[0]));case 2:return new r(vu(t,e,n,i[0]),vu(t,e,n,i[1]));case 3:return new r(vu(t,e,n,i[0]),vu(t,e,n,i[1]),vu(t,e,n,i[2]));default:for(var a=new Array(o),s=0;s<o;s++)a[s]=vu(t,e,n,i[s]);return new(r.bind.apply(r,c([void 0],a)))}}var gu={};function vu(t,e,n,r,i){if(void 0===i&&(i=Un.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var o=t;2&r.flags&&(i=null);var a=r.tokenKey;a===ou&&(n=!(!e||!e.element.componentView)),e&&1&r.flags&&(n=!1,e=e.parent);for(var s=t;s;){if(e)switch(a){case tu:return Ys(_u(s,e,n));case eu:return _u(s,e,n).renderer;case nu:return new ni(Oa(s,e.nodeIndex).renderElement);case ru:return Oa(s,e.nodeIndex).viewContainer;case iu:if(e.element.template)return Oa(s,e.nodeIndex).template;break;case ou:return Gs(_u(s,e,n));case au:case su:return Ks(s,e);default:var u=(n?e.element.allProviders:e.element.publicProviders)[a];if(u){var l=Da(s,u.nodeIndex);return l||(l={instance:yu(s,u)},s.nodes[u.nodeIndex]=l),l.instance}}n=es(s),e=Ja(s),s=s.parent,4&r.flags&&(s=null)}var c=o.root.injector.get(r.token,gu);return c!==gu||i===gu?c:o.root.ngModule.injector.get(r.token,i)}function _u(t,e,n){var r;if(n)r=Oa(t,e.nodeIndex).componentView;else for(r=t;r.parent&&!es(r);)r=r.parent;return r}function bu(t,e,n,r,i,o){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]=i,524288&n.flags){o=o||{};var s=Pe.unwrap(t.oldValues[n.bindingIndex+r]);o[n.bindings[r].nonMinifiedName]=new ke(s,i,0!=(2&t.state))}return t.oldValues[n.bindingIndex+r]=i,o}function wu(t,e){if(t.def.nodeFlags&e)for(var n=t.def.nodes,r=0,i=0;i<n.length;i++){var o=n[i],a=o.parent;for(!a&&o.flags&e&&Su(t,i,o.flags&e,r++),0==(o.childFlags&e)&&(i+=o.childCount);a&&1&a.flags&&i===a.nodeIndex+a.childCount;)a.directChildFlags&e&&(r=Cu(t,a,e,r)),a=a.parent}}function Cu(t,e,n,r){for(var i=e.nodeIndex+1;i<=e.nodeIndex+e.childCount;i++){var o=t.def.nodes[i];o.flags&n&&Su(t,i,o.flags&n,r++),i+=o.childCount}return r}function Su(t,e,n,r){var i=Da(t,e);if(i){var o=i.instance;o&&(Ma.setCurrentNode(t,e),1048576&n&&Aa(t,512,r)&&o.ngAfterContentInit(),2097152&n&&o.ngAfterContentChecked(),4194304&n&&Aa(t,768,r)&&o.ngAfterViewInit(),8388608&n&&o.ngAfterViewChecked(),131072&n&&o.ngOnDestroy())}}function Eu(t,e,n){var r=[];for(var i in n)r.push({propName:i,bindingType:n[i]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:e,filterId:rs(e),bindings:r},ngContent:null}}function xu(t){for(var e=t.def.nodeMatchedQueries;t.parent&&ns(t);){var n=t.parentNodeDef;t=t.parent;for(var r=n.nodeIndex+n.childCount,i=0;i<=r;i++)67108864&(o=t.def.nodes[i]).flags&&536870912&o.flags&&(o.query.filterId&e)===o.query.filterId&&Na(t,i).setDirty(),!(1&o.flags&&i+o.childCount<n.nodeIndex)&&67108864&o.childFlags&&536870912&o.childFlags||(i+=o.childCount)}if(134217728&t.def.nodeFlags)for(i=0;i<t.def.nodes.length;i++){var o;134217728&(o=t.def.nodes[i]).flags&&536870912&o.flags&&Na(t,i).setDirty(),i+=o.childCount}}function Tu(t,e){var n=Na(t,e.nodeIndex);if(n.dirty){var r,i=void 0;if(67108864&e.flags){var o=e.parent.parent;i=Pu(t,o.nodeIndex,o.nodeIndex+o.childCount,e.query,[]),r=Da(t,e.parent.nodeIndex).instance}else 134217728&e.flags&&(i=Pu(t,0,t.def.nodes.length-1,e.query,[]),r=t.component);n.reset(i);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 Pu(t,e,n,r,i){for(var o=e;o<=n;o++){var a=t.def.nodes[o],s=a.matchedQueries[r.id];if(null!=s&&i.push(ku(t,a,s)),1&a.flags&&a.element.template&&(a.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var u=Oa(t,o);if((a.childMatchedQueries&r.filterId)===r.filterId&&(Pu(t,o+1,o+a.childCount,r,i),o+=a.childCount),16777216&a.flags)for(var l=u.viewContainer._embeddedViews,c=0;c<l.length;c++){var h=l[c],p=$a(h);p&&p===u&&Pu(h,0,h.def.nodes.length-1,r,i)}var f=u.template._projectedViews;if(f)for(c=0;c<f.length;c++){var d=f[c];Pu(d,0,d.def.nodes.length-1,r,i)}}(a.childMatchedQueries&r.filterId)!==r.filterId&&(o+=a.childCount)}return i}function ku(t,e,n){if(null!=n)switch(n){case 1:return Oa(t,e.nodeIndex).renderElement;case 0:return new ni(Oa(t,e.nodeIndex).renderElement);case 2:return Oa(t,e.nodeIndex).template;case 3:return Oa(t,e.nodeIndex).viewContainer;case 4:return Da(t,e.nodeIndex).instance}}function Au(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 Iu(t,e,n){var r=as(t,e,n);r&&hs(t,n.ngContent.index,1,r,null,void 0)}function Ou(t,e){for(var n=Object.keys(e),r=n.length,i=new Array(r),o=0;o<r;o++){var a=n[o];i[e[a]]=a}return function(t,e,n){for(var r=new Array(n.length),i=0;i<n.length;i++){var o=n[i];r[i]={flags:8,name:o,ns:null,nonMinifiedName:o,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:64,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:ms(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}(0,t,i)}function Du(t,e,n){for(var r=new Array(n.length-1),i=1;i<n.length;i++)r[i-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[i]};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 Ru(t,e,n){var r,i=t.renderer;r=i.createText(n.text.prefix);var o=as(t,e,n);return o&&i.appendChild(o,r),{renderText:r}}function Nu(t,e){return(null!=t?t.toString():"")+e.suffix}function Mu(t,e,n,r){for(var i=0,o=0,a=0,s=0,u=0,l=null,c=null,h=!1,p=!1,f=null,d=0;d<e.length;d++){var y=e[d];if(y.nodeIndex=d,y.parent=l,y.bindingIndex=i,y.outputIndex=o,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,h=!1,p=!1,y.element.template&&(u|=y.element.template.nodeMatchedQueries)}if(Vu(l,y,e.length),i+=y.bindings.length,o+=y.outputs.length,!c&&3&y.flags&&(f=y),20224&y.flags){h||(h=!0,l.element.publicProviders=Object.create(l.element.publicProviders),l.element.allProviders=l.element.publicProviders);var g=0!=(32768&y.flags);0==(8192&y.flags)||g?l.element.publicProviders[Ha(y.provider.token)]=y:(p||(p=!0,l.element.allProviders=Object.create(l.element.publicProviders)),l.element.allProviders[Ha(y.provider.token)]=y),g&&(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,ju(y)||(c=y);else for(;l&&d===l.nodeIndex+l.childCount;){var v=l.parent;v&&(v.childFlags|=l.childFlags,v.childMatchedQueries|=l.childMatchedQueries),c=(l=v)&&ju(l)?l.renderParent:l}}return{factory:null,nodeFlags:a,rootNodeFlags:s,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||La,updateRenderer:r||La,handleEvent:function(t,n,r,i){return e[n].element.handleEvent(t,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:f}}function ju(t){return 0!=(1&t.flags)&&null===t.element.name}function Vu(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 i=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=i&&e.nodeIndex+e.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function Fu(t,e,n,r){var i=Hu(t.root,t.renderer,t,e,n);return zu(i,t.component,r),Gu(i),i}function Lu(t,e,n){var r=Hu(t,t.renderer,null,null,e);return zu(r,n,n),Gu(r),r}function Uu(t,e,n,r){var i,o=e.element.componentRendererType;return i=o?t.root.rendererFactory.createRenderer(r,o):t.root.renderer,Hu(t.root,i,t,e.element.componentProvider,n)}function Hu(t,e,n,r,i){var o=new Array(i.nodes.length),a=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:a,initIndex:-1}}function zu(t,e,n){t.component=e,t.context=n}function Gu(t){var e;es(t)&&(e=Oa(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,i=0;i<n.nodes.length;i++){var o=n.nodes[i];Ma.setCurrentNode(t,i);var a=void 0;switch(201347067&o.flags){case 1:var s=ws(t,e,o),u=void 0;if(33554432&o.flags){var l=us(o.element.componentView);u=Ma.createComponentView(t,o,l,s)}Cs(t,u,o,s),a={renderElement:s,componentView:u,viewContainer:null,template:o.element.template?qs(t,o):void 0},16777216&o.flags&&(a.viewContainer=Hs(t,o,a));break;case 2:a=Ru(t,e,o);break;case 512:case 1024:case 2048:case 256:(a=r[i])||4096&o.flags||(a={instance:hu(t,o)});break;case 16:a={instance:pu(t,o)};break;case 16384:(a=r[i])||(a={instance:fu(t,o)}),32768&o.flags&&zu(Oa(t,o.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 qo;break;case 8:Iu(t,e,o),a=void 0}r[i]=a}$u(t,Xu.CreateViewNodes),nl(t,201326592,268435456,0)}function Bu(t){Ku(t),Ma.updateDirectives(t,1),Ju(t,Xu.CheckNoChanges),Ma.updateRenderer(t,1),$u(t,Xu.CheckNoChanges),t.state&=-97}function qu(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,ka(t,0,256),Ku(t),Ma.updateDirectives(t,0),Ju(t,Xu.CheckAndUpdate),nl(t,67108864,536870912,0);var e=ka(t,256,512);wu(t,2097152|(e?1048576:0)),Ma.updateRenderer(t,0),$u(t,Xu.CheckAndUpdate),nl(t,134217728,536870912,0),wu(t,8388608|((e=ka(t,512,768))?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97,ka(t,768,1024)}function Qu(t,e,n,r,i,o,a,s,u,l,h,p,f){return 0===n?function(t,e,n,r,i,o,a,s,u,l,c,h){switch(201347067&e.flags){case 1:return function(t,e,n,r,i,o,a,s,u,l,c,h){var p=e.bindings.length,f=!1;return p>0&&Es(t,e,0,n)&&(f=!0),p>1&&Es(t,e,1,r)&&(f=!0),p>2&&Es(t,e,2,i)&&(f=!0),p>3&&Es(t,e,3,o)&&(f=!0),p>4&&Es(t,e,4,a)&&(f=!0),p>5&&Es(t,e,5,s)&&(f=!0),p>6&&Es(t,e,6,u)&&(f=!0),p>7&&Es(t,e,7,l)&&(f=!0),p>8&&Es(t,e,8,c)&&(f=!0),p>9&&Es(t,e,9,h)&&(f=!0),f}(t,e,n,r,i,o,a,s,u,l,c,h);case 2:return function(t,e,n,r,i,o,a,s,u,l,c,h){var p=!1,f=e.bindings,d=f.length;if(d>0&&Ka(t,e,0,n)&&(p=!0),d>1&&Ka(t,e,1,r)&&(p=!0),d>2&&Ka(t,e,2,i)&&(p=!0),d>3&&Ka(t,e,3,o)&&(p=!0),d>4&&Ka(t,e,4,a)&&(p=!0),d>5&&Ka(t,e,5,s)&&(p=!0),d>6&&Ka(t,e,6,u)&&(p=!0),d>7&&Ka(t,e,7,l)&&(p=!0),d>8&&Ka(t,e,8,c)&&(p=!0),d>9&&Ka(t,e,9,h)&&(p=!0),p){var y=e.text.prefix;d>0&&(y+=Nu(n,f[0])),d>1&&(y+=Nu(r,f[1])),d>2&&(y+=Nu(i,f[2])),d>3&&(y+=Nu(o,f[3])),d>4&&(y+=Nu(a,f[4])),d>5&&(y+=Nu(s,f[5])),d>6&&(y+=Nu(u,f[6])),d>7&&(y+=Nu(l,f[7])),d>8&&(y+=Nu(c,f[8])),d>9&&(y+=Nu(h,f[9]));var m=Ia(t,e.nodeIndex).renderText;t.renderer.setValue(m,y)}return p}(t,e,n,r,i,o,a,s,u,l,c,h);case 16384:return function(t,e,n,r,i,o,a,s,u,l,c,h){var p=Da(t,e.nodeIndex),f=p.instance,d=!1,y=void 0,m=e.bindings.length;return m>0&&Qa(t,e,0,n)&&(d=!0,y=bu(t,p,e,0,n,y)),m>1&&Qa(t,e,1,r)&&(d=!0,y=bu(t,p,e,1,r,y)),m>2&&Qa(t,e,2,i)&&(d=!0,y=bu(t,p,e,2,i,y)),m>3&&Qa(t,e,3,o)&&(d=!0,y=bu(t,p,e,3,o,y)),m>4&&Qa(t,e,4,a)&&(d=!0,y=bu(t,p,e,4,a,y)),m>5&&Qa(t,e,5,s)&&(d=!0,y=bu(t,p,e,5,s,y)),m>6&&Qa(t,e,6,u)&&(d=!0,y=bu(t,p,e,6,u,y)),m>7&&Qa(t,e,7,l)&&(d=!0,y=bu(t,p,e,7,l,y)),m>8&&Qa(t,e,8,c)&&(d=!0,y=bu(t,p,e,8,c,y)),m>9&&Qa(t,e,9,h)&&(d=!0,y=bu(t,p,e,9,h,y)),y&&f.ngOnChanges(y),65536&e.flags&&Aa(t,256,e.nodeIndex)&&f.ngOnInit(),262144&e.flags&&f.ngDoCheck(),d}(t,e,n,r,i,o,a,s,u,l,c,h);case 32:case 64:case 128:return function(t,e,n,r,i,o,a,s,u,l,c,h){var p=e.bindings,f=!1,d=p.length;if(d>0&&Ka(t,e,0,n)&&(f=!0),d>1&&Ka(t,e,1,r)&&(f=!0),d>2&&Ka(t,e,2,i)&&(f=!0),d>3&&Ka(t,e,3,o)&&(f=!0),d>4&&Ka(t,e,4,a)&&(f=!0),d>5&&Ka(t,e,5,s)&&(f=!0),d>6&&Ka(t,e,6,u)&&(f=!0),d>7&&Ka(t,e,7,l)&&(f=!0),d>8&&Ka(t,e,8,c)&&(f=!0),d>9&&Ka(t,e,9,h)&&(f=!0),f){var y=Ra(t,e.nodeIndex),m=void 0;switch(201347067&e.flags){case 32:m=new Array(p.length),d>0&&(m[0]=n),d>1&&(m[1]=r),d>2&&(m[2]=i),d>3&&(m[3]=o),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]=h);break;case 64:m={},d>0&&(m[p[0].name]=n),d>1&&(m[p[1].name]=r),d>2&&(m[p[2].name]=i),d>3&&(m[p[3].name]=o),d>4&&(m[p[4].name]=a),d>5&&(m[p[5].name]=s),d>6&&(m[p[6].name]=u),d>7&&(m[p[7].name]=l),d>8&&(m[p[8].name]=c),d>9&&(m[p[9].name]=h);break;case 128:var g=n;switch(d){case 1:m=g.transform(n);break;case 2:m=g.transform(r);break;case 3:m=g.transform(r,i);break;case 4:m=g.transform(r,i,o);break;case 5:m=g.transform(r,i,o,a);break;case 6:m=g.transform(r,i,o,a,s);break;case 7:m=g.transform(r,i,o,a,s,u);break;case 8:m=g.transform(r,i,o,a,s,u,l);break;case 9:m=g.transform(r,i,o,a,s,u,l,c);break;case 10:m=g.transform(r,i,o,a,s,u,l,c,h)}}y.value=m}return f}(t,e,n,r,i,o,a,s,u,l,c,h);default:throw"unreachable"}}(t,e,r,i,o,a,s,u,l,h,p,f):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,i=0;i<n.length;i++)Es(t,e,i,n[i])&&(r=!0);return r}(t,e,n);case 2:return function(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)Ka(t,e,o,n[o])&&(i=!0);if(i){var a="";for(o=0;o<n.length;o++)a+=Nu(n[o],r[o]);a=e.text.prefix+a;var s=Ia(t,e.nodeIndex).renderText;t.renderer.setValue(s,a)}return i}(t,e,n);case 16384:return function(t,e,n){for(var r=Da(t,e.nodeIndex),i=r.instance,o=!1,a=void 0,s=0;s<n.length;s++)Qa(t,e,s,n[s])&&(o=!0,a=bu(t,r,e,s,n[s],a));return a&&i.ngOnChanges(a),65536&e.flags&&Aa(t,256,e.nodeIndex)&&i.ngOnInit(),262144&e.flags&&i.ngDoCheck(),o}(t,e,n);case 32:case 64:case 128:return function(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)Ka(t,e,o,n[o])&&(i=!0);if(i){var a=Ra(t,e.nodeIndex),s=void 0;switch(201347067&e.flags){case 32:s=n;break;case 64:for(s={},o=0;o<n.length;o++)s[r[o].name]=n[o];break;case 128:var u=n[0],l=n.slice(1);s=u.transform.apply(u,c(l))}a.value=s}return i}(t,e,n);default:throw"unreachable"}}(t,e,r)}function Ku(t){var e=t.def;if(4&e.nodeFlags)for(var n=0;n<e.nodes.length;n++){var r=e.nodes[n];if(4&r.flags){var i=Oa(t,n).template._projectedViews;if(i)for(var o=0;o<i.length;o++){var a=i[o];a.state|=32,Ya(a,t)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function Wu(t,e,n,r,i,o,a,s,u,l,c,h,p){return 0===n?function(t,e,n,r,i,o,a,s,u,l,c,h){var p=e.bindings.length;p>0&&Wa(t,e,0,n),p>1&&Wa(t,e,1,r),p>2&&Wa(t,e,2,i),p>3&&Wa(t,e,3,o),p>4&&Wa(t,e,4,a),p>5&&Wa(t,e,5,s),p>6&&Wa(t,e,6,u),p>7&&Wa(t,e,7,l),p>8&&Wa(t,e,8,c),p>9&&Wa(t,e,9,h)}(t,e,r,i,o,a,s,u,l,c,h,p):function(t,e,n){for(var r=0;r<n.length;r++)Wa(t,e,r,n[r])}(t,e,r),!1}function Zu(t,e){if(Na(t,e.nodeIndex).dirty)throw ja(Ma.createDebugContext(t,e.nodeIndex),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!=(1&t.state))}function Yu(t){if(!(128&t.state)){if(Ju(t,Xu.Destroy),$u(t,Xu.Destroy),wu(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&&(js(n,n.indexOf(t)),Ma.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(Ia(t,n).renderText):(67108864&r.flags||134217728&r.flags)&&Na(t,n).destroy()}}(t),es(t)&&t.renderer.destroy(),t.state|=128}}var Xu=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 $u(t,e){var n=t.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];33554432&i.flags?tl(Oa(t,r).componentView,e):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function Ju(t,e){var n=t.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];if(16777216&i.flags)for(var o=Oa(t,r).viewContainer._embeddedViews,a=0;a<o.length;a++)tl(o[a],e);else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function tl(t,e){var n=t.state;switch(e){case Xu.CheckNoChanges:0==(128&n)&&(12==(12&n)?Bu(t):64&n&&el(t,Xu.CheckNoChangesProjectedViews));break;case Xu.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Bu(t):64&n&&el(t,e));break;case Xu.CheckAndUpdate:0==(128&n)&&(12==(12&n)?qu(t):64&n&&el(t,Xu.CheckAndUpdateProjectedViews));break;case Xu.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?qu(t):64&n&&el(t,e));break;case Xu.Destroy:Yu(t);break;case Xu.CreateViewNodes:Gu(t)}}function el(t,e){Ju(t,e),$u(t,e)}function nl(t,e,n,r){if(t.def.nodeFlags&e&&t.def.nodeFlags&n)for(var i=t.def.nodes.length,o=0;o<i;o++){var a=t.def.nodes[o];if(a.flags&e&&a.flags&n)switch(Ma.setCurrentNode(t,a.nodeIndex),r){case 0:Tu(t,a);break;case 1:Zu(t,a)}a.childFlags&e&&a.childFlags&n||(o+=a.childCount)}}var rl=!1;function il(t,e,n,r,i,o){var a=i.injector.get(oi);return Lu(al(t,i,a,e,n),r,o)}function ol(t,e,n,r,i,o){var a=i.injector.get(oi),s=al(t,i,new Ul(a),e,n),u=ml(r);return Fl(xl.create,Lu,null,[s,u,o])}function al(t,e,n,r,i){var o=e.injector.get(Ki),a=e.injector.get(no),s=n.createRenderer(null,null);return{ngModule:e,injector:t,projectableNodes:r,selectorOrNode:i,sanitizer:o,rendererFactory:n,renderer:s,errorHandler:a}}function sl(t,e,n,r){var i=ml(n);return Fl(xl.create,Fu,null,[t,e,i,r])}function ul(t,e,n,r){return n=pl.get(e.element.componentProvider.provider.token)||ml(n),Fl(xl.create,Uu,null,[t,e,n,r])}function ll(t,e,n,r){return $s(t,e,n,function(t){var e=function(t){var e=!1,n=!1;return 0===cl.size?{hasOverrides:e,hasDeprecatedOverrides:n}:(t.providers.forEach(function(t){var r=cl.get(t.token);3840&t.flags&&r&&(e=!0,n=n||r.deprecatedBehavior)}),t.modules.forEach(function(t){hl.forEach(function(r,i){xt(i).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 i=cl.get(r.token);i&&(r.flags=-3841&r.flags|i.flags,r.deps=os(i.deps),r.value=i.value)}if(hl.size>0){var o=new Set(t.modules);hl.forEach(function(e,r){if(o.has(xt(r).providedIn)){var i={token:r,flags:e.flags|(n?4096:0),deps:os(e.deps),value:e.value,index:t.providers.length};t.providers.push(i),t.providersByKey[Ha(r)]=i}})}}(t=t.factory(function(){return La})),t):t}(r))}var cl=new Map,hl=new Map,pl=new Map;function fl(t){var e;cl.set(t.token,t),"function"==typeof t.token&&(e=xt(t.token))&&"function"==typeof e.providedIn&&hl.set(t.token,t)}function dl(t,e){var n=us(e.viewDefFactory),r=us(n.nodes[0].element.componentView);pl.set(t,r)}function yl(){cl.clear(),hl.clear(),pl.clear()}function ml(t){if(0===cl.size)return t;var e=function(t){for(var e=[],n=null,r=0;r<t.nodes.length;r++){var i=t.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&cl.has(i.provider.token)&&(e.push(n.nodeIndex),n=null)}return e}(t);if(0===e.length)return t;t=t.factory(function(){return La});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 i=r.provider,o=cl.get(i.token);o&&(r.flags=-3841&r.flags|o.flags,i.deps=os(o.deps),i.value=o.value)}}}}function gl(t,e,n,r,i,o,a,s,u,l,c,h,p){var f=t.def.nodes[e];return Qu(t,f,n,r,i,o,a,s,u,l,c,h,p),224&f.flags?Ra(t,e).value:void 0}function vl(t,e,n,r,i,o,a,s,u,l,c,h,p){var f=t.def.nodes[e];return Wu(t,f,n,r,i,o,a,s,u,l,c,h,p),224&f.flags?Ra(t,e).value:void 0}function _l(t){return Fl(xl.detectChanges,qu,null,[t])}function bl(t){return Fl(xl.checkNoChanges,Bu,null,[t])}function wl(t){return Fl(xl.destroy,Yu,null,[t])}var Cl,Sl,El,xl=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 Tl(t,e){Sl=t,El=e}function Pl(t,e,n,r){return Tl(t,e),Fl(xl.handleEvent,t.def.handleEvent,null,[t,e,n,r])}function kl(t,e){if(128&t.state)throw Fa(xl[Cl]);return Tl(t,Nl(t,0)),t.def.updateDirectives(function(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var a=t.def.nodes[n];return 0===e?Il(t,a,r,i):Ol(t,a,r,i),16384&a.flags&&Tl(t,Nl(t,n)),224&a.flags?Ra(t,a.nodeIndex).value:void 0},t)}function Al(t,e){if(128&t.state)throw Fa(xl[Cl]);return Tl(t,Ml(t,0)),t.def.updateRenderer(function(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var a=t.def.nodes[n];return 0===e?Il(t,a,r,i):Ol(t,a,r,i),3&a.flags&&Tl(t,Ml(t,n)),224&a.flags?Ra(t,a.nodeIndex).value:void 0},t)}function Il(t,e,n,r){if(Qu.apply(void 0,c([t,e,n],r))){var i=1===n?r[0]:r;if(16384&e.flags){for(var o={},a=0;a<e.bindings.length;a++){var s=e.bindings[a],u=i[a];8&s.flags&&(o[(f=s.nonMinifiedName,d=void 0,d=f.replace(/[$@]/g,"_"),"ng-reflect-"+(f=d.replace(Dl,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()})))]=Rl(u))}var l=e.parent,h=Oa(t,l.nodeIndex).renderElement;if(l.element.name)for(var p in o)null!=(u=o[p])?t.renderer.setAttribute(h,p,u):t.renderer.removeAttribute(h,p);else t.renderer.setValue(h,"bindings="+JSON.stringify(o,null,2))}}var f,d}function Ol(t,e,n,r){Wu.apply(void 0,c([t,e,n],r))}var Dl=/([A-Z])/g;function Rl(t){try{return null!=t?t.toString().slice(0,30):t}catch(e){return"[ERROR] Exception while trying to serialize the value"}}function Nl(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 Ml(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 jl=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=Ja(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 Ks(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){Vl(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&&Vl(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&&!es(t);)t=t.parent;return t.parent?Oa(t.parent,Ja(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?ts(this.view,this.nodeDef):ts(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];2&this.nodeDef.flags?(e=this.view.def,n=this.nodeDef.nodeIndex):(e=this.elView.def,n=this.elDef.nodeIndex);var o=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===o?(e=t.error).bind.apply(e,c([t],r)):La}),a<o&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,c(r)))},t}();function Vl(t,e,n){for(var r in e.references)n[r]=ku(t,e,e.references[r])}function Fl(t,e,n,r){var i=Cl,o=Sl,a=El;try{Cl=t;var s=e.apply(n,r);return Sl=o,El=a,Cl=i,s}catch(u){if(Ji(u)||!Sl)throw u;throw function(t,e){return t instanceof Error||(t=new Error(t.toString())),Va(t,e),t}(u,Ll())}}function Ll(){return Sl?new jl(Sl,El):null}var Ul=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new Hl(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}(),Hl=function(){function t(t){this.delegate=t,this.debugContextFactory=Ll,this.data=this.delegate.data}return t.prototype.createDebugContext=function(t){return this.debugContextFactory(t)},t.prototype.destroyNode=function(t){!function(t){ia.delete(t.nativeNode)}(oa(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 i=new ra(n,null,r);i.name=t,aa(i)}return n},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),n=this.createDebugContext(e);return n&&aa(new na(e,null,n)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),n=this.createDebugContext(e);return n&&aa(new na(e,null,n)),e},t.prototype.appendChild=function(t,e){var n=oa(t),r=oa(e);n&&r&&n instanceof ra&&n.addChild(r),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,n){var r=oa(t),i=oa(e),o=oa(n);r&&i&&r instanceof ra&&r.insertBefore(o,i),this.delegate.insertBefore(t,e,n)},t.prototype.removeChild=function(t,e){var n=oa(t),r=oa(e);n&&r&&n instanceof ra&&n.removeChild(r),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t,e){var n=this.delegate.selectRootElement(t,e),r=Ll()||null;return r&&aa(new ra(n,null,r)),n},t.prototype.setAttribute=function(t,e,n,r){var i=oa(t);i&&i instanceof ra&&(i.attributes[r?r+":"+e:e]=n),this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){var r=oa(t);r&&r instanceof ra&&(r.attributes[n?n+":"+e:e]=null),this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){var n=oa(t);n&&n instanceof ra&&(n.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var n=oa(t);n&&n instanceof ra&&(n.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){var i=oa(t);i&&i instanceof ra&&(i.styles[e]=n),this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){var r=oa(t);r&&r instanceof ra&&(r.styles[e]=null),this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){var r=oa(t);r&&r instanceof ra&&(r.properties[e]=n),this.delegate.setProperty(t,e,n)},t.prototype.listen=function(t,e,n){if("string"!=typeof t){var r=oa(t);r&&r.listeners.push(new ea(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 zl(t,e,n){return new Gl(t,e,n)}var Gl=function(t){function e(e,n,r){var i=t.call(this)||this;return i.moduleType=e,i._bootstrapComponents=n,i._ngModuleDefFactory=r,i}return i(e,t),e.prototype.create=function(t){!function(){if(!rl){rl=!0;var t=bi()?{setCurrentNode:Tl,createRootView:ol,createEmbeddedView:sl,createComponentView:ul,createNgModuleRef:ll,overrideProvider:fl,overrideComponentView:dl,clearOverrides:yl,checkAndUpdateView:_l,checkNoChangesView:bl,destroyView:wl,createDebugContext:function(t,e){return new jl(t,e)},handleEvent:Pl,updateDirectives:kl,updateRenderer:Al}:{setCurrentNode:function(){},createRootView:il,createEmbeddedView:Fu,createComponentView:Uu,createNgModuleRef:$s,overrideProvider:La,overrideComponentView:La,clearOverrides:La,checkAndUpdateView:qu,checkNoChangesView:Bu,destroyView:Yu,createDebugContext:function(t,e){return new jl(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?gl:vl,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?gl:vl,t)}};Ma.setCurrentNode=t.setCurrentNode,Ma.createRootView=t.createRootView,Ma.createEmbeddedView=t.createEmbeddedView,Ma.createComponentView=t.createComponentView,Ma.createNgModuleRef=t.createNgModuleRef,Ma.overrideProvider=t.overrideProvider,Ma.overrideComponentView=t.overrideComponentView,Ma.clearOverrides=t.clearOverrides,Ma.checkAndUpdateView=t.checkAndUpdateView,Ma.checkNoChangesView=t.checkNoChangesView,Ma.destroyView=t.destroyView,Ma.resolveDep=vu,Ma.createDebugContext=t.createDebugContext,Ma.handleEvent=t.handleEvent,Ma.updateDirectives=t.updateDirectives,Ma.updateRenderer=t.updateRenderer,Ma.dirtyParentQueries=xu}}();var e=function(t){var e=Array.from(t.providers),n=Array.from(t.modules),r={};for(var i in t.providersByKey)r[i]=t.providersByKey[i];return{factory:t.factory,isRoot:t.isRoot,providers:e,modules:n,providersByKey:r}}(us(this._ngModuleDefFactory));return Ma.createNgModuleRef(this.moduleType,t||Un.NULL,this._bootstrapComponents,e)},e}(er),Bl=function(){return function(){}}(),ql=function(){function t(){}return t.prototype.runPart1=function(t){var e,n;this.sPartOneAnswer="",this.aCounts=Array(100).fill(0),this.aLines=t.split("\n");for(var r=0;r<this.aLines.length;r++)if(this.aLines[r].length>0){e=new Ql(this.aLines[r]);for(var i=2;i<=e.getMax();i++)e.getCount(i)>0&&(this.aCounts[i]+=1)}n=this.aCounts.filter(function(t){return 0!==t});var o=1;for(r=0;r<n.length;r++)o*=n[r];this.sPartOneAnswer=String(o)},t.prototype.runPart2=function(t){var e;this.sPartTwoAnswer="",this.aLines=t.split("\n"),e=0;for(var n=0;n<this.aLines.length;n++)for(var r=this.aLines[n],i=n+1;i<this.aLines.length;i++){var o=this.aLines[i],a=this.retriveMutualPos(r.split(""),o.split(""));a.length>e&&(e=a.length,this.sPartTwoAnswer=a.join(""))}},t.prototype.retriveMutualPos=function(t,e){for(var n="",r=0;r<t.length;r++)t[r]===e[r]&&(n+=t[r]);return n.split("")},t.prototype.ngOnInit=function(){},t}(),Ql=function(){function t(t){this.sBoxId=t,this.aChars=[],this.aCount=[],this.count()}return t.prototype.show=function(){return this.sBoxId},t.prototype.getMax=function(){return Math.max.apply(null,this.aCount)},t.prototype.getCount=function(t){return this.aCount.filter(function(e){return e===t}).length},t.prototype.count=function(){for(var t,e,n=0;n<this.sBoxId.length;n++)e=String(this.sBoxId[n]),(t=Number(this.aChars.indexOf(e)))>-1?this.aCount[t]+=1:(this.aChars.push(e),this.aCount.push(1))},t}(),Kl=function(){function t(){}return t.prototype.runPart1=function(t){this.sPartOneAnswer="",this.sAdventDayDataShow="";var e=Number(t);for(this.initalReciept();this.aReciept.length<e+10;)this.putSuffixToRecipe(),this.moveElfs();this.sPartOneAnswer=this.aReciept.slice(e,e+10).join("")},t.prototype.runPart2=function(t){this.sPartTwoAnswer="";var e=t.trim();this.aWanted=e.split("").map(Number),this.nWantedLength=this.aWanted.length,this.nLastIndexChecked=0,this.initalReciept(),this.sActualReciept=this.aReciept.join("");for(var n=performance.now();-1===this.getWantedIndex();)this.putSuffixToRecipe(),this.moveElfs();var r=performance.now();console.log("Length of Chocolate Charts finally is "+this.aReciept.length+" numbers"),console.log("Found result in "+Math.trunc(r-n)+" milliseconds."),this.sPartTwoAnswer=String(this.nLastIndexChecked)},t.prototype.getWantedIndex=function(){if(void 0===this.aReciept[this.nLastIndexChecked+this.nWantedLength-1])return-1;for(var t=0;t<this.nWantedLength&&this.aWanted[t]===this.aReciept[this.nLastIndexChecked+t];t++)if(t===this.nWantedLength-1)return this.nLastIndexChecked;return this.nLastIndexChecked+=1,-1},t.prototype.initalReciept=function(){this.aReciept=[3,7],this.nPosElfFirst=0,this.nPosElfSecond=1},t.prototype.putSuffixToRecipe=function(){var t=this.aReciept[this.nPosElfFirst]+this.aReciept[this.nPosElfSecond];t>9?(this.aReciept.push(1),this.aReciept.push(t%10)):this.aReciept.push(t)},t.prototype.moveElfs=function(){this.nPosElfFirst+=this.aReciept[this.nPosElfFirst]+1,this.nPosElfFirst%=this.aReciept.length,this.nPosElfSecond+=this.aReciept[this.nPosElfSecond]+1,this.nPosElfSecond%=this.aReciept.length},t.prototype.getHtmlOfRecipe=function(){for(var t="<br />",e=0;e<this.aReciept.length;e++)t+=e===this.nPosElfFirst?" (":e===this.nPosElfSecond?" [":"  ",t+=this.aReciept[e];return t},t}(),Wl=function(){function t(){this.ainRules={},this.ainGenerations=[]}return t.prototype.runPart1=function(t){this.sAdventDayDataShow="",this.ainGenerations=[],this.sPartOneAnswer=0,this.iMaxGeneration=20,this.importData(t);for(var e=1;e<=this.iMaxGeneration;e++)this.createGeneration(e);this.sPartOneAnswer=this.getSumOfPlansPosition(this.iMaxGeneration),this.sAdventDayDataShow=this.returnHtmlFromGenerations()},t.prototype.runPart2=function(t){this.sAdventDayDataShow="",this.ainGenerations=[],this.sPartTwoAnswer=0,this.iMaxGeneration=999,this.importData(t);for(var e=1;e<=this.iMaxGeneration;e++)this.createGeneration(e),e>950&&e<980&&(this.sAdventDayDataShow+=e+": "+this.getSumOfPlansPosition(e)+" (+ "+(this.getSumOfPlansPosition(e)-this.getSumOfPlansPosition(e-1))+") <br />");this.sPartTwoAnswer=this.getSumOfPlansPosition(999)+(5e10-999)*(this.getSumOfPlansPosition(999)-this.getSumOfPlansPosition(998))},t.prototype.getSumOfPlansPosition=function(t){for(var e=0,n=this.ainGenerations[t].slice(0),r=0;r>-1;)(r=n.indexOf("#"))>-1&&(e+=r-2*this.iMaxGeneration,n[r]=".");return e},t.prototype.createGeneration=function(t){var e=this.ainGenerations[t-1].slice(0),n=this.ainGenerations[t-1].slice(0);this.ainGenerations[t]=".".repeat(e.length).split("");for(var r=0;r>-1;){for(var i=(r=n.indexOf("#"))-4;r>-1&&i<r+4;i++){var o=e[i]+e[i+1]+e[i+2]+e[i+3]+e[i+4];void 0!==this.ainRules[o]&&(this.ainGenerations[t][i+2]=this.ainRules[o])}n[r]="."}},t.prototype.importData=function(t){var e,n=t.split("\n");e=n[0].split("initial state: ");var r=".".repeat(2*this.iMaxGeneration);this.ainGenerations[0]=(r+e[1]+r).split("");for(var i=1;i<n.length;i++)e=[],n[i].length>7&&(e=n[i].split(" => "),this.ainRules[e[0]]=e[1])},t.prototype.returnHtmlFromGenerations=function(){for(var t="",e=0;e<this.ainGenerations.length;e++){var n=String(e);t+=n+" ".repeat(3-n.length)+this.ainGenerations[e].join("")+"<br />"}return t},t.prototype.getNumberOfPlant=function(){return this.ainGenerations.concat.apply([],this.ainGenerations).filter(function(t){return"#"===t}).length},t.prototype.ngOnInit=function(){},t}(),Zl=function(){function t(){this.aPointRules=[],this.aGird=[]}return t.prototype.runPart1=function(t){this.aGird=[],this.sPartOneAnswer=0,this.importData(t);for(var e=0;!(this.issetVerticalLine()||(this.fillGirdOfSteep(++e),e>978e3)););this.sPartOneAnswer=e,this.sAdventDayDataShow=this.girdToHtml()},t.prototype.issetVerticalLine=function(t){if(void 0===t&&(t=8),this.iGridYEnd-this.iGridYStart>20)return!1;for(var e,n=this.iGridXStart;n<=this.iGridXEnd;n++){e=0;for(var r=this.iGridYStart;r<=this.iGridYEnd;r++)if(void 0===this.aGird[r]?e=0:void 0===this.aGird[r][n]?e=0:e++,e>=t)return!0}return!1},t.prototype.importData=function(t){for(var e=t.split("\n"),n=0;n<e.length;n++){var r=e[n].match(/\-?\d+/g);null!==r&&this.aPointRules.push({xst:Number(r[0]),yst:Number(r[1]),xve:Number(r[2]),yve:Number(r[3])})}},t.prototype.fillGirdOfSteep=function(t){this.aGird=[];for(var e=[],n=[],r=0,i=this.aPointRules;r<i.length;r++){var o=i[r],a=o.xst+o.xve*t,s=o.yst+o.yve*t;e.push(a),n.push(s),void 0===this.aGird[s]&&(this.aGird[s]=[]),this.aGird[s][a]=1}this.iGridXStart=Math.min.apply(null,e),this.iGridYStart=Math.min.apply(null,n),this.iGridXEnd=Math.max.apply(null,e),this.iGridYEnd=Math.max.apply(null,n)},t.prototype.girdToHtml=function(){for(var t="",e=this.iGridYStart;e<=this.iGridYEnd;e++){for(var n=this.iGridXStart;n<=this.iGridXEnd;n++)t+=void 0===this.aGird[e]?" ":void 0===this.aGird[e][n]?" ":"#";t+="<br />"}return t},t.prototype.ngOnInit=function(){},t}(),Yl=function(){function t(){this.aPointsX=[],this.aPointsY=[],this.aGird=[],this.aInfPointNumber=[]}return t.prototype.runPart1=function(t){this.sPartOneAnswer=0,this.importData(t),this.fillGirdAreaOfNearPoin(),this.sPartOneAnswer=this.getSizeMaxAreaFinite()},t.prototype.runPart2=function(t){this.sPartTwoAnswer=0,this.aInfPointNumber=[],this.importData(t),this.fillGirdAreaOfTotalDistanceLess(1e4),this.sPartTwoAnswer=this.getSizeOfTotalDistanceLess()},t.prototype.getSizeMaxAreaFinite=function(){for(var t=0,e=0,n=this.aGird.concat.apply([],this.aGird),r=function(r){i.aInfPointNumber.indexOf(r)<0&&(e=n.filter(function(t){return t===r}).length+1)>t&&(t=e)},i=this,o=0;o<this.aPointsX.length;o++)r(o);return t},t.prototype.getSizeOfTotalDistanceLess=function(){return this.aGird.concat.apply([],this.aGird).filter(function(t){return 1===t}).length},t.prototype.importData=function(t){this.aGird=[],this.aLines=t.split("\n");for(var e=0;e<this.aLines.length;e++)if(this.aLines[e].indexOf(",")>0){var n=this.aLines[e].split(",");this.aPointsX[e]=Number(n[0]),this.aPointsY[e]=Number(n[1])}this.iGridXStart=Math.min.apply(null,this.aPointsX)-1,this.iGridYStart=Math.min.apply(null,this.aPointsY)-1,this.iGridXEnd=Math.max.apply(null,this.aPointsX)+1,this.iGridYEnd=Math.max.apply(null,this.aPointsY)+1},t.prototype.fillGirdAreaOfTotalDistanceLess=function(t){for(var e=this.iGridYStart;e<=this.iGridYEnd;e++){this.aGird[e]=[];for(var n=this.iGridXStart;n<=this.iGridXEnd;n++)this.aGird[e][n]=this.getTotalDistaceSum(n,e)<t?1:0}},t.prototype.fillGirdAreaOfNearPoin=function(){for(var t=this.iGridYStart;t<=this.iGridYEnd;t++){this.aGird[t]=[];for(var e=this.iGridXStart;e<=this.iGridXEnd;e++)this.aGird[t][e]=this.getNumberOfNearPoint(e,t),t!==this.iGridYStart&&t!==this.iGridYEnd&&e!==this.iGridXStart&&e!==this.iGridXEnd||this.aInfPointNumber.push(this.aGird[t][e])}},t.prototype.getTotalDistaceSum=function(t,e){for(var n=[],r=0;r<this.aPointsX.length;r++)n[r]=Math.abs(this.aPointsX[r]-t)+Math.abs(this.aPointsY[r]-e);return n.reduce(function(t,e){return t+e},0)},t.prototype.getNumberOfNearPoint=function(t,e){for(var n=[],r=0;r<this.aPointsX.length;r++){if(this.aPointsX[r]===t&&this.aPointsY[r]===e)return r+100;n[r]=Math.abs(this.aPointsX[r]-t)+Math.abs(this.aPointsY[r]-e)}var i=Math.min.apply(null,n);return 1===n.filter(function(t){return t===i}).length?n.indexOf(i):-1},t.prototype.girdToHtml=function(){for(var t="",e="",n=this.iGridYStart;n<=this.iGridYEnd;n++){for(var r=this.iGridXStart;r<=this.iGridXEnd;r++)e=String(this.aGird[n][r]),this.aInfPointNumber.indexOf(this.aGird[n][r])+1&&(e+="%"),t+="|"+" ".repeat(3-e.length)+e;t+="<br />"}return t},t}(),Xl=function(){function t(){}return t.prototype.ngOnInit=function(){},t.prototype.runPart1=function(t){this.sPartOneAnswer=0;var e=t.trim(),n="abcdefghijklmnopqrstuvwxyz".split("");e=this.reduce(e,n),this.sPartOneAnswer=e.length},t.prototype.runPart2=function(t){var e=this;this.sPartTwoAnswer=0;var n=t.trim(),r="abcdefghijklmnopqrstuvwxyz".split(""),i=n.length;r.forEach(function(o){n=(n=(n=t.trim()).replace(new RegExp(o,"g"),"")).replace(new RegExp(o.toUpperCase(),"g"),""),(n=e.reduce(n,r)).length<i&&(i=n.length)}),this.sPartTwoAnswer=i},t.prototype.reduce=function(t,e){for(var n,r,i=!0;i;)r=t.length,e.forEach(function(e){n=e+e.toUpperCase(),t=t.replace(new RegExp(n,"g"),""),n=e.toUpperCase()+e,t=t.replace(new RegExp(n,"g"),"")}),r-t.length||(i=!1);return t},t}(),$l=function(){function t(){this.inGuardShift={},this.inDaysStatus={},this.aGurads=[]}return t.prototype.runPart1=function(t){this.sPartOneAnswer=0,this.importData(t);var e,n=-1;for(var r in this.aGurads)if(this.aGurads.hasOwnProperty(r)){var i=this.aGurads[r],o=i.getMinutsSleep();o>n&&(n=o,e=i)}this.sPartOneAnswer=e.getId()*e.getMostMinuteAsleep()},t.prototype.runPart2=function(t){this.sPartTwoAnswer=0,this.importData(t);var e,n=-1;for(var r in this.aGurads)if(this.aGurads.hasOwnProperty(r)){var i=this.aGurads[r],o=i.getMaxOfMinuteAsleep();o>n&&(n=o,e=i)}this.sPartTwoAnswer=e.getId()*e.getMostMinuteAsleep()},t.prototype.ngOnInit=function(){},t.prototype.importData=function(t){var e;this.aLines=t.split("\n");for(var n=0;n<this.aLines.length;n++)this.aLines[n].length&&("Guard"===(e=new Jl(this.aLines[n])).getType()?(this.putToHash(this.inGuardShift,e.getGuardId(),e.getMontDay()),this.aGurads[e.getGuardId()]=new tc(e.getGuardId())):this.putToDaysHash(this.inDaysStatus,e.getMontDay(),e.getType(),e.getMinuts()));for(var r=0;r<this.aGurads.length;r++){var i=this.aGurads[r],o=this.inGuardShift[r];for(var a in o){var s=o[a];i.addDay(s,this.inDaysStatus[s])}}},t.prototype.putToHash=function(t,e,n){void 0===t[e]&&(t[e]=[]),t[e].push(n)},t.prototype.putToDaysHash=function(t,e,n,r){void 0===t[e]&&(t[e]={}),this.putToHash(t[e],r,n)},t}(),Jl=function(){function t(t){if(this.sText=t,this.sType="",this.iGuardId=-1,this.dDate=new Date,this.dDate=new Date(t.substring(1,17)+"+00:00"),this.sType=t.substring(19,24),"Guard"===this.sType){var e=this.sText.split(" ");this.iGuardId=Number(e[3].substring(1)),"23"===this.dDate.toISOString().substring(11,13)&&this.dDate.setDate(this.dDate.getDate()+1)}}return t.prototype.getType=function(){return this.sType},t.prototype.getGuardId=function(){return this.iGuardId},t.prototype.getMontDay=function(){return this.dDate.toISOString().substring(5,10)},t.prototype.getMinuts=function(){return Number(this.dDate.toISOString().substring(14,16))},t.prototype.show=function(){return this.sText},t}(),tc=function(){function t(t){this.iId=t,this.inGuardsStatus=[],this.aMinutsSleep=[],this.iSleepTime=0}return t.prototype.getId=function(){return this.iId},t.prototype.addDay=function(t,e){this.inGuardsStatus[t]=e},t.prototype.getMaxOfMinuteAsleep=function(){return this.checkCalculate(),Number(Math.max.apply(null,this.aMinutsSleep))},t.prototype.getMostMinuteAsleep=function(){var t=this.getMaxOfMinuteAsleep();return this.aMinutsSleep.indexOf(t)},t.prototype.getMinutsSleep=function(){return this.checkCalculate(),this.iSleepTime},t.prototype.checkCalculate=function(){this.aMinutsSleep.length<1&&this.calculateSleep()},t.prototype.calculateSleep=function(){this.aMinutsSleep=new Array(60).fill(0),this.iSleepTime=0;var t=-1,e=-1;for(var n in this.inGuardsStatus)if(this.inGuardsStatus.hasOwnProperty(n)){var r=this.inGuardsStatus[n];for(var i in r)if(r.hasOwnProperty(i))if(t<0)t=Number(i);else{e=Number(i),this.iSleepTime+=e-t;for(var o=t;o<e;o++)this.aMinutsSleep[o]+=1;t=-1}}return this.iSleepTime},t}(),ec=function(){function t(){this.aMutual=[];for(var t=0;t<1e3;t++)this.aMutual[t]=[]}return t.prototype.runPart1=function(t){this.sPartOneAnswer=0,this.aLines=t.split("\n");for(var e=0;e<this.aLines.length;e++)for(var n=new nc(this.aLines[e]),r=function(t){var e=new nc(i.aLines[t]),r=n.getUsedRows().filter(function(t){return e.getUsedRows().includes(t)}),o=n.getUsedCols().filter(function(t){return e.getUsedCols().includes(t)});if(r.length&&o.length)for(var a=Math.min.apply(null,r);a<=Math.max.apply(null,r);a++)for(var s=Math.min.apply(null,o);s<=Math.max.apply(null,o);s++)i.aMutual[a][s]=1},i=this,o=e+1;o<this.aLines.length;o++)r(o);for(var a=0;a<this.aMutual.length;a++)this.sPartOneAnswer+=this.aMutual[a].reduce(function(t,e){return t+e},0)},t.prototype.runPart2=function(t){this.sPartTwoAnswer=0,this.aLines=t.split("\n");for(var e,n=-1,r=0;r<this.aLines.length;r++){var i=new nc(this.aLines[r]);n<0&&(e=!1);for(var o=function(t){if(t!==r){var n=new nc(a.aLines[t]),o=i.getUsedRows().filter(function(t){return n.getUsedRows().includes(t)}),s=i.getUsedCols().filter(function(t){return n.getUsedCols().includes(t)});o.length&&s.length&&(e=!0)}},a=this,s=0;s<this.aLines.length;s++)o(s);e||(n=r,e=!0)}this.sPartTwoAnswer=new nc(this.aLines[n]).getId()},t.prototype.ngOnInit=function(){},t}(),nc=function(){function t(t){if(this.sText=t,this.aRowsUsed=[],this.aColsUsed=[],this.iId=-1,t.length>0){var e=(t=t.replace(":","").replace("#","")).split(" "),n=e[2].split(","),r=e[3].split("x"),i=Number(n[0])+1,o=Number(n[1])+1,a=Number(r[0]),s=Number(r[1]);this.iId=Number(e[0]),this.aRowsUsed=Array.from(new Array(a),function(t,e){return i+e}),this.aColsUsed=Array.from(new Array(s),function(t,e){return o+e})}}return t.prototype.getUsedRows=function(){return this.aRowsUsed},t.prototype.getUsedCols=function(){return this.aColsUsed},t.prototype.getId=function(){return this.iId},t}(),rc=[{path:"2018/02",component:ql},{path:"2018/03",component:ec},{path:"2018/04",component:$l},{path:"2018/05",component:Xl},{path:"2018/06",component:Yl},{path:"2018/10",component:Zl},{path:"2018/12",component:Wl},{path:"2018/14",component:Kl}],ic=function(){return function(){}}(),oc=function(){return function(){this.aLinks=rc}}(),ac=new R(function(t){return t.complete()});function sc(t){return t?function(t){return new R(function(e){return t.schedule(function(){return e.complete()})})}(t):ac}function uc(t){var e=new R(function(e){e.next(t),e.complete()});return e._isScalar=!0,e.value=t,e}function lc(){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 sc(n);case 1:return n?rt(t,n):uc(t[0]);default:return rt(t,n)}}var cc=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return i(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 hc(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}hc.prototype=Object.create(Error.prototype);var pc=hc,fc={},dc=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new yc(t,this.resultSelector))},t}(),yc=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 i(e,t),e.prototype._next=function(t){this.values.push(fc),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($(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.values,a=this.toRespond?o[n]===fc?--this.toRespond:this.toRespond:0;o[n]=e,0===a&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.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}(J);function mc(t){return new R(function(e){var n;try{n=t()}catch(r){return void e.error(r)}return(n?it(n):sc()).subscribe(e)})}function gc(){return lt(1)}function vc(t,e){return function(n){return n.lift(new _c(t,e))}}var _c=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new bc(t,this.predicate,this.thisArg))},t}(),bc=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return i(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}(P);function wc(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}wc.prototype=Object.create(Error.prototype);var Cc=wc;function Sc(t){return function(e){return 0===t?sc():e.lift(new Ec(t))}}var Ec=function(){function t(t){if(this.total=t,this.total<0)throw new Cc}return t.prototype.call=function(t,e){return e.subscribe(new xc(t,this.total))},t}(),xc=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 i(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,i=0;i<n;i++){var o=e++%n;t.next(r[o])}t.complete()},e}(P);function Tc(t,e,n){return function(r){return r.lift(new Pc(t,e,n))}}var Pc=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 kc(t,this.nextOrObserver,this.error,this.complete))},t}(),kc=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o._tapNext=I,o._tapError=I,o._tapComplete=I,o._tapError=r||I,o._tapComplete=i||I,f(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||I,o._tapError=n.error||I,o._tapComplete=n.complete||I),o}return i(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}(P),Ac=function(t){return void 0===t&&(t=Ic),Tc({hasValue:!1,next:function(){this.hasValue=!0},complete:function(){if(!this.hasValue)throw t()}})};function Ic(){return new pc}function Oc(t){return void 0===t&&(t=null),function(e){return e.lift(new Dc(t))}}var Dc=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new Rc(t,this.defaultValue))},t}(),Rc=function(t){function e(e,n){var r=t.call(this,e)||this;return r.defaultValue=n,r.isEmpty=!0,r}return i(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(P);function Nc(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?vc(function(e,n){return t(e,n,r)}):ut,Sc(1),n?Oc(e):Ac(function(){return new pc}))}}function Mc(t){return function(e){var n=new jc(t),r=e.lift(n);return n.caught=r}}var jc=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 i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}return i(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(i){return void t.prototype.error.call(this,i)}this._unsubscribeAndRecycle();var r=new z(this,void 0,void 0);this.add(r),$(this,n,void 0,void 0,r)}},e}(J);function Fc(t){return function(e){return 0===t?sc():e.lift(new Lc(t))}}var Lc=function(){function t(t){if(this.total=t,this.total<0)throw new Cc}return t.prototype.call=function(t,e){return e.subscribe(new Uc(t,this.total))},t}(),Uc=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return i(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(P);function Hc(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?vc(function(e,n){return t(e,n,r)}):ut,Fc(1),n?Oc(e):Ac(function(){return new pc}))}}var zc=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 Gc(t,this.predicate,this.thisArg,this.source))},t}(),Gc=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}return i(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(P);function Bc(t,e){return"function"==typeof e?function(n){return n.pipe(Bc(function(n,r){return it(t(n,r)).pipe(tt(function(t,i){return e(n,t,r,i)}))}))}:function(e){return e.lift(new qc(t))}}var qc=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Qc(t,this.project))},t}(),Qc=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return i(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 i=new z(this,void 0,void 0);this.destination.add(i),this.innerSubscription=$(this,t,e,n,i)},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,i){this.destination.next(e)},e}(J);function Kc(){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])?it(t[0]):gc()(lc.apply(void 0,t))}(1!==r||n?r>0?rt(t,n):sc(n):uc(t[0]),e)}}function Wc(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Zc(t,e,n))}}var Zc=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 Yc(t,this.accumulator,this.seed,this.hasSeed))},t}(),Yc=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return i(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(r){this.destination.error(r)}this.seed=e,this.destination.next(e)},e}(P);function Xc(t,e){return ot(t,e,1)}var $c=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new Jc(t,this.callback))},t}(),Jc=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new b(n)),r}return i(e,t),e}(P),th=function(){return function(){}}(),eh=new Pt("Location Initialized"),nh=function(){return function(){}}(),rh=new Pt("appBaseHref"),ih=function(){function t(t){var n=this;this._subject=new Gi,this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._baseHref=e.stripTrailingSlash(oh(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,oh(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 oh(t){return t.replace(/\/index.html$/,"")}var ah=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 i(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=ih.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+ih.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+ih.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(nh),sh=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 i(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 ih.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+ih.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+ih.normalizeQueryParams(r));this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+ih.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(nh),uh=void 0,lh=["en",[["a","p"],["AM","PM"],uh],[["AM","PM"],uh,uh],[["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"]],uh,[["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"]],uh,[["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}",uh,"{1} 'at' {0}",uh],[".",",",";","%","+","-","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}],ch={},hh=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}({}),ph=new Pt("UseV4Plurals"),fh=function(){return function(){}}(),dh=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return i(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return function(t){var e=t.toLowerCase().replace(/_/g,"-"),n=ch[e];if(n)return n;var r=e.split("-")[0];if(n=ch[r])return n;if("en"===r)return lh;throw new Error('Missing locale data for the locale "'+t+'".')}(t)[18]}(e||this.locale)(t)){case hh.Zero:return"zero";case hh.One:return"one";case hh.Two:return"two";case hh.Few:return"few";case hh.Many:return"many";default:return"other"}},e}(fh),yh=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}(),mh=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){bi()&&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,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new yh(null,e._ngForOf,-1,-1),i),a=new gh(t,o);n.push(a)}else null==i?e._viewContainer.remove(r):(o=e._viewContainer.get(r),e._viewContainer.move(o,i),a=new gh(t,o),n.push(a))});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);r=0;for(var i=this._viewContainer.length;r<i;r++){var o=this._viewContainer.get(r);o.context.index=r,o.context.count=i,o.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}(),gh=function(){return function(t,e){this.record=t,this.view=e}}(),vh=function(){function t(t,e){this._viewContainer=t,this._context=new _h,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){bh("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){bh("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}(),_h=function(){return function(){this.$implicit=null,this.ngIf=null}}();function bh(t,e){if(e&&!e.createEmbeddedView)throw new Error(t+" must be a TemplateRef, but received '"+Ut(e)+"'.")}var wh=function(){return function(){}}(),Ch=new Pt("DocumentToken"),Sh="browser",Eh="server",xh=function(){function t(){}return t.ngInjectableDef=Et({providedIn:"root",factory:function(){return new Th(Yt(Ch),window)}}),t}(),Th=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,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])},t.prototype.supportScrollRestoration=function(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}},t}(),Ph=null;function kh(){return Ph}var Ah,Ih={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Oh={"\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"},Dh={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"};Nt.Node&&(Ah=Nt.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var Rh,Nh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){var t;t=new e,Ph||(Ph=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 Ih},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return Ah.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 i=n.item(r);e.set(i.name,i.value)}return e},e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},e.prototype.hasAttributeNS=function(t,e,n){return t.hasAttributeNS(e,n)},e.prototype.getAttribute=function(t,e){return t.getAttribute(e)},e.prototype.getAttributeNS=function(t,e,n){return t.getAttributeNS(e,n)},e.prototype.setAttribute=function(t,e,n){t.setAttribute(e,n)},e.prototype.setAttributeNS=function(t,e,n,r){t.setAttributeNS(e,n,r)},e.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},e.prototype.removeAttributeNS=function(t,e,n){t.removeAttributeNS(e,n)},e.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},e.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},e.prototype.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&&Dh.hasOwnProperty(e)&&(e=Dh[e]))}return Oh[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=Mh||(Mh=document.querySelector("base"))?Mh.getAttribute("href"):null;return null==n?null:(e=n,Rh||(Rh=document.createElement("a")),Rh.setAttribute("href",e),"/"===Rh.pathname.charAt(0)?Rh.pathname:"/"+Rh.pathname)},e.prototype.resetBaseElement=function(){Mh=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 function(t,e){var n,r;e=encodeURIComponent(e);try{for(var i=u(t.split(";")),o=i.next();!o.done;o=i.next()){var a=o.value,s=a.indexOf("="),c=l(-1==s?[a,""]:[a.slice(0,s),a.slice(s+1)],2),h=c[1];if(c[0].trim()===e)return decodeURIComponent(h)}}catch(p){n={error:p}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null}(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"],i=0;i<r.length;i++)if(null!=e.getStyle(n,r[i]+"AnimationName")){e._animationPrefix="-"+r[i].toLowerCase()+"-";break}var o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(o).forEach(function(t){null!=e.getStyle(n,t)&&(e._transitionEnd=o[t])})}catch(a){e._animationPrefix=null,e._transitionEnd=null}return e}return i(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}())),Mh=null,jh=Ch;function Vh(){return!!window.history.pushState}var Fh=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}var n;return i(e,t),e.prototype._init=function(){this.location=kh().getLocation(),this._history=kh().getHistory()},e.prototype.getBaseHrefFromDOM=function(){return kh().getBaseHref(this._doc)},e.prototype.onPopState=function(t){kh().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){kh().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){Vh()?this._history.pushState(t,e,n):this.location.hash=n},e.prototype.replaceState=function(t,e,n){Vh()?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=zt(jh),function(t,e){n(t,e,0)}),s("design:paramtypes",[Object])],e)}(th),Lh=new Pt("TRANSITION_ID"),Uh=[{provide:oo,useFactory:function(t,e,n){return function(){n.get(ao).donePromise.then(function(){var n=kh();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:[Lh,jh,Un],multi:!0}],Hh=function(){function t(){}return t.init=function(){var e;e=new t,Mo=e},t.prototype.addToWindow=function(t){Nt.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},Nt.getAllAngularTestabilities=function(){return t.getAllTestabilities()},Nt.getAllAngularRootElements=function(){return t.getAllRootElements()},Nt.frameworkStabilizers||(Nt.frameworkStabilizers=[]),Nt.frameworkStabilizers.push(function(t){var e=Nt.getAllAngularTestabilities(),n=e.length,r=!1,i=function(e){r=r||e,0==--n&&t(r)};e.forEach(function(t){t.whenStable(i)})})},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var r=t.getTestability(e);return null!=r?r:n?kh().isShadowRoot(e)?this.findTestabilityInTree(t,kh().getHost(e),!0):this.findTestabilityInTree(t,kh().parentElement(e),!0):null},t}();function zh(t,e){"undefined"!=typeof COMPILED&&COMPILED||((Nt.ng=Nt.ng||{})[t]=e)}var Gh={ApplicationRef:zo,NgZone:xo};function Bh(t){return oa(t)}var qh=new Pt("EventManagerPlugins"),Qh=function(){function t(t,e){var n=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=n}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(t))return this._eventNameToPlugin.set(t,i),i}throw new Error("No event manager plugin found for event "+t)},t}(),Kh=function(){function t(t){this._doc=t}return t.prototype.addGlobalEventListener=function(t,e,n){var r=kh().getGlobalEventTarget(this._doc,t);if(!r)throw new Error("Unsupported event target "+r+" for event "+e);return this.addEventListener(r,e,n)},t}(),Wh=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}(),Zh=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 i(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 kh().remove(t)})},e}(Wh),Yh={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/"},Xh=/%COMP%/g,$h="_nghost-%COMP%",Jh="_ngcontent-%COMP%";function tp(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];Array.isArray(i)?tp(t,i,n):(i=i.replace(Xh,t),n.push(i))}return n}function ep(t){return function(e){!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}var np=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new rp(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case Ot.Emulated:var n=this.rendererByCompId.get(e.id);return n||(n=new sp(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n;case Ot.Native:case Ot.ShadowDom:return new up(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var r=tp(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}(),rp=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(Yh[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 i=Yh[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var r=Yh[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&ai.DashCase?t.style.setProperty(e,n,r&ai.Important?"important":""):t.style[e]=n},t.prototype.removeStyle=function(t,e,n){n&ai.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,n){op(e,"property"),t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return op(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,ep(n)):this.eventManager.addEventListener(t,e,ep(n))},t}(),ip="@".charCodeAt(0);function op(t,e){if(t.charCodeAt(0)===ip)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var ap,sp=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.component=r;var o=tp(r.id,r.styles,[]);return n.addStyles(o),i.contentAttr=Jh.replace(Xh,r.id),i.hostAttr=$h.replace(Xh,r.id),i}return i(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}(rp),up=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;o.sharedStylesHost=n,o.hostEl=r,o.component=i,o.shadowRoot=i.encapsulation===Ot.ShadowDom?r.attachShadow({mode:"open"}):r.createShadowRoot(),o.sharedStylesHost.addHost(o.shadowRoot);for(var a=tp(i.id,i.styles,[]),s=0;s<a.length;s++){var u=document.createElement("style");u.textContent=a[s],o.shadowRoot.appendChild(u)}return o}return i(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}(rp),lp="undefined"!=typeof Zone&&Zone.__symbol__||function(t){return"__zone_symbol__"+t},cp=lp("addEventListener"),hp=lp("removeEventListener"),pp={},fp="__zone_symbol__propagationStopped";"undefined"!=typeof Zone&&Zone[lp("BLACK_LISTED_EVENTS")]&&(ap={});var dp=function(t){return!!ap&&ap.hasOwnProperty(t)},yp=function(t){var e=pp[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 i=n.slice(),o=0;o<i.length&&!0!==t[fp];o++){var a;(a=i[o]).zone!==Zone.current?a.zone.run(a.handler,this,r):a.handler.apply(this,r)}}}},mp=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.ngZone=n,r&&function(t){return t===Eh}(r)||i.patchEvent(),i}return i(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[fp]=!0),t&&t.apply(this,arguments)}}},e.prototype.supports=function(t){return!0},e.prototype.addEventListener=function(t,e,n){var r=this,i=n;if(!t[cp]||xo.isInAngularZone()&&!dp(e))t.addEventListener(e,i,!1);else{var o=pp[e];o||(o=pp[e]=lp("ANGULAR"+e+"FALSE"));var a=t[o],s=a&&a.length>0;a||(a=t[o]=[]);var u=dp(e)?Zone.root:Zone.current;if(0===a.length)a.push({zone:u,handler:i});else{for(var l=!1,c=0;c<a.length;c++)if(a[c].handler===i){l=!0;break}l||a.push({zone:u,handler:i})}s||t[cp](e,yp,!1)}return function(){return r.removeEventListener(t,e,i)}},e.prototype.removeEventListener=function(t,e,n){var r=t[hp];if(!r)return t.removeEventListener.apply(t,[e,n,!1]);var i=pp[e],o=i&&t[i];if(!o)return t.removeEventListener.apply(t,[e,n,!1]);for(var a=!1,s=0;s<o.length;s++)if(o[s].handler===n){a=!0,o.splice(s,1);break}a?0===o.length&&r.apply(t,[e,yp,!1]):t.removeEventListener.apply(t,[e,n,!1])},e}(Kh),gp={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},vp=new Pt("HammerGestureConfig"),_p=new Pt("HammerLoader"),bp=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}(),wp=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o._config=n,o.console=r,o.loader=i,o}return i(e,t),e.prototype.supports=function(t){return!(!gp.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,i=this.manager.getZone();if(e=e.toLowerCase(),!window.Hammer&&this.loader){var o=!1,a=function(){o=!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(){});o||(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 i.runOutsideAngular(function(){var o=r._config.buildHammer(t),a=function(t){i.runGuarded(function(){n(t)})};return o.on(e,a),function(){o.off(e,a),"function"==typeof o.destroy&&o.destroy()}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e}(Kh),Cp=["alt","control","meta","shift"],Sp={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Ep=function(t){function e(e){return t.call(this,e)||this}var n;return i(e,t),n=e,e.prototype.supports=function(t){return null!=n.parseEventName(t)},e.prototype.addEventListener=function(t,e,r){var i=n.parseEventName(e),o=n.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return kh().onAndCancel(t,i.domEventName,o)})},e.parseEventName=function(t){var e=t.toLowerCase().split("."),r=e.shift();if(0===e.length||"keydown"!==r&&"keyup"!==r)return null;var i=n._normalizeKey(e.pop()),o="";if(Cp.forEach(function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),o+=t+".")}),o+=i,0!=e.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a},e.getEventFullKey=function(t){var e="",n=kh().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Cp.forEach(function(r){r!=n&&(0,Sp[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,e,r){return function(i){n.getEventFullKey(i)===t&&r.runGuarded(function(){return e(i)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(Kh),xp=function(){return function(){}}(),Tp=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return i(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case Qi.NONE:return e;case Qi.HTML:return e instanceof kp?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=null;try{Pi=Pi||new wi(t);var r=e?String(e):"";n=Pi.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Pi.getInertBodyElement(r)}while(r!==o);var a=new ji,s=a.sanitizeChildren(Ui(n)||n);return bi()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),s}finally{if(n)for(var u=Ui(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}(this._doc,String(e)));case Qi.STYLE:return e instanceof Ap?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(Zi);return e&&Ei(e[1])===e[1]||t.match(Wi)&&function(t){for(var e=!0,n=!0,r=0;r<t.length;r++){var i=t.charAt(r);"'"===i&&n?e=!e:'"'===i&&e&&(n=!n)}return e&&n}(t)?t:(bi()&&console.warn("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}(e));case Qi.SCRIPT:if(e instanceof Ip)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case Qi.URL:return e instanceof Dp||e instanceof Op?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),Ei(String(e)));case Qi.RESOURCE_URL:if(e instanceof Dp)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 Pp)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 kp(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new Ap(t)},e.prototype.bypassSecurityTrustScript=function(t){return new Ip(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new Op(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new Dp(t)},e}(xp),Pp=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}(),kp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(Pp),Ap=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getTypeName=function(){return"Style"},e}(Pp),Ip=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getTypeName=function(){return"Script"},e}(Pp),Op=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getTypeName=function(){return"URL"},e}(Pp),Dp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(Pp),Rp=Fo(Ca,"browser",[{provide:ho,useValue:Sh},{provide:co,useValue:function(){Nh.makeCurrent(),Hh.init()},multi:!0},{provide:th,useClass:Fh,deps:[jh]},{provide:jh,useFactory:function(){return document},deps:[]}]);function Np(){return new no}var Mp=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:so,useValue:t.appId},{provide:Lh,useExisting:so},Uh]}},t}();"undefined"!=typeof window&&window;var jp=function(){return function(t,e){this.id=t,this.url=e}}(),Vp=function(t){function e(e,n,r,i){void 0===r&&(r="imperative"),void 0===i&&(i=null);var o=t.call(this,e,n)||this;return o.navigationTrigger=r,o.restoredState=i,o}return i(e,t),e.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},e}(jp),Fp=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.urlAfterRedirects=r,i}return i(e,t),e.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},e}(jp),Lp=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.reason=r,i}return i(e,t),e.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},e}(jp),Up=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.error=r,i}return i(e,t),e.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},e}(jp),Hp=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return i(e,t),e.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(jp),zp=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return i(e,t),e.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(jp),Gp=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n)||this;return a.urlAfterRedirects=r,a.state=i,a.shouldActivate=o,a}return i(e,t),e.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},e}(jp),Bp=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return i(e,t),e.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(jp),qp=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=r,o.state=i,o}return i(e,t),e.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(jp),Qp=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),Kp=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),Wp=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Zp=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Yp=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Xp=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),$p=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}(),Jp=function(){return function(){}}(),tf="primary",ef=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 nf(t){return new ef(t)}var rf="ngNavigationCancelingError";function of(t){var e=Error("NavigationCancelingError: "+t);return e[rf]=!0,e}function af(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;for(var i={},o=0;o<r.length;o++){var a=r[o],s=t[o];if(a.startsWith(":"))i[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}var sf=function(){return function(t,e){this.routes=t,this.module=e}}();function uf(t,e){void 0===e&&(e="");for(var n=0;n<t.length;n++){var r=t[n];lf(r,cf(e,r))}}function lf(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!==tf)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&&uf(t.children,e)}function cf(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function hf(t){var e=t.children&&t.children.map(hf),n=e?o({},t,{children:e}):o({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==tf&&(n.component=Jp),n}function pf(t,e){var n,r=Object.keys(t),i=Object.keys(e);if(r.length!=i.length)return!1;for(var o=0;o<r.length;o++)if(t[n=r[o]]!==e[n])return!1;return!0}function ff(t){return Array.prototype.concat.apply([],t)}function df(t){return t.length>0?t[t.length-1]:null}function yf(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function mf(t){return io(t)?t:ro(t)?it(Promise.resolve(t)):lc(t)}function gf(t,e,n){return n?function(t,e){return pf(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!wf(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,i){if(n.segments.length>i.length)return!!wf(a=n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!wf(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!t(n.children[o],r.children[o]))return!1}return!0}var a=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!!wf(n.segments,a)&&!!n.children[tf]&&e(n.children[tf],r,s)}(e,n,n.segments)}(t.root,e.root)}var vf=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=nf(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return xf.serialize(this)},t}(),_f=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,yf(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 Tf(this)},t}(),bf=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=nf(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Df(this)},t}();function wf(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function Cf(t,e){var n=[];return yf(t.children,function(t,r){r===tf&&(n=n.concat(e(t,r)))}),yf(t.children,function(t,r){r!==tf&&(n=n.concat(e(t,r)))}),n}var Sf=function(){return function(){}}(),Ef=function(){function t(){}return t.prototype.parse=function(t){var e=new Vf(t);return new vf(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return Tf(e);if(n){var r=e.children[tf]?t(e.children[tf],!1):"",i=[];return yf(e.children,function(e,n){n!==tf&&i.push(n+":"+t(e,!1))}),i.length>0?r+"("+i.join("//")+")":r}var o=Cf(e,function(n,r){return r===tf?[t(e.children[tf],!1)]:[r+":"+t(n,!1)]});return Tf(e)+"/("+o.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 kf(t)+"="+kf(e)}).join("&"):kf(t)+"="+kf(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),xf=new Ef;function Tf(t){return t.segments.map(function(t){return Df(t)}).join("/")}function Pf(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function kf(t){return Pf(t).replace(/%3B/gi,";")}function Af(t){return Pf(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function If(t){return decodeURIComponent(t)}function Of(t){return If(t.replace(/\+/g,"%20"))}function Df(t){return""+Af(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+Af(t)+"="+Af(e[t])}).join(""));var e}var Rf=/^[^\/()?;=#]+/;function Nf(t){var e=t.match(Rf);return e?e[0]:""}var Mf=/^[^=?&#]+/,jf=/^[^?&#]+/,Vf=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 _f([],{}):new _f([],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[tf]=new _f(t,e)),n},t.prototype.parseSegment=function(){var t=Nf(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new bf(If(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Nf(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=Nf(this.remaining);r&&this.capture(n=r)}t[If(e)]=If(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(Mf))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var i=function(t){var e=t.match(jf);return e?e[0]:""}(this.remaining);i&&this.capture(r=i)}var o=Of(n),a=Of(r);if(t.hasOwnProperty(o)){var s=t[o];Array.isArray(s)||(t[o]=s=[s]),s.push(a)}else t[o]=a}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Nf(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=tf);var o=this.parseChildren();e[i]=1===Object.keys(o).length?o[tf]:new _f([],o),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),Ff=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=Lf(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=Lf(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=Uf(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 Uf(t,this._root).map(function(t){return t.value})},t}();function Lf(t,e){var n,r;if(t===e.value)return e;try{for(var i=u(e.children),o=i.next();!o.done;o=i.next()){var a=Lf(t,o.value);if(a)return a}}catch(s){n={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null}function Uf(t,e){var n,r;if(t===e.value)return[e];try{for(var i=u(e.children),o=i.next();!o.done;o=i.next()){var a=Uf(t,o.value);if(a.length)return a.unshift(e),a}}catch(s){n={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return[]}var Hf=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function zf(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var Gf=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,Zf(r,e),r}return i(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(Ff);function Bf(t,e){var n=function(t,e){var n=new Kf([],{},{},"",{},tf,e,null,t.root,-1,{});return new Wf("",new Hf(n,[]))}(t,e),r=new cc([new bf("",{})]),i=new cc({}),o=new cc({}),a=new cc({}),s=new cc(""),u=new qf(r,i,a,s,o,tf,e,n.root);return u.snapshot=n.root,new Gf(new Hf(u,[]),n)}var qf=function(){function t(t,e,n,r,i,o,a,s){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,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 nf(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 nf(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function Qf(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var i=n[r],a=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(a.component)break;r--}}return function(t){return t.reduce(function(t,e){return{params:o({},t.params,e.params),data:o({},t.data,e.data),resolve:o({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var Kf=function(){function t(t,e,n,r,i,o,a,s,u,l,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,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=nf(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=nf(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}(),Wf=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,Zf(r,n),r}return i(e,t),e.prototype.toString=function(){return Yf(this._root)},e}(Ff);function Zf(t,e){e.value._routerState=t,e.children.forEach(function(e){return Zf(t,e)})}function Yf(t){var e=t.children.length>0?" { "+t.children.map(Yf).join(", ")+" } ":"";return""+t.value+e}function Xf(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,pf(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),pf(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(!pf(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),pf(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function $f(t,e){var n,r;return pf(t.params,e.params)&&wf(n=t.url,r=e.url)&&n.every(function(t,e){return pf(t.parameters,r[e].parameters)})&&!(!t.parent!=!e.parent)&&(!t.parent||$f(t.parent,e.parent))}function Jf(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function td(t,e,n,r,i){var o={};return r&&yf(r,function(t,e){o[e]=Array.isArray(t)?t.map(function(t){return""+t}):""+t}),new vf(n.root===t?e:function t(e,n,r){var i={};return yf(e.children,function(e,o){i[o]=e===n?r:t(e,n,r)}),new _f(e.segments,i)}(n.root,t,e),o,i)}var ed=function(){function t(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Jf(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!==df(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}(),nd=function(){return function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}();function rd(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[tf]:""+t}function id(t,e,n){if(t||(t=new _f([],{})),0===t.segments.length&&t.hasChildren())return od(t,e,n);var r=function(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i<t.segments.length;){if(r>=n.length)return o;var a=t.segments[i],s=rd(n[r]),u=r<n.length-1?n[r+1]:null;if(i>0&&void 0===s)break;if(s&&u&&"object"==typeof u&&void 0===u.outlets){if(!ld(s,u,a))return o;r+=2}else{if(!ld(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){var o=new _f(t.segments.slice(0,r.pathIndex),{});return o.children[tf]=new _f(t.segments.slice(r.pathIndex),t.children),od(o,0,i)}return r.match&&0===i.length?new _f(t.segments,{}):r.match&&!t.hasChildren()?ad(t,e,n):r.match?od(t,0,i):ad(t,e,n)}function od(t,e,n){if(0===n.length)return new _f(t.segments,{});var r=function(t){var e,n;return"object"!=typeof t[0]?((e={})[tf]=t,e):void 0===t[0].outlets?((n={})[tf]=t,n):t[0].outlets}(n),i={};return yf(r,function(n,r){null!==n&&(i[r]=id(t.children[r],e,n))}),yf(t.children,function(t,e){void 0===r[e]&&(i[e]=t)}),new _f(t.segments,i)}function ad(t,e,n){for(var r=t.segments.slice(0,e),i=0;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){var o=sd(n[i].outlets);return new _f(r,o)}if(0===i&&Jf(n[0]))r.push(new bf(t.segments[e].path,n[0])),i++;else{var a=rd(n[i]),s=i<n.length-1?n[i+1]:null;a&&s&&Jf(s)?(r.push(new bf(a,ud(s))),i+=2):(r.push(new bf(a,{})),i++)}}return new _f(r,{})}function sd(t){var e={};return yf(t,function(t,n){null!==t&&(e[n]=ad(new _f([],{}),0,t))}),e}function ud(t){var e={};return yf(t,function(t,n){return e[n]=""+t}),e}function ld(t,e,n){return t==n.path&&pf(e,n.parameters)}var cd=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),Xf(this.futureState.root),this.activateChildRoutes(e,n,t)},t.prototype.deactivateChildRoutes=function(t,e,n){var r=this,i=zf(e);t.children.forEach(function(t){var e=t.value.outlet;r.deactivateRoutes(t,i[e],n),delete i[e]}),yf(i,function(t,e){r.deactivateRouteAndItsChildren(t,n)})},t.prototype.deactivateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(r===i)if(r.component){var o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,n);else i&&this.deactivateRouteAndItsChildren(e,n)},t.prototype.deactivateRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var n=e.getContext(t.value.outlet);if(n&&n.outlet){var r=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t,contexts:i})}},t.prototype.deactivateRouteAndOutlet=function(t,e){var n=this,r=e.getContext(t.value.outlet);if(r){var i=zf(t),o=t.value.component?r.children:e;yf(i,function(t,e){return n.deactivateRouteAndItsChildren(t,o)}),r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated())}},t.prototype.activateChildRoutes=function(t,e,n){var r=this,i=zf(e);t.children.forEach(function(t){r.activateRoutes(t,i[t.value.outlet],n),r.forwardEvent(new Xp(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Zp(t.value.snapshot))},t.prototype.activateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(Xf(r),r===i)if(r.component){var o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,n);else if(r.component)if(o=n.getOrCreateContext(r.outlet),this.routeReuseStrategy.shouldAttach(r.snapshot)){var a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),hd(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;o.attachRef=null,o.route=r,o.resolver=u,o.outlet&&o.outlet.activateWith(r,u),this.activateChildRoutes(t,null,o.children)}else this.activateChildRoutes(t,null,n)},t}();function hd(t){Xf(t.value),t.children.forEach(hd)}function pd(t){return"function"==typeof t}function fd(t){return t instanceof vf}var dd=function(){return function(t){this.segmentGroup=t||null}}(),yd=function(){return function(t){this.urlTree=t}}();function md(t){return new R(function(e){return e.error(new dd(t))})}function gd(t){return new R(function(e){return e.error(new yd(t))})}function vd(t){return new R(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}var _d=function(){function t(t,e,n,r,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(tr)}return t.prototype.apply=function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,tf).pipe(tt(function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)})).pipe(Mc(function(e){if(e instanceof yd)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof dd)throw t.noMatchError(e);throw e}))},t.prototype.match=function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,tf).pipe(tt(function(n){return e.createUrlTree(n,t.queryParams,t.fragment)})).pipe(Mc(function(t){if(t instanceof dd)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,i=t.segments.length>0?new _f([],((r={})[tf]=t,r)):t;return new vf(i,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 _f([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return lc({});var o=[],a=[],s={};return yf(n,function(n,i){var u,l,c=(u=i,l=n,r.expandSegmentGroup(t,e,l,u)).pipe(tt(function(t){return s[i]=t}));i===tf?o.push(c):a.push(c)}),lc.apply(null,o.concat(a)).pipe(gc(),Nc(),tt(function(){return s}))}(n.children)},t.prototype.expandSegment=function(t,e,n,r,i,o){var a=this;return lc.apply(void 0,c(n)).pipe(tt(function(s){return a.expandSegmentAgainstRoute(t,e,n,s,r,i,o).pipe(Mc(function(t){if(t instanceof dd)return lc(null);throw t}))}),gc(),Hc(function(t){return!!t}),Mc(function(t,n){if(t instanceof pc||"EmptyError"===t.name){if(a.noLeftoversInUrl(e,r,i))return lc(new _f([],{}));throw new dd(e)}throw t}))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,i,o,a){return Sd(r)!==o?md(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):md(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?gd(o):this.lineralizeSegments(n,o).pipe(ot(function(n){var o=new _f(n,{});return i.expandSegment(t,o,e,n,r,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){var a=this,s=bd(e,r,i),u=s.consumedSegments,l=s.lastChild,c=s.positionalParamSegments;if(!s.matched)return md(e);var h=this.applyRedirectCommands(u,r.redirectTo,c);return r.redirectTo.startsWith("/")?gd(h):this.lineralizeSegments(r,h).pipe(ot(function(r){return a.expandSegment(t,e,n,r.concat(i.slice(l)),o,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var i=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(tt(function(t){return n._loadedConfig=t,new _f(r,{})})):lc(new _f(r,{}));var a=bd(e,n,r),s=a.consumedSegments,l=a.lastChild;if(!a.matched)return md(e);var c=r.slice(l);return this.getChildConfig(t,n,r).pipe(ot(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 Cd(t,e,n)&&Sd(n)!==tf})}(t,n)?{segmentGroup:wd(new _f(e,function(t,e){var n,r,i={};i[tf]=e;try{for(var o=u(t),a=o.next();!a.done;a=o.next()){var s=a.value;""===s.path&&Sd(s)!==tf&&(i[Sd(s)]=new _f([],{}))}}catch(l){n={error:l}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}(r,new _f(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return r.some(function(n){return Cd(t,e,n)})}(t,n)?{segmentGroup:wd(new _f(t.segments,function(t,e,n,r){var i,a,s={};try{for(var l=u(n),c=l.next();!c.done;c=l.next()){var h=c.value;Cd(t,e,h)&&!r[Sd(h)]&&(s[Sd(h)]=new _f([],{}))}}catch(p){i={error:p}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}return o({},r,s)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,s,c,r),l=a.segmentGroup,h=a.slicedSegments;return 0===h.length&&l.hasChildren()?i.expandChildren(n,r,l).pipe(tt(function(t){return new _f(s,t)})):0===r.length&&0===h.length?lc(new _f(s,{})):i.expandSegment(n,l,r,h,tf,!0).pipe(tt(function(t){return new _f(s.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e,n){var r=this;return e.children?lc(new sf(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?lc(e._loadedConfig):function(t,e,n){var r,i=e.canLoad;return i&&0!==i.length?it(i).pipe(tt(function(r){var i,o=t.get(r);if(function(t){return t&&pd(t.canLoad)}(o))i=o.canLoad(e,n);else{if(!pd(o))throw new Error("Invalid CanLoad guard");i=o(e,n)}return mf(i)})).pipe(gc(),(r=function(t){return!0===t},function(t){return t.lift(new zc(r,void 0,t))})):lc(!0)}(t.injector,e,n).pipe(ot(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(of("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}(e)})):lc(new sf([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return lc(n);if(r.numberOfChildren>1||!r.children[tf])return vd(t.redirectTo);r=r.children[tf]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new vf(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return yf(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),a={};return yf(e.children,function(e,o){a[o]=i.createSegmentGroup(t,e,n,r)}),new _f(o,a)},t.prototype.createSegments=function(t,e,n,r){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){var n,r,i=0;try{for(var o=u(e),a=o.next();!a.done;a=o.next()){var s=a.value;if(s.path===t.path)return e.splice(i),s;i++}}catch(l){n={error:l}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return t},t}();function bd(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||af)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function wd(t){if(1===t.numberOfChildren&&t.children[tf]){var e=t.children[tf];return new _f(t.segments.concat(e.segments),e.children)}return t}function Cd(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Sd(t){return t.outlet||tf}var Ed=function(){return function(t){this.path=t,this.route=this.path[this.path.length-1]}}(),xd=function(){return function(t,e){this.component=t,this.route=e}}();function Td(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 Pd(t,e,n,r,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var o=zf(e);return t.children.forEach(function(t){!function(t,e,n,r,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var o=t.value,a=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var u=function(t,e,n){switch(n){case"pathParamsChange":return!wf(t.url,e.url);case"always":return!0;case"paramsOrQueryParamsChange":return!$f(t,e)||!pf(t.queryParams,e.queryParams);case"paramsChange":default:return!$f(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Ed(r)):(o.data=a.data,o._resolvedData=a._resolvedData),Pd(t,e,o.component?s?s.children:null:n,r,i),u&&i.canDeactivateChecks.push(new xd(s&&s.outlet&&s.outlet.component||null,a))}else a&&kd(e,s,i),i.canActivateChecks.push(new Ed(r)),Pd(t,null,o.component?s?s.children:null:n,r,i)}(t,o[t.value.outlet],n,r.concat([t.value]),i),delete o[t.value.outlet]}),yf(o,function(t,e){return kd(t,n.getContext(e),i)}),i}function kd(t,e,n){var r=zf(t),i=t.value;yf(r,function(t,r){kd(t,i.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new xd(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}var Ad=Symbol("INITIAL_VALUE");function Id(){return Bc(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&&h(t[0])&&(t=t[0]),rt(t,r).lift(new dc(n))}).apply(void 0,c(t.map(function(t){return t.pipe(Fc(1),Kc(Ad))}))).pipe(Wc(function(t,e){var n=!1;return e.reduce(function(t,r,i){if(t!==Ad)return t;if(r===Ad&&(n=!0),!n){if(!1===r)return r;if(i===e.length-1||fd(r))return r}return t},t)},Ad),vc(function(t){return t!==Ad}),tt(function(t){return fd(t)?t:!0===t}),Fc(1))})}function Od(t,e){return null!==t&&e&&e(new Yp(t)),lc(!0)}function Dd(t,e){return null!==t&&e&&e(new Wp(t)),lc(!0)}function Rd(t,e,n){var r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?lc(r.map(function(r){return mc(function(){var i,o=Td(r,e,n);if(function(t){return t&&pd(t.canActivate)}(o))i=mf(o.canActivate(e,t));else{if(!pd(o))throw new Error("Invalid CanActivate guard");i=mf(o(e,t))}return i.pipe(Hc())})})).pipe(Id()):lc(!0)}function Nd(t,e,n){var r=e[e.length-1],i=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 mc(function(){return lc(e.guards.map(function(i){var o,a=Td(i,e.node,n);if(function(t){return t&&pd(t.canActivateChild)}(a))o=mf(a.canActivateChild(r,t));else{if(!pd(a))throw new Error("Invalid CanActivateChild guard");o=mf(a(r,t))}return o.pipe(Hc())})).pipe(Id())})});return lc(i).pipe(Id())}var Md=function(){return function(){}}(),jd=function(){function t(t,e,n,r,i,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=o}return t.prototype.recognize=function(){try{var t=Ld(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,tf),n=new Kf([],Object.freeze({}),Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,{},tf,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Hf(n,e),i=new Wf(this.url,r);return this.inheritParamsAndData(i._root),lc(i)}catch(a){return new R(function(t){return t.error(a)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=Qf(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,i=Cf(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},i.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.url.map(function(t){return t.toString()}).join("/"),i=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+i+"'.")}n[t.value.outlet]=t.value}),i.sort(function(t,e){return t.value.outlet===tf?-1:e.value.outlet===tf?1:t.value.outlet.localeCompare(e.value.outlet)}),i},t.prototype.processSegment=function(t,e,n,r){var i,o;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 Md))throw c}}}catch(h){i={error:h}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}if(this.noLeftoversInUrl(e,n,r))return[];throw new Md},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 Md;if((t.outlet||tf)!==r)throw new Md;var i,a=[],s=[];if("**"===t.path){var u=n.length>0?df(n).parameters:{};i=new Kf(n,u,Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,zd(t),r,t.component,t,Vd(e),Fd(e)+n.length,Gd(t))}else{var l=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Md;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||af)(n,t,e);if(!r)throw new Md;var i={};yf(r.posParams,function(t,e){i[e]=t.path});var a=r.consumed.length>0?o({},i,r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a}}(e,t,n);a=l.consumedSegments,s=n.slice(l.lastChild),i=new Kf(a,l.parameters,Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,zd(t),r,t.component,t,Vd(e),Fd(e)+a.length,Gd(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),h=Ld(e,a,s,c,this.relativeLinkResolution),p=h.segmentGroup,f=h.slicedSegments;if(0===f.length&&p.hasChildren()){var d=this.processChildren(c,p);return[new Hf(i,d)]}if(0===c.length&&0===f.length)return[new Hf(i,[])];var y=this.processSegment(c,p,f,tf);return[new Hf(i,y)]},t}();function Vd(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Fd(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 Ld(t,e,n,r,i){if(n.length>0&&function(t,e,n){return r.some(function(n){return Ud(t,e,n)&&Hd(n)!==tf})}(t,n)){var a=new _f(e,function(t,e,n,r){var i,o,a={};a[tf]=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&&Hd(c)!==tf){var h=new _f([],{});h._sourceSegment=t,h._segmentIndexShift=e.length,a[Hd(c)]=h}}}catch(p){i={error:p}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}return a}(t,e,r,new _f(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 Ud(t,e,n)})}(t,n)){var s=new _f(t.segments,function(t,e,n,r,i,a){var s,l,c={};try{for(var h=u(r),p=h.next();!p.done;p=h.next()){var f=p.value;if(Ud(t,n,f)&&!i[Hd(f)]){var d=new _f([],{});d._sourceSegment=t,d._segmentIndexShift="legacy"===a?t.segments.length:e.length,c[Hd(f)]=d}}}catch(y){s={error:y}}finally{try{p&&!p.done&&(l=h.return)&&l.call(h)}finally{if(s)throw s.error}}return o({},i,c)}(t,e,n,r,t.children,i));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}var l=new _f(t.segments,t.children);return l._sourceSegment=t,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:n}}function Ud(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Hd(t){return t.outlet||tf}function zd(t){return t.data||{}}function Gd(t){return t.resolve||{}}function Bd(t,e,n,r){var i=Td(t,e,r);return mf(i.resolve?i.resolve(e,n):i(e,n))}function qd(t){return function(e){return e.pipe(Bc(function(e){var n=t(e);return n?it(n).pipe(tt(function(){return e})):it([e])}))}}var Qd=function(){return function(){}}(),Kd=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}(),Wd=new Pt("ROUTES"),Zd=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 i=r.create(t);return new sf(ff(i.injector.get(Wd)).map(hf),i)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?it(this.loader.load(t)):mf(t()).pipe(ot(function(t){return t instanceof er?lc(t):it(e.compiler.compileModuleAsync(t))}))},t}(),Yd=function(){return function(){}}(),Xd=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 $d(t){throw t}function Jd(t,e,n){return e.parse("/")}function ty(t,e){return lc(null)}var ey=function(){function t(t,e,n,r,i,o,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=$d,this.malformedUriErrorHandler=Jd,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ty,afterPreactivation:ty},this.urlHandlingStrategy=new Xd,this.routeReuseStrategy=new Kd,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=i.get(tr),this.console=i.get(fo);var l=i.get(xo);this.isNgZoneEnabled=l instanceof xo,this.resetConfig(s),this.currentUrlTree=new vf(new _f([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new Zd(o,a,function(t){return u.triggerEvent(new Qp(t))},function(t){return u.triggerEvent(new Kp(t))}),this.routerState=Bf(this.currentUrlTree,this.rootComponentType),this.transitions=new cc({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(vc(function(t){return 0!==t.id}),tt(function(t){return o({},t,{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),Bc(function(t){var r,i,a,s,l=!1,c=!1;return lc(t).pipe(Bc(function(t){var r,i,a,s,u=!e.navigated||t.extractedUrl.toString()!==e.currentUrlTree.toString();if(("reload"===e.onSameUrlNavigation||u)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return lc(t).pipe(Tc(function(t){return"eager"===e.urlUpdateStrategy&&!t.extras.skipLocationChange&&e.setBrowserUrl(t.rawUrl,!!t.extras.replaceUrl,t.id)}),Bc(function(t){var r=e.transitions.getValue();return n.next(new Vp(t.id,e.serializeUrl(t.extractedUrl),t.source,t.state)),r!==e.transitions.getValue()?ac:[t]}),Bc(function(t){return Promise.resolve(t)}),(r=e.ngModule.injector,i=e.configLoader,a=e.urlSerializer,s=e.config,function(t){return t.pipe(Bc(function(t){return function(e,n,r,i,o){return new _d(e,n,r,t.extractedUrl,o).apply()}(r,i,a,0,s).pipe(tt(function(e){return o({},t,{urlAfterRedirects:e})}))}))}),function(t,n,r,i,a){return function(r){return r.pipe(ot(function(r){return function(t,e,n,r,i,o){return void 0===i&&(i="emptyOnly"),void 0===o&&(o="legacy"),new jd(t,e,n,r,i,o).recognize()}(t,n,r.urlAfterRedirects,(s=r.urlAfterRedirects,e.serializeUrl(s)),i,a).pipe(tt(function(t){return o({},r,{targetSnapshot:t})}));var s}))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),Tc(function(t){var r=new Hp(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,h=t.state,p=t.extras,f=new Vp(t.id,e.serializeUrl(l),c,h);n.next(f);var d=Bf(l,e.rootComponentType).snapshot;return lc(o({},t,{targetSnapshot:d,urlAfterRedirects:l,extras:o({},p,{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,t.resolve(null),ac}),qd(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})}),Tc(function(t){var n=new zp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),tt(function(t){return o({},t,{guards:(n=t.targetSnapshot,r=t.currentSnapshot,i=e.rootContexts,a=n._root,Pd(a,r?r._root:null,i,[a.value]))});var n,r,i,a}),function(t,e){return function(n){return n.pipe(ot(function(n){var r=n.targetSnapshot,i=n.currentSnapshot,a=n.guards,s=a.canActivateChecks,u=a.canDeactivateChecks;return 0===u.length&&0===s.length?lc(o({},n,{guardsResult:!0})):function(t,e,n,r){return it(u).pipe(ot(function(t){return function(t,e,n,r,i){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?lc(o.map(function(o){var a,s=Td(o,e,i);if(function(t){return t&&pd(t.canDeactivate)}(s))a=mf(s.canDeactivate(t,e,n,r));else{if(!pd(s))throw new Error("Invalid CanDeactivate guard");a=mf(s(t,e,n,r))}return a.pipe(Hc())})).pipe(Id()):lc(!0)}(t.component,t.route,n,e,r)}),Hc(function(t){return!0!==t},!0))}(0,r,i,t).pipe(ot(function(n){return n&&"boolean"==typeof n?function(t,e,n,r){return it(s).pipe(Xc(function(e){return it([Dd(e.route.parent,r),Od(e.route,r),Nd(t,e.path,n),Rd(t,e.route,n)]).pipe(gc(),Hc(function(t){return!0!==t},!0))}),Hc(function(t){return!0!==t},!0))}(r,0,t,e):lc(n)}),tt(function(t){return o({},n,{guardsResult:t})}))}))}}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),Tc(function(t){if(fd(t.guardsResult)){var n=of('Redirecting to "'+e.serializeUrl(t.guardsResult)+'"');throw n.url=t.guardsResult,n}}),Tc(function(t){var n=new Gp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)}),vc(function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var r=new Lp(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(r),t.resolve(!1),!1}return!0}),qd(function(t){if(t.guards.canActivateChecks.length)return lc(t).pipe(Tc(function(t){var n=new Bp(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(ot(function(t){var e=t.targetSnapshot,i=t.guards.canActivateChecks;return i.length?it(i).pipe(Xc(function(t){return function(t,n,r,i){return function(t,e,n,r){var i=Object.keys(t);if(0===i.length)return lc({});if(1===i.length){var o=i[0];return Bd(t[o],e,n,r).pipe(tt(function(t){var e;return(e={})[o]=t,e}))}var a={};return it(i).pipe(ot(function(i){return Bd(t[i],e,n,r).pipe(tt(function(t){return a[i]=t,t}))})).pipe(Nc(),tt(function(){return a}))}(t._resolve,t,e,i).pipe(tt(function(e){return t._resolvedData=e,t.data=o({},t.data,Qf(t,r).resolve),null}))}(t.route,0,n,r)}),function(t,e){return arguments.length>=2?function(e){return O(Wc(t,void 0),Sc(1),Oc(void 0))(e)}:function(e){return O(Wc(function(e,n,r){return t(e)}),Sc(1))(e)}}(function(t,e){return t}),tt(function(e){return t})):lc(t)}))}),Tc(function(t){var n=new qp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}));var n,r}),qd(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,i,a=(i=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){(l=r.value)._futureSnapshot=n.value;var i=function(e,n,r){return n.children.map(function(n){var i,o;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){i={error:c}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}return t(e,n)})}(e,n,r);return new Hf(l,i)}var o=e.retrieve(n.value);if(o){var a=o.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 qf(new cc((s=n.value).url),new cc(s.params),new cc(s.queryParams),new cc(s.fragment),new cc(s.data),s.outlet,s.component,s);return i=n.children.map(function(n){return t(e,n)}),new Hf(l,i)}(e.routeReuseStrategy,(n=t.targetSnapshot)._root,(r=t.currentRouterState)?r._root:void 0),new Gf(i,n));return o({},t,{targetRouterState:a})}),Tc(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)}),(i=e.rootContexts,a=e.routeReuseStrategy,s=function(t){return e.triggerEvent(t)},tt(function(t){return new cd(a,t.targetRouterState,t.currentRouterState,s).activate(i),t})),Tc({next:function(){l=!0},complete:function(){l=!0}}),(r=function(){if(!l&&!c){e.resetUrlToCurrentUrlTree();var r=new Lp(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 $c(r))}),Mc(function(r){if(c=!0,(s=r)&&s[rf]){e.navigated=!0;var i=fd(r.url);i||e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var o=new Lp(t.id,e.serializeUrl(t.extractedUrl),r.message);n.next(o),t.resolve(!1),i&&e.navigateByUrl(r.url)}else{e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var a=new Up(t.id,e.serializeUrl(t.extractedUrl),r);n.next(a);try{t.resolve(e.errorHandler(r))}catch(u){t.reject(u)}}var s;return ac}))}))},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(o({},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",i=e.state&&e.state.navigationId?{navigationId:e.state.navigationId}:null;setTimeout(function(){t.scheduleNavigation(n,r,i,{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){uf(t),this.config=t.map(hf),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,i=e.fragment,a=e.preserveQueryParams,s=e.queryParamsHandling,u=e.preserveFragment;bi()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=n||this.routerState.root,h=u?this.currentUrlTree.fragment:i,p=null;if(s)switch(s){case"merge":p=o({},this.currentUrlTree.queryParams,r);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=r||null}else p=a?this.currentUrlTree.queryParams:r||null;return null!==p&&(p=this.removeEmptyProps(p)),function(t,e,n,r,i){if(0===n.length)return td(e.root,e.root,e,r,i);var o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ed(!0,0,t);var e=0,n=!1,r=t.reduce(function(t,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return yf(r.outlets,function(t,e){o[e]="string"==typeof t?t.split("/"):t}),c(t,[{outlets:o}])}if(r.segmentPath)return c(t,[r.segmentPath])}return"string"!=typeof r?c(t,[r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):c(t,[r])},[]);return new ed(n,e,r)}(n);if(o.toRoot())return td(e.root,new _f([],{}),e,r,i);var a=function(t,n,r){if(t.isAbsolute)return new nd(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new nd(r.snapshot._urlSegment,!0,0);var i=Jf(t.commands[0])?0:1;return function(e,n,o){for(var a=r.snapshot._urlSegment,s=r.snapshot._lastPathIndex+i,u=t.numberOfDoubleDots;u>s;){if(u-=s,!(a=a.parent))throw new Error("Invalid number of '../'");s=a.segments.length}return new nd(a,!1,s-u)}()}(o,0,t),s=a.processChildren?od(a.segmentGroup,a.index,o.commands):id(a.segmentGroup,a.index,o.commands);return td(a.segmentGroup,s,e,r,i)}(l,this.currentUrlTree,t,p,h)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),bi()&&this.isNgZoneEnabled&&!xo.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=fd(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(fd(t))return gf(this.currentUrlTree,t,e);var n=this.parseUrl(t);return gf(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 Fp(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 i=this.getTransition();if(i&&"imperative"!==e&&"imperative"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(i&&"hashchange"==e&&"popstate"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(i&&"popstate"==e&&"hashchange"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);var o=null,a=null,s=new Promise(function(t,e){o=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:o,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}(),ny=function(){function t(t,e,n,r,i){this.router=t,this.route=e,this.commands=[],null==n&&r.setAttribute(i.nativeElement,"tabindex","0")}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){bi()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){var t={skipLocationChange:ry(this.skipLocationChange),replaceUrl:ry(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ry(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ry(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();function ry(t){return""===t||!!t}var iy=function(){return function(){this.outlet=null,this.route=null,this.resolver=null,this.children=new oy,this.attachRef=null}}(),oy=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 iy,this.contexts.set(t,e)),e},t.prototype.getContext=function(t){return this.contexts.get(t)||null},t}(),ay=function(){function t(t,e,n,r,i){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new Gi,this.deactivateEvents=new Gi,this.name=r||tf,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,i=new sy(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)},t}(),sy=function(){function t(t,e,n){this.route=t,this.childContexts=e,this.parent=n}return t.prototype.get=function(t,e){return t===qf?this.route:t===oy?this.childContexts:this.parent.get(t,e)},t}(),uy=function(){return function(){}}(),ly=function(){function t(){}return t.prototype.preload=function(t,e){return e().pipe(Mc(function(){return lc(null)}))},t}(),cy=function(){function t(){}return t.prototype.preload=function(t,e){return lc(null)},t}(),hy=function(){function t(t,e,n,r,i){this.router=t,this.injector=r,this.preloadingStrategy=i,this.loader=new Zd(e,n,function(e){return t.triggerEvent(new Qp(e))},function(e){return t.triggerEvent(new Kp(e))})}return t.prototype.setUpPreloading=function(){var t=this;this.subscription=this.router.events.pipe(vc(function(t){return t instanceof Fp}),Xc(function(){return t.preload()})).subscribe(function(){})},t.prototype.preload=function(){var t=this.injector.get(tr);return this.processRoutes(t,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){var n,r,i=[];try{for(var o=u(e),a=o.next();!a.done;a=o.next()){var s=a.value;if(s.loadChildren&&!s.canLoad&&s._loadedConfig){var l=s._loadedConfig;i.push(this.processRoutes(l.module,l.routes))}else s.loadChildren&&!s.canLoad?i.push(this.preloadConfig(t,s)):s.children&&i.push(this.processRoutes(t,s.children))}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return it(i).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(ot(function(t){return e._loadedConfig=t,n.processRoutes(t.module,t.routes)}))})},t}(),py=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 Vp?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Fp&&(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 $p&&(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 $p(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}(),fy=new Pt("ROUTER_CONFIGURATION"),dy=new Pt("ROUTER_FORROOT_GUARD"),yy=[ih,{provide:Sf,useClass:Ef},{provide:ey,useFactory:Cy,deps:[zo,Sf,oy,ih,Un,Bo,vo,Wd,fy,[Yd,new Gt],[Qd,new Gt]]},oy,{provide:qf,useFactory:Sy,deps:[ey]},{provide:Bo,useClass:Wo},hy,cy,ly,{provide:fy,useValue:{enableTracing:!1}}];function my(){return new Vo("Router",ey)}var gy=function(){function t(t,e){}var e;return e=t,t.forRoot=function(t,n){return{ngModule:e,providers:[yy,wy(t),{provide:dy,useFactory:by,deps:[[ey,new Gt,new qt]]},{provide:fy,useValue:n||{}},{provide:nh,useFactory:_y,deps:[th,[new zt(rh),new Gt],fy]},{provide:py,useFactory:vy,deps:[ey,xh,fy]},{provide:uy,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:cy},{provide:Vo,multi:!0,useFactory:my},[Ey,{provide:oo,multi:!0,useFactory:xy,deps:[Ey]},{provide:Py,useFactory:Ty,deps:[Ey]},{provide:po,multi:!0,useExisting:Py}]]}},t.forChild=function(t){return{ngModule:e,providers:[wy(t)]}},t}();function vy(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new py(t,e,n)}function _y(t,e,n){return void 0===n&&(n={}),n.useHash?new ah(t,e):new sh(t,e)}function by(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function wy(t){return[{provide:It,multi:!0,useValue:t},{provide:Wd,multi:!0,useValue:t}]}function Cy(t,e,n,r,i,o,a,s,u,l,c){void 0===u&&(u={});var h=new ey(null,e,n,r,i,o,a,ff(s));if(l&&(h.urlHandlingStrategy=l),c&&(h.routeReuseStrategy=c),u.errorHandler&&(h.errorHandler=u.errorHandler),u.malformedUriErrorHandler&&(h.malformedUriErrorHandler=u.malformedUriErrorHandler),u.enableTracing){var p=kh();h.events.subscribe(function(t){p.logGroup("Router Event: "+t.constructor.name),p.log(t.toString()),p.log(t),p.logGroupEnd()})}return u.onSameUrlNavigation&&(h.onSameUrlNavigation=u.onSameUrlNavigation),u.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=u.paramsInheritanceStrategy),u.urlUpdateStrategy&&(h.urlUpdateStrategy=u.urlUpdateStrategy),u.relativeLinkResolution&&(h.relativeLinkResolution=u.relativeLinkResolution),h}function Sy(t){return t.routerState.root}var Ey=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(eh,Promise.resolve(null)).then(function(){var e=null,n=new Promise(function(t){return e=t}),r=t.injector.get(ey),i=t.injector.get(fy);if(t.isLegacyDisabled(i)||t.isLegacyEnabled(i))e(!0);else if("disabled"===i.initialNavigation)r.setUpLocationChangeListener(),e(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '"+i.initialNavigation+"'");r.hooks.afterPreactivation=function(){return t.initNavigation?lc(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()}return n})},t.prototype.bootstrapListener=function(t){var e=this.injector.get(fy),n=this.injector.get(hy),r=this.injector.get(py),i=this.injector.get(ey),o=this.injector.get(zo);t===o.components[0]&&(this.isLegacyEnabled(e)?i.initialNavigation():this.isLegacyDisabled(e)&&i.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.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 xy(t){return t.appInitializer.bind(t)}function Ty(t){return t.bootstrapListener.bind(t)}var Py=new Pt("Router Initializer"),ky=Ba({encapsulation:2,styles:[],data:{}});function Ay(t){return Mu(0,[(t()(),bs(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),uu(1,212992,null,0,ay,[oy,Xo,Jr,[8,null],Jo],null,null)],function(t,e){t(e,1,0)},null)}function Iy(t){return Mu(0,[(t()(),bs(0,0,null,null,1,"ng-component",[],null,null,null,Ay,ky)),uu(1,49152,null,0,Jp,[],null,null)],null,null)}var Oy=Fs("ng-component",Jp,Iy,{},{},[]);function Dy(t){return null!=t&&""+t!="false"}function Ry(t,e){return void 0===e&&(e=0),function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}var Ny,My="undefined"!=typeof Intl&&Intl.v8BreakIterator,jy=function(){function t(t){this._platformId=t,this.isBrowser=this._platformId?this._platformId===Sh:"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!My)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}return t.ngInjectableDef=Et({factory:function(){return new t(Yt(ho,8))},token:t,providedIn:"root"}),t}(),Vy=function(){return function(){}}();function Fy(t){return function(){if(null==Ny&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Ny=!0}}))}finally{Ny=Ny||!1}return Ny}()?t:!!t.capture}function Ly(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.length?e.some(function(e){return t[e]}):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var Uy=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return i(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return i(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(b)),Hy=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),zy=new(function(t){function e(n,r){void 0===r&&(r=Hy.now);var i=t.call(this,n,function(){return e.delegate&&e.delegate!==i?e.delegate.now():r()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return i(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(Hy))(Uy),Gy=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new By(t,this.dueTime,this.scheduler))},t}(),By=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return i(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(qy,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(P);function qy(t){t.debouncedNext()}var Qy=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._origin="program",e}return i(e,t),e.prototype.setFocusOrigin=function(t){return this._origin=t,this},e.prototype.setActiveItem=function(e){t.prototype.setActiveItem.call(this,e),this.activeItem&&this.activeItem.focus(this._origin)},e}(function(){function t(t){var e=this;this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new L,this._typeaheadSubscription=b.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._skipPredicateFn=function(t){return t.disabled},this._pressedLetters=[],this.tabOut=new L,this.change=new L,t instanceof qo&&t.changes.subscribe(function(t){if(e._activeItem){var n=t.toArray().indexOf(e._activeItem);n>-1&&n!==e._activeItemIndex&&(e._activeItemIndex=n)}})}return t.prototype.skipPredicate=function(t){return this._skipPredicateFn=t,this},t.prototype.withWrap=function(t){return void 0===t&&(t=!0),this._wrap=t,this},t.prototype.withVerticalOrientation=function(t){return void 0===t&&(t=!0),this._vertical=t,this},t.prototype.withHorizontalOrientation=function(t){return this._horizontal=t,this},t.prototype.withAllowedModifierKeys=function(t){return this._allowedModifierKeys=t,this},t.prototype.withTypeAhead=function(t){var e,n,r=this;if(void 0===t&&(t=200),this._items.length&&this._items.some(function(t){return"function"!=typeof t.getLabel}))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Tc(function(t){return r._pressedLetters.push(t)}),(e=t,void 0===n&&(n=zy),function(t){return t.lift(new Gy(e,n))}),vc(function(){return r._pressedLetters.length>0}),tt(function(){return r._pressedLetters.join("")})).subscribe(function(t){for(var e=r._getItemsArray(),n=1;n<e.length+1;n++){var i=(r._activeItemIndex+n)%e.length,o=e[i];if(!r._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(t)){r.setActiveItem(i);break}}r._pressedLetters=[]}),this},t.prototype.setActiveItem=function(t){var e=this._activeItemIndex;this.updateActiveItem(t),this._activeItemIndex!==e&&this.change.next(this._activeItemIndex)},t.prototype.onKeydown=function(t){var e=this,n=t.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!t[n]||e._allowedModifierKeys.indexOf(n)>-1});switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((r||Ly(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],t.preventDefault()},Object.defineProperty(t.prototype,"activeItemIndex",{get:function(){return this._activeItemIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeItem",{get:function(){return this._activeItem},enumerable:!0,configurable:!0}),t.prototype.setFirstItemActive=function(){this._setActiveItemByIndex(0,1)},t.prototype.setLastItemActive=function(){this._setActiveItemByIndex(this._items.length-1,-1)},t.prototype.setNextItemActive=function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)},t.prototype.setPreviousItemActive=function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)},t.prototype.updateActiveItem=function(t){var e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),r=e[n];this._activeItem=null==r?null:r,this._activeItemIndex=n},t.prototype.updateActiveItemIndex=function(t){this.updateActiveItem(t)},t.prototype._setActiveItemByDelta=function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)},t.prototype._setActiveInWrapMode=function(t){for(var e=this._getItemsArray(),n=1;n<=e.length;n++){var r=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}},t.prototype._setActiveInDefaultMode=function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)},t.prototype._setActiveItemByIndex=function(t,e){var n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}},t.prototype._getItemsArray=function(){return this._items instanceof qo?this._items.toArray():this._items},t}()),Ky=650,Wy=Fy({passive:!0,capture:!0}),Zy=function(){function t(t,e){var n=this;this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._documentKeydownListener=function(){n._lastTouchTarget=null,n._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(){n._lastTouchTarget||n._setOriginForCurrentEventQueue("mouse")},this._documentTouchstartListener=function(t){null!=n._touchTimeoutId&&clearTimeout(n._touchTimeoutId),n._lastTouchTarget=t.target,n._touchTimeoutId=setTimeout(function(){return n._lastTouchTarget=null},Ky)},this._windowFocusListener=function(){n._windowFocused=!0,n._windowFocusTimeoutId=setTimeout(function(){return n._windowFocused=!1})}}return t.prototype.monitor=function(t,e){var n=this;if(void 0===e&&(e=!1),!this._platform.isBrowser)return lc(null);var r=this._getNativeElement(t);if(this._elementInfo.has(r)){var i=this._elementInfo.get(r);return i.checkChildren=e,i.subject.asObservable()}var o={unlisten:function(){},checkChildren:e,subject:new L};this._elementInfo.set(r,o),this._incrementMonitoredElementCount();var a=function(t){return n._onFocus(t,r)},s=function(t){return n._onBlur(t,r)};return this._ngZone.runOutsideAngular(function(){r.addEventListener("focus",a,!0),r.addEventListener("blur",s,!0)}),o.unlisten=function(){r.removeEventListener("focus",a,!0),r.removeEventListener("blur",s,!0)},o.subject.asObservable()},t.prototype.stopMonitoring=function(t){var e=this._getNativeElement(t),n=this._elementInfo.get(e);n&&(n.unlisten(),n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._decrementMonitoredElementCount())},t.prototype.focusVia=function(t,e,n){var r=this._getNativeElement(t);this._setOriginForCurrentEventQueue(e),"function"==typeof r.focus&&r.focus(n)},t.prototype.ngOnDestroy=function(){var t=this;this._elementInfo.forEach(function(e,n){return t.stopMonitoring(n)})},t.prototype._toggleClass=function(t,e,n){n?t.classList.add(e):t.classList.remove(e)},t.prototype._setClasses=function(t,e){this._elementInfo.get(t)&&(this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e))},t.prototype._setOriginForCurrentEventQueue=function(t){var e=this;this._ngZone.runOutsideAngular(function(){e._origin=t,e._originTimeoutId=setTimeout(function(){return e._origin=null},1)})},t.prototype._wasCausedByTouch=function(t){var e=t.target;return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))},t.prototype._onFocus=function(t,e){var n=this._elementInfo.get(e);if(n&&(n.checkChildren||e===t.target)){var r=this._origin;r||(r=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"),this._setClasses(e,r),this._emitOrigin(n.subject,r),this._lastFocusOrigin=r}},t.prototype._onBlur=function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))},t.prototype._emitOrigin=function(t,e){this._ngZone.run(function(){return t.next(e)})},t.prototype._incrementMonitoredElementCount=function(){var t=this;1==++this._monitoredElementCount&&this._platform.isBrowser&&this._ngZone.runOutsideAngular(function(){document.addEventListener("keydown",t._documentKeydownListener,Wy),document.addEventListener("mousedown",t._documentMousedownListener,Wy),document.addEventListener("touchstart",t._documentTouchstartListener,Wy),window.addEventListener("focus",t._windowFocusListener)})},t.prototype._decrementMonitoredElementCount=function(){--this._monitoredElementCount||(document.removeEventListener("keydown",this._documentKeydownListener,Wy),document.removeEventListener("mousedown",this._documentMousedownListener,Wy),document.removeEventListener("touchstart",this._documentTouchstartListener,Wy),window.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId))},t.prototype._getNativeElement=function(t){return t instanceof ni?t.nativeElement:t},t.ngInjectableDef=Et({factory:function(){return new t(Yt(xo),Yt(jy))},token:t,providedIn:"root"}),t}(),Yy=new Pt("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),Xy=function(){function t(t,e){this._sanityChecksEnabled=t,this._hammerLoader=e,this._hasDoneGlobalChecks=!1,this._hasCheckedHammer=!1,this._document="object"==typeof document&&document?document:null,this._window="object"==typeof window&&window?window:null,this._areChecksEnabled()&&!this._hasDoneGlobalChecks&&(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._hasDoneGlobalChecks=!0)}return t.prototype._areChecksEnabled=function(){return this._sanityChecksEnabled&&bi()&&!this._isTestEnv()},t.prototype._isTestEnv=function(){var t=this._window;return t&&(t.__karma__||t.jasmine)},t.prototype._checkDoctypeIsDefined=function(){this._document&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")},t.prototype._checkThemeIsPresent=function(){if(this._document&&this._document.body&&"function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);var e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}},t.prototype._checkHammerIsAvailable=function(){!this._hasCheckedHammer&&this._window&&(!this._areChecksEnabled()||this._window.Hammer||this._hammerLoader||console.warn("Could not find HammerJS. Certain Angular Material components may not work correctly."),this._hasCheckedHammer=!0)},t}();function $y(t){return function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.apply(this,e)||this;return r._disabled=!1,r}return i(e,t),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=Dy(t)},enumerable:!0,configurable:!0}),e}(t)}function Jy(t,e){return function(t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.apply(this,n)||this;return i.color=e,i}return i(n,t),Object.defineProperty(n.prototype,"color",{get:function(){return this._color},set:function(t){var n=t||e;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),n&&this._elementRef.nativeElement.classList.add("mat-"+n),this._color=n)},enumerable:!0,configurable:!0}),n}(t)}function tm(t){return function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.apply(this,e)||this;return r._disableRipple=!1,r}return i(e,t),Object.defineProperty(e.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=Dy(t)},enumerable:!0,configurable:!0}),e}(t)}var em=function(){return function(){}}(),nm=function(){var t={FADING_IN:0,VISIBLE:1,FADING_OUT:2,HIDDEN:3};return t[t.FADING_IN]="FADING_IN",t[t.VISIBLE]="VISIBLE",t[t.FADING_OUT]="FADING_OUT",t[t.HIDDEN]="HIDDEN",t}(),rm=function(){function t(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=nm.HIDDEN}return t.prototype.fadeOut=function(){this._renderer.fadeOutRipple(this)},t}(),im={enterDuration:450,exitDuration:400},om=800,am=Fy({passive:!0}),sm=function(){function t(t,e,n,r){var i=this;this._target=t,this._ngZone=e,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this.onMousedown=function(t){var e=function(t){return 0===t.buttons}(t),n=i._lastTouchStartEvent&&Date.now()<i._lastTouchStartEvent+om;i._target.rippleDisabled||e||n||(i._isPointerDown=!0,i.fadeInRipple(t.clientX,t.clientY,i._target.rippleConfig))},this.onTouchStart=function(t){if(!i._target.rippleDisabled){i._lastTouchStartEvent=Date.now(),i._isPointerDown=!0;for(var e=t.changedTouches,n=0;n<e.length;n++)i.fadeInRipple(e[n].clientX,e[n].clientY,i._target.rippleConfig)}},this.onPointerUp=function(){i._isPointerDown&&(i._isPointerDown=!1,i._activeRipples.forEach(function(t){!t.config.persistent&&(t.state===nm.VISIBLE||t.config.terminateOnPointerUp&&t.state===nm.FADING_IN)&&t.fadeOut()}))},r.isBrowser&&(this._containerElement=n.nativeElement,this._triggerEvents.set("mousedown",this.onMousedown).set("mouseup",this.onPointerUp).set("mouseleave",this.onPointerUp).set("touchstart",this.onTouchStart).set("touchend",this.onPointerUp).set("touchcancel",this.onPointerUp))}return t.prototype.fadeInRipple=function(t,e,n){var r=this;void 0===n&&(n={});var i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),a=o({},im,n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);var s=n.radius||function(t,e,n){var r=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),i=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(r*r+i*i)}(t,e,i),u=t-i.left,l=e-i.top,c=a.enterDuration,h=document.createElement("div");h.classList.add("mat-ripple-element"),h.style.left=u-s+"px",h.style.top=l-s+"px",h.style.height=2*s+"px",h.style.width=2*s+"px",h.style.backgroundColor=n.color||null,h.style.transitionDuration=c+"ms",this._containerElement.appendChild(h),window.getComputedStyle(h).getPropertyValue("opacity"),h.style.transform="scale(1)";var p=new rm(this,h,n);return p.state=nm.FADING_IN,this._activeRipples.add(p),n.persistent||(this._mostRecentTransientRipple=p),this.runTimeoutOutsideZone(function(){var t=p===r._mostRecentTransientRipple;p.state=nm.VISIBLE,n.persistent||t&&r._isPointerDown||p.fadeOut()},c),p},t.prototype.fadeOutRipple=function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var n=t.element,r=o({},im,t.config.animation);n.style.transitionDuration=r.exitDuration+"ms",n.style.opacity="0",t.state=nm.FADING_OUT,this.runTimeoutOutsideZone(function(){t.state=nm.HIDDEN,n.parentNode.removeChild(n)},r.exitDuration)}},t.prototype.fadeOutAll=function(){this._activeRipples.forEach(function(t){return t.fadeOut()})},t.prototype.setupTriggerEvents=function(t){var e=this;t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular(function(){e._triggerEvents.forEach(function(e,n){t.addEventListener(n,e,am)})}),this._triggerElement=t)},t.prototype.runTimeoutOutsideZone=function(t,e){void 0===e&&(e=0),this._ngZone.runOutsideAngular(function(){return setTimeout(t,e)})},t.prototype._removeTriggerEvents=function(){var t=this;this._triggerElement&&this._triggerEvents.forEach(function(e,n){t._triggerElement.removeEventListener(n,e,am)})},t}(),um=new Pt("mat-ripple-global-options"),lm=function(){function t(t,e,n,r,i){this._elementRef=t,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new sm(this,e,t,n),"NoopAnimations"===i&&(this._globalOptions.animation={enterDuration:0,exitDuration:0})}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=t,this._setupTriggerEventsIfEnabled()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"trigger",{get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()},t.prototype.ngOnDestroy=function(){this._rippleRenderer._removeTriggerEvents()},t.prototype.fadeOutAll=function(){this._rippleRenderer.fadeOutAll()},Object.defineProperty(t.prototype,"rippleConfig",{get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:o({},this._globalOptions.animation,this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rippleDisabled",{get:function(){return this.disabled||!!this._globalOptions.disabled},enumerable:!0,configurable:!0}),t.prototype._setupTriggerEventsIfEnabled=function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)},t.prototype.launch=function(t,e,n){return void 0===e&&(e=0),"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,o({},this.rippleConfig,n)):this._rippleRenderer.fadeInRipple(0,0,o({},this.rippleConfig,t))},t}(),cm=function(){return function(){}}(),hm=new Pt("MAT_GRID_LIST"),pm=function(){function t(t,e){this._element=t,this._gridList=e,this._rowspan=1,this._colspan=1}return Object.defineProperty(t.prototype,"rowspan",{get:function(){return this._rowspan},set:function(t){this._rowspan=Math.round(Ry(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"colspan",{get:function(){return this._colspan},set:function(t){this._colspan=Math.round(Ry(t))},enumerable:!0,configurable:!0}),t.prototype._setStyle=function(t,e){this._element.nativeElement.style[t]=e},t}(),fm=function(){function t(){this.columnIndex=0,this.rowIndex=0}return Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.rowIndex+1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowspan",{get:function(){var t=Math.max.apply(Math,this.tracker);return t>1?this.rowCount+t-1:this.rowCount},enumerable:!0,configurable:!0}),t.prototype.update=function(t,e){var n=this;this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(t),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map(function(t){return n._trackTile(t)})},t.prototype._trackTile=function(t){var e=this._findMatchingGap(t.colspan);return this._markTilePosition(e,t),this.columnIndex=e+t.colspan,new dm(this.rowIndex,e)},t.prototype._findMatchingGap=function(t){if(t>this.tracker.length)throw Error("mat-grid-list: tile with colspan "+t+' is wider than grid with cols="'+this.tracker.length+'".');var e=-1,n=-1;do{this.columnIndex+t>this.tracker.length?(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(e)):-1!=(e=this.tracker.indexOf(0,this.columnIndex))?(n=this._findGapEndIndex(e),this.columnIndex=e+1):(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(e))}while(n-e<t||0==n);return Math.max(e,0)},t.prototype._nextRow=function(){this.columnIndex=0,this.rowIndex++;for(var t=0;t<this.tracker.length;t++)this.tracker[t]=Math.max(0,this.tracker[t]-1)},t.prototype._findGapEndIndex=function(t){for(var e=t+1;e<this.tracker.length;e++)if(0!=this.tracker[e])return e;return this.tracker.length},t.prototype._markTilePosition=function(t,e){for(var n=0;n<e.colspan;n++)this.tracker[t+n]=e.rowspan},t}(),dm=function(){return function(t,e){this.row=t,this.col=e}}(),ym=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/,mm=function(){function t(){this._rows=0,this._rowspan=0}return t.prototype.init=function(t,e,n,r){this._gutterSize=wm(t),this._rows=e.rowCount,this._rowspan=e.rowspan,this._cols=n,this._direction=r},t.prototype.getBaseTileSize=function(t,e){return"("+t+"% - ("+this._gutterSize+" * "+e+"))"},t.prototype.getTilePosition=function(t,e){return 0===e?"0":bm("("+t+" + "+this._gutterSize+") * "+e)},t.prototype.getTileSize=function(t,e){return"("+t+" * "+e+") + ("+(e-1)+" * "+this._gutterSize+")"},t.prototype.setStyle=function(t,e,n){var r=100/this._cols,i=(this._cols-1)/this._cols;this.setColStyles(t,n,r,i),this.setRowStyles(t,e,r,i)},t.prototype.setColStyles=function(t,e,n,r){var i=this.getBaseTileSize(n,r);t._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(i,e)),t._setStyle("width",bm(this.getTileSize(i,t.colspan)))},t.prototype.getGutterSpan=function(){return this._gutterSize+" * ("+this._rowspan+" - 1)"},t.prototype.getTileSpan=function(t){return this._rowspan+" * "+this.getTileSize(t,1)},t.prototype.getComputedHeight=function(){return null},t}(),gm=function(t){function e(e){var n=t.call(this)||this;return n.fixedRowHeight=e,n}return i(e,t),e.prototype.init=function(e,n,r,i){if(t.prototype.init.call(this,e,n,r,i),this.fixedRowHeight=wm(this.fixedRowHeight),!ym.test(this.fixedRowHeight))throw Error('Invalid value "'+this.fixedRowHeight+'" set as rowHeight.')},e.prototype.setRowStyles=function(t,e){t._setStyle("top",this.getTilePosition(this.fixedRowHeight,e)),t._setStyle("height",bm(this.getTileSize(this.fixedRowHeight,t.rowspan)))},e.prototype.getComputedHeight=function(){return["height",bm(this.getTileSpan(this.fixedRowHeight)+" + "+this.getGutterSpan())]},e.prototype.reset=function(t){t._setListStyle(["height",null]),t._tiles&&t._tiles.forEach(function(t){t._setStyle("top",null),t._setStyle("height",null)})},e}(mm),vm=function(t){function e(e){var n=t.call(this)||this;return n._parseRatio(e),n}return i(e,t),e.prototype.setRowStyles=function(t,e,n,r){this.baseTileHeight=this.getBaseTileSize(n/this.rowHeightRatio,r),t._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,e)),t._setStyle("paddingTop",bm(this.getTileSize(this.baseTileHeight,t.rowspan)))},e.prototype.getComputedHeight=function(){return["paddingBottom",bm(this.getTileSpan(this.baseTileHeight)+" + "+this.getGutterSpan())]},e.prototype.reset=function(t){t._setListStyle(["paddingBottom",null]),t._tiles.forEach(function(t){t._setStyle("marginTop",null),t._setStyle("paddingTop",null)})},e.prototype._parseRatio=function(t){var e=t.split(":");if(2!==e.length)throw Error('mat-grid-list: invalid ratio given for row-height: "'+t+'"');this.rowHeightRatio=parseFloat(e[0])/parseFloat(e[1])},e}(mm),_m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setRowStyles=function(t,e){var n=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);t._setStyle("top",this.getTilePosition(n,e)),t._setStyle("height",bm(this.getTileSize(n,t.rowspan)))},e.prototype.reset=function(t){t._tiles&&t._tiles.forEach(function(t){t._setStyle("top",null),t._setStyle("height",null)})},e}(mm);function bm(t){return"calc("+t+")"}function wm(t){return t.match(/([A-Za-z%]+)$/)?t:t+"px"}var Cm=function(){function t(t,e){this._element=t,this._dir=e,this._gutter="1px"}return Object.defineProperty(t.prototype,"cols",{get:function(){return this._cols},set:function(t){this._cols=Math.max(1,Math.round(Ry(t)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gutterSize",{get:function(){return this._gutter},set:function(t){this._gutter=""+(null==t?"":t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowHeight",{get:function(){return this._rowHeight},set:function(t){var e=""+(null==t?"":t);e!==this._rowHeight&&(this._rowHeight=e,this._setTileStyler(this._rowHeight))},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._checkCols(),this._checkRowHeight()},t.prototype.ngAfterContentChecked=function(){this._layoutTiles()},t.prototype._checkCols=function(){if(!this.cols)throw Error('mat-grid-list: must pass in number of columns. Example: <mat-grid-list cols="3">')},t.prototype._checkRowHeight=function(){this._rowHeight||this._setTileStyler("1:1")},t.prototype._setTileStyler=function(t){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===t?new _m:t&&t.indexOf(":")>-1?new vm(t):new gm(t)},t.prototype._layoutTiles=function(){var t=this;this._tileCoordinator||(this._tileCoordinator=new fm);var e=this._tileCoordinator,n=this._tiles.filter(function(e){return!e._gridList||e._gridList===t}),r=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,n),this._tileStyler.init(this.gutterSize,e,this.cols,r),n.forEach(function(n,r){var i=e.positions[r];t._tileStyler.setStyle(n,i.row,i.col)}),this._setListStyle(this._tileStyler.getComputedHeight())},t.prototype._setListStyle=function(t){t&&(this._element.nativeElement.style[t[0]]=t[1])},t}(),Sm=function(){return function(){}}(),Em=new Pt("cdk-dir-doc",{providedIn:"root",factory:function(){return Yt(Ch)}}),xm=function(){function t(t){if(this.value="ltr",this.change=new Gi,t){var e=(t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null);this.value="ltr"===e||"rtl"===e?e:"ltr"}}return t.prototype.ngOnDestroy=function(){this.change.complete()},t.ngInjectableDef=Et({factory:function(){return new t(Yt(Em,8))},token:t,providedIn:"root"}),t}(),Tm=function(){return function(){}}(),Pm=Ba({encapsulation:2,styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-footer,.mat-grid-tile .mat-grid-tile-header{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-footer>*,.mat-grid-tile .mat-grid-tile-header>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-grid-tile .mat-grid-tile-footer.mat-2-line,.mat-grid-tile .mat-grid-tile-header.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}"],data:{}});function km(t){return Mu(2,[(t()(),bs(0,0,null,null,1,"div",[],null,null,null,null,null)),Au(null,0)],null,null)}var Am=Ba({encapsulation:2,styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-footer,.mat-grid-tile .mat-grid-tile-header{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-footer>*,.mat-grid-tile .mat-grid-tile-header>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-grid-tile .mat-grid-tile-footer.mat-2-line,.mat-grid-tile .mat-grid-tile-header.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}"],data:{}});function Im(t){return Mu(2,[(t()(),bs(0,0,null,null,1,"figure",[["class","mat-figure"]],null,null,null,null,null)),Au(null,0)],null,null)}var Om=function(t){function e(e,n){var r=t.call(this,e)||this;r.sources=n,r.completed=0,r.haveValues=0;var i=n.length;r.values=new Array(i);for(var o=0;o<i;o++){var a=$(r,n[o],null,o);a&&r.add(a)}return r}return i(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e,i._hasValue||(i._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,n=this.haveValues,r=this.values,i=r.length;t._hasValue?(this.completed++,this.completed===i&&(n===i&&e.next(r),e.complete())):e.complete()},e}(J),Dm=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}(),Rm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(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}(Dm);function Nm(t){return null==t||0===t.length}var Mm=/^(?=.{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])?)*$/,jm=function(){function t(){}return t.min=function(t){return function(e){if(Nm(e.value)||Nm(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(Nm(e.value)||Nm(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 Nm(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return Nm(t.value)?null:Mm.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(Nm(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(Nm(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(Vm);return 0==e.length?null:function(t){return Lm(function(t,n){return e.map(function(e){return e(t)})}(t))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(Vm);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&&h(n[0])&&(n=n[0]),0===n.length?ac:e?t(n).pipe(tt(function(t){return e.apply(void 0,t)})):new R(function(t){return new Om(t,n)})}(function(t,n){return e.map(function(e){return e(t)})}(t).map(Fm)).pipe(tt(Lm))}},t}();function Vm(t){return null!=t}function Fm(t){var e=ro(t)?it(t):t;if(!io(e))throw new Error("Expected validator to return Promise or Observable.");return e}function Lm(t){var e=t.reduce(function(t,e){return null!=e?o({},t,e):t},{});return 0===Object.keys(e).length?null:e}var Um=new Pt("NgValueAccessor"),Hm=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}(),zm=new Pt("CompositionEventMode"),Gm=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=kh()?kh().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 Bm(t){return t.validate?function(e){return t.validate(e)}:t}function qm(t){return t.validate?function(e){return t.validate(e)}:t}var Qm=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 Km(){throw new Error("unimplemented")}var Wm=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 i(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return Km()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Km()},enumerable:!0,configurable:!0}),e}(Dm),Zm=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}(),Ym=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(Wm),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}(),Xm='\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    });',$m='\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>';function Jm(t,e){return c(e.path,[t])}function tg(t,e){t||ng(e,"Cannot find control with"),e.valueAccessor||ng(e,"No value accessor for form control with"),t.validator=jm.compose([t.validator,e.validator]),t.asyncValidator=jm.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&&eg(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&&eg(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 eg(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function ng(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 rg(t){return null!=t?jm.compose(t.map(Bm)):null}function ig(t){return null!=t?jm.composeAsync(t.map(qm)):null}var og=[Hm,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}(),Qm,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=Lt}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=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}(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())),i=r.next();!i.done;i=r.next()){var o=i.value;if(this._compareWith(this._optionMap.get(o),t))return o}}catch(a){e={error:a}}finally{try{i&&!i.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}(),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=Lt}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 i=n.selectedOptions,o=0;o<i.length;o++){var a=i.item(o),s=e._getOptionValue(a.value);r.push(s)}else for(i=n.options,o=0;o<i.length;o++)(a=i.item(o)).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())),i=r.next();!i.done;i=r.next()){var o=i.value;if(this._compareWith(this._optionMap.get(o)._value,t))return o}}catch(a){e={error:a}}finally{try{i&&!i.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}(),Ym],ag=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(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 Jm(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 rg(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return ig(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(Rm),sg=function(t){function e(e){return t.call(this,e)||this}return i(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 ug(t){var e=cg(t)?t.validators:t;return Array.isArray(e)?rg(e):e||null}function lg(t,e){var n=cg(e)?e.asyncValidators:t;return Array.isArray(n)?ig(n):n||null}function cg(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var hg=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=ug(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=lg(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(o({},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(o({},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=Fm(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 fg?t.controls.hasOwnProperty(e)?t.controls[e]:null:t instanceof dg&&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 Gi,this.statusChanges=new Gi},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){cg(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t}(),pg=function(t){function e(e,n,r){void 0===e&&(e=null);var i=t.call(this,ug(n),lg(r,n))||this;return i._onChange=[],i._applyFormState(e),i._setUpdateStrategy(n),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return i(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}(hg),fg=function(t){function e(e,n,r){var i=t.call(this,ug(n),lg(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return i(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 pg?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,i){n=n||e.contains(i)&&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(i){t={error:i}}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}(hg),dg=function(t){function e(e,n,r){var i=t.call(this,ug(n),lg(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return i(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 pg?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(i){t={error:i}}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}(hg),yg=Promise.resolve(null),mg=function(t){function e(e,n){var r=t.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new Gi,r.form=new fg({},rg(e),ig(n)),r}return i(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;yg.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),tg(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;yg.then(function(){var n,r,i=e._findContainer(t.path);i&&i.removeControl(t.name),(r=(n=e._directives).indexOf(t))>-1&&n.splice(r,1)})},e.prototype.addFormGroup=function(t){var e=this;yg.then(function(){var n=e._findContainer(t.path),r=new fg({});(function(t,e){null==t&&ng(e,"Cannot find control with"),t.validator=jm.compose([t.validator,e.validator]),t.asyncValidator=jm.composeAsync([t.asyncValidator,e.asyncValidator])})(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;yg.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;yg.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}(Rm),gg=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      "+Xm+"\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      "+$m)},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      "+Xm+"\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      "+$m)},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}(),vg=new Pt("NgFormSelectorWarning"),_g=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}var n;return i(e,t),n=e,e.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof mg||gg.modelGroupParentException()},e}(ag),bg=Promise.resolve(null),wg=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.control=new pg,o._registered=!1,o.update=new Gi,o._parent=e,o._rawValidators=n||[],o._rawAsyncValidators=r||[],o.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||ng(t,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,i=void 0;return e.forEach(function(e){var o;e.constructor===Gm?n=e:(o=e,og.some(function(t){return o.constructor===t})?(r&&ng(t,"More than one built-in value accessor matches form control with"),r=e):(i&&ng(t,"More than one custom value accessor matches form control with"),i=e))}),i||r||n||(ng(t,"No valid value accessor for form control with"),null)}(o,i),o}return i(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()||!Lt(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?Jm(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 rg(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return ig(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(){tg(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 _g)&&this._parent instanceof ag?gg.formGroupNameException():this._parent instanceof _g||this._parent instanceof mg||gg.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||gg.missingNameException()},e.prototype._updateValue=function(t){var e=this;bg.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;bg.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},e}(Wm),Cg=function(){return function(){}}(),Sg=function(){function t(){}var e;return e=t,t.withConfig=function(t){return{ngModule:e,providers:[{provide:vg,useValue:t.warnOnDeprecatedNgFormSelector}]}},t}(),Eg=function(){return function(){}}(),xg=function(){return function(){}}(),Tg="*";function Pg(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}}function kg(t){return{type:6,styles:t,offset:null}}function Ag(t){Promise.resolve(null).then(t)}var Ig=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;Ag(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}(),Og=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,i=0,o=this.players.length;0==o?Ag(function(){return e._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++n==o&&e._onFinish()}),t.onDestroy(function(){++r==o&&e._onDestroy()}),t.onStart(function(){++i==o&&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}(),Dg="!",Rg=0,Ng=function(){function t(){this._stateChanges=new L,this._openCloseAllActions=new L,this.id="cdk-accordion-"+Rg++,this._multi=!1}return Object.defineProperty(t.prototype,"multi",{get:function(){return this._multi},set:function(t){this._multi=Dy(t)},enumerable:!0,configurable:!0}),t.prototype.openAll=function(){this._openCloseAll(!0)},t.prototype.closeAll=function(){this._openCloseAll(!1)},t.prototype.ngOnChanges=function(t){this._stateChanges.next(t)},t.prototype.ngOnDestroy=function(){this._stateChanges.complete()},t.prototype._openCloseAll=function(t){this.multi&&this._openCloseAllActions.next(t)},t}(),Mg=0,jg=function(){function t(t,e,n){var r=this;this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=n,this._openCloseAllSubscription=b.EMPTY,this.closed=new Gi,this.opened=new Gi,this.destroyed=new Gi,this.expandedChange=new Gi,this.id="cdk-accordion-child-"+Mg++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=n.listen(function(t,e){r.accordion&&!r.accordion.multi&&r.accordion.id===e&&r.id!==t&&(r.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return Object.defineProperty(t.prototype,"expanded",{get:function(){return this._expanded},set:function(t){t=Dy(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=Dy(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()},t.prototype.toggle=function(){this.disabled||(this.expanded=!this.expanded)},t.prototype.close=function(){this.disabled||(this.expanded=!1)},t.prototype.open=function(){this.disabled||(this.expanded=!0)},t.prototype._subscribeToOpenCloseAllActions=function(){var t=this;return this.accordion._openCloseAllActions.subscribe(function(e){t.disabled||(t.expanded=e)})},t}(),Vg=function(){return function(){}}();function Fg(){throw Error("Host already has a portal attached")}var Lg=function(){function t(){}return t.prototype.attach=function(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&Fg(),this._attachedHost=t,t.attach(this)},t.prototype.detach=function(){var t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,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}(),Ug=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.component=e,o.viewContainerRef=n,o.injector=r,o.componentFactoryResolver=i,o}return i(e,t),e}(Lg),Hg=function(t){function e(e,n,r){var i=t.call(this)||this;return i.templateRef=e,i.viewContainerRef=n,i.context=r,i}return i(e,t),Object.defineProperty(e.prototype,"origin",{get:function(){return this.templateRef.elementRef},enumerable:!0,configurable:!0}),e.prototype.attach=function(e,n){return void 0===n&&(n=this.context),this.context=n,t.prototype.attach.call(this,e)},e.prototype.detach=function(){return this.context=void 0,t.prototype.detach.call(this)},e}(Lg),zg=function(t){function e(e,n){var r=t.call(this)||this;return r._componentFactoryResolver=e,r._viewContainerRef=n,r._isInitialized=!1,r.attached=new Gi,r}return i(e,t),Object.defineProperty(e.prototype,"portal",{get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&t.prototype.detach.call(this),e&&t.prototype.attach.call(this,e),this._attachedPortal=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"attachedRef",{get:function(){return this._attachedRef},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._isInitialized=!0},e.prototype.ngOnDestroy=function(){t.prototype.dispose.call(this),this._attachedPortal=null,this._attachedRef=null},e.prototype.attachComponentPortal=function(e){e.setAttachedHost(this);var n=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),i=n.createComponent(r,n.length,e.injector||n.injector);return t.prototype.setDisposeFn.call(this,function(){return i.destroy()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i},e.prototype.attachTemplatePortal=function(e){var n=this;e.setAttachedHost(this);var r=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return t.prototype.setDisposeFn.call(this,function(){return n._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r},e}(function(){function t(){this._isDisposed=!1}return t.prototype.hasAttached=function(){return!!this._attachedPortal},t.prototype.attach=function(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&Fg(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof Ug?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Hg?(this._attachedPortal=t,this.attachTemplatePortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()},t.prototype.detach=function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()},t.prototype.dispose=function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0},t.prototype.setDisposeFn=function(t){this._disposeFn=t},t.prototype._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)},t}()),Gg=function(){return function(){}}(),Bg=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new qg(t,this.compare,this.keySelector))},t}(),qg=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return i(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e=t;if(this.keySelector&&(e=g(this.keySelector)(t))===y)return this.destination.error(y.e);var n=!1;if(this.hasKey){if((n=g(this.compare)(this.key,e))===y)return this.destination.error(y.e)}else this.hasKey=!0;!1===Boolean(n)&&(this.key=e,this.destination.next(t))},e}(P),Qg=new Pt("MAT_ACCORDION"),Kg=0,Wg=function(t){function e(e,n,r,i,o,a){var s,u=t.call(this,e,n,r)||this;return u._viewContainerRef=i,u._animationMode=a,u._hideToggle=!1,u.afterExpand=new Gi,u.afterCollapse=new Gi,u._inputChanges=new L,u._headerId="mat-expansion-panel-header-"+Kg++,u._bodyAnimationDone=new L,u.accordion=e,u._document=o,u._bodyAnimationDone.pipe((s=function(t,e){return t.fromState===e.fromState&&t.toState===e.toState},function(t){return t.lift(new Bg(s,void 0))})).subscribe(function(t){"void"!==t.fromState&&("expanded"===t.toState?u.afterExpand.emit():"collapsed"===t.toState&&u.afterCollapse.emit())}),u}return i(e,t),Object.defineProperty(e.prototype,"hideToggle",{get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(t){this._hideToggle=Dy(t)},enumerable:!0,configurable:!0}),e.prototype._hasSpacing=function(){return!!this.accordion&&"default"===(this.expanded?this.accordion.displayMode:this._getExpandedState())},e.prototype._getExpandedState=function(){return this.expanded?"expanded":"collapsed"},e.prototype.ngAfterContentInit=function(){var t=this;this._lazyContent&&this.opened.pipe(Kc(null),vc(function(){return t.expanded&&!t._portal}),Fc(1)).subscribe(function(){t._portal=new Hg(t._lazyContent._template,t._viewContainerRef)})},e.prototype.ngOnChanges=function(t){this._inputChanges.next(t)},e.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()},e.prototype._containsFocus=function(){if(this._body&&this._document){var t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1},e}(jg),Zg=function(){function t(t,e,n,r){var i=this;this.panel=t,this._element=e,this._focusMonitor=n,this._changeDetectorRef=r,this._parentChangeSubscription=b.EMPTY;var o=t.accordion?t.accordion._stateChanges.pipe(vc(function(t){return!!t.hideToggle})):ac;this._parentChangeSubscription=ct(t.opened,t.closed,o,t._inputChanges.pipe(vc(function(t){return!(!t.hideToggle&&!t.disabled)}))).subscribe(function(){return i._changeDetectorRef.markForCheck()}),t.closed.pipe(vc(function(){return t._containsFocus()})).subscribe(function(){return n.focusVia(e,"program")}),n.monitor(e).subscribe(function(e){e&&t.accordion&&t.accordion._handleHeaderFocus(i)})}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this.panel.disabled},enumerable:!0,configurable:!0}),t.prototype._toggle=function(){this.panel.toggle()},t.prototype._isExpanded=function(){return this.panel.expanded},t.prototype._getExpandedState=function(){return this.panel._getExpandedState()},t.prototype._getPanelId=function(){return this.panel.id},t.prototype._showToggle=function(){return!this.panel.hideToggle&&!this.panel.disabled},t.prototype._keydown=function(t){switch(t.keyCode){case 32:case 13:Ly(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}},t.prototype.focus=function(t){void 0===t&&(t="program"),this._focusMonitor.focusVia(this._element,t)},t.prototype.ngOnDestroy=function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)},t}(),Yg=function(){return function(){}}(),Xg=function(){return function(){}}(),$g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._hideToggle=!1,e.displayMode="default",e}return i(e,t),Object.defineProperty(e.prototype,"hideToggle",{get:function(){return this._hideToggle},set:function(t){this._hideToggle=Dy(t)},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this._keyManager=new Qy(this._headers).withWrap()},e.prototype._handleHeaderKeydown=function(t){var e=t.keyCode,n=this._keyManager;36===e?(n.setFirstItemActive(),t.preventDefault()):35===e?(n.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t)},e.prototype._handleHeaderFocus=function(t){this._keyManager.updateActiveItem(t)},e}(Ng),Jg=function(){return function(){}}(),tv=function(){function t(t,e,n){void 0===t&&(t=!1),void 0===n&&(n=!0);var r=this;this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new L,this.onChange=this.changed,e&&e.length&&(t?e.forEach(function(t){return r._markSelected(t)}):this._markSelected(e[0]),this._selectedToEmit.length=0)}return Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected},enumerable:!0,configurable:!0}),t.prototype.select=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._verifyValueAssignment(e),e.forEach(function(e){return t._markSelected(e)}),this._emitChangeEvent()},t.prototype.deselect=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this._verifyValueAssignment(e),e.forEach(function(e){return t._unmarkSelected(e)}),this._emitChangeEvent()},t.prototype.toggle=function(t){this.isSelected(t)?this.deselect(t):this.select(t)},t.prototype.clear=function(){this._unmarkAll(),this._emitChangeEvent()},t.prototype.isSelected=function(t){return this._selection.has(t)},t.prototype.isEmpty=function(){return 0===this._selection.size},t.prototype.hasValue=function(){return!this.isEmpty()},t.prototype.sort=function(t){this._multiple&&this.selected&&this._selected.sort(t)},t.prototype.isMultipleSelection=function(){return this._multiple},t.prototype._emitChangeEvent=function(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])},t.prototype._markSelected=function(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))},t.prototype._unmarkSelected=function(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))},t.prototype._unmarkAll=function(){var t=this;this.isEmpty()||this._selection.forEach(function(e){return t._unmarkSelected(e)})},t.prototype._verifyValueAssignment=function(t){if(t.length>1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")},t}(),ev=function(){function t(){this._listeners=[]}return t.prototype.notify=function(t,e){for(var n=0,r=this._listeners;n<r.length;n++)(0,r[n])(t,e)},t.prototype.listen=function(t){var e=this;return this._listeners.push(t),function(){e._listeners=e._listeners.filter(function(e){return t!==e})}},t.prototype.ngOnDestroy=function(){this._listeners=[]},t.ngInjectableDef=Et({factory:function(){return new t},token:t,providedIn:"root"}),t}();function nv(){return"undefined"!=typeof process}function rv(t){switch(t.length){case 0:return new Ig;case 1:return t[0];default:return new Og(t)}}function iv(t,e,n,r,i,o){void 0===i&&(i={}),void 0===o&&(o={});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 Dg:s=i[n];break;case Tg:s=o[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 ov(t,e,n,r){switch(e){case"start":t.onStart(function(){return r(n&&av(n,"start",t))});break;case"done":t.onDone(function(){return r(n&&av(n,"done",t))});break;case"destroy":t.onDestroy(function(){return r(n&&av(n,"destroy",t))})}}function av(t,e,n){var r=n.totalTime,i=sv(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==r?t.totalTime:r,!!n.disabled),o=t._data;return null!=o&&(i._data=o),i}function sv(t,e,n,r,i,o,a){return void 0===i&&(i=""),void 0===o&&(o=0),{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!a}}function uv(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 lv(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var cv=function(t,e){return!1},hv=function(t,e){return!1},pv=function(t,e,n){return[]},fv=nv();if(fv||"undefined"!=typeof Element){if(cv=function(t,e){return t.contains(e)},fv||Element.prototype.matches)hv=function(t,e){return t.matches(e)};else{var dv=Element.prototype,yv=dv.matchesSelector||dv.mozMatchesSelector||dv.msMatchesSelector||dv.oMatchesSelector||dv.webkitMatchesSelector;yv&&(hv=function(t,e){return yv.apply(t,[e])})}pv=function(t,e,n){var r=[];if(n)r.push.apply(r,c(t.querySelectorAll(e)));else{var i=t.querySelector(e);i&&r.push(i)}return r}}var mv=null,gv=!1;function vv(t){mv||(mv=("undefined"!=typeof document?document.body:null)||{},gv=!!mv.style&&"WebkitAppearance"in mv.style);var e=!0;return mv.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&!(e=t in mv.style)&&gv&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in mv.style),e}var _v=hv,bv=cv,wv=pv;function Cv(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 Sv=function(){function t(){}return t.prototype.validateStyleProperty=function(t){return vv(t)},t.prototype.matchesElement=function(t,e){return _v(t,e)},t.prototype.containsElement=function(t,e){return bv(t,e)},t.prototype.query=function(t,e,n){return wv(t,e,n)},t.prototype.computeStyle=function(t,e,n){return n||""},t.prototype.animate=function(t,e,n,r,i,o,a){return void 0===o&&(o=[]),new Ig(n,r)},t}(),Ev=function(){function t(){}return t.NOOP=new Sv,t}(),xv=1e3;function Tv(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Pv(parseFloat(e[1]),e[2])}function Pv(t,e){switch(e){case"s":return t*xv;default:return t}}function kv(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var r,i=0,o="";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=Pv(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(i=Pv(parseFloat(s),a[4]));var u=a[5];u&&(o=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),i<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:i,easing:o}}(t,e,n)}function Av(t,e){return void 0===e&&(e={}),Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function Iv(t,e,n){if(void 0===n&&(n={}),e)for(var r in t)n[r]=t[r];else Av(t,n);return n}function Ov(t,e,n){return n?e+":"+n+";":""}function Dv(t){for(var e="",n=0;n<t.style.length;n++)e+=Ov(0,r=t.style.item(n),t.style.getPropertyValue(r));for(var r in t.style)t.style.hasOwnProperty(r)&&!r.startsWith("_")&&(e+=Ov(0,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[r]));t.setAttribute("style",e)}function Rv(t,e){t.style&&(Object.keys(e).forEach(function(n){var r=Hv(n);t.style[r]=e[n]}),nv()&&Dv(t))}function Nv(t,e){t.style&&(Object.keys(e).forEach(function(e){var n=Hv(e);t.style[n]=""}),nv()&&Dv(t))}function Mv(t){return Array.isArray(t)?1==t.length?t[0]:Pg(t):t}var jv=new RegExp("{{\\s*(.+?)\\s*}}","g");function Vv(t){var e=[];if("string"==typeof t){for(var n=t.toString(),r=void 0;r=jv.exec(n);)e.push(r[1]);jv.lastIndex=0}return e}function Fv(t,e,n){var r=t.toString(),i=r.replace(jv,function(t,r){var i=e[r];return e.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),i=""),i.toString()});return i==r?t:i}function Lv(t){for(var e=[],n=t.next();!n.done;)e.push(n.value),n=t.next();return e}var Uv=/-+([a-z0-9])/g;function Hv(t){return t.replace(Uv,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function zv(t,e){return 0===t||0===e}function Gv(t,e,n){var r=Object.keys(n);if(r.length&&e.length){var i=e[0],o=[];if(r.forEach(function(t){i.hasOwnProperty(t)||o.push(t),i[t]=n[t]}),o.length)for(var a=function(){var n=e[s];o.forEach(function(e){n[e]=qv(t,e)})},s=1;s<e.length;s++)a()}return e}function Bv(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 qv(t,e){return window.getComputedStyle(t)[e]}var Qv="*",Kv=new Set(["true","1"]),Wv=new Set(["false","0"]);function Zv(t,e){var n=Kv.has(t)||Wv.has(t),r=Kv.has(e)||Wv.has(e);return function(i,o){var a=t==Qv||t==i,s=e==Qv||e==o;return!a&&n&&"boolean"==typeof i&&(a=i?Kv.has(t):Wv.has(t)),!s&&r&&"boolean"==typeof o&&(s=o?Kv.has(e):Wv.has(e)),a&&s}}var Yv=new RegExp("s*:selfs*,?","g");function Xv(t,e,n){return new $v(t).build(e,n)}var $v=function(){function t(t){this._driver=t}return t.prototype.build=function(t,e){var n=new Jv(e);return this._resetContextStyleTimingState(n),Bv(this,Mv(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,i=e.depCount=0,o=[],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,o.push(n.visitState(s,e))}),s.name=u}else if(1==t.type){var l=n.visitTransition(t,e);r+=l.queryCount,i+=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:o,transitions:a,queryCount:r,depCount:i,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 i=new Set,o=r||{};if(n.styles.forEach(function(t){if(t_(t)){var e=t;Object.keys(e).forEach(function(t){Vv(e[t]).forEach(function(t){o.hasOwnProperty(t)||i.add(t)})})}}),i.size){var a=Lv(i.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,i,o=Bv(this,Mv(t.animation),e);return{type:1,matchers:(n=t.expr,r=e.errors,i=[],"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 i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var o=i[1],a=i[2],s=i[3];e.push(Zv(o,s)),"<"!=a[0]||o==Qv&&s==Qv||e.push(Zv(s,o))}(t,i,r)}):i.push(n),i),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:e_(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return Bv(n,t,e)}),options:e_(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,r=e.currentTime,i=0,o=t.steps.map(function(t){e.currentTime=r;var o=Bv(n,t,e);return i=Math.max(i,e.currentTime),o});return e.currentTime=i,{type:3,steps:o,options:e_(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 n_(kv(t,e).duration,0,"");var r=t;if(r.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var i=n_(0,0,"");return i.dynamic=!0,i.strValue=r,i}return n_((n=n||kv(r,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;var i=t.styles?t.styles:kg({});if(5==i.type)n=this.visitKeyframes(i,e);else{var o=t.styles,a=!1;if(!o){a=!0;var s={};r.easing&&(s.easing=r.easing),o=kg(s)}e.currentTime+=r.duration+r.delay;var u=this.visitStyle(o,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==Tg?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,i=null;return n.forEach(function(t){if(t_(t)){var e=t,n=e.easing;if(n&&(i=n,delete e.easing),!r)for(var o in e)if(e[o].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:r,options:null}},t.prototype._validateStyleAst=function(t,e){var n=this,r=e.currentAnimateTimings,i=e.currentTime,o=e.currentTime;r&&o>0&&(o-=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],h=!0;c&&(o!=i&&o>=c.startTime&&i<=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 "'+o+'ms" and "'+i+'ms"'),h=!1),o=c.startTime),h&&(l[r]={startTime:o,endTime:i}),e.options&&(a=e.errors,s=e.options.params||{},(u=Vv(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 i=0,o=[],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(t_(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(t_(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(r.styles),c=0;return null!=l&&(i++,c=r.offset=l),s=s||c<0||c>1,a=a||c<u,u=c,o.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,h=0;i>0&&i<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(h=1/(c-1));var p=c-1,f=e.currentTime,d=e.currentAnimateTimings,y=d.duration;return l.forEach(function(t,i){var a=h>0?i==p?1:h*i:o[i],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:Bv(this,Mv(t.animation),e),options:e_(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:e_(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:e_(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;var i=l(function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return":self"==t});return e&&(t=t.replace(Yv,"")),[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),o=i[0],a=i[1];e.currentQuerySelector=n.length?n+" "+o:o,uv(e.collectedStyles,e.currentQuerySelector,{});var s=Bv(this,Mv(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:t.selector,options:e_(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"}:kv(t.timings,e.errors,!0);return{type:12,animation:Bv(this,Mv(t.animation),e),timings:n,options:null}},t}(),Jv=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 t_(t){return!Array.isArray(t)&&"object"==typeof t}function e_(t){var e;return t?(t=Av(t)).params&&(t.params=(e=t.params)?Av(e):null):t={},t}function n_(t,e,n){return{duration:t,delay:e,easing:n}}function r_(t,e,n,r,i,o,a,s){return void 0===a&&(a=null),void 0===s&&(s=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:a,subTimeline:s}}var i_=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}(),o_=new RegExp(":enter","g"),a_=new RegExp(":leave","g");function s_(t,e,n,r,i,o,a,s,u,l){return void 0===o&&(o={}),void 0===a&&(a={}),void 0===l&&(l=[]),(new u_).buildKeyframes(t,e,n,r,i,o,a,s,u,l)}var u_=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,r,i,o,a,s,u,l){void 0===l&&(l=[]),u=u||new i_;var c=new c_(t,e,u,r,i,l,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),Bv(this,n,c);var h=c.timelines.filter(function(t){return t.containsAnimation()});if(h.length&&Object.keys(a).length){var p=h[h.length-1];p.allowOnlyTimelineStyles()||p.setStyles([a],null,c.errors,s)}return h.length?h.map(function(t){return t.buildKeyframes()}):[r_(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),i=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&e.transformIntoNewTimeline(o)}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,i=null!=n.duration?Tv(n.duration):null,o=null!=n.delay?Tv(n.delay):null;return 0!==i&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,i,o);r=Math.max(r,n.duration+n.delay)}),r},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),Bv(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,r=e.subContextCount,i=e,o=t.options;if(o&&(o.params||o.delay)&&((i=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=l_);var a=Tv(o.delay);i.delayNextStep(a)}t.steps.length&&(t.steps.forEach(function(t){return Bv(n,t,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,r=[],i=e.currentTimeline.currentTime,o=t.options&&t.options.delay?Tv(t.options.delay):0;t.steps.forEach(function(a){var s=e.createSubContext(t.options);o&&s.delayNextStep(o),Bv(n,a,s),i=Math.max(i,s.currentTimeline.currentTime),r.push(s.currentTimeline)}),r.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(i),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return kv(e.params?Fv(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 i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,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 i=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,i=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(function(t){o.forwardTime((t.offset||0)*i),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+i),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,r=e.currentTimeline.currentTime,i=t.options||{},o=i.delay?Tv(i.delay):0;o&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=l_);var a=r,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=s.length;var u=null;s.forEach(function(r,i){e.currentQueryIndex=i;var s=e.createSubContext(t.options,r);o&&s.delayNextStep(o),r===e.element&&(u=s.currentTimeline),Bv(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,i=t.timings,o=Math.abs(i.duration),a=o*(e.currentQueryTotal-1),s=o*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=e.currentTimeline;s&&u.delayNextStep(s);var l=u.currentTime;Bv(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-l+(r.startTime-n.currentTimeline.startTime)},t}(),l_={},c_=function(){function t(t,e,n,r,i,o,a,s){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=l_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new h_(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,i=this.options;null!=r.duration&&(i.duration=Tv(r.duration)),null!=r.delay&&(i.delay=Tv(r.delay));var o=r.params;if(o){var a=i.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(t){e&&a.hasOwnProperty(t)||(a[t]=Fv(o[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 i=n||this.element,o=new t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=l_,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:""},i=new p_(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),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,i,o){var a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(o_,"."+this._enterClassName)).replace(a_,"."+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 i||0!=a.length||o.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),a},t}(),h_=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]||Tg,e._currentKeyframe[t]=Tg}),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,e,n,r){var i=this;e&&(this._previousKeyframe.easing=e);var o=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]=Tg}):Iv(t,!1,r)}),r}(t,this._globalTimelineStyles);Object.keys(a).forEach(function(t){var e=Fv(a[t],o,n);i._pendingStyles[t]=e,i._localTimelineStyles.hasOwnProperty(t)||(i._backFill[t]=i._globalTimelineStyles.hasOwnProperty(t)?i._globalTimelineStyles[t]:Tg),i._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],i=t._styleSummary[n];(!r||i.time>r.time)&&e._updateStyle(n,i.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,i=[];this._keyframes.forEach(function(o,a){var s=Iv(o,!0);Object.keys(s).forEach(function(t){var r=s[t];r==Dg?e.add(t):r==Tg&&n.add(t)}),r||(s.offset=a/t.duration),i.push(s)});var o=e.size?Lv(e.values()):[],a=n.size?Lv(n.values()):[];if(r){var s=i[0],u=Av(s);s.offset=0,u.offset=1,i=[s,u]}return r_(this.element,i,o,a,this.duration,this.startTime,this.easing,!1)},t}(),p_=function(t){function e(e,n,r,i,o,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=i,u.postStyleProps=o,u._stretchStartingKeyframe=s,u.timings={duration:a.duration,delay:a.delay,easing:a.easing},u}return i(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,i=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=r+n,s=n/a,u=Iv(t[0],!1);u.offset=0,o.push(u);var l=Iv(t[0],!1);l.offset=f_(s),o.push(l);for(var c=t.length-1,h=1;h<=c;h++){var p=Iv(t[h],!1);p.offset=f_((n+p.offset*r)/a),o.push(p)}r=a,n=0,i="",t=o}return r_(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)},e}(h_);function f_(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}var d_=function(){return function(){}}(),y_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.normalizePropertyName=function(t,e){return Hv(t)},e.prototype.normalizeStyleValue=function(t,e,n,r){var i="",o=n.toString().trim();if(m_[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="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 o+i},e}(d_),m_=g_("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 g_(t){var e={};return t.forEach(function(t){return e[t]=!0}),e}function v_(t,e,n,r,i,o,a,s,u,l,c,h,p){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:a,timelines:s,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:h,errors:p}}var __={},b_=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,i){return t.some(function(t){return t(e,n,r,i)})}(this.ast.matchers,t,e,n,r)},t.prototype.buildStyles=function(t,e,n){var r=this._stateStyles["*"],i=this._stateStyles[t],o=r?r.buildStyles(e,n):{};return i?i.buildStyles(e,n):o},t.prototype.build=function(t,e,n,r,i,a,s,u,l,c){var h=[],p=this.ast.options&&this.ast.options.params||__,f=this.buildStyles(n,s&&s.params||__,h),d=u&&u.params||__,y=this.buildStyles(r,d,h),m=new Set,g=new Map,v=new Map,_="void"===r,b={params:o({},p,d)},w=c?[]:s_(t,e,this.ast.animation,i,a,f,y,b,l,h),C=0;if(w.forEach(function(t){C=Math.max(t.duration+t.delay,C)}),h.length)return v_(e,this._triggerName,n,r,_,f,y,[],[],g,v,C,h);w.forEach(function(t){var n=t.element,r=uv(g,n,{});t.preStyleProps.forEach(function(t){return r[t]=!0});var i=uv(v,n,{});t.postStyleProps.forEach(function(t){return i[t]=!0}),n!==e&&m.add(n)});var S=Lv(m.values());return v_(e,this._triggerName,n,r,_,f,y,w,S,g,v,C)},t}(),w_=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},r=Av(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 i=t;Object.keys(i).forEach(function(t){var o=i[t];o.length>1&&(o=Fv(o,r,e)),n[t]=o})}}),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 w_(t.style,t.options&&t.options.params||{})}),S_(this.states,"true","1"),S_(this.states,"false","0"),e.transitions.forEach(function(e){n.transitionFactories.push(new b_(t,e,n.states))}),this.fallbackTransition=new b_(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(i){return i.match(t,e,n,r)})||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}();function S_(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var E_=new i_,x_=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=Xv(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,i=iv(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,i,t.duration,t.delay,t.easing,[],!0)},t.prototype.create=function(t,e,n){var r=this;void 0===n&&(n={});var i,o=[],a=this._animations[t],s=new Map;if(a?(i=s_(this._driver,e,a,"ng-enter","ng-leave",{},{},n,E_,o)).forEach(function(t){var e=uv(s,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),i=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));s.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=r._driver.computeStyle(e,n,Tg)})});var u=rv(i.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 i=sv(e,"","","");return ov(this._getPlayer(t),n,i,r),function(){}},t.prototype.command=function(t,e,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(t);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,r[0]||{});else this.register(t,r[0])},t}(),T_=[],P_={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},k_={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},A_="__ng_removed",I_=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=Av(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}(),O_=new I_("void"),D_=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,U_(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,r){var i,o=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"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var a=uv(this._elementListeners,t,[]),s={name:e,phase:n,callback:r};a.push(s);var u=uv(this._engine.statesByElement,t,{});return u.hasOwnProperty(e)||(U_(t,"ng-trigger"),U_(t,"ng-trigger-"+e),u[e]=O_),function(){o._engine.afterFlush(function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),o._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 i=this;void 0===r&&(r=!0);var o=this._getTrigger(e),a=new N_(this.id,e,t),s=this._engine.statesByElement.get(t);s||(U_(t,"ng-trigger"),U_(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var u=s[e],l=new I_(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),s[e]=l,u||(u=O_),"void"===l.value||u.value!==l.value){var c=uv(this._engine.playersByElement,t,[]);c.forEach(function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()});var h=o.matchTransition(u.value,l.value,t,l.params),p=!1;if(!h){if(!r)return;h=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:u,toState:l,player:a,isFallbackTransition:p}),p||(U_(t,"ng-animate-queued"),a.onStart(function(){H_(t,"ng-animate-queued")})),a.onDone(function(){var e=i.players.indexOf(a);e>=0&&i.players.splice(e,1);var n=i._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 i=0;i<n.length;i++){var o=n[i];if(!e.hasOwnProperty(o)||t[o]!==e[o])return!1}return!0}(u.params,l.params)){var f=[],d=o.matchStyles(u.value,u.params,f),y=o.matchStyles(l.value,l.params,f);f.length?this._engine.reportError(f):this._engine.afterFlush(function(){Nv(t,d),Rv(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[A_]){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 i=this,o=this._engine.statesByElement.get(t);if(o){var a=[];if(Object.keys(o).forEach(function(e){if(i._triggers[e]){var n=i.trigger(t,e,"void",r);n&&a.push(n)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&rv(a).onDone(function(){return i._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 i=n.name;if(!r.has(i)){r.add(i);var o=e._triggers[i].fallbackTransition,a=e._engine.statesByElement.get(t)[i]||O_,s=new I_("void"),u=new N_(e.id,i,t);e._engine.totalQueuedPlayers++,e._queue.push({element:t,triggerName:i,transition:o,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 i=!1;if(r.totalAnimations){var o=r.players.length?r.playersByQueriedElement.get(t):[];if(o&&o.length)i=!0;else for(var a=t;a=a.parentNode;)if(r.statesByElement.get(a)){i=!0;break}}this.prepareLeaveAnimationListeners(t),i?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){U_(t,this._hostClassName)},t.prototype.drainQueuedTransitions=function(t){var e=this,n=[];return this._queue.forEach(function(r){var i=r.player;if(!i.destroyed){var o=r.element,a=e._elementListeners.get(o);a&&a.forEach(function(e){if(e.name==r.triggerName){var n=sv(o,r.triggerName,r.fromState.value,r.toState.value);n._data=t,ov(r.player,e.phase,n,e.callback)}}),i.markedForDestroy?e._engine.afterFlush(function(){i.destroy()}):n.push(r)}}),this._queue=[],n.sort(function(t,n){var r=t.transition.ast.depCount,i=n.transition.ast.depCount;return 0==r||0==i?r-i: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}(),R_=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 D_(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,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,e)){this._namespaceList.splice(i+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),i=0;i<r.length;i++){var o=n[r[i]].namespaceId;if(o){var a=this._fetchNamespace(o);a&&e.add(a)}}return e},t.prototype.trigger=function(t,e,n,r){if(M_(e)){var i=this._fetchNamespace(t);if(i)return i.trigger(e,n,r),!0}return!1},t.prototype.insertNode=function(t,e,n,r){if(M_(e)){var i=e[A_];if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;var o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,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),U_(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),H_(t,"ng-animate-disabled"))},t.prototype.removeNode=function(t,e,n){if(M_(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[A_]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},t.prototype.listen=function(t,e,n,r,i){return M_(e)?this._fetchNamespace(t).listen(e,n,r,i):function(){}},t.prototype._buildInstruction=function(t,e,n,r,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,i)},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 rv(t.players).onDone(function(){return e()});e()})},t.prototype.processLeaveNode=function(t){var e=this,n=t[A_];if(n&&n.setForRemoval){if(t[A_]=P_,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(t){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++)U_(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var i=[];try{n=this._flushAnimations(i,t)}finally{for(r=0;r<i.length;r++)i[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 o=this._whenQuietFns;this._whenQuietFns=[],n.length?rv(n).onDone(function(){o.forEach(function(t){return t()})}):o.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 i_,i=[],a=new Map,s=[],u=new Map,l=new Map,h=new Map,p=new Set;this.disabledNodes.forEach(function(t){p.add(t);for(var e=n.driver.query(t,".ng-animate-queued",!0),r=0;r<e.length;r++)p.add(e[r])});var f=this.bodyNode,d=Array.from(this.statesByElement.keys()),y=F_(d,this.collectedEnterElements),m=new Map,g=0;y.forEach(function(t,e){var n="ng-enter"+g++;m.set(e,n),t.forEach(function(t){return U_(t,n)})});for(var v=[],_=new Set,b=new Set,w=0;w<this.collectedLeaveElements.length;w++)(F=(V=this.collectedLeaveElements[w])[A_])&&F.setForRemoval&&(v.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,S=F_(d,Array.from(_));S.forEach(function(t,e){var n="ng-leave"+g++;C.set(e,n),t.forEach(function(t){return U_(t,n)})}),t.push(function(){y.forEach(function(t,e){var n=m.get(e);t.forEach(function(t){return H_(t,n)})}),S.forEach(function(t,e){var n=C.get(e);t.forEach(function(t){return H_(t,n)})}),v.forEach(function(t){n.processLeaveNode(t)})});for(var E=[],x=[],T=this._namespaceList.length-1;T>=0;T--)this._namespaceList[T].drainQueuedTransitions(e).forEach(function(t){var e=t.player,o=t.element;if(E.push(e),n.collectedEnterElements.length){var a=o[A_];if(a&&a.setForMove)return void e.destroy()}var c=!f||!n.driver.containsElement(f,o),p=C.get(o),d=m.get(o),y=n._buildInstruction(t,r,d,p,c);if(y.errors&&y.errors.length)x.push(y);else{if(c)return e.onStart(function(){return Nv(o,y.fromStyles)}),e.onDestroy(function(){return Rv(o,y.toStyles)}),void i.push(e);if(t.isFallbackTransition)return e.onStart(function(){return Nv(o,y.fromStyles)}),e.onDestroy(function(){return Rv(o,y.toStyles)}),void i.push(e);y.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),r.append(o,y.timelines),s.push({instruction:y,player:e,element:o}),y.queriedElements.forEach(function(t){return uv(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=h.get(e);r||h.set(e,r=new Set),n.forEach(function(t){return r.add(t)})})}});if(x.length){var P=[];x.forEach(function(t){P.push("@"+t.triggerName+" has failed due to:\n"),t.errors.forEach(function(t){return P.push("- "+t+"\n")})}),E.forEach(function(t){return t.destroy()}),this.reportError(P)}var k=new Map,A=new Map;s.forEach(function(t){var e=t.element;r.has(e)&&(A.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,k))}),i.forEach(function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){uv(k,e,[]).push(t),t.destroy()})});var I=v.filter(function(t){return G_(t,l,h)}),O=new Map;V_(O,this.driver,b,h,Tg).forEach(function(t){G_(t,l,h)&&I.push(t)});var D=new Map;y.forEach(function(t,e){V_(D,n.driver,new Set(t),l,Dg)}),I.forEach(function(t){var e=O.get(t),n=D.get(t);O.set(t,o({},e,n))});var R=[],N=[],M={};s.forEach(function(t){var e=t.element,o=t.player,s=t.instruction;if(r.has(e)){if(p.has(e))return o.onDestroy(function(){return Rv(e,s.toStyles)}),o.disabled=!0,o.overrideTotalTime(s.totalTime),void i.push(o);var u=M;if(A.size>1){for(var l=e,c=[];l=l.parentNode;){var h=A.get(l);if(h){u=h;break}c.push(l)}c.forEach(function(t){return A.set(t,u)})}var f=n._buildAnimation(o.namespaceId,s,k,a,D,O);if(o.setRealPlayer(f),u===M)R.push(o);else{var d=n.playersByElement.get(u);d&&d.length&&(o.parentPlayer=rv(d)),i.push(o)}}else Nv(e,s.fromStyles),o.onDestroy(function(){return Rv(e,s.toStyles)}),N.push(o),p.has(e)&&i.push(o)}),N.forEach(function(t){var e=a.get(t.element);if(e&&e.length){var n=rv(e);t.setRealPlayer(n)}}),i.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var j=0;j<v.length;j++){var V,F=(V=v[j])[A_];if(H_(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),z=0;z<H.length;z++){var G=u.get(H[z]);G&&G.length&&L.push.apply(L,c(G))}}var B=L.filter(function(t){return!t.destroyed});B.length?z_(this,V,B):this.processLeaveNode(V)}}return v.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[A_];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,i){var o=[];if(e){var a=this.playersByQueriedElement.get(t);a&&(o=a)}else{var s=this.playersByElement.get(t);if(s){var u=!i||"void"==i;s.forEach(function(t){t.queued||(u||t.triggerName==r)&&o.push(t)})}}return(n||r)&&(o=o.filter(function(t){return!(n&&n!=t.namespaceId||r&&r!=t.triggerName)})),o},t.prototype._beforeAnimationBuild=function(t,e,n){var r,i,o=e.element,a=e.isRemovalTransition?void 0:t,s=e.isRemovalTransition?void 0:e.triggerName,l=function(t){var r=t.element,i=r!==o,u=uv(n,r,[]);c._getPreviousPlayers(r,i,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 h=u(e.timelines),p=h.next();!p.done;p=h.next())l(p.value)}catch(f){r={error:f}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}Nv(o,e.fromStyles)},t.prototype._buildAnimation=function(t,e,n,r,i,o){var a=this,s=e.triggerName,u=e.element,l=[],c=new Set,h=new Set,p=e.timelines.map(function(e){var p=e.element;c.add(p);var f=p[A_];if(f&&f.removedBeforeQueried)return new Ig(e.duration,e.delay);var d,y,m=p!==u,g=(d=(n.get(p)||T_).map(function(t){return t.getRealPlayer()}),y=[],function t(e,n){for(var r=0;r<e.length;r++){var i=e[r];i instanceof Og?t(i.players,n):n.push(i)}}(d,y),y).filter(function(t){return!!t.element&&t.element===p}),v=i.get(p),_=o.get(p),b=iv(0,a._normalizer,0,e.keyframes,v,_),w=a._buildPlayer(e,b,g);if(e.subTimeline&&r&&h.add(p),m){var C=new N_(t,s,p);C.setRealPlayer(w),l.push(C)}return w});l.forEach(function(t){uv(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 i=r.indexOf(n);r.splice(i,1)}0==r.length&&t.delete(e)}}else(r=t[e])&&(r.length&&(i=r.indexOf(n),r.splice(i,1)),0==r.length&&delete t[e]);return r}(a.playersByQueriedElement,t.element,t)})}),c.forEach(function(t){return U_(t,"ng-animating")});var f=rv(p);return f.onDestroy(function(){c.forEach(function(t){return H_(t,"ng-animating")}),Rv(u,e.toStyles)}),h.forEach(function(t){uv(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 Ig(t.duration,t.delay)},t}(),N_=function(){function t(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Ig,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 ov(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){uv(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 M_(t){return t&&1===t.nodeType}function j_(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function V_(t,e,n,r,i){var o=[];n.forEach(function(t){return o.push(j_(t))});var a=[];r.forEach(function(n,r){var o={};n.forEach(function(t){var n=o[t]=e.computeStyle(r,t,i);n&&0!=n.length||(r[A_]=k_,a.push(r))}),t.set(r,o)});var s=0;return n.forEach(function(t){return j_(t,o[s++])}),a}function F_(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),i=new Map;return e.forEach(function(t){var e=function t(e){if(!e)return 1;var o=i.get(e);if(o)return o;var a=e.parentNode;return o=n.has(a)?a:r.has(a)?1:t(a),i.set(e,o),o}(t);1!==e&&n.get(e).push(t)}),n}var L_="$$classes";function U_(t,e){if(t.classList)t.classList.add(e);else{var n=t[L_];n||(n=t[L_]={}),n[e]=!0}}function H_(t,e){if(t.classList)t.classList.remove(e);else{var n=t[L_];n&&delete n[e]}}function z_(t,e,n){rv(n).onDone(function(){return t.processLeaveNode(e)})}function G_(t,e,n){var r=n.get(t);if(!r)return!1;var i=e.get(t);return i?r.forEach(function(t){return i.add(t)}):e.set(t,r),n.delete(t),!0}var B_=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 R_(t,e,n),this._timelineEngine=new x_(t,e,n),this._transitionEngine.onRemovalComplete=function(t,e){return r.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,r,i){var o=t+"-"+r,a=this._triggerCache[o];if(!a){var s=[],u=Xv(this._driver,i,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[o]=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 i=l(lv(n),2);this._timelineEngine.command(i[0],e,i[1],r)}else this._transitionEngine.trigger(t,e,n,r)},t.prototype.listen=function(t,e,n,r,i){if("@"==n.charAt(0)){var o=l(lv(n),2);return this._timelineEngine.listen(o[0],e,o[1],i)}return this._transitionEngine.listen(t,e,n,r,i)},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}(),q_="animation",Q_="animationend",K_=function(){function t(t,e,n,r,i,o,a){var s=this;this._element=t,this._name=e,this._duration=n,this._delay=r,this._easing=i,this._fillMode=o,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=J_(t=this._element,"").trim()).length&&(function(t,e){for(var n=0;n<t.length;n++)","===t.charAt(n)&&0}(n),e=n+", "+e),$_(t,"",e),X_(this._element,this._eventFn,!1),this._startTime=Date.now()},t.prototype.pause=function(){W_(this._element,this._name,"paused")},t.prototype.resume=function(){W_(this._element,this._name,"running")},t.prototype.setPosition=function(t){var e=Z_(this._element,this._name);this._position=t*this._duration,$_(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(),X_(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=Y_(n=J_(t=this._element,"").split(","),e))>=0&&(n.splice(r,1),$_(t,"",n.join(","))))},t}();function W_(t,e,n){$_(t,"PlayState",n,Z_(t,e))}function Z_(t,e){var n=J_(t,"");return n.indexOf(",")>0?Y_(n.split(","),e):Y_([n],e)}function Y_(t,e){for(var n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function X_(t,e,n){n?t.removeEventListener(Q_,e):t.addEventListener(Q_,e)}function $_(t,e,n,r){var i=q_+e;if(null!=r){var o=t.style[i];if(o.length){var a=o.split(",");a[r]=n,n=a.join(",")}}t.style[i]=n}function J_(t,e){return t.style[q_+e]}var tb="linear",eb=function(){function t(t,e,n,r,i,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=r,this._delay=i,this._finalStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||tb,this.totalTime=r+i,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 K_(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]:qv(t.element,r))})}this.currentSnapshot=e},t}(),nb=function(t){function e(e,n){var r=t.call(this)||this;return r.element=e,r._startingStyles={},r.__initialized=!1,r._styles=Cv(n),r}return i(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}(Ig),rb=function(){function t(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return t.prototype.validateStyleProperty=function(t){return vv(t)},t.prototype.matchesElement=function(t,e){return _v(t,e)},t.prototype.containsElement=function(t,e){return bv(t,e)},t.prototype.query=function(t,e,n){return wv(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 Cv(t)});var r="@keyframes "+e+" {\n",i="";n.forEach(function(t){i=" ";var e=parseFloat(t.offset);r+=""+i+100*e+"% {\n",i+=" ",Object.keys(t).forEach(function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(r+=i+"animation-timing-function: "+n+";\n"));default:return void(r+=""+i+e+": "+n+";\n")}}),r+=i+"}\n"}),r+="}\n";var o=document.createElement("style");return o.innerHTML=r,o},t.prototype.animate=function(t,e,n,r,i,o,a){void 0===o&&(o=[]),a&&this._notifyFaultyScrubber();var s=o.filter(function(t){return t instanceof eb}),u={};zv(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=Gv(t,e,u));if(0==n)return new nb(t,l);var c="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,c,e);document.querySelector("head").appendChild(h);var p=new eb(t,e,c,n,r,i,l);return p.onDestroy(function(){var t;(t=h).parentNode.removeChild(t)}),p},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}(),ib=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]:qv(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}(),ob=function(){function t(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ab().toString()),this._cssKeyframesDriver=new rb}return t.prototype.validateStyleProperty=function(t){return vv(t)},t.prototype.matchesElement=function(t,e){return _v(t,e)},t.prototype.containsElement=function(t,e){return bv(t,e)},t.prototype.query=function(t,e,n){return wv(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,i,o,a){if(void 0===o&&(o=[]),!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,i,o);var s={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(s.easing=i);var u={},l=o.filter(function(t){return t instanceof ib});return zv(n,r)&&l.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return u[t]=e[t]})}),e=Gv(t,e=e.map(function(t){return Iv(t,!1)}),u),new ib(t,e,s)},t}();function ab(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var sb=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:Ot.None,styles:[],data:{animation:[]}}),r}return i(e,t),e.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?Pg(t):t;return cb(this._renderer,null,e,"register",[n]),new ub(e,this._renderer)},e}(Eg),ub=function(t){function e(e,n){var r=t.call(this)||this;return r._id=e,r._renderer=n,r}return i(e,t),e.prototype.create=function(t,e){return new lb(this._id,t,e||{},this._renderer)},e}(xg),lb=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 cb(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 cb(t,e,n,r,i){return t.setProperty(e,"@@"+n+":"+r,i)}var hb=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 i=this._rendererCache.get(r);return i||(i=new pb("",r,this.engine),this._rendererCache.set(r,i)),i}var o=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(o,a,t,e.name,e)}),new fb(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}(),pb=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}(),fb=function(t){function e(e,n,r,i){var o=t.call(this,n,r,i)||this;return o.factory=e,o.namespaceId=n,o}return i(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,i,o,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((i=u,o=i.indexOf("."),[i.substring(0,o),i.substr(o+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}(pb),db=function(t){function e(e,n,r){return t.call(this,e.body,n,r)||this}return i(e,t),e}(B_);function yb(){return"function"==typeof ab()?new ob:new rb}function mb(){return new y_}function gb(t,e,n){return new hb(t,e,n)}var vb=new Pt("AnimationModuleType"),_b=function(){return function(){}}(),bb=Ba({encapsulation:2,styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(.4,0,.2,1),box-shadow 280ms cubic-bezier(.4,0,.2,1)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}@media screen and (-ms-high-contrast:active){.mat-expansion-panel{outline:solid 1px}}.mat-expansion-panel._mat-animation-noopable,.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button{margin-left:0;margin-right:8px}"],data:{animation:[{type:7,name:"bodyExpansion",definitions:[{type:0,name:"collapsed, void",styles:{type:6,styles:{height:"0px",visibility:"hidden"},offset:null},options:void 0},{type:0,name:"expanded",styles:{type:6,styles:{height:"*",visibility:"visible"},offset:null},options:void 0},{type:1,expr:"expanded <=> collapsed, void => collapsed",animation:{type:4,styles:null,timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null}],options:{}}]}});function wb(t){return Mu(0,[(t()(),_s(0,null,null,0))],null,null)}function Cb(t){return Mu(2,[Eu(402653184,1,{_body:0}),Au(null,0),(t()(),bs(2,0,[[1,0],["body",1]],null,5,"div",[["class","mat-expansion-panel-content"],["role","region"]],[[24,"@bodyExpansion",0],[1,"aria-labelledby",0],[8,"id",0]],[[null,"@bodyExpansion.done"]],function(t,e,n){var r=!0;return"@bodyExpansion.done"===e&&(r=!1!==t.component._bodyAnimationDone.next(n)&&r),r},null,null)),(t()(),bs(3,0,null,null,3,"div",[["class","mat-expansion-panel-body"]],null,null,null,null,null)),Au(null,1),(t()(),_s(16777216,null,null,1,null,wb)),uu(6,212992,null,0,zg,[Jr,Xo],{portal:[0,"portal"]},null),Au(null,2)],function(t,e){t(e,6,0,e.component._portal)},function(t,e){var n=e.component;t(e,2,0,n._getExpandedState(),n._headerId,n.id)})}var Sb=Ba({encapsulation:2,styles:[".mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:0}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-description,.mat-expansion-panel-header-title{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-description,[dir=rtl] .mat-expansion-panel-header-title{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:'';display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}"],data:{animation:[{type:7,name:"indicatorRotate",definitions:[{type:0,name:"collapsed, void",styles:{type:6,styles:{transform:"rotate(0deg)"},offset:null},options:void 0},{type:0,name:"expanded",styles:{type:6,styles:{transform:"rotate(180deg)"},offset:null},options:void 0},{type:1,expr:"expanded <=> collapsed, void => collapsed",animation:{type:4,styles:null,timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null}],options:{}},{type:7,name:"expansionHeight",definitions:[{type:0,name:"collapsed, void",styles:{type:6,styles:{height:"{{collapsedHeight}}"},offset:null},options:{params:{collapsedHeight:"48px"}}},{type:0,name:"expanded",styles:{type:6,styles:{height:"{{expandedHeight}}"},offset:null},options:{params:{expandedHeight:"64px"}}},{type:1,expr:"expanded <=> collapsed, void => collapsed",animation:{type:3,steps:[{type:11,selector:"@indicatorRotate",animation:{type:9,options:null},options:{optional:!0}},{type:4,styles:null,timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"}],options:null},options:null}],options:{}}]}});function Eb(t){return Mu(0,[(t()(),bs(0,0,null,null,0,"span",[["class","mat-expansion-indicator"]],[[24,"@indicatorRotate",0]],null,null,null,null))],null,function(t,e){t(e,0,0,e.component._getExpandedState())})}function xb(t){return Mu(2,[(t()(),bs(0,0,null,null,3,"span",[["class","mat-content"]],null,null,null,null,null)),Au(null,0),Au(null,1),Au(null,2),(t()(),_s(16777216,null,null,1,null,Eb)),uu(5,16384,null,0,vh,[Xo,Bi],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,5,0,e.component._showToggle())},null)}var Tb="accent",Pb=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],kb=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;o._focusMonitor=r,o._animationMode=i,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");for(var a=0,s=Pb;a<s.length;a++){var u=s[a];o._hasHostAttributes(u)&&e.nativeElement.classList.add(u)}return o._focusMonitor.monitor(o._elementRef,!0),o.isRoundButton&&(o.color=Tb),o}return i(e,t),e.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)},e.prototype.focus=function(){this._getHostElement().focus()},e.prototype._getHostElement=function(){return this._elementRef.nativeElement},e.prototype._isRippleDisabled=function(){return this.disableRipple||this.disabled},e.prototype._hasHostAttributes=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.some(function(e){return t._getHostElement().hasAttribute(e)})},e}(Jy($y(tm(function(){return function(t){this._elementRef=t}}())))),Ab=function(){return function(){}}(),Ib=Ba({encapsulation:2,styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media (hover:none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-flat-button,.mat-icon-button,.mat-stroked-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-flat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-focus-overlay,.mat-stroked-button .mat-button-ripple.mat-ripple{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button .mat-icon,.mat-icon-button i{line-height:24px}.mat-button-focus-overlay,.mat-button-ripple.mat-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-focus-overlay{opacity:0;transition:opacity .2s cubic-bezier(.35,0,.25,1),background-color .2s cubic-bezier(.35,0,.25,1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}@media screen and (-ms-high-contrast:active){.mat-button-focus-overlay{background-color:rgba(255,255,255,.5)}}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}@media screen and (-ms-high-contrast:active){.mat-button,.mat-fab,.mat-flat-button,.mat-icon-button,.mat-mini-fab,.mat-raised-button{outline:solid 1px}}"],data:{}});function Ob(t){return Mu(2,[Eu(402653184,1,{ripple:0}),(t()(),bs(1,0,null,null,1,"span",[["class","mat-button-wrapper"]],null,null,null,null,null)),Au(null,0),(t()(),bs(3,0,null,null,1,"div",[["class","mat-button-ripple mat-ripple"],["matRipple",""]],[[2,"mat-button-ripple-round",null],[2,"mat-ripple-unbounded",null]],null,null,null,null)),uu(4,212992,[[1,4]],0,lm,[ni,xo,jy,[2,um],[2,vb]],{centered:[0,"centered"],disabled:[1,"disabled"],trigger:[2,"trigger"]},null),(t()(),bs(5,0,null,null,0,"div",[["class","mat-button-focus-overlay"]],null,null,null,null,null))],function(t,e){var n=e.component;t(e,4,0,n.isIconButton,n._isRippleDisabled(),n._getHostElement())},function(t,e){var n=e.component;t(e,3,0,n.isRoundButton||n.isIconButton,Zs(e,4).unbounded)})}var Db=function(){function t(){this.emitClickPart1=new Gi,this.emitClickPart2=new Gi}return t.prototype.ngOnInit=function(){this.sYear=String(this.sDate),this.sYear=String(this.sYear.slice(0,4)),this.sDay=String(this.sDate),this.sDay=String(this.sDay.slice(6,8)),this.iDay=Number(this.sDay)},t.prototype.clickPart1=function(){this.emitClickPart1.emit(this.sAdventDayData)},t.prototype.clickPart2=function(){this.emitClickPart2.emit(this.sAdventDayData)},t}(),Rb=Ba({encapsulation:0,styles:[[""]],data:{}});function Nb(t){return Mu(0,[(t()(),bs(0,0,null,null,59,"mat-grid-list",[["class","mat-grid-list"],["cols","2"],["rowHeight","4:1"]],null,null,null,km,Pm)),uu(1,2211840,null,1,Cm,[ni,[2,xm]],{cols:[0,"cols"],rowHeight:[1,"rowHeight"]},null),Eu(603979776,1,{_tiles:1}),lu(2048,null,hm,null,[Cm]),(t()(),bs(4,0,null,0,7,"mat-grid-tile",[["class","mat-grid-tile"]],null,null,null,Im,Am)),uu(5,49152,[[1,4]],0,pm,[ni,[2,hm]],null,null),(t()(),bs(6,0,null,0,5,"textarea",[["placeholder","your puzzle input"]],[[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,i=t.component;return"input"===e&&(r=!1!==Zs(t,7)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Zs(t,7).onTouched()&&r),"compositionstart"===e&&(r=!1!==Zs(t,7)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Zs(t,7)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(i.sAdventDayData=n)&&r),r},null,null)),uu(7,16384,null,0,Gm,[si,ni,[2,zm]],null,null),lu(1024,null,Um,function(t){return[t]},[Gm]),uu(9,671744,null,0,wg,[[8,null],[8,null],[8,null],[6,Um]],{model:[0,"model"]},{update:"ngModelChange"}),lu(2048,null,Wm,null,[wg]),uu(11,16384,null,0,sg,[[4,Wm]],null,null),(t()(),bs(12,0,null,0,24,"mat-grid-tile",[["class","mat-grid-tile"]],null,null,null,Im,Am)),uu(13,49152,[[1,4]],0,pm,[ni,[2,hm]],null,null),(t()(),bs(14,0,null,0,22,"mat-accordion",[["class","mat-accordion"]],null,null,null,null,null)),uu(15,1720320,null,1,$g,[],null,null),Eu(603979776,2,{_headers:1}),lu(2048,null,Qg,null,[$g]),(t()(),bs(18,16777216,null,null,18,"mat-expansion-panel",[["class","mat-expansion-panel"]],[[2,"mat-expanded",null],[2,"_mat-animation-noopable",null],[2,"mat-expansion-panel-spacing",null]],null,null,Cb,bb)),uu(19,1753088,null,1,Wg,[[3,Qg],Jo,ev,Xo,Ch,[2,vb]],null,null),Eu(335544320,3,{_lazyContent:0}),lu(256,null,Qg,void 0,[]),(t()(),bs(22,0,null,0,9,"mat-expansion-panel-header",[["class","mat-expansion-panel-header"],["role","button"]],[[1,"id",0],[1,"tabindex",0],[1,"aria-controls",0],[1,"aria-expanded",0],[1,"aria-disabled",0],[2,"mat-expanded",null],[40,"@expansionHeight",0]],[[null,"click"],[null,"keydown"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Zs(t,23)._toggle()&&r),"keydown"===e&&(r=!1!==Zs(t,23)._keydown(n)&&r),r},xb,Sb)),uu(23,180224,[[2,4]],0,Zg,[Wg,ni,Zy,Jo],null,null),Ou(24,{collapsedHeight:0,expandedHeight:1}),Ou(25,{value:0,params:1}),(t()(),bs(26,0,null,0,2,"mat-panel-title",[["class","mat-expansion-panel-header-title"]],null,null,null,null,null)),uu(27,16384,null,0,Xg,[],null,null),(t()(),Du(28,null,[" Day "," "])),(t()(),bs(29,0,null,1,2,"mat-panel-description",[["class","mat-expansion-panel-header-description"]],null,null,null,null,null)),uu(30,16384,null,0,Yg,[],null,null),(t()(),Du(31,null,[" of "," "])),Au(1,0),(t()(),bs(33,0,null,1,0,"br",[],null,null,null,null,null)),(t()(),bs(34,0,null,1,0,"br",[],null,null,null,null,null)),(t()(),bs(35,0,null,1,1,"a",[["target","_blank"]],[[8,"href",4]],null,null,null,null)),(t()(),Du(-1,null,["Show whole story of the puzzle"])),(t()(),bs(37,0,null,0,14,"mat-grid-tile",[["class","mat-grid-tile"]],null,null,null,Im,Am)),uu(38,49152,[[1,4]],0,pm,[ni,[2,hm]],null,null),(t()(),bs(39,0,null,0,12,"div",[],null,null,null,null,null)),(t()(),bs(40,0,null,null,2,"button",[["mat-raised-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.clickPart1()&&r),r},Ob,Ib)),uu(41,180224,null,0,kb,[ni,jy,Zy,[2,vb]],null,null),(t()(),Du(-1,0,["Part1 answer"])),(t()(),bs(43,0,null,null,1,"code",[],null,null,null,null,null)),(t()(),Du(44,null,["",""])),(t()(),bs(45,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),bs(46,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),bs(47,0,null,null,2,"button",[["mat-raised-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.clickPart2()&&r),r},Ob,Ib)),uu(48,180224,null,0,kb,[ni,jy,Zy,[2,vb]],null,null),(t()(),Du(-1,0,["Part2 answer"])),(t()(),bs(50,0,null,null,1,"code",[],null,null,null,null,null)),(t()(),Du(51,null,["",""])),(t()(),bs(52,0,null,0,4,"mat-grid-tile",[["class","mat-grid-tile"]],null,null,null,Im,Am)),uu(53,49152,[[1,4]],0,pm,[ni,[2,hm]],null,null),(t()(),Du(-1,0,[" Puzzle solution in localization:\xa0 "])),(t()(),bs(55,0,null,0,1,"a",[["target","_blank"]],[[8,"href",4]],null,null,null,null)),(t()(),Du(56,null,[" GitHub / LS / day",".ts"])),(t()(),bs(57,0,null,0,2,"mat-grid-tile",[["class","mat-grid-tile"]],null,null,null,Im,Am)),uu(58,49152,[[1,4]],0,pm,[ni,[2,hm]],{colspan:[0,"colspan"]},null),(t()(),bs(59,0,null,0,0,"pre",[],[[8,"innerHTML",1]],null,null,null,null))],function(t,e){var n=e.component;t(e,1,0,"2","4:1"),t(e,9,0,n.sAdventDayData),t(e,58,0,2)},function(t,e){var n=e.component;t(e,6,0,Zs(e,11).ngClassUntouched,Zs(e,11).ngClassTouched,Zs(e,11).ngClassPristine,Zs(e,11).ngClassDirty,Zs(e,11).ngClassValid,Zs(e,11).ngClassInvalid,Zs(e,11).ngClassPending),t(e,18,0,Zs(e,19).expanded,"NoopAnimations"===Zs(e,19)._animationMode,Zs(e,19)._hasSpacing());var r=Zs(e,23).panel._headerId,i=Zs(e,23).disabled?-1:0,o=Zs(e,23)._getPanelId(),a=Zs(e,23)._isExpanded(),s=Zs(e,23).panel.disabled,u=Zs(e,23)._isExpanded(),l=t(e,25,0,Zs(e,23)._getExpandedState(),t(e,24,0,Zs(e,23).collapsedHeight,Zs(e,23).expandedHeight));t(e,22,0,r,i,o,a,s,u,l),t(e,28,0,n.sDay),t(e,31,0,n.sYear),t(e,35,0,gs(2,"https://adventofcode.com/",n.sYear,"/day/",n.iDay,"")),t(e,40,0,Zs(e,41).disabled||null,"NoopAnimations"===Zs(e,41)._animationMode),t(e,44,0,n.sPartOneAnswer),t(e,47,0,Zs(e,48).disabled||null,"NoopAnimations"===Zs(e,48)._animationMode),t(e,51,0,n.sPartTwoAnswer),t(e,55,0,gs(2,"https://github.com/LukaszSarzynski/typescirpt-advent-of-code/blob/master/src/app/day",n.sDate,"/day",n.sDate,".component.ts")),t(e,56,0,n.sDate),t(e,59,0,n.sAdventDayDataShow)})}var Mb=Ba({encapsulation:0,styles:[[""]],data:{}});function jb(t){return Mu(0,[(t()(),bs(0,0,null,null,6,"aofc-advent-partial",[],null,[[null,"emitClickPart1"],[null,"emitClickPart2"]],function(t,e,n){var r=!0,i=t.component;return"emitClickPart1"===e&&(r=!1!==i.runPart1(n)&&r),"emitClickPart2"===e&&(r=!1!==i.runPart2(n)&&r),r},Nb,Rb)),uu(1,114688,null,0,Db,[],{sDate:[0,"sDate"],sPartOneAnswer:[1,"sPartOneAnswer"],sPartTwoAnswer:[2,"sPartTwoAnswer"]},{emitClickPart1:"emitClickPart1",emitClickPart2:"emitClickPart2"}),(t()(),bs(2,0,null,0,1,"strong",[],null,null,null,null,null)),(t()(),Du(-1,null,["--- Day 2: Inventory Management System ---"])),(t()(),bs(4,0,null,0,0,"br",[],null,null,null,null,null)),(t()(),bs(5,0,null,0,0,"br",[],null,null,null,null,null)),(t()(),Du(-1,0,[' You stop falling through time, catch your breath, and check the screen on the device. "Destination reached. Current Year: 1518. Current Location: North Pole Utility Closet 83N10." You made it! Now, to find those anomalies..\n']))],function(t,e){var n=e.component;t(e,1,0,20181202,n.sPartOneAnswer,n.sPartTwoAnswer)},null)}function Vb(t){return Mu(0,[(t()(),bs(0,0,null,null,1,"aofc-day20181202",[],null,null,null,jb,Mb)),uu(1,114688,null,0,ql,[],null,null)],function(t,e){t(e,1,0)},null)}var Fb=Fs("aofc-day20181202",ql,Vb,{},{},[]),Lb=Ba({encapsulation:0,styles:[[""]],data:{}});function Ub(t){return Mu(0,[(t()(),bs(0,0,null,null,8,"aofc-advent-partial",[],null,[[null,"emitClickPart1"],[null,"emitClickPart2"]],function(t,e,n){var r=!0,i=t.component;return"emitClickPart1"===e&&(r=!1!==i.runPart1(n)&&r),"emitClickPart2"===e&&(r=!1!==i.runPart2(n)&&r),r},Nb,Rb)),uu(1,114688,null,0,Db,[],{sDate:[0,"sDate"],sPartOneAnswer:[1,"sPartOneAnswer"],sPartTwoAnswer:[2,"sPartTwoAnswer"]},{emitClickPart1:"emitClickPart1",emitClickPart2:"emitClickPart2"}),(t()(),bs(2,0,null,0,1,"strong",[],null,null,null,null,null)),(t()(),Du(-1,null,["--- Day 3: No Matter How You Slice It ---"])),(t()(),bs(4,0,null,0,0,"br",[],null,null,null,null,null)),(t()(),bs(5,0,null,0,0,"br",[],null,null,null,null,null)),(t()(),Du(-1,0,[" (..)"])),(t()(),bs(7,0,null,0,0,"br",[],null,null,null,null,null)),(t()(),Du(-1,0,[" Each Elf has made a claim about which area of fabric would be ideal for Santa's suit. All claims have an ID and consist of a single rectangle with edges parallel to the edges of the fabric. Each claim's rectangle is defined as follows: ..\n"]))],function(t,e){var n=e.component;t(e,1,0,20181203,n.sPartOneAnswer,n.sPartTwoAnswer)},null)}function Hb(t){return Mu(0,[(t()(),bs(0,0,null,null,1,"aofc-day20181203",[],null,null,null,Ub,Lb)),uu(1,114688,null,0,ec,[],null,null)],function(t,e){t(e,1,0)},null)}var zb=Fs("aofc-day20181203",ec,Hb,{},{},[]),Gb=Ba({encapsulation:0,styles:[[""]],data:{}});function Bb(t){return Mu(0,[(t()(),bs(0,0,null,null,8,"aofc-advent-partial",[],null,[[null,"emitClickPart1"],[null,"emitClickPart2"]],function(t,e,n){var r=!0,i=t.component;return"emitClickPart1"===e&&(r=!1!==i.runPart1(n)&&r),"emitClickPart2"===e&&(r=!1!==i.runPart2(n)&&r),r},Nb,Rb)),uu(1,114688,null,0,Db,[],{sDate:[0,"sDate"],sPartOneAnswer:[1,"sPartOneAnswer"],sPartTwoAnswer:[2,"sPartTwoAnswer"]},{emitClickPart1:"emitClickPart1",emitClickPart2:"emitClickPart2"}),(t()(),bs(2,0,null,0,1,"strong",[],null,null,null,null,null)),(t()(),Du(-1,null,["--- Day 4: Repose Record ---"])),(t()(),bs(4,0,null,0,0,"br",[],null,null,null,null,null)),(t()(),bs(5,0,null,0,0,"br",[],null,null,null,null,null)),(t()(),Du(-1,0,[" (..)"])),(t()(),bs(7,0,null,0,0,"br",[],null,null,null,null,null)),(t()(),Du(-1,0,[" Timestamps are written using year-month-day hour:minute format. The guard falling asleep or waking up is always the one whose shift most recently started. Because all asleep/awake times are during the midnight hour ..\n"]))],function(t,e){var n=e.component;t(e,1,0,20181204,n.sPartOneAnswer,n.sPartTwoAnswer)},null)}function qb(t){return Mu(0,[(t()(),bs(0,0,null,null,1,"aofc-day20181204",[],null,null,null,Bb,Gb)),uu(1,114688,null,0,$l,[],null,null)],function(t,e){t(e,1,0)},null)}var Qb=Fs("aofc-day20181204",$l,qb,{},{},[]),Kb=Ba({encapsulation:0,styles:[[""]],data:{}});function Wb(t){return Mu(0,[(t()(),bs(0,0,null,null,8,"aofc-advent-partial",[],null,[[null,"emitClickPart1"],[null,"emitClickPart2"]],function(t,e,n){var r=!0,i=t.component;return"emitClickPart1"===e&&(r=!1!==i.runPart1(n)&&r),"emitClickPart2"===e&&(r=!1!==i.runPart2(n)&&r),r},Nb,Rb)),uu(1,114688,null,0,Db,[],{sDate:[0,"sDate"],sPartOneAnswer:[1,"sPartOneAnswer"],sPartTwoAnswer:[2,"sPartTwoAnswer"]},{emitClickPart1:"emitClickPart1",emitClickPart2:"emitClickPart2"}),(t()(),bs(2,0,null,0,1,"strong",[],null,null,null,null,null)),(t()(),Du(-1,null,["--- Day 5: Alchemical Reduction ---"])),(t()(),bs(4,0,null,0,0,"br",[],null,null,null,null,null)),(t()(),bs(5,0,null,0,0,"br",[],null,null,null,null,null)),(t()(),Du(-1,0,[" (..)"])),(t()(),bs(7,0,null,0,0,"br",[],null,null,null,null,null)),(t()(),Du(-1,0,[" The polymer is formed by smaller units which, when triggered, react with each other such that two adjacent units of the same type and opposite polarity are destroyed. Units' types are represented by ..\n"]))],function(t,e){var n=e.component;t(e,1,0,20181205,n.sPartOneAnswer,n.sPartTwoAnswer)},null)}function Zb(t){return Mu(0,[(t()(),bs(0,0,null,null,1,"aofc-day20181205",[],null,null,null,Wb,Kb)),uu(1,114688,null,0,Xl,[],null,null)],function(t,e){t(e,1,0)},null)}var Yb=Fs("aofc-day20181205",Xl,Zb,{},{},[]),Xb=Ba({encapsulation:0,styles:[[""]],data:{}});function $b(t){return Mu(0,[(t()(),bs(0,0,null,null,8,"aofc-advent-partial",[],null,[[null,"emitClickPart1"],[null,"emitClickPart2"]],function(t,e,n){var r=!0,i=t.component;return"emitClickPart1"===e&&(r=!1!==i.runPart1(n)&&r),"emitClickPart2"===e&&(r=!1!==i.runPart2(n)&&r),r},Nb,Rb)),uu(1,114688,null,0,Db,[],{sDate:[0,"sDate"],sPartOneAnswer:[1,"sPartOneAnswer"],sPartTwoAnswer:[2,"sPartTwoAnswer"]},{emitClickPart1:"emitClickPart1",emitClickPart2:"emitClickPart2"}),(t()(),bs(2,0,null,0,1,"strong",[],null,null,null,null,null)),(t()(),Du(-1,null,["--- Day 6: Chronal Coordinates ---"])),(t()(),bs(4,0,null,0,0,"br",[],null,null,null,null,null)),(t()(),bs(5,0,null,0,0,"br",[],null,null,null,null,null)),(t()(),Du(-1,0,[" The device on your wrist beeps several times, and once again you feel like you're falling. "])),(t()(),bs(7,0,null,0,0,"br",[],null,null,null,null,null)),(t()(),Du(-1,0,[' "Situation critical," the device announces. "Destination indeterminate. Chronal interference detected. Please specify new target coordinates." ..\n']))],function(t,e){var n=e.component;t(e,1,0,20181206,n.sPartOneAnswer,n.sPartTwoAnswer)},null)}function Jb(t){return Mu(0,[(t()(),bs(0,0,null,null,1,"aofc-day20181206",[],null,null,null,$b,Xb)),uu(1,49152,null,0,Yl,[],null,null)],null,null)}var tw=Fs("aofc-day20181206",Yl,Jb,{},{},[]),ew=Ba({encapsulation:0,styles:[[""]],data:{}});function nw(t){return Mu(0,[(t()(),bs(0,0,null,null,8,"aofc-advent-partial",[],null,[[null,"emitClickPart1"],[null,"emitClickPart2"]],function(t,e,n){var r=!0,i=t.component;return"emitClickPart1"===e&&(r=!1!==i.runPart1(n)&&r),"emitClickPart2"===e&&(r=!1!==i.runPart1(n)&&r),r},Nb,Rb)),uu(1,114688,null,0,Db,[],{sDate:[0,"sDate"],sPartOneAnswer:[1,"sPartOneAnswer"],sPartTwoAnswer:[2,"sPartTwoAnswer"],sAdventDayDataShow:[3,"sAdventDayDataShow"]},{emitClickPart1:"emitClickPart1",emitClickPart2:"emitClickPart2"}),(t()(),bs(2,0,null,0,1,"strong",[],null,null,null,null,null)),(t()(),Du(-1,null,["--- Day 10: The Stars Align ---"])),(t()(),bs(4,0,null,0,0,"br",[],null,null,null,null,null)),(t()(),bs(5,0,null,0,0,"br",[],null,null,null,null,null)),(t()(),Du(-1,0,[" It's no use; your navigation system simply isn't capable of providing walking directions in the arctic circle, and certainly not in 1018. "])),(t()(),bs(7,0,null,0,0,"br",[],null,null,null,null,null)),(t()(),Du(-1,0,[" The Elves suggest an alternative. In times like these, North Pole rescue operations will arrange points of light in the sky to guide missing Elves back to base. ..\n"]))],function(t,e){var n=e.component;t(e,1,0,20181210,n.sPartOneAnswer,n.sPartOneAnswer,n.sAdventDayDataShow)},null)}function rw(t){return Mu(0,[(t()(),bs(0,0,null,null,1,"aofc-day20181210",[],null,null,null,nw,ew)),uu(1,114688,null,0,Zl,[],null,null)],function(t,e){t(e,1,0)},null)}var iw=Fs("aofc-day20181210",Zl,rw,{},{},[]),ow=Ba({encapsulation:0,styles:[[""]],data:{}});function aw(t){return Mu(0,[(t()(),bs(0,0,null,null,8,"aofc-advent-partial",[],null,[[null,"emitClickPart1"],[null,"emitClickPart2"]],function(t,e,n){var r=!0,i=t.component;return"emitClickPart1"===e&&(r=!1!==i.runPart1(n)&&r),"emitClickPart2"===e&&(r=!1!==i.runPart2(n)&&r),r},Nb,Rb)),uu(1,114688,null,0,Db,[],{sDate:[0,"sDate"],sPartOneAnswer:[1,"sPartOneAnswer"],sPartTwoAnswer:[2,"sPartTwoAnswer"],sAdventDayDataShow:[3,"sAdventDayDataShow"]},{emitClickPart1:"emitClickPart1",emitClickPart2:"emitClickPart2"}),(t()(),bs(2,0,null,0,1,"strong",[],null,null,null,null,null)),(t()(),Du(-1,null,["--- Day 12: Subterranean Sustainability ---"])),(t()(),bs(4,0,null,0,0,"br",[],null,null,null,null,null)),(t()(),bs(5,0,null,0,0,"br",[],null,null,null,null,null)),(t()(),Du(-1,0,[" (..)"])),(t()(),bs(7,0,null,0,0,"br",[],null,null,null,null,null)),(t()(),Du(-1,0,[" The pots are numbered, with 0 in front of you. To the left, the pots are numbered -1, -2, -3, and so on; to the right, 1, 2, 3.... Your puzzle input contains a list of pots from 0 to the right and whether they do (#) or do not (.) currently contain a plant, the initial state. (No other pots currently contain plants.) ..\n"]))],function(t,e){var n=e.component;t(e,1,0,20181212,n.sPartOneAnswer,n.sPartTwoAnswer,n.sAdventDayDataShow)},null)}function sw(t){return Mu(0,[(t()(),bs(0,0,null,null,1,"aofc-day20181212",[],null,null,null,aw,ow)),uu(1,114688,null,0,Wl,[],null,null)],function(t,e){t(e,1,0)},null)}var uw=Fs("aofc-day20181212",Wl,sw,{},{},[]),lw=Ba({encapsulation:0,styles:[[""]],data:{}});function cw(t){return Mu(0,[(t()(),bs(0,0,null,null,6,"aofc-advent-partial",[],null,[[null,"emitClickPart1"],[null,"emitClickPart2"]],function(t,e,n){var r=!0,i=t.component;return"emitClickPart1"===e&&(r=!1!==i.runPart1(n)&&r),"emitClickPart2"===e&&(r=!1!==i.runPart2(n)&&r),r},Nb,Rb)),uu(1,114688,null,0,Db,[],{sDate:[0,"sDate"],sPartOneAnswer:[1,"sPartOneAnswer"],sPartTwoAnswer:[2,"sPartTwoAnswer"]},{emitClickPart1:"emitClickPart1",emitClickPart2:"emitClickPart2"}),(t()(),bs(2,0,null,0,1,"strong",[],null,null,null,null,null)),(t()(),Du(-1,null,["--- Day 14: Chocolate Charts ---"])),(t()(),bs(4,0,null,0,0,"br",[],null,null,null,null,null)),(t()(),bs(5,0,null,0,0,"br",[],null,null,null,null,null)),(t()(),Du(-1,0,[" You finally have a chance to look at all of the produce moving around. Chocolate, cinnamon, mint, chili peppers, nutmeg, vanilla... the Elves must be growing these plants to make hot chocolate! As you realize this, you hear a conversation in the distance. When you go to investigate, you discover two Elves ..\n"]))],function(t,e){var n=e.component;t(e,1,0,20181214,n.sPartOneAnswer,n.sPartTwoAnswer)},null)}function hw(t){return Mu(0,[(t()(),bs(0,0,null,null,1,"aofc-day20181214",[],null,null,null,cw,lw)),uu(1,49152,null,0,Kl,[],null,null)],null,null)}var pw=Fs("aofc-day20181214",Kl,hw,{},{},[]),fw=new Pt("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),dw=function(){return function(){}}(),yw=0,mw=function(){return function(t,e){this.source=t,this.value=e}}(),gw=function(){function t(t,e){this._changeDetector=t,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=function(){},this._onTouched=function(){},this._name="mat-button-toggle-group-"+yw++,this.valueChange=new Gi,this.change=new Gi,this.appearance=e&&e.appearance?e.appearance:"standard"}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(t){var e=this;this._name=t,this._buttonToggles&&this._buttonToggles.forEach(function(t){return t.name=e._name})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"vertical",{get:function(){return this._vertical},set:function(t){this._vertical=Dy(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map(function(t){return t.value}):t[0]?t[0].value:void 0},set:function(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){var t=this._selectionModel.selected;return this.multiple?t:t[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"multiple",{get:function(){return this._multiple},set:function(t){this._multiple=Dy(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=Dy(t),this._buttonToggles&&this._buttonToggles.forEach(function(t){return t._markForCheck()})},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._selectionModel=new tv(this.multiple,void 0,!1)},t.prototype.ngAfterContentInit=function(){var t;(t=this._selectionModel).select.apply(t,this._buttonToggles.filter(function(t){return t.checked}))},t.prototype.writeValue=function(t){this.value=t,this._changeDetector.markForCheck()},t.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype._emitChangeEvent=function(){var t=this.selected,e=Array.isArray(t)?t[t.length-1]:t,n=new mw(e,this.value);this._controlValueAccessorChangeFn(n.value),this.change.emit(n)},t.prototype._syncButtonToggle=function(t,e,n){void 0===n&&(n=!1),this.multiple||!this.selected||t.checked||(this.selected.checked=!1),e?this._selectionModel.select(t):this._selectionModel.deselect(t),n&&this._emitChangeEvent(),this.valueChange.emit(this.value)},t.prototype._isSelected=function(t){return this._selectionModel.isSelected(t)},t.prototype._isPrechecked=function(t){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(function(e){return null!=t.value&&e===t.value}):t.value===this._rawValue)},t.prototype._setSelectionByValue=function(t){var e=this;if(this._rawValue=t,this._buttonToggles)if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._clearSelection(),t.forEach(function(t){return e._selectValue(t)})}else this._clearSelection(),this._selectValue(t)},t.prototype._clearSelection=function(){this._selectionModel.clear(),this._buttonToggles.forEach(function(t){return t.checked=!1})},t.prototype._selectValue=function(t){var e=this._buttonToggles.find(function(e){return null!=e.value&&e.value===t});e&&(e.checked=!0,this._selectionModel.select(e))},t}(),vw=function(t){function e(e,n,r,i,o,a){var s=t.call(this)||this;s._changeDetectorRef=n,s._elementRef=r,s._focusMonitor=i,s._isSingleSelector=!1,s._checked=!1,s.ariaLabelledby=null,s._disabled=!1,s.change=new Gi;var u=Number(o);return s.tabIndex=u||0===u?u:null,s.buttonToggleGroup=e,s.appearance=a&&a.appearance?a.appearance:"standard",s}return i(e,t),Object.defineProperty(e.prototype,"buttonId",{get:function(){return this.id+"-button"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appearance",{get:function(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance},set:function(t){this._appearance=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checked",{get:function(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked},set:function(t){var e=Dy(t);e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled},set:function(t){this._disabled=Dy(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._isSingleSelector=this.buttonToggleGroup&&!this.buttonToggleGroup.multiple,this._type=this._isSingleSelector?"radio":"checkbox",this.id=this.id||"mat-button-toggle-"+yw++,this._isSingleSelector&&(this.name=this.buttonToggleGroup.name),this.buttonToggleGroup&&this.buttonToggleGroup._isPrechecked(this)&&(this.checked=!0),this._focusMonitor.monitor(this._elementRef,!0)},e.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)},e.prototype.focus=function(){this._buttonElement.nativeElement.focus()},e.prototype._onButtonClick=function(){var t=!!this._isSingleSelector||!this._checked;t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new mw(this,this.value))},e.prototype._markForCheck=function(){this._changeDetectorRef.markForCheck()},e}(tm(function(){return function(){}}())),_w=function(){return function(){}}(),bw=Ba({encapsulation:2,styles:[".mat-button-toggle-group,.mat-button-toggle-standalone{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:transparent}@media screen and (-ms-high-contrast:active){.mat-button-toggle-group,.mat-button-toggle-standalone{outline:solid 1px}}.mat-button-toggle-group-appearance-standard,.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{border-radius:4px}@media screen and (-ms-high-contrast:active){.mat-button-toggle-group-appearance-standard,.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{outline:0}}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}@media screen and (-ms-high-contrast:active){.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:.5}}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}@media screen and (-ms-high-contrast:active){.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.5}}@media (hover:none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{line-height:48px;padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;top:0;left:0;right:0;bottom:0;position:absolute}.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px}@media screen and (-ms-high-contrast:active){.mat-button-toggle-checked .mat-button-toggle-focus-overlay{opacity:.5;height:0}}@media screen and (-ms-high-contrast:active){.mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 48px}}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:0 0;color:inherit;padding:0;margin:0;font:inherit;outline:0;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}"],data:{}});function ww(t){return Mu(2,[Eu(402653184,1,{_buttonElement:0}),(t()(),bs(1,0,[[1,0],["button",1]],null,2,"button",[["class","mat-button-toggle-button"],["type","button"]],[[8,"id",0],[1,"tabindex",0],[1,"aria-pressed",0],[8,"disabled",0],[1,"name",0],[1,"aria-label",0],[1,"aria-labelledby",0]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component._onButtonClick()&&r),r},null,null)),(t()(),bs(2,0,null,null,1,"div",[["class","mat-button-toggle-label-content"]],null,null,null,null,null)),Au(null,0),(t()(),bs(4,0,null,null,0,"div",[["class","mat-button-toggle-focus-overlay"]],null,null,null,null,null)),(t()(),bs(5,0,null,null,1,"div",[["class","mat-button-toggle-ripple mat-ripple"],["matRipple",""]],[[2,"mat-ripple-unbounded",null]],null,null,null,null)),uu(6,212992,null,0,lm,[ni,xo,jy,[2,um],[2,vb]],{disabled:[0,"disabled"],trigger:[1,"trigger"]},null)],function(t,e){var n=e.component;t(e,6,0,n.disableRipple||n.disabled,Zs(e,1))},function(t,e){var n=e.component;t(e,1,0,n.buttonId,n.disabled?-1:n.tabIndex,n.checked,n.disabled||null,n.name||null,n.ariaLabel,n.ariaLabelledby),t(e,5,0,Zs(e,6).unbounded)})}var Cw=Jy(function(){return function(t){this._elementRef=t}}()),Sw=function(){return function(){}}(),Ew=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i._platform=n,i._document=r,i}return i(e,t),e.prototype.ngAfterViewInit=function(){var t=this;bi()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return t._checkToolbarMixedModes()}))},e.prototype._checkToolbarMixedModes=function(){var t=this;this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter(function(t){return!(t.classList&&t.classList.contains("mat-toolbar-row"))}).filter(function(e){return e.nodeType!==(t._document?t._document.COMMENT_NODE:8)}).some(function(t){return!(!t.textContent||!t.textContent.trim())})&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `<mat-toolbar-row>` elements explicitly or just place content inside of a `<mat-toolbar>` for a single row.")}()},e}(Cw),xw=function(){return function(){}}(),Tw=Ba({encapsulation:2,styles:["@media screen and (-ms-high-contrast:active){.mat-toolbar{outline:solid 1px}}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media (max-width:599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}"],data:{}});function Pw(t){return Mu(2,[Au(null,0),Au(null,1)],null,null)}var kw=Ba({encapsulation:0,styles:[[""]],data:{}});function Aw(t){return Mu(0,[(t()(),bs(0,0,null,null,4,null,null,null,null,null,null,null)),(t()(),bs(1,0,null,null,3,"mat-button-toggle",[["class","mat-button-toggle"]],[[2,"mat-button-toggle-standalone",null],[2,"mat-button-toggle-checked",null],[2,"mat-button-toggle-disabled",null],[2,"mat-button-toggle-appearance-standard",null],[1,"tabindex",0],[1,"id",0]],[[null,"click"],[null,"focus"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Zs(t,2).onClick()&&r),"focus"===e&&(r=!1!==Zs(t,3).focus()&&r),r},ww,bw)),uu(2,16384,null,0,ny,[ey,qf,[8,null],si,ni],{routerLink:[0,"routerLink"]},null),uu(3,245760,[[2,4]],0,vw,[[2,gw],Jo,ni,Zy,[8,null],[2,fw]],null,null),(t()(),Du(4,0,[" "," "]))],function(t,e){t(e,2,0,e.context.$implicit.path),t(e,3,0)},function(t,e){t(e,1,0,!Zs(e,3).buttonToggleGroup,Zs(e,3).checked,Zs(e,3).disabled,"standard"===Zs(e,3).appearance,-1,Zs(e,3).id);var n=e.context.$implicit.path.replace("2018/","d ");t(e,4,0,n)})}function Iw(t){return Mu(0,[(t()(),bs(0,0,null,null,12,"mat-toolbar",[["class","mat-toolbar"],["color","primary"]],[[2,"mat-toolbar-multiple-rows",null],[2,"mat-toolbar-single-row",null]],null,null,Pw,Tw)),uu(1,4243456,null,1,Ew,[ni,jy,Ch],{color:[0,"color"]},null),Eu(603979776,1,{_toolbarRows:1}),(t()(),bs(3,0,null,1,9,"mat-toolbar-row",[["class","mat-toolbar-row"]],null,null,null,null,null)),uu(4,16384,[[1,4]],0,Sw,[],null,null),(t()(),Du(-1,null,[" 2018: \xa0 "])),(t()(),bs(6,0,null,null,6,"mat-button-toggle-group",[["appearance","legacy"],["class","mat-button-toggle-group"],["role","group"]],[[1,"aria-disabled",0],[2,"mat-button-toggle-vertical",null],[2,"mat-button-toggle-group-appearance-standard",null]],null,null,null,null)),lu(5120,null,Um,function(t){return[t]},[gw]),lu(6144,null,dw,null,[gw]),uu(9,1130496,null,1,gw,[Jo,[2,fw]],{appearance:[0,"appearance"]},null),Eu(603979776,2,{_buttonToggles:1}),(t()(),_s(16777216,null,null,1,null,Aw)),uu(12,278528,null,0,mh,[Xo,Bi,ga],{ngForOf:[0,"ngForOf"]},null),(t()(),bs(13,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),uu(14,212992,null,0,ay,[oy,Xo,Jr,[8,null],Jo],null,null)],function(t,e){var n=e.component;t(e,1,0,"primary"),t(e,9,0,"legacy"),t(e,12,0,n.aLinks),t(e,14,0)},function(t,e){t(e,0,0,Zs(e,1)._toolbarRows.length>0,0===Zs(e,1)._toolbarRows.length),t(e,6,0,Zs(e,9).disabled,Zs(e,9).vertical,"standard"===Zs(e,9).appearance)})}function Ow(t){return Mu(0,[(t()(),bs(0,0,null,null,1,"app-root",[],null,null,null,Iw,kw)),uu(1,49152,null,0,oc,[],null,null)],null,null)}var Dw=Fs("app-root",oc,Ow,{},{},[]),Rw=function(){function t(){}return t.prototype.create=function(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)},t.ngInjectableDef=Et({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Nw=function(){return function(){}}(),Mw=function(){return function(){}}(),jw=function(){return function(){}}(),Vw=zl(Bl,[oc],function(t){return function(t){for(var e={},n=[],r=!1,i=0;i<t.length;i++){var o=t[i];o.token===jr&&!0===o.value&&(r=!0),1073741824&o.flags&&n.push(o.token),o.index=i,e[Ha(o.token)]=o}return{factory:null,providersByKey:e,providers:t,modules:n,isRoot:r}}([As(512,Jr,ti,[[8,[Oy,Fb,zb,Qb,Yb,tw,iw,uw,pw,Dw]],[3,Jr],tr]),As(5120,Sa,Ta,[[3,Sa]]),As(4608,fh,dh,[Sa,[2,ph]]),As(5120,so,uo,[]),As(5120,ga,Ea,[]),As(5120,va,xa,[]),As(4608,xp,Tp,[Ch]),As(6144,Ki,null,[xp]),As(4608,vp,bp,[]),As(5120,qh,function(t,e,n,r,i,o,a,s){return[new mp(t,e,n),new Ep(r),new wp(i,o,a,s)]},[Ch,xo,ho,Ch,Ch,vp,fo,[2,_p]]),As(4608,Qh,Qh,[qh,xo]),As(135680,Zh,Zh,[Ch]),As(4608,np,np,[Qh,Zh]),As(5120,Ev,yb,[]),As(5120,d_,mb,[]),As(4608,B_,db,[Ch,Ev,d_]),As(5120,oi,gb,[np,B_,xo]),As(6144,Wh,null,[Zh]),As(4608,Ro,Ro,[xo]),As(5120,qf,Sy,[ey]),As(4608,cy,cy,[]),As(6144,uy,null,[cy]),As(135680,hy,hy,[ey,Bo,vo,Un,uy]),As(4608,ly,ly,[]),As(5120,py,vy,[ey,xh,fy]),As(5120,Py,Ty,[Ey]),As(5120,po,function(t){return[t]},[Py]),As(4608,Zm,Zm,[]),As(4608,Eg,sb,[oi,jh]),As(4608,Rw,Rw,[]),As(1073742336,wh,wh,[]),As(1024,no,Np,[]),As(1024,Vo,function(){return[my()]},[]),As(512,Ey,Ey,[Un]),As(1024,oo,function(t,e){return[(n=t,zh("probe",Bh),zh("coreTokens",o({},Gh,(n||[]).reduce(function(t,e){return t[e.name]=e.token,t},{}))),function(){return Bh}),xy(e)];var n},[[2,Vo],Ey]),As(512,ao,ao,[[2,oo]]),As(131584,zo,zo,[xo,fo,Un,no,Jr,ao]),As(1073742336,Pa,Pa,[zo]),As(1073742336,Mp,Mp,[[3,Mp]]),As(1024,dy,by,[[3,ey]]),As(512,Sf,Ef,[]),As(512,oy,oy,[]),As(256,fy,{},[]),As(1024,nh,_y,[th,[2,rh],fy]),As(512,ih,ih,[nh]),As(512,vo,vo,[]),As(512,Bo,Wo,[vo,[2,Qo]]),As(1024,Wd,function(){return[[{path:"2018/02",component:ql},{path:"2018/03",component:ec},{path:"2018/04",component:$l},{path:"2018/05",component:Xl},{path:"2018/06",component:Yl},{path:"2018/10",component:Zl},{path:"2018/12",component:Wl},{path:"2018/14",component:Kl}]]},[]),As(1024,ey,Cy,[zo,Sf,oy,ih,Un,Bo,vo,Wd,fy,[2,Yd],[2,Qd]]),As(1073742336,gy,gy,[[2,dy],[2,ey]]),As(1073742336,ic,ic,[]),As(1073742336,Cg,Cg,[]),As(1073742336,Sg,Sg,[]),As(1073742336,_b,_b,[]),As(1073742336,Tm,Tm,[]),As(1073742336,Xy,Xy,[[2,Yy],[2,_p]]),As(1073742336,Vy,Vy,[]),As(1073742336,cm,cm,[]),As(1073742336,Ab,Ab,[]),As(1073742336,Nw,Nw,[]),As(1073742336,Mw,Mw,[]),As(1073742336,xw,xw,[]),As(1073742336,em,em,[]),As(1073742336,Sm,Sm,[]),As(1073742336,Vg,Vg,[]),As(1073742336,Gg,Gg,[]),As(1073742336,Jg,Jg,[]),As(1073742336,_w,_w,[]),As(1073742336,jw,jw,[]),As(1073742336,Bl,Bl,[]),As(256,jr,!0,[]),As(256,vb,"BrowserAnimations",[])])});(function(){if(_i)throw new Error("Cannot enable prod mode after platform setup.");vi=!1})(),Rp().bootstrapModuleFactory(Vw).catch(function(t){return console.error(t)})}},[[0,0]]]);