(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"/uUt":function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("Ji7U"),r=n("LK+K"),a=n("1OyB"),o=n("vuIU"),s=n("7o/Q");function c(e,t){return function(n){return n.lift(new u(e,t))}}var u=function(){function e(t,n){Object(a.a)(this,e),this.compare=t,this.keySelector=n}return Object(o.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.compare,this.keySelector))}}]),e}(),l=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i,r){var o;return Object(a.a)(this,n),(o=t.call(this,e)).keySelector=r,o.hasKey=!1,"function"==typeof i&&(o.compare=i),o}return Object(o.a)(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(r){return this.destination.error(r)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}]),n}(s.a)},0:function(e,t,n){e.exports=n("zUnb")},"1G5W":function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("Ji7U"),r=n("LK+K"),a=n("1OyB"),o=n("vuIU"),s=n("zx2A");function c(e){return function(t){return t.lift(new u(e))}}var u=function(){function e(t){Object(a.a)(this,e),this.notifier=t}return Object(o.a)(e,[{key:"call",value:function(e,t){var n=new l(e),i=Object(s.c)(this.notifier,new s.a(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}]),e}(),l=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e)).seenValue=!1,i}return Object(o.a)(n,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(s.b)},"1OyB":function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return i})},"25BE":function(e,t,n){"use strict";function i(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",function(){return i})},"2QA8":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},"2Vo4":function(e,t,n){"use strict";n.d(t,"a",function(){return h});var i=n("1OyB"),r=n("vuIU"),a=n("ReuC"),o=n("foSv"),s=n("Ji7U"),c=n("LK+K"),u=n("XNiG"),l=n("9ppp"),h=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var r;return Object(i.a)(this,n),(r=t.call(this))._value=e,r}return Object(r.a)(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(e){var t=Object(a.a)(Object(o.a)(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new l.a;return this._value}},{key:"next",value:function(e){Object(a.a)(Object(o.a)(n.prototype),"next",this).call(this,this._value=e)}}]),n}(u.a)},"2WcH":function(e,t,n){"use strict";function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}n.d(t,"a",function(){return i})},"2fFW":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=!1,r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=e},get useDeprecatedSynchronousErrorHandling(){return i}}},"3N8a":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("1OyB"),r=n("vuIU"),a=n("Ji7U"),o=n("LK+K"),s=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,r){var a;return Object(i.a)(this,n),(a=t.call(this,e,r)).scheduler=e,a.work=r,a.pending=!1,a}return Object(r.a)(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n=!1,i=void 0;try{this.work(e)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,r){return Object(i.a)(this,n),t.call(this)}return Object(r.a)(n,[{key:"schedule",value:function(e){return this}}]),n}(n("quSY").a))},"5+tZ":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("Ji7U"),r=n("LK+K"),a=n("1OyB"),o=n("vuIU"),s=n("lJxs"),c=n("Cfvw"),u=n("zx2A");function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(i){return i.pipe(l(function(n,i){return Object(c.a)(e(n,i)).pipe(Object(s.a)(function(e,r){return t(n,e,i,r)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new h(e,n))})}var h=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;Object(a.a)(this,e),this.project=t,this.concurrent=n}return Object(o.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new f(e,this.project,this.concurrent))}}]),e}(),f=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return Object(a.a)(this,n),(r=t.call(this,e)).project=i,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return Object(o.a)(n,[{key:"_next",value:function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=new u.a(this),n=this.destination;n.add(t);var i=Object(u.c)(e,t);i!==t&&n.add(i)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyComplete",value:function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(u.b)},"7o/Q":function(e,t,n){"use strict";n.d(t,"a",function(){return m});var i=n("1OyB"),r=n("vuIU"),a=n("JX7q"),o=n("ReuC"),s=n("foSv"),c=n("Ji7U"),u=n("LK+K"),l=n("n6bG"),h=n("gRHU"),f=n("quSY"),d=n("2QA8"),p=n("2fFW"),v=n("NJ4a"),m=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,r,o){var s;switch(Object(i.a)(this,n),(s=t.call(this)).syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=h.a;break;case 1:if(!e){s.destination=h.a;break}if("object"==typeof e){e instanceof n?(s.syncErrorThrowable=e.syncErrorThrowable,s.destination=e,e.add(Object(a.a)(s))):(s.syncErrorThrowable=!0,s.destination=new b(Object(a.a)(s),e));break}default:s.syncErrorThrowable=!0,s.destination=new b(Object(a.a)(s),e,r,o)}return s}return Object(r.a)(n,[{key:d.a,value:function(){return this}},{key:"next",value:function(e){this.isStopped||this._next(e)}},{key:"error",value:function(e){this.isStopped||(this.isStopped=!0,this._error(e))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,Object(o.a)(Object(s.a)(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(e){this.destination.next(e)}},{key:"_error",value:function(e){this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}],[{key:"create",value:function(e,t,i){var r=new n(e,t,i);return r.syncErrorThrowable=!1,r}}]),n}(f.a),b=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e,r,o,s){var c,u;Object(i.a)(this,n),(c=t.call(this))._parentSubscriber=e;var f=Object(a.a)(c);return Object(l.a)(r)?u=r:r&&(u=r.next,o=r.error,s=r.complete,r!==h.a&&(f=Object.create(r),Object(l.a)(f.unsubscribe)&&c.add(f.unsubscribe.bind(f)),f.unsubscribe=c.unsubscribe.bind(Object(a.a)(c)))),c._context=f,c._next=u,c._error=o,c._complete=s,c}return Object(r.a)(n,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;p.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}},{key:"error",value:function(e){if(!this.isStopped){var t=this._parentSubscriber,n=p.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(v.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(v.a)(e)}}}},{key:"complete",value:function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};p.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),p.a.useDeprecatedSynchronousErrorHandling)throw n;Object(v.a)(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!p.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return p.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(Object(v.a)(i),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}]),n}(m)},"9ppp":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},BsWD:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("a3WO");function r(e,t){if(e){if("string"==typeof e)return Object(i.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(i.a)(e,t):void 0}}},Cfvw:function(e,t,n){"use strict";n.d(t,"a",function(){return h});var i=n("HDdC"),r=n("SeVD"),a=n("quSY"),o=n("kJWO"),s=n("jZKg"),c=n("Lhse"),u=n("c2HN"),l=n("I55L");function h(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[o.a]}(e))return function(e,t){return new i.a(function(n){var i=new a.a;return i.add(t.schedule(function(){var r=e[o.a]();i.add(r.subscribe({next:function(e){i.add(t.schedule(function(){return n.next(e)}))},error:function(e){i.add(t.schedule(function(){return n.error(e)}))},complete:function(){i.add(t.schedule(function(){return n.complete()}))}}))})),i})}(e,t);if(Object(u.a)(e))return function(e,t){return new i.a(function(n){var i=new a.a;return i.add(t.schedule(function(){return e.then(function(e){i.add(t.schedule(function(){n.next(e),i.add(t.schedule(function(){return n.complete()}))}))},function(e){i.add(t.schedule(function(){return n.error(e)}))})})),i})}(e,t);if(Object(l.a)(e))return Object(s.a)(e,t);if(function(e){return e&&"function"==typeof e[c.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new i.a(function(n){var i,r=new a.a;return r.add(function(){i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(function(){i=e[c.a](),r.add(t.schedule(function(){if(!n.closed){var e,t;try{var r=i.next();e=r.value,t=r.done}catch(a){return void n.error(a)}t?n.complete():(n.next(e),this.schedule())}}))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof i.a?e:new i.a(Object(r.a)(e))}},D0XW:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("3N8a"),r=new(n("IjjT").a)(i.a)},DH7j:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}()},DSFK:function(e,t,n){"use strict";function i(e){if(Array.isArray(e))return e}n.d(t,"a",function(){return i})},EY2u:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a});var i=n("HDdC"),r=new i.a(function(e){return e.complete()});function a(e){return e?function(e){return new i.a(function(t){return e.schedule(function(){return t.complete()})})}(e):r}},HDdC:function(e,t,n){"use strict";n.d(t,"a",function(){return h});var i=n("1OyB"),r=n("vuIU"),a=n("7o/Q"),o=n("2QA8"),s=n("gRHU"),c=n("kJWO"),u=n("mCNh"),l=n("2fFW"),h=function(){var e=function(){function e(t){Object(i.a)(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return Object(r.a)(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var i=this.operator,r=function(e,t,n){if(e){if(e instanceof a.a)return e;if(e[o.a])return e[o.a]()}return e||t||n?new a.a(e,t,n):new a.a(s.a)}(e,t,n);if(r.add(i?i.call(r,this.source):this.source||l.a.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),l.a.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){l.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e.destination;if(e.closed||e.isStopped)return!1;e=t&&t instanceof a.a?t:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=f(t))(function(t,i){var r;r=n.subscribe(function(t){try{e(t)}catch(n){i(n),r&&r.unsubscribe()}},i,t)})}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:c.a,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?this:Object(u.b)(t)(this)}},{key:"toPromise",value:function(e){var t=this;return new(e=f(e))(function(e,n){var i;t.subscribe(function(e){return i=e},function(e){return n(e)},function(){return e(i)})})}}]),e}();return e.create=function(t){return new e(t)},e}();function f(e){if(e||(e=l.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},I55L:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},IjjT:function(e,t,n){"use strict";n.d(t,"a",function(){return h});var i=n("1OyB"),r=n("vuIU"),a=n("JX7q"),o=n("ReuC"),s=n("foSv"),c=n("Ji7U"),u=n("LK+K"),l=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;Object(i.a)(this,e),this.SchedulerAction=t,this.now=n}return Object(r.a)(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),h=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.now;return Object(i.a)(this,n),(r=t.call(this,e,function(){return n.delegate&&n.delegate!==Object(a.a)(r)?n.delegate.now():o()})).actions=[],r.active=!1,r.scheduled=void 0,r}return Object(r.a)(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,i):Object(o.a)(Object(s.a)(n.prototype),"schedule",this).call(this,e,t,i)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(l)},IzEk:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("Ji7U"),r=n("LK+K"),a=n("1OyB"),o=n("vuIU"),s=n("7o/Q"),c=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}(),u=n("EY2u");function l(e){return function(t){return 0===e?Object(u.b)():t.lift(new h(e))}}var h=function(){function e(t){if(Object(a.a)(this,e),this.total=t,this.total<0)throw new c}return Object(o.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new f(e,this.total))}}]),e}(),f=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i){var r;return Object(a.a)(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return Object(o.a)(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(s.a)},JIr8:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("ReuC"),r=n("foSv"),a=n("Ji7U"),o=n("LK+K"),s=n("1OyB"),c=n("vuIU"),u=n("zx2A");function l(e){return function(t){var n=new h(e),i=t.lift(n);return n.caught=i}}var h=function(){function e(t){Object(s.a)(this,e),this.selector=t}return Object(c.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new f(e,this.selector,this.caught))}}]),e}(),f=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i,r){var a;return Object(s.a)(this,n),(a=t.call(this,e)).selector=i,a.caught=r,a}return Object(c.a)(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(s){return void Object(i.a)(Object(r.a)(n.prototype),"error",this).call(this,s)}this._unsubscribeAndRecycle();var a=new u.a(this);this.add(a);var o=Object(u.c)(t,a);o!==a&&this.add(o)}}}]),n}(u.b)},JX7q:function(e,t,n){"use strict";function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",function(){return i})},Ji7U:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("s4An");function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Object(i.a)(e,t)}},KQm4:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("a3WO"),r=n("25BE"),a=n("BsWD");function o(e){return function(e){if(Array.isArray(e))return Object(i.a)(e)}(e)||Object(r.a)(e)||Object(a.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},Kj3r:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("Ji7U"),r=n("LK+K"),a=n("1OyB"),o=n("vuIU"),s=n("7o/Q"),c=n("D0XW");function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.a;return function(n){return n.lift(new l(e,t))}}var l=function(){function e(t,n){Object(a.a)(this,e),this.dueTime=t,this.scheduler=n}return Object(o.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new h(e,this.dueTime,this.scheduler))}}]),e}(),h=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i,r){var o;return Object(a.a)(this,n),(o=t.call(this,e)).dueTime=i,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return Object(o.a)(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(f,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(s.a);function f(e){e.debouncedNext()}},Kqap:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("Ji7U"),r=n("LK+K"),a=n("1OyB"),o=n("vuIU"),s=n("7o/Q");function c(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new u(e,t,n))}}var u=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Object(a.a)(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return Object(o.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),l=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i,r,o){var s;return Object(a.a)(this,n),(s=t.call(this,e)).accumulator=i,s._seed=r,s.hasSeed=o,s.index=0,s}return Object(o.a)(n,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}}]),n}(s.a)},"LK+K":function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("foSv"),r=n("2WcH");function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n("JX7q");function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?Object(o.a)(e):t}function c(e){var t=Object(r.a)();return function(){var n,r=Object(i.a)(e);if(t){var a=Object(i.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return s(this,n)}}},LRne:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("z+Ro"),r=n("yCtX"),a=n("jZKg");function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[t.length-1];return Object(i.a)(o)?(t.pop(),Object(a.a)(t,o)):Object(r.a)(t)}},Lhse:function(e,t,n){"use strict";function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",function(){return r});var r=i()},NJ4a:function(e,t,n){"use strict";function i(e){setTimeout(function(){throw e},0)}n.d(t,"a",function(){return i})},ODXe:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("DSFK"),r=n("BsWD"),a=n("PYwp");function o(e,t){return Object(i.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(c){r=!0,a=c}finally{try{i||null==s.return||s.return()}finally{if(r)throw a}}return n}}(e,t)||Object(r.a)(e,t)||Object(a.a)()}},PYwp:function(e,t,n){"use strict";function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",function(){return i})},ReuC:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("foSv");function r(e,t,n){return(r="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(i.a)(e)););return e}(e,t);if(r){var a=Object.getOwnPropertyDescriptor(r,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}},SeVD:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("ngJS"),r=n("NJ4a"),a=n("Lhse"),o=n("kJWO"),s=n("I55L"),c=n("c2HN"),u=n("XoHu"),l=function(e){if(e&&"function"==typeof e[o.a])return l=e,function(e){var t=l[o.a]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(Object(s.a)(e))return Object(i.a)(e);if(Object(c.a)(e))return n=e,function(e){return n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,r.a),e};if(e&&"function"==typeof e[a.a])return t=e,function(e){for(var n=t[a.a]();;){var i=void 0;try{i=n.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e};var t,n,l,h=Object(u.a)(e)?"an invalid object":"'".concat(e,"'"),f="You provided ".concat(h," where a stream was expected.")+" You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(f)}},SpAZ:function(e,t,n){"use strict";function i(e){return e}n.d(t,"a",function(){return i})},T5bk:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("DSFK"),r=n("25BE"),a=n("BsWD"),o=n("PYwp");function s(e){return Object(i.a)(e)||Object(r.a)(e)||Object(a.a)(e)||Object(o.a)()}},VRyK:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("HDdC"),r=n("z+Ro"),a=n("bHdf"),o=n("yCtX");function s(){for(var e=Number.POSITIVE_INFINITY,t=null,n=arguments.length,s=new Array(n),c=0;c<n;c++)s[c]=arguments[c];var u=s[s.length-1];return Object(r.a)(u)?(t=s.pop(),s.length>1&&"number"==typeof s[s.length-1]&&(e=s.pop())):"number"==typeof u&&(e=s.pop()),null===t&&1===s.length&&s[0]instanceof i.a?s[0]:Object(a.a)(e)(Object(o.a)(s,t))}},WMd4:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("1OyB"),r=n("vuIU"),a=n("EY2u"),o=n("LRne"),s=n("z6cu"),c=function(){var e=function(){function e(t,n,r){Object(i.a)(this,e),this.kind=t,this.value=n,this.error=r,this.hasValue="N"===t}return Object(r.a)(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Object(o.a)(this.value);case"E":return Object(s.a)(this.error);case"C":return Object(a.b)()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}();return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}()},XNiG:function(e,t,n){"use strict";n.d(t,"b",function(){return v}),n.d(t,"a",function(){return m});var i=n("vuIU"),r=n("ReuC"),a=n("foSv"),o=n("1OyB"),s=n("Ji7U"),c=n("LK+K"),u=n("HDdC"),l=n("7o/Q"),h=n("quSY"),f=n("9ppp"),d=n("Ylt2"),p=n("2QA8"),v=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var i;return Object(o.a)(this,n),(i=t.call(this,e)).destination=e,i}return n}(l.a),m=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){var e;return Object(o.a)(this,n),(e=t.call(this)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return Object(i.a)(n,[{key:p.a,value:function(){return new v(this)}},{key:"lift",value:function(e){var t=new b(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new f.a;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].next(e)}},{key:"error",value:function(e){if(this.closed)throw new f.a;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].error(e);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new f.a;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),i=0;i<t;i++)n[i].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(e){if(this.closed)throw new f.a;return Object(r.a)(Object(a.a)(n.prototype),"_trySubscribe",this).call(this,e)}},{key:"_subscribe",value:function(e){if(this.closed)throw new f.a;return this.hasError?(e.error(this.thrownError),h.a.EMPTY):this.isStopped?(e.complete(),h.a.EMPTY):(this.observers.push(e),new d.a(this,e))}},{key:"asObservable",value:function(){var e=new u.a;return e.source=this,e}}]),n}(u.a);return e.create=function(e,t){return new b(e,t)},e}(),b=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i){var r;return Object(o.a)(this,n),(r=t.call(this)).destination=e,r.source=i,r}return Object(i.a)(n,[{key:"next",value:function(e){var t=this.destination;t&&t.next&&t.next(e)}},{key:"error",value:function(e){var t=this.destination;t&&t.error&&this.destination.error(e)}},{key:"complete",value:function(){var e=this.destination;e&&e.complete&&this.destination.complete()}},{key:"_subscribe",value:function(e){return this.source?this.source.subscribe(e):h.a.EMPTY}}]),n}(m)},XoHu:function(e,t,n){"use strict";function i(e){return null!==e&&"object"==typeof e}n.d(t,"a",function(){return i})},Ylt2:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("1OyB"),r=n("vuIU"),a=n("Ji7U"),o=n("LK+K"),s=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,r){var a;return Object(i.a)(this,n),(a=t.call(this)).subject=e,a.subscriber=r,a.closed=!1,a}return Object(r.a)(n,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}}}]),n}(n("quSY").a)},ZUHj:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n("1OyB"),r=n("vuIU"),a=n("Ji7U"),o=n("LK+K"),s=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,r,a){var o;return Object(i.a)(this,n),(o=t.call(this)).parent=e,o.outerValue=r,o.outerIndex=a,o.index=0,o}return Object(r.a)(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(n("7o/Q").a),c=n("SeVD"),u=n("HDdC");function l(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new s(e,n,i);if(!r.closed)return t instanceof u.a?t.subscribe(r):Object(c.a)(t)(r)}},a3WO:function(e,t,n){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}n.d(t,"a",function(){return i})},agSv:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return StoreDevtoolsModule});var C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("ODXe"),C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("KQm4"),C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("vuIU"),C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("Ji7U"),C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("LK+K"),C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("1OyB"),_angular_core__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("fXoL"),_ngrx_store__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("l7P3"),rxjs__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("EY2u"),rxjs__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("HDdC"),rxjs__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("LRne"),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("VRyK"),rxjs__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("qgXg"),rxjs__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("jtHE"),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("w1tV"),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("pLZG"),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("lJxs"),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("bOdf"),rxjs_operators__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("tS1D"),rxjs_operators__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("Kj3r"),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("JIr8"),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("IzEk"),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("1G5W"),rxjs_operators__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("eIep"),rxjs_operators__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("zP0r"),rxjs_operators__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("pxpQ"),rxjs_operators__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("zp1y"),rxjs_operators__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("Kqap"),StoreDevtoolsConfig=function e(){Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__.a)(this,e),this.maxAge=!1},STORE_DEVTOOLS_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_6__.q("@ngrx/store-devtools Options"),INITIAL_OPTIONS=new _angular_core__WEBPACK_IMPORTED_MODULE_6__.q("@ngrx/store-devtools Initial Config");function noMonitor(){return null}var DEFAULT_NAME="NgRx Store DevTools";function createConfig(e){var t={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0}},n="function"==typeof e?e():e,i=Object.assign({},t,{features:n.features||!!n.logOnly&&{pause:!0,export:!0,test:!0}||t.features},n);if(i.maxAge&&i.maxAge<2)throw new Error("Devtools 'maxAge' cannot be less than 2, got ".concat(i.maxAge));return i}var PERFORM_ACTION="PERFORM_ACTION",REFRESH="REFRESH",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",JUMP_TO_ACTION="JUMP_TO_ACTION",IMPORT_STATE="IMPORT_STATE",LOCK_CHANGES="LOCK_CHANGES",PAUSE_RECORDING="PAUSE_RECORDING",PerformAction=function e(t,n){if(Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__.a)(this,e),this.action=t,this.timestamp=n,this.type=PERFORM_ACTION,void 0===t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')},Refresh=function e(){Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__.a)(this,e),this.type=REFRESH},Reset=function e(t){Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__.a)(this,e),this.timestamp=t,this.type=RESET},Rollback=function e(t){Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__.a)(this,e),this.timestamp=t,this.type=ROLLBACK},Commit=function e(t){Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__.a)(this,e),this.timestamp=t,this.type=COMMIT},Sweep=function e(){Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__.a)(this,e),this.type=SWEEP},ToggleAction=function e(t){Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__.a)(this,e),this.id=t,this.type=TOGGLE_ACTION},SetActionsActive=function e(t,n){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__.a)(this,e),this.start=t,this.end=n,this.active=i,this.type=SET_ACTIONS_ACTIVE},JumpToState=function e(t){Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__.a)(this,e),this.index=t,this.type=JUMP_TO_STATE},JumpToAction=function e(t){Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__.a)(this,e),this.actionId=t,this.type=JUMP_TO_ACTION},ImportState=function e(t){Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__.a)(this,e),this.nextLiftedState=t,this.type=IMPORT_STATE},LockChanges=function e(t){Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__.a)(this,e),this.status=t,this.type=LOCK_CHANGES},PauseRecording=function e(t){Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__.a)(this,e),this.status=t,this.type=PAUSE_RECORDING},DevtoolsDispatcher=function(){var e=function(e){Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_3__.a)(n,e);var t=Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_4__.a)(n);function n(){return Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__.a)(this,n),t.apply(this,arguments)}return n}(_ngrx_store__WEBPACK_IMPORTED_MODULE_7__.a);return e.\u0275fac=function(t){return \u0275DevtoolsDispatcher_BaseFactory(t||e)},e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_6__.Gb({token:e,factory:e.\u0275fac}),e}(),\u0275DevtoolsDispatcher_BaseFactory=_angular_core__WEBPACK_IMPORTED_MODULE_6__.Sb(DevtoolsDispatcher);function difference(e,t){return e.filter(function(e){return t.indexOf(e)<0})}function unliftState(e){var t=e.computedStates,n=e.currentStateIndex;return n>=t.length?t[t.length-1].state:t[n].state}function unliftAction(e){return e.actionsById[e.nextActionId-1]}function liftAction(e){return new PerformAction(e,+Date.now())}function sanitizeActions(e,t){return Object.keys(t).reduce(function(n,i){var r=Number(i);return n[r]=sanitizeAction(e,t[r],r),n},{})}function sanitizeAction(e,t,n){return Object.assign(Object.assign({},t),{action:e(t.action,n)})}function sanitizeStates(e,t){return t.map(function(t,n){return{state:sanitizeState(e,t.state,n),error:t.error}})}function sanitizeState(e,t,n){return e(t,n)}function shouldFilterActions(e){return e.predicate||e.actionsSafelist||e.actionsBlocklist}function filterLiftedState(e,t,n,i){var r=[],a={},o=[];return e.stagedActionIds.forEach(function(s,c){var u=e.actionsById[s];u&&(c&&isActionFiltered(e.computedStates[c],u,t,n,i)||(a[s]=u,r.push(s),o.push(e.computedStates[c])))}),Object.assign(Object.assign({},e),{stagedActionIds:r,actionsById:a,computedStates:o})}function isActionFiltered(e,t,n,i,r){var a=n&&!n(e,t.action),o=i&&!t.action.type.match(i.map(function(e){return escapeRegExp(e)}).join("|")),s=r&&t.action.type.match(r.map(function(e){return escapeRegExp(e)}).join("|"));return a||o||s}function escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new _angular_core__WEBPACK_IMPORTED_MODULE_6__.q("@ngrx/store-devtools Redux Devtools Extension"),DevtoolsExtension=function(){var DevtoolsExtension=function(){function DevtoolsExtension(e,t,n){Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__.a)(this,DevtoolsExtension),this.config=t,this.dispatcher=n,this.devtoolsExtension=e,this.createActionStreams()}return Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__.a)(DevtoolsExtension,[{key:"notify",value:function(e,t){var n=this;if(this.devtoolsExtension)if(e.type===PERFORM_ACTION){if(t.isLocked||t.isPaused)return;var i=unliftState(t);if(shouldFilterActions(this.config)&&isActionFiltered(i,e,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;var r=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,i,t.currentStateIndex):i,a=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,e,t.nextActionId):e;this.sendToReduxDevtools(function(){return n.extensionConnection.send(a,r)})}else{var o=Object.assign(Object.assign({},t),{stagedActionIds:t.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,t.actionsById):t.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,t.computedStates):t.computedStates});this.sendToReduxDevtools(function(){return n.devtoolsExtension.send(null,o,n.getExtensionConfig(n.config))})}}},{key:"createChangesObservable",value:function(){var e=this;return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_9__.a(function(t){var n=e.devtoolsExtension.connect(e.getExtensionConfig(e.config));return e.extensionConnection=n,n.init(),n.subscribe(function(e){return t.next(e)}),n.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_8__.a}},{key:"createActionStreams",value:function(){var e=this,t=this.createChangesObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.a)()),n=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.a)(function(e){return e.type===ExtensionActionTypes.START})),i=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.a)(function(e){return e.type===ExtensionActionTypes.STOP})),r=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.a)(function(e){return e.type===ExtensionActionTypes.DISPATCH}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(function(t){return e.unwrapAction(t.payload)}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)(function(t){return t.type===IMPORT_STATE?e.dispatcher.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.a)(function(e){return e.type===_ngrx_store__WEBPACK_IMPORTED_MODULE_7__.l}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.a)(1e3),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.a)(1e3),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(function(){return t}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.a)(function(){return Object(rxjs__WEBPACK_IMPORTED_MODULE_10__.a)(t)}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.a)(1)):Object(rxjs__WEBPACK_IMPORTED_MODULE_10__.a)(t)})),a=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.a)(function(e){return e.type===ExtensionActionTypes.ACTION}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(function(t){return e.unwrapAction(t.payload)})).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.a)(i)),o=r.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.a)(i));this.start$=n.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.a)(i)),this.actions$=this.start$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_23__.a)(function(){return a})),this.liftedActions$=this.start$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_23__.a)(function(){return o}))}},{key:"unwrapAction",value:function unwrapAction(action){return"string"==typeof action?eval("(".concat(action,")")):action}},{key:"getExtensionConfig",value:function(e){var t={name:e.name,features:e.features,serialize:e.serialize};return!1!==e.maxAge&&(t.maxAge=e.maxAge),t}},{key:"sendToReduxDevtools",value:function(e){try{e()}catch(t){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",t)}}}]),DevtoolsExtension}();return DevtoolsExtension.\u0275fac=function(e){return new(e||DevtoolsExtension)(_angular_core__WEBPACK_IMPORTED_MODULE_6__.Ub(REDUX_DEVTOOLS_EXTENSION),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Ub(STORE_DEVTOOLS_CONFIG),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Ub(DevtoolsDispatcher))},DevtoolsExtension.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_6__.Gb({token:DevtoolsExtension,factory:DevtoolsExtension.\u0275fac}),DevtoolsExtension}(),INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_7__.b},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(e,t,n,i,r){if(i)return{state:n,error:"Interrupted by an error up the chain"};var a,o=n;try{o=e(n,t)}catch(s){a=s.toString(),r.handleError(s)}return{state:o,error:a}}function recomputeStates(e,t,n,i,r,a,o,s,c){if(t>=e.length&&e.length===a.length)return e;for(var u=e.slice(0,t),l=a.length-(c?1:0),h=t;h<l;h++){var f=a[h],d=r[f].action,p=u[h-1],v=p?p.state:i,m=p?p.error:void 0,b=o.indexOf(f)>-1?p:computeNextEntry(n,d,v,m,s);u.push(b)}return c&&u.push(e[e.length-1]),u}function liftInitialState(e,t){return{monitorState:t(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:e,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return function(a){return function(o,s){var c=o||t,u=c.monitorState,l=c.actionsById,h=c.nextActionId,f=c.stagedActionIds,d=c.skippedActionIds,p=c.committedState,v=c.currentStateIndex,m=c.computedStates,b=c.isLocked,_=c.isPaused;function y(e){for(var t=e,n=f.slice(1,t+1),i=0;i<n.length;i++){if(m[i+1].error){n=f.slice(1,(t=i)+1);break}delete l[n[i]]}d=d.filter(function(e){return-1===n.indexOf(e)}),f=[0].concat(Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__.a)(f.slice(t+1))),p=m[t].state,m=m.slice(t),v=v>t?v-t:0}function g(){l={0:liftAction(INIT_ACTION)},h=1,f=[0],d=[],p=m[v].state,v=0,m=[]}o||(l=Object.create(l));var k=0;switch(s.type){case LOCK_CHANGES:b=s.status,k=1/0;break;case PAUSE_RECORDING:(_=s.status)?(f=[].concat(Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__.a)(f),[h]),l[h]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),h++,k=f.length-1,m=m.concat(m[m.length-1]),v===f.length-2&&v++,k=1/0):g();break;case RESET:l={0:liftAction(INIT_ACTION)},h=1,f=[0],d=[],p=e,v=0,m=[];break;case COMMIT:g();break;case ROLLBACK:l={0:liftAction(INIT_ACTION)},h=1,f=[0],d=[],v=0,m=[];break;case TOGGLE_ACTION:var O=s.id,w=d.indexOf(O);d=-1===w?[O].concat(Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__.a)(d)):d.filter(function(e){return e!==O}),k=f.indexOf(O);break;case SET_ACTIONS_ACTIVE:for(var C=s.start,x=s.end,j=s.active,E=[],S=C;S<x;S++)E.push(S);d=j?difference(d,E):[].concat(Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__.a)(d),E),k=f.indexOf(C);break;case JUMP_TO_STATE:v=s.index,k=1/0;break;case JUMP_TO_ACTION:var A=f.indexOf(s.actionId);-1!==A&&(v=A),k=1/0;break;case SWEEP:f=difference(f,d),d=[],v=Math.min(v,f.length-1);break;case PERFORM_ACTION:if(b)return o||t;if(_||o&&isActionFiltered(o.computedStates[v],s,r.predicate,r.actionsSafelist,r.actionsBlocklist)){var D=m[m.length-1];m=[].concat(Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__.a)(m.slice(0,-1)),[computeNextEntry(a,s.action,D.state,D.error,n)]),k=1/0;break}r.maxAge&&f.length===r.maxAge&&y(1),v===f.length-1&&v++;var T=h++;l[T]=s,k=(f=[].concat(Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__.a)(f),[T])).length-1;break;case IMPORT_STATE:var P=s.nextLiftedState;u=P.monitorState,l=P.actionsById,h=P.nextActionId,f=P.stagedActionIds,d=P.skippedActionIds,p=P.committedState,v=P.currentStateIndex,m=P.computedStates,b=P.isLocked,_=P.isPaused;break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_7__.b:k=0,r.maxAge&&f.length>r.maxAge&&(m=recomputeStates(m,k,a,p,l,f,d,n,_),y(f.length-r.maxAge),k=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_7__.l:if(m.filter(function(e){return e.error}).length>0)k=0,r.maxAge&&f.length>r.maxAge&&(m=recomputeStates(m,k,a,p,l,f,d,n,_),y(f.length-r.maxAge),k=1/0);else{if(!_&&!b){v===f.length-1&&v++;var I=h++;l[I]=new PerformAction(s,+Date.now()),f=[].concat(Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__.a)(f),[I]),m=recomputeStates(m,k=f.length-1,a,p,l,f,d,n,_)}m=m.map(function(e){return Object.assign(Object.assign({},e),{state:a(e.state,RECOMPUTE_ACTION)})}),v=f.length-1,r.maxAge&&f.length>r.maxAge&&y(f.length-r.maxAge),k=1/0}break;default:k=1/0}return m=recomputeStates(m,k,a,p,l,f,d,n,_),{monitorState:u=i(u,s),actionsById:l,nextActionId:h,stagedActionIds:f,skippedActionIds:d,committedState:p,currentStateIndex:v,computedStates:m,isLocked:b,isPaused:_}}}}var StoreDevtools=function(){var e=function(){function e(t,n,i,r,a,o,s,c){var u=this;Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__.a)(this,e);var l=liftInitialState(s,c.monitor),h=liftReducerWith(s,l,o,c.monitor,c),f=Object(rxjs__WEBPACK_IMPORTED_MODULE_11__.a)(Object(rxjs__WEBPACK_IMPORTED_MODULE_11__.a)(n.asObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_24__.a)(1)),r.actions$).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(liftAction)),t,r.liftedActions$).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_25__.b)(rxjs__WEBPACK_IMPORTED_MODULE_12__.b)),d=i.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(h)),p=new rxjs__WEBPACK_IMPORTED_MODULE_13__.a(1),v=f.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_26__.a)(d),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_27__.a)(function(e,t){var n=e.state,i=Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__.a)(t,2),a=i[0],o=(0,i[1])(n,a);return a.type!==PERFORM_ACTION&&shouldFilterActions(c)&&(o=filterLiftedState(o,c.predicate,c.actionsSafelist,c.actionsBlocklist)),r.notify(a,o),{state:o,action:a}},{state:l,action:null})).subscribe(function(e){var t=e.action;p.next(e.state),t.type===PERFORM_ACTION&&a.next(t.action)}),m=r.start$.subscribe(function(){u.refresh()}),b=p.asObservable(),_=b.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(unliftState));this.extensionStartSubscription=m,this.stateSubscription=v,this.dispatcher=t,this.liftedState=b,this.state=_}return Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__.a)(e,[{key:"dispatch",value:function(e){this.dispatcher.next(e)}},{key:"next",value:function(e){this.dispatcher.next(e)}},{key:"error",value:function(e){}},{key:"complete",value:function(){}},{key:"performAction",value:function(e){this.dispatch(new PerformAction(e,+Date.now()))}},{key:"refresh",value:function(){this.dispatch(new Refresh)}},{key:"reset",value:function(){this.dispatch(new Reset(+Date.now()))}},{key:"rollback",value:function(){this.dispatch(new Rollback(+Date.now()))}},{key:"commit",value:function(){this.dispatch(new Commit(+Date.now()))}},{key:"sweep",value:function(){this.dispatch(new Sweep)}},{key:"toggleAction",value:function(e){this.dispatch(new ToggleAction(e))}},{key:"jumpToAction",value:function(e){this.dispatch(new JumpToAction(e))}},{key:"jumpToState",value:function(e){this.dispatch(new JumpToState(e))}},{key:"importState",value:function(e){this.dispatch(new ImportState(e))}},{key:"lockChanges",value:function(e){this.dispatch(new LockChanges(e))}},{key:"pauseRecording",value:function(e){this.dispatch(new PauseRecording(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_angular_core__WEBPACK_IMPORTED_MODULE_6__.Ub(DevtoolsDispatcher),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Ub(_ngrx_store__WEBPACK_IMPORTED_MODULE_7__.a),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Ub(_ngrx_store__WEBPACK_IMPORTED_MODULE_7__.e),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Ub(DevtoolsExtension),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Ub(_ngrx_store__WEBPACK_IMPORTED_MODULE_7__.f),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Ub(_angular_core__WEBPACK_IMPORTED_MODULE_6__.l),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Ub(_ngrx_store__WEBPACK_IMPORTED_MODULE_7__.c),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Ub(STORE_DEVTOOLS_CONFIG))},e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_6__.Gb({token:e,factory:e.\u0275fac}),e}(),IS_EXTENSION_OR_MONITOR_PRESENT=new _angular_core__WEBPACK_IMPORTED_MODULE_6__.q("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(e,t){return Boolean(e)||t.monitor!==noMonitor}function createReduxDevtoolsExtension(){var e="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&void 0!==window[e]?window[e]:null}function createStateObservable(e){return e.state}var StoreDevtoolsModule=function(){var e=function(){function e(){Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__.a)(this,e)}return Object(C_Users_jamesg_Documents_FTDNA_familytreedna_com_FTDNA_Web_WWW_Areas_Main_Apps_GroupProjectSearch_node_modules_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__.a)(e,null,[{key:"instrument",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:t},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_7__.g,deps:[StoreDevtools],useFactory:createStateObservable},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_7__.d,useExisting:DevtoolsDispatcher}]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_6__.Ib({type:e}),e.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_6__.Hb({}),e}()},bHdf:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("5+tZ"),r=n("SpAZ");function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Object(i.a)(r.a,e)}},bOdf:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("5+tZ");function r(e,t){return Object(i.a)(e,t,1)}},c2HN:function(e,t,n){"use strict";function i(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",function(){return i})},eIep:function(e,t,n){"use strict";n.d(t,"a",function(){return f});var i=n("ReuC"),r=n("foSv"),a=n("Ji7U"),o=n("LK+K"),s=n("1OyB"),c=n("vuIU"),u=n("lJxs"),l=n("Cfvw"),h=n("zx2A");function f(e,t){return"function"==typeof t?function(n){return n.pipe(f(function(n,i){return Object(l.a)(e(n,i)).pipe(Object(u.a)(function(e,r){return t(n,e,i,r)}))}))}:function(t){return t.lift(new d(e))}}var d=function(){function e(t){Object(s.a)(this,e),this.project=t}return Object(c.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new p(e,this.project))}}]),e}(),p=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i){var r;return Object(s.a)(this,n),(r=t.call(this,e)).project=i,r.index=0,r}return Object(c.a)(n,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=this.innerSubscription;t&&t.unsubscribe();var n=new h.a(this),i=this.destination;i.add(n),this.innerSubscription=Object(h.c)(e,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||Object(i.a)(Object(r.a)(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=void 0}},{key:"notifyComplete",value:function(){this.innerSubscription=void 0,this.isStopped&&Object(i.a)(Object(r.a)(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e){this.destination.next(e)}}]),n}(h.b)},fXoL:function(e,t,n){"use strict";n.d(t,"a",function(){return _u}),n.d(t,"b",function(){return du}),n.d(t,"c",function(){return hu}),n.d(t,"d",function(){return fu}),n.d(t,"e",function(){return ul}),n.d(t,"f",function(){return il}),n.d(t,"g",function(){return ac}),n.d(t,"h",function(){return As}),n.d(t,"i",function(){return ku}),n.d(t,"j",function(){return Is}),n.d(t,"k",function(){return al}),n.d(t,"l",function(){return Ni}),n.d(t,"m",function(){return Hc}),n.d(t,"n",function(){return Sa}),n.d(t,"o",function(){return Wn}),n.d(t,"p",function(){return K}),n.d(t,"q",function(){return On}),n.d(t,"r",function(){return Wa}),n.d(t,"s",function(){return Js}),n.d(t,"t",function(){return ec}),n.d(t,"u",function(){return gu}),n.d(t,"v",function(){return vc}),n.d(t,"w",function(){return Zu}),n.d(t,"x",function(){return Pu}),n.d(t,"y",function(){return qn}),n.d(t,"z",function(){return bu}),n.d(t,"A",function(){return mu}),n.d(t,"B",function(){return qc}),n.d(t,"C",function(){return Ls}),n.d(t,"D",function(){return Ms}),n.d(t,"E",function(){return Ki}),n.d(t,"F",function(){return Ns}),n.d(t,"G",function(){return Ii}),n.d(t,"H",function(){return Qn}),n.d(t,"I",function(){return Gn}),n.d(t,"J",function(){return fc}),n.d(t,"K",function(){return Bu}),n.d(t,"L",function(){return wn}),n.d(t,"M",function(){return Bs}),n.d(t,"N",function(){return _c}),n.d(t,"O",function(){return Y}),n.d(t,"P",function(){return Ju}),n.d(t,"Q",function(){return Qu}),n.d(t,"R",function(){return j}),n.d(t,"S",function(){return Vn}),n.d(t,"T",function(){return qu}),n.d(t,"U",function(){return sl}),n.d(t,"V",function(){return Uu}),n.d(t,"W",function(){return yu}),n.d(t,"X",function(){return Da}),n.d(t,"Y",function(){return ps}),n.d(t,"Z",function(){return A}),n.d(t,"ab",function(){return Ti}),n.d(t,"bb",function(){return pi}),n.d(t,"cb",function(){return ii}),n.d(t,"db",function(){return ai}),n.d(t,"eb",function(){return ui}),n.d(t,"fb",function(){return si}),n.d(t,"gb",function(){return oi}),n.d(t,"hb",function(){return ci}),n.d(t,"ib",function(){return ls}),n.d(t,"jb",function(){return ol}),n.d(t,"kb",function(){return hs}),n.d(t,"lb",function(){return fs}),n.d(t,"mb",function(){return ri}),n.d(t,"nb",function(){return ee}),n.d(t,"ob",function(){return to}),n.d(t,"pb",function(){return wo}),n.d(t,"qb",function(){return ko}),n.d(t,"rb",function(){return Oo}),n.d(t,"sb",function(){return us}),n.d(t,"tb",function(){return Ve}),n.d(t,"ub",function(){return w}),n.d(t,"vb",function(){return ni}),n.d(t,"wb",function(){return Qa}),n.d(t,"xb",function(){return Ie}),n.d(t,"yb",function(){return xs}),n.d(t,"zb",function(){return Pr}),n.d(t,"Ab",function(){return ao}),n.d(t,"Bb",function(){return is}),n.d(t,"Cb",function(){return Ko}),n.d(t,"Db",function(){return ru}),n.d(t,"Eb",function(){return fe}),n.d(t,"Fb",function(){return ye}),n.d(t,"Gb",function(){return I}),n.d(t,"Hb",function(){return R}),n.d(t,"Ib",function(){return me}),n.d(t,"Jb",function(){return ge}),n.d(t,"Kb",function(){return uo}),n.d(t,"Lb",function(){return mo}),n.d(t,"Mb",function(){return yo}),n.d(t,"Nb",function(){return _o}),n.d(t,"Ob",function(){return bo}),n.d(t,"Pb",function(){return vo}),n.d(t,"Qb",function(){return po}),n.d(t,"Rb",function(){return go}),n.d(t,"Sb",function(){return bn}),n.d(t,"Tb",function(){return rs}),n.d(t,"Ub",function(){return Bn}),n.d(t,"Vb",function(){return yn}),n.d(t,"Wb",function(){return lu}),n.d(t,"Xb",function(){return lo}),n.d(t,"Yb",function(){return Co}),n.d(t,"Zb",function(){return au}),n.d(t,"ac",function(){return It}),n.d(t,"bc",function(){return Pt}),n.d(t,"cc",function(){return Do}),n.d(t,"dc",function(){return Nc}),n.d(t,"ec",function(){return Bc}),n.d(t,"fc",function(){return Vc}),n.d(t,"gc",function(){return Io}),n.d(t,"hc",function(){return Po}),n.d(t,"ic",function(){return ho}),n.d(t,"jc",function(){return Ro}),n.d(t,"kc",function(){return Mo}),n.d(t,"lc",function(){return Pc}),n.d(t,"mc",function(){return Ic}),n.d(t,"nc",function(){return Rc}),n.d(t,"oc",function(){return nu}),n.d(t,"pc",function(){return co}),n.d(t,"qc",function(){return Ui}),n.d(t,"rc",function(){return at}),n.d(t,"sc",function(){return Ri}),n.d(t,"tc",function(){return be}),n.d(t,"uc",function(){return zo}),n.d(t,"vc",function(){return xo}),n.d(t,"wc",function(){return as}),n.d(t,"xc",function(){return so}),n.d(t,"yc",function(){return uu}),n.d(t,"zc",function(){return es}),n.d(t,"Ac",function(){return ts}),n.d(t,"Bc",function(){return ns}),n.d(t,"Cc",function(){return iu});var i=n("ReuC"),r=n("foSv"),a=n("JX7q"),o=(n("ODXe"),n("rePB"),n("T5bk"),n("uFwe")),s=n("KQm4"),c=n("s4An"),u=n("2WcH");function l(e,t,n){return(l=Object(u.a)()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&Object(c.a)(r,n.prototype),r}).apply(null,arguments)}var h=n("vuIU"),f=n("1OyB"),d=n("Ji7U"),p=n("LK+K");function v(e){var t="function"==typeof Map?new Map:void 0;return(v=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return l(e,arguments,Object(r.a)(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Object(c.a)(n,e)})(e)}var m=n("quSY"),b=n("XNiG"),_=n("HDdC"),y=n("VRyK"),g=n("w1tV");function k(e){for(var t in e)if(e[t]===k)return t;throw Error("Could not find renamed property on target object.")}function O(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function w(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(w).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function C(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var x=k({__forward_ref__:k});function j(e){return e.__forward_ref__=j,e.toString=function(){return w(this())},e}function E(e){return S(e)?e():e}function S(e){return"function"==typeof e&&e.hasOwnProperty(x)&&e.__forward_ref__===j}var A=function(e){Object(d.a)(n,e);var t=Object(p.a)(n);function n(e,i){var r;return Object(f.a)(this,n),(r=t.call(this,function(e,t){var n=e?"NG0".concat(e,": "):"";return"".concat(n).concat(t)}(e,i))).code=e,r}return n}(v(Error));function D(e){return"string"==typeof e?e:null==e?"":String(e)}function T(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():D(e)}function P(e,t){var n=t?" in ".concat(t):"";throw new A("201","No provider for ".concat(T(e)," found").concat(n))}function I(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function R(e){return{providers:e.providers||[],imports:e.imports||[]}}function M(e){return L(e,B)||L(e,U)}function L(e,t){return e.hasOwnProperty(t)?e[t]:null}function F(e){return e&&(e.hasOwnProperty(V)||e.hasOwnProperty(z))?e[V]:null}var N,B=k({"\u0275prov":k}),V=k({"\u0275inj":k}),U=k({ngInjectableDef:k}),z=k({ngInjectorDef:k}),K=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function H(){return N}function W(e){var t=N;return N=e,t}function q(e,t,n){var i=M(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&K.Optional?null:void 0!==t?t:void P(w(e),"Injector")}function Q(e){return{toString:e}.toString()}var G=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),Y=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),Z="undefined"!=typeof globalThis&&globalThis,X="undefined"!=typeof window&&window,J="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,$="undefined"!=typeof global&&global,ee=Z||$||X||J,te={},ne=[],ie=[],re=k({"\u0275cmp":k}),ae=k({"\u0275dir":k}),oe=k({"\u0275pipe":k}),se=k({"\u0275mod":k}),ce=k({"\u0275loc":k}),ue=k({"\u0275fac":k}),le=k({__NG_ELEMENT_ID__:k}),he=0;function fe(e){return Q(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===G.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||ie,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Y.Emulated,id:"c",styles:e.styles||ie,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,a=e.pipes;return n.id+=he++,n.inputs=_e(e.inputs,t),n.outputs=_e(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(de)}:null,n.pipeDefs=a?function(){return("function"==typeof a?a():a).map(pe)}:null,n})}function de(e){return ke(e)||function(e){return e[ae]||null}(e)}function pe(e){return function(e){return e[oe]||null}(e)}var ve={};function me(e){var t={type:e.type,bootstrap:e.bootstrap||ie,declarations:e.declarations||ie,imports:e.imports||ie,exports:e.exports||ie,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&Q(function(){ve[e.id]=e.type}),t}function be(e,t){return Q(function(){var n=Oe(e,!0);n.declarations=t.declarations||ie,n.imports=t.imports||ie,n.exports=t.exports||ie})}function _e(e,t){if(null==e)return te;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],a=r;Array.isArray(r)&&(a=r[1],r=r[0]),n[r]=i,t&&(t[r]=a)}return n}var ye=fe;function ge(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function ke(e){return e[re]||null}function Oe(e,t){var n=e[se]||null;if(!n&&!0===t)throw new Error("Type ".concat(w(e)," does not have '\u0275mod' property."));return n}var we=20,Ce=10;function xe(e){return Array.isArray(e)&&"object"==typeof e[1]}function je(e){return Array.isArray(e)&&!0===e[1]}function Ee(e){return 0!=(8&e.flags)}function Se(e){return 2==(2&e.flags)}function Ae(e){return 1==(1&e.flags)}function De(e){return null!==e.template}function Te(e,t){return e.hasOwnProperty(ue)?e[ue]:null}var Pe=function(){function e(t,n,i){Object(f.a)(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return Object(h.a)(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Ie(){return Re}function Re(e){return e.type.prototype.ngOnChanges&&(e.setInput=Le),Me}function Me(){var e=Fe(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===te)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Le(e,t,n,i){var r=Fe(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:te,current:null}),a=r.current||(r.current={}),o=r.previous,s=this.declaredInputs[n],c=o[s];a[s]=new Pe(c&&c.currentValue,t,o===te),e[i]=t}function Fe(e){return e.__ngSimpleChanges__||null}Ie.ngInherit=!0;var Ne="http://www.w3.org/2000/svg",Be=void 0;function Ve(e){Be=e}function Ue(e){return!!e.listen}var ze={createRenderer:function(e,t){return void 0!==Be?Be:"undefined"!=typeof document?document:void 0}};function Ke(e){for(;Array.isArray(e);)e=e[0];return e}function He(e,t){return Ke(t[e])}function We(e,t){return Ke(t[e.index])}function qe(e,t){return e.data[t]}function Qe(e,t){return e[t]}function Ge(e,t){var n=t[e];return xe(n)?n:n[0]}function Ye(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Ze(e){return 4==(4&e[2])}function Xe(e){return 128==(128&e[2])}function Je(e,t){return null==t?null:e[t]}function $e(e){e[18]=0}function et(e,t){e[5]+=t;for(var n=e,i=e[3];null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}var tt={lFrame:Ct(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function nt(){return tt.bindingsEnabled}function it(){return tt.lFrame.lView}function rt(){return tt.lFrame.tView}function at(e){tt.lFrame.contextLView=e}function ot(){for(var e=st();null!==e&&64===e.type;)e=e.parent;return e}function st(){return tt.lFrame.currentTNode}function ct(e,t){var n=tt.lFrame;n.currentTNode=e,n.isParent=t}function ut(){return tt.lFrame.isParent}function lt(){tt.lFrame.isParent=!1}function ht(){return tt.isInCheckNoChangesMode}function ft(e){tt.isInCheckNoChangesMode=e}function dt(){var e=tt.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function pt(){return tt.lFrame.bindingIndex++}function vt(e){var t=tt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function mt(e){tt.lFrame.currentDirectiveIndex=e}function bt(e){var t=tt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function _t(){return tt.lFrame.currentQueryIndex}function yt(e){tt.lFrame.currentQueryIndex=e}function gt(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function kt(e,t,n){if(n&K.SkipSelf){for(var i=t,r=e;!(null!==(i=i.parent)||n&K.Host||null===(i=gt(r))||(r=r[15],10&i.type)););if(null===i)return!1;t=i,e=r}var a=tt.lFrame=wt();return a.currentTNode=t,a.lView=e,!0}function Ot(e){var t=wt(),n=e[1];tt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function wt(){var e=tt.lFrame,t=null===e?null:e.child;return null===t?Ct(e):t}function Ct(e){var t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function xt(){var e=tt.lFrame;return tt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var jt=xt;function Et(){var e=xt();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function St(e){return(tt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,tt.lFrame.contextLView))[8]}function At(){return tt.lFrame.selectedIndex}function Dt(e){tt.lFrame.selectedIndex=e}function Tt(){var e=tt.lFrame;return qe(e.tView,e.selectedIndex)}function Pt(){tt.lFrame.currentNamespace=Ne}function It(){tt.lFrame.currentNamespace=null}function Rt(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n<i;n++){var r=e.data[n].type.prototype,a=r.ngAfterContentInit,o=r.ngAfterContentChecked,s=r.ngAfterViewInit,c=r.ngAfterViewChecked,u=r.ngOnDestroy;a&&(e.contentHooks||(e.contentHooks=[])).push(-n,a),o&&((e.contentHooks||(e.contentHooks=[])).push(n,o),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,o)),s&&(e.viewHooks||(e.viewHooks=[])).push(-n,s),c&&((e.viewHooks||(e.viewHooks=[])).push(n,c),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,c)),null!=u&&(e.destroyHooks||(e.destroyHooks=[])).push(n,u)}}function Mt(e,t,n){Nt(e,t,3,n)}function Lt(e,t,n,i){(3&e[2])===n&&Nt(e,t,n,i)}function Ft(e,t){var n=e[2];(3&n)===t&&(n&=2047,e[2]=n+=1)}function Nt(e,t,n,i){for(var r=null!=i?i:-1,a=t.length-1,o=0,s=void 0!==i?65535&e[18]:0;s<a;s++)if("number"==typeof t[s+1]){if(o=t[s],null!=i&&o>=i)break}else t[s]<0&&(e[18]+=65536),(o<r||-1==r)&&(Bt(e,n,t,s),e[18]=(4294901760&e[18])+s+2),s++}function Bt(e,t,n,i){var r=n[i]<0,a=n[i+1],o=e[r?-n[i]:n[i]];if(r){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{a.call(o)}finally{}}}else try{a.call(o)}finally{}}var Vt=-1,Ut=function e(t,n,i){Object(f.a)(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function zt(e,t,n){for(var i=Ue(e),r=0;r<n.length;){var a=n[r];if("number"==typeof a){if(0!==a)break;r++;var o=n[r++],s=n[r++],c=n[r++];i?e.setAttribute(t,s,c,o):t.setAttributeNS(o,s,c)}else{var u=a,l=n[++r];Ht(u)?i&&e.setProperty(t,u,l):i?e.setAttribute(t,u,l):t.setAttribute(u,l),r++}}return r}function Kt(e){return 3===e||4===e||6===e}function Ht(e){return 64===e.charCodeAt(0)}function Wt(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else for(var n=-1,i=0;i<t.length;i++){var r=t[i];"number"==typeof r?n=r:0===n||qt(e,n,r,null,-1===n||2===n?t[++i]:null)}return e}function qt(e,t,n,i,r){var a=0,o=e.length;if(-1===t)o=-1;else for(;a<e.length;){var s=e[a++];if("number"==typeof s){if(s===t){o=-1;break}if(s>t){o=a-1;break}}}for(;a<e.length;){var c=e[a];if("number"==typeof c)break;if(c===n){if(null===i)return void(null!==r&&(e[a+1]=r));if(i===e[a+1])return void(e[a+2]=r)}a++,null!==i&&a++,null!==r&&a++}-1!==o&&(e.splice(o,0,t),a=o+1),e.splice(a++,0,n),null!==i&&e.splice(a++,0,i),null!==r&&e.splice(a++,0,r)}function Qt(e){return e!==Vt}function Gt(e){return 32767&e}function Yt(e,t){for(var n=e>>16,i=t;n>0;)i=i[15],n--;return i}var Zt=!0;function Xt(e){var t=Zt;return Zt=e,t}var Jt=0;function $t(e,t){var n=tn(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,en(i.data,e),en(t,null),en(i.blueprint,null));var r=nn(e,t),a=e.injectorIndex;if(Qt(r))for(var o=Gt(r),s=Yt(r,t),c=s[1].data,u=0;u<8;u++)t[a+u]=s[o+u]|c[o+u];return t[a+8]=r,a}function en(e,t){e.push(0,0,0,0,0,0,0,0,t)}function tn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function nn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var a=r[1],o=a.type;if(null===(i=2===o?a.declTNode:1===o?r[6]:null))return Vt;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return Vt}function rn(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(le)&&(i=n[le]),null==i&&(i=n[le]=Jt++);var r=255&i;t.data[e+(r>>5)]|=1<<r}(e,t,n)}function an(e,t,n){if(n&K.Optional)return e;P(t,"NodeInjector")}function on(e,t,n,i){if(n&K.Optional&&void 0===i&&(i=null),0==(n&(K.Self|K.Host))){var r=e[9],a=W(void 0);try{return r?r.get(t,i,n&K.Optional):q(t,i,n&K.Optional)}finally{W(a)}}return an(i,t,n)}function sn(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:K.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var a=dn(n);if("function"==typeof a){if(!kt(t,e,i))return i&K.Host?an(r,n,i):on(t,n,i,r);try{var o=a();if(null!=o||i&K.Optional)return o;P(n)}finally{jt()}}else if("number"==typeof a){var s=null,c=tn(e,t),u=Vt,l=i&K.Host?t[16][6]:null;for((-1===c||i&K.SkipSelf)&&((u=-1===c?nn(e,t):t[c+8])!==Vt&&vn(i,!1)?(s=t[1],c=Gt(u),t=Yt(u,t)):c=-1);-1!==c;){var h=t[1];if(pn(a,c,h.data)){var f=ln(c,t,n,s,i,l);if(f!==cn)return f}(u=t[c+8])!==Vt&&vn(i,t[1].data[c+8]===l)&&pn(a,c,t)?(s=h,c=Gt(u),t=Yt(u,t)):c=-1}}}return on(t,n,i,r)}var cn={};function un(){return new mn(ot(),it())}function ln(e,t,n,i,r,a){var o=t[1],s=o.data[e+8],c=hn(s,o,n,null==i?Se(s)&&Zt:i!=o&&0!=(3&s.type),r&K.Host&&a===s);return null!==c?fn(t,o,c,s):cn}function hn(e,t,n,i,r){for(var a=e.providerIndexes,o=t.data,s=1048575&a,c=e.directiveStart,u=a>>20,l=r?s+u:e.directiveEnd,h=i?s:s+u;h<l;h++){var f=o[h];if(h<c&&n===f||h>=c&&f.type===n)return h}if(r){var d=o[c];if(d&&De(d)&&d.type===n)return c}return null}function fn(e,t,n,i){var r=e[n],a=t.data;if(r instanceof Ut){var o=r;o.resolving&&function(e,t){throw new A("200","Circular dependency in DI detected for ".concat(e).concat(""))}(T(a[n]));var s=Xt(o.canSeeViewProviders);o.resolving=!0;var c=o.injectImpl?W(o.injectImpl):null;kt(e,i,K.Default);try{r=e[n]=o.factory(void 0,a,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnInit,a=i.ngDoCheck;if(i.ngOnChanges){var o=Re(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,a[n],t)}finally{null!==c&&W(c),Xt(s),o.resolving=!1,jt()}}return r}function dn(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(le)?e[le]:void 0;return"number"==typeof t?t>=0?255&t:un:t}function pn(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function vn(e,t){return!(e&K.Self||e&K.Host&&t)}var mn=function(){function e(t,n){Object(f.a)(this,e),this._tNode=t,this._lView=n}return Object(h.a)(e,[{key:"get",value:function(e,t){return sn(this._tNode,this._lView,e,void 0,t)}}]),e}();function bn(e){return Q(function(){for(var t=e.prototype.constructor,n=t[ue]||_n(t),i=Object.prototype,r=Object.getPrototypeOf(e.prototype).constructor;r&&r!==i;){var a=r[ue]||_n(r);if(a&&a!==n)return a;r=Object.getPrototypeOf(r)}return function(e){return new e}})}function _n(e){return S(e)?function(){var t=_n(E(e));return t&&t()}:Te(e)}function yn(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;var n=e.attrs;if(n)for(var i=n.length,r=0;r<i;){var a=n[r];if(Kt(a))break;if(0===a)r+=2;else if("number"==typeof a)for(r++;r<i&&"string"==typeof n[r];)r++;else{if(a===t)return n[r+1];r+=2}}return null}(ot(),e)}var gn="__parameters__";function kn(e,t,n){return Q(function(){var i=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this instanceof r)return i.apply(this,t),this;var a=l(r,t);return o.annotation=a,o;function o(e,t,n){for(var i=e.hasOwnProperty(gn)?e[gn]:Object.defineProperty(e,gn,{value:[]})[gn];i.length<=n;)i.push(null);return(i[n]=i[n]||[]).push(a),e}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}var On=function(){function e(t,n){Object(f.a)(this,e),this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=I({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}return Object(h.a)(e,[{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),e}(),wn=Function;function Cn(e,t){void 0===t&&(t=e);for(var n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?(t===e&&(t=e.slice(0,n)),Cn(i,t)):t!==e&&t.push(i)}return t}function xn(e,t){e.forEach(function(e){return Array.isArray(e)?xn(e,t):t(e)})}function jn(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function En(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Sn(e,t){for(var n=[],i=0;i<e;i++)n.push(t);return n}function An(e,t,n){var i=Tn(e,t);return i>=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function Dn(e,t){var n=Tn(e,t);if(n>=0)return e[1|n]}function Tn(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var a=i+(r-i>>1),o=e[a<<1];if(t===o)return a<<1;o>t?r=a:i=a+1}return~(r<<1)}(e,t)}var Pn={},In=/\n/gm,Rn="__source",Mn=k({provide:String,useValue:k}),Ln=void 0;function Fn(e){var t=Ln;return Ln=e,t}function Nn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:K.Default;if(void 0===Ln)throw new Error("inject() must be called from an injection context");return null===Ln?q(e,void 0,t):Ln.get(e,t&K.Optional?null:void 0,t)}function Bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:K.Default;return(H()||Nn)(E(e),t)}var Vn=Bn;function Un(e){for(var t=[],n=0;n<e.length;n++){var i=E(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");for(var r=void 0,a=K.Default,o=0;o<i.length;o++){var s=i[o],c=s.__NG_DI_FLAG__;"number"==typeof c?-1===c?r=s.token:a|=c:r=s}t.push(Bn(r,a))}else t.push(Bn(i))}return t}function zn(e,t){return e.__NG_DI_FLAG__=t,e.prototype.__NG_DI_FLAG__=t,e}function Kn(e,t,n,i){var r=e.ngTempTokenPath;throw t[Rn]&&r.unshift(t[Rn]),e.message=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var r=w(t);if(Array.isArray(t))r=t.map(w).join(" -> ");else if("object"==typeof t){var a=[];for(var o in t)if(t.hasOwnProperty(o)){var s=t[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):w(s)))}r="{".concat(a.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(In,"\n  "))}("\n"+e.message,r,n,i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}var Hn,Wn=zn(kn("Inject",function(e){return{token:e}}),-1),qn=zn(kn("Optional"),8),Qn=zn(kn("Self"),2),Gn=zn(kn("SkipSelf"),4);function Yn(e){var t;return(null===(t=function(){if(void 0===Hn&&(Hn=null,ee.trustedTypes))try{Hn=ee.trustedTypes.createPolicy("angular",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return Hn}())||void 0===t?void 0:t.createHTML(e))||e}var Zn=function(){function e(t){Object(f.a)(this,e),this.changingThisBreaksApplicationSecurity=t}return Object(h.a)(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),e}(),Xn=function(e){Object(d.a)(n,e);var t=Object(p.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(Zn),Jn=function(e){Object(d.a)(n,e);var t=Object(p.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(Zn),$n=function(e){Object(d.a)(n,e);var t=Object(p.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(Zn),ei=function(e){Object(d.a)(n,e);var t=Object(p.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(Zn),ti=function(e){Object(d.a)(n,e);var t=Object(p.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(Zn);function ni(e){return e instanceof Zn?e.changingThisBreaksApplicationSecurity:e}function ii(e,t){var n=ri(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===t}function ri(e){return e instanceof Zn&&e.getTypeName()||null}function ai(e){return new Xn(e)}function oi(e){return new Jn(e)}function si(e){return new $n(e)}function ci(e){return new ei(e)}function ui(e){return new ti(e)}var li=function(){function e(t){Object(f.a)(this,e),this.inertDocumentHelper=t}return Object(h.a)(e,[{key:"getInertBodyElement",value:function(e){e="<body><remove></remove>"+e;try{var t=(new window.DOMParser).parseFromString(Yn(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(n){return null}}}]),e}(),hi=function(){function e(t){if(Object(f.a)(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}}return Object(h.a)(e,[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Yn(e),t;var n=this.inertDocument.createElement("body");return n.innerHTML=Yn(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0<n;n--){var i=t.item(n).name;"xmlns:ns1"!==i&&0!==i.indexOf("ns1:")||e.removeAttribute(i)}for(var r=e.firstChild;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}]),e}(),fi=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,di=/^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 pi(e){return(e=String(e)).match(fi)||e.match(di)?e:"unsafe:"+e}function vi(e){var t,n={},i=Object(o.a)(e.split(","));try{for(i.s();!(t=i.n()).done;)n[t.value]=!0}catch(r){i.e(r)}finally{i.f()}return n}function mi(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(var r=0,a=n;r<a.length;r++){var o=a[r];for(var s in o)o.hasOwnProperty(s)&&(e[s]=!0)}return e}var bi,_i=vi("area,br,col,hr,img,wbr"),yi=vi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),gi=vi("rp,rt"),ki=mi(gi,yi),Oi=mi(_i,mi(yi,vi("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")),mi(gi,vi("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")),ki),wi=vi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ci=vi("srcset"),xi=mi(wi,Ci,vi("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"),vi("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),ji=vi("script,style,template"),Ei=function(){function e(){Object(f.a)(this,e),this.sanitizedSomething=!1,this.buf=[]}return Object(h.a)(e,[{key:"sanitizeChildren",value:function(e){for(var t=e.firstChild,n=!0;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);var i=this.checkClobberedElement(t,t.nextSibling);if(i){t=i;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(e){var t,n=e.nodeName.toLowerCase();if(!Oi.hasOwnProperty(n))return this.sanitizedSomething=!0,!ji.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);for(var i=e.attributes,r=0;r<i.length;r++){var a=i.item(r),o=a.name,s=o.toLowerCase();if(xi.hasOwnProperty(s)){var c=a.value;wi[s]&&(c=pi(c)),Ci[s]&&(t=c,c=(t=String(t)).split(",").map(function(e){return pi(e.trim())}).join(", ")),this.buf.push(" ",o,'="',Di(c),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();Oi.hasOwnProperty(t)&&!_i.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}},{key:"chars",value:function(e){this.buf.push(Di(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}]),e}(),Si=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ai=/([^\#-~ |!])/g;function Di(e){return e.replace(/&/g,"&amp;").replace(Si,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Ai,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Ti(e,t){var n=null;try{bi=bi||function(e){var t=new hi(e);return function(){try{return!!(new window.DOMParser).parseFromString(Yn(""),"text/html")}catch(e){return!1}}()?new li(t):t}(e);var i=t?String(t):"";n=bi.getInertBodyElement(i);var r=5,a=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=a,a=n.innerHTML,n=bi.getInertBodyElement(i)}while(i!==a);return Yn((new Ei).sanitizeChildren(Pi(n)||n))}finally{if(n)for(var o=Pi(n)||n;o.firstChild;)o.removeChild(o.firstChild)}}function Pi(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Ii=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function Ri(e){var t,n=(t=it())&&t[12];return n?n.sanitize(Ii.URL,e)||"":ii(e,"URL")?ni(e):pi(D(e))}function Mi(e){return e.ngDebugContext}function Li(e){return e.ngOriginalError}function Fi(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];e.error.apply(e,n)}var Ni=function(){function e(){Object(f.a)(this,e),this._console=console}return Object(h.a)(e,[{key:"handleError",value:function(e){var t=this._findOriginalError(e),n=this._findContext(e),i=function(e){return e.ngErrorLogger||Fi}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t),n&&i(this._console,"ERROR CONTEXT",n)}},{key:"_findContext",value:function(e){return e?Mi(e)?Mi(e):this._findContext(Li(e)):null}},{key:"_findOriginalError",value:function(e){for(var t=Li(e);t&&Li(t);)t=Li(t);return t}}]),e}();function Bi(e,t){e.__ngContext__=t}var Vi=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ee)}();function Ui(e){return{name:"body",target:e.ownerDocument.body}}function zi(e){return e instanceof Function?e():e}var Ki=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});function Hi(e,t){return(void 0)(e,t)}function Wi(e){var t=e[3];return je(t)?t[3]:t}function qi(e){return Gi(e[13])}function Qi(e){return Gi(e[4])}function Gi(e){for(;null!==e&&!je(e);)e=e[4];return e}function Yi(e,t,n,i,r){if(null!=i){var a,o=!1;je(i)?a=i:xe(i)&&(o=!0,i=i[0]);var s=Ke(i);0===e&&null!==n?null==r?rr(t,n,s):ir(t,n,s,r||null,!0):1===e&&null!==n?ir(t,n,s,r||null,!0):2===e?function(e,t,n){var i=or(e,t);i&&function(e,t,n,i){Ue(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,s,o):3===e&&t.destroyNode(s),null!=a&&function(e,t,n,i,r){var a=n[7];a!==Ke(n)&&Yi(t,e,i,a,r);for(var o=Ce;o<n.length;o++){var s=n[o];pr(s[1],s,e,t,i,a)}}(t,e,a,n,r)}}function Zi(e,t){return Ue(e)?e.createText(t):e.createTextNode(t)}function Xi(e,t,n){return Ue(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Ji(e,t){var n=e[9],i=n.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,et(r,-1)),n.splice(i,1)}function $i(e,t){if(!(e.length<=Ce)){var n,i=Ce+t,r=e[i];if(r){var a=r[17];null!==a&&a!==e&&Ji(a,r),t>0&&(e[i-1][4]=r[4]);var o=En(e,Ce+t);pr(r[1],n=r,n[11],2,null,null),n[0]=null,n[6]=null;var s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function er(e,t){if(!(256&t[2])){var n=t[11];Ue(n)&&n.destroyNode&&pr(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return tr(e[1],e);for(;t;){var n=null;if(xe(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)xe(t)&&tr(t[1],t),t=t[3];null===t&&(t=e),xe(t)&&tr(t[1],t),n=t&&t[4]}t=n}}(t)}}function tr(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i<n.length;i+=2){var r=t[n[i]];if(!(r instanceof Ut)){var a=n[i+1];if(Array.isArray(a))for(var o=0;o<a.length;o+=2){var s=r[a[o]],c=a[o+1];try{c.call(s)}finally{}}else try{a.call(r)}finally{}}}}(e,t),function(e,t){var n=e.cleanup,i=t[7],r=-1;if(null!==n)for(var a=0;a<n.length-1;a+=2)if("string"==typeof n[a]){var o=n[a+1],s="function"==typeof o?o(t):Ke(t[o]),c=i[r=n[a+2]],u=n[a+3];"boolean"==typeof u?s.removeEventListener(n[a],c,u):u>=0?i[r=u]():i[r=-u].unsubscribe(),a+=2}else{var l=i[r=n[a+1]];n[a].call(l)}if(null!==i){for(var h=r+1;h<i.length;h++)(0,i[h])();t[7]=null}}(e,t),1===t[1].type&&Ue(t[11])&&t[11].destroy();var n=t[17];if(null!==n&&je(t[3])){n!==t[3]&&Ji(n,t);var i=t[19];null!==i&&i.detachView(e)}}}function nr(e,t,n){return function(e,t,n){for(var i=t;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){var r=e.data[i.directiveStart].encapsulation;if(r===Y.None||r===Y.Emulated)return null}return We(i,n)}(e,t.parent,n)}function ir(e,t,n,i,r){Ue(e)?e.insertBefore(t,n,i,r):t.insertBefore(n,i,r)}function rr(e,t,n){Ue(e)?e.appendChild(t,n):t.appendChild(n)}function ar(e,t,n,i,r){null!==i?ir(e,t,n,i,r):rr(e,t,n)}function or(e,t){return Ue(e)?e.parentNode(t):t.parentNode}function sr(e,t,n){return cr(e,t,n)}var cr=function(e,t,n){return 40&e.type?We(e,n):null};function ur(e,t,n,i){var r=nr(e,i,t),a=t[11],o=sr(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(n))for(var s=0;s<n.length;s++)ar(a,r,n[s],o,!1);else ar(a,r,n,o,!1)}function lr(e,t){if(null!==t){var n=t.type;if(3&n)return We(t,e);if(4&n)return fr(-1,e[t.index]);if(8&n){var i=t.child;if(null!==i)return lr(e,i);var r=e[t.index];return je(r)?fr(-1,r):Ke(r)}if(32&n)return Hi(t,e)()||Ke(e[t.index]);var a=hr(e,t);return null!==a?Array.isArray(a)?a[0]:lr(Wi(e[16]),a):lr(e,t.next)}return null}function hr(e,t){return null!==t?e[16][6].projection[t.projection]:null}function fr(e,t){var n=Ce+e+1;if(n<t.length){var i=t[n],r=i[1].firstChild;if(null!==r)return lr(i,r)}return t[7]}function dr(e,t,n,i,r,a,o){for(;null!=n;){var s=i[n.index],c=n.type;if(o&&0===t&&(s&&Bi(Ke(s),i),n.flags|=4),64!=(64&n.flags))if(8&c)dr(e,t,n.child,i,r,a,!1),Yi(t,e,r,s,a);else if(32&c){for(var u=Hi(n,i),l=void 0;l=u();)Yi(t,e,r,l,a);Yi(t,e,r,s,a)}else 16&c?mr(e,t,i,n,r,a):Yi(t,e,r,s,a);n=o?n.projectionNext:n.next}}function pr(e,t,n,i,r,a){dr(n,i,e.firstChild,t,r,a,!1)}function vr(e,t,n){mr(t[11],0,t,n,nr(e,n,t),sr(n.parent||t[6],n,t))}function mr(e,t,n,i,r,a){var o=n[16],s=o[6].projection[i.projection];if(Array.isArray(s))for(var c=0;c<s.length;c++)Yi(t,e,r,s[c],a);else dr(e,t,s,o[3],r,a,!0)}function br(e,t,n){Ue(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function _r(e,t,n){Ue(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function yr(e,t,n){for(var i=e.length;;){var r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){var a=t.length;if(r+a===i||e.charCodeAt(r+a)<=32)return r}n=r+1}}var gr="ng-template";function kr(e,t,n){for(var i=0;i<e.length;){var r=e[i++];if(n&&"class"===r){if(-1!==yr((r=e[i]).toLowerCase(),t,0))return!0}else if(1===r){for(;i<e.length&&"string"==typeof(r=e[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function Or(e){return 4===e.type&&e.value!==gr}function wr(e,t,n){return t===(4!==e.type||n?e.value:gr)}function Cr(e,t,n){for(var i=4,r=e.attrs||[],a=function(e){for(var t=0;t<e.length;t++)if(Kt(e[t]))return t;return e.length}(r),o=!1,s=0;s<t.length;s++){var c=t[s];if("number"!=typeof c){if(!o)if(4&i){if(i=2|1&i,""!==c&&!wr(e,c,n)||""===c&&1===t.length){if(xr(i))return!1;o=!0}}else{var u=8&i?c:t[++s];if(8&i&&null!==e.attrs){if(!kr(e.attrs,u,n)){if(xr(i))return!1;o=!0}continue}var l=jr(8&i?"class":c,r,Or(e),n);if(-1===l){if(xr(i))return!1;o=!0;continue}if(""!==u){var h;h=l>a?"":r[l+1].toLowerCase();var f=8&i?h:null;if(f&&-1!==yr(f,u,0)||2&i&&u!==h){if(xr(i))return!1;o=!0}}}}else{if(!o&&!xr(i)&&!xr(c))return!1;if(o&&xr(c))continue;o=!1,i=c|1&i}}return xr(i)||o}function xr(e){return 0==(1&e)}function jr(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var a=!1;r<t.length;){var o=t[r];if(o===e)return r;if(3===o||6===o)a=!0;else{if(1===o||2===o){for(var s=t[++r];"string"==typeof s;)s=t[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=a?1:2}return-1}return function(e,t){var n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){var i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function Er(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=0;i<t.length;i++)if(Cr(e,t[i],n))return!0;return!1}function Sr(e,t){e:for(var n=0;n<t.length;n++){var i=t[n];if(e.length===i.length){for(var r=0;r<e.length;r++)if(e[r]!==i[r])continue e;return!0}}return!1}function Ar(e,t){return e?":not("+t.trim()+")":t}function Dr(e){for(var t=e[0],n=1,i=2,r="",a=!1;n<e.length;){var o=e[n];if("string"==typeof o)if(2&i){var s=e[++n];r+="["+o+(s.length>0?'="'+s+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""===r||xr(o)||(t+=Ar(a,r),r=""),i=o,a=a||!xr(i);n++}return""!==r&&(t+=Ar(a,r)),t}var Tr={};function Pr(e){Ir(rt(),it(),At()+e,ht())}function Ir(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&Mt(t,r,n)}else{var a=e.preOrderHooks;null!==a&&Lt(t,a,0,n)}Dt(n)}function Rr(e,t){return e<<17|t<<2}function Mr(e){return e>>17&32767}function Lr(e){return 2|e}function Fr(e){return(131068&e)>>2}function Nr(e,t){return-131069&e|t<<2}function Br(e){return 1|e}function Vr(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i<n.length;i+=2){var r=n[i+1];if(-1!==r){var a=e.data[r];yt(n[i]),a.contentQueries(2,t[r],r)}}}function Ur(e,t,n,i,r,a,o,s,c,u){var l=t.blueprint.slice();return l[0]=r,l[2]=140|i,$e(l),l[3]=l[15]=e,l[8]=n,l[10]=o||e&&e[10],l[11]=s||e&&e[11],l[12]=c||e&&e[12]||null,l[9]=u||e&&e[9]||null,l[6]=a,l[16]=2==t.type?e[16]:l,l}function zr(e,t,n,i,r){var a,o,s=e.data[t];if(null===s)s=function(e,t,n,i,r){var a=st(),o=ut(),s=e.data[t]=function(e,t,n,i,r,a){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:a,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?a:a&&a.parent,n,t,i,r);return null===e.firstChild&&(e.firstChild=s),null!==a&&(o?null==a.child&&null!==s.parent&&(a.child=s):null===a.next&&(a.next=s)),s}(e,t,n,i,r),tt.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=i,s.attrs=r;var c=(o=(a=tt.lFrame).currentTNode,a.isParent?o:o.parent);s.injectorIndex=null===c?-1:c.injectorIndex}return ct(s,!0),s}function Kr(e,t,n,i){if(0===n)return-1;for(var r=t.length,a=0;a<n;a++)t.push(i),e.blueprint.push(i),e.data.push(null);return r}function Hr(e,t,n){Ot(t);try{var i=e.viewQuery;null!==i&&ga(1,i,n);var r=e.template;null!==r&&Qr(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Vr(e,t),e.staticViewQueries&&ga(2,e.viewQuery,n);var a=e.components;null!==a&&function(e,t){for(var n=0;n<t.length;n++)va(e,t[n])}(t,a)}catch(o){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),o}finally{t[2]&=-5,Et()}}function Wr(e,t,n,i){var r=t[2];if(256!=(256&r)){Ot(t);var a=ht();try{$e(t),tt.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&Qr(e,t,n,2,i);var o=3==(3&r);if(!a)if(o){var s=e.preOrderCheckHooks;null!==s&&Mt(t,s,null)}else{var c=e.preOrderHooks;null!==c&&Lt(t,c,0,null),Ft(t,0)}if(function(e){for(var t=qi(e);null!==t;t=Qi(t))if(t[2])for(var n=t[9],i=0;i<n.length;i++){var r=n[i];0==(1024&r[2])&&et(r[3],1),r[2]|=1024}}(t),function(e){for(var t=qi(e);null!==t;t=Qi(t))for(var n=Ce;n<t.length;n++){var i=t[n],r=i[1];Xe(i)&&Wr(r,i,r.template,i[8])}}(t),null!==e.contentQueries&&Vr(e,t),!a)if(o){var u=e.contentCheckHooks;null!==u&&Mt(t,u)}else{var l=e.contentHooks;null!==l&&Lt(t,l,1),Ft(t,1)}!function(e,t){var n,i,r=e.hostBindingOpCodes;if(null!==r)try{for(var a=0;a<r.length;a++){var o=r[a];if(o<0)Dt(~o);else{var s=o,c=r[++a],u=r[++a];n=s,i=void 0,(i=tt.lFrame).bindingIndex=i.bindingRootIndex=c,mt(n),u(2,t[s])}}}finally{Dt(-1)}}(e,t);var h=e.components;null!==h&&function(e,t){for(var n=0;n<t.length;n++)da(e,t[n])}(t,h);var f=e.viewQuery;if(null!==f&&ga(2,f,i),!a)if(o){var d=e.viewCheckHooks;null!==d&&Mt(t,d)}else{var p=e.viewHooks;null!==p&&Lt(t,p,2),Ft(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),a||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,et(t[3],-1))}finally{Et()}}}function qr(e,t,n,i){var r=t[10],a=!ht(),o=Ze(t);try{a&&!o&&r.begin&&r.begin(),o&&Hr(e,t,i),Wr(e,t,n,i)}finally{a&&!o&&r.end&&r.end()}}function Qr(e,t,n,i,r){var a=At(),o=2&i;try{Dt(-1),o&&t.length>we&&Ir(e,t,we,ht()),n(i,r)}finally{Dt(a)}}function Gr(e,t,n){if(Ee(t))for(var i=t.directiveEnd,r=t.directiveStart;r<i;r++){var a=e.data[r];a.contentQueries&&a.contentQueries(1,n[r],r)}}function Yr(e,t,n){nt()&&(function(e,t,n,i){var r=n.directiveStart,a=n.directiveEnd;e.firstCreatePass||$t(n,t),Bi(i,t);for(var o=n.initialInputs,s=r;s<a;s++){var c=e.data[s],u=De(c);u&&ua(t,n,c);var l=fn(t,e,s,n);Bi(l,t),null!==o&&la(0,s-r,l,c,0,o),u&&(Ge(n.index,t)[8]=l)}}(e,t,n,We(n,t)),128==(128&n.flags)&&function(e,t,n){var i=n.directiveStart,r=n.directiveEnd,a=n.index,o=tt.lFrame.currentDirectiveIndex;try{Dt(a);for(var s=i;s<r;s++){var c=e.data[s],u=t[s];mt(s),null===c.hostBindings&&0===c.hostVars&&null===c.hostAttrs||ra(c,u)}}finally{Dt(-1),mt(o)}}(e,t,n))}function Zr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:We,i=t.localNames;if(null!==i)for(var r=t.index+1,a=0;a<i.length;a+=2){var o=i[a+1],s=-1===o?n(t,e):e[o];e[r++]=s}}function Xr(e){var t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Jr(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Jr(e,t,n,i,r,a,o,s,c,u){var l=we+i,h=l+r,f=function(e,t){for(var n=[],i=0;i<t;i++)n.push(i<e?null:Tr);return n}(l,h),d="function"==typeof u?u():u;return f[1]={type:e,blueprint:f,template:n,queries:null,viewQuery:s,declTNode:t,data:f.slice().fill(null,l),bindingStartIndex:l,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof a?a():a,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:c,consts:d,incompleteFirstPass:!1}}function $r(e,t,n,i){var r=Oa(t);null===n?r.push(i):(r.push(n),e.firstCreatePass&&wa(e).push(i,r.length-1))}function ea(e,t,n){for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,r):n[i]=[t,r]}return n}function ta(e,t,n,i,r,a,o,s){var c,u,l=We(t,n),h=t.inputs;!s&&null!=h&&(c=h[i])?(ja(e,n,c,i,r),Se(t)&&function(e,t){var n=Ge(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(i="class"===(u=i)?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u,r=null!=o?o(r,t.value||"",i):r,Ue(a)?a.setProperty(l,i,r):Ht(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}function na(e,t,n,i){var r=!1;if(nt()){var a=function(e,t,n){var i=e.directiveRegistry,r=null;if(i)for(var a=0;a<i.length;a++){var o=i[a];Er(n,o.selectors,!1)&&(r||(r=[]),rn($t(n,t),e,o.type),De(o)?(aa(e,n),r.unshift(o)):r.push(o))}return r}(e,t,n),o=null===i?null:{"":-1};if(null!==a){r=!0,sa(n,e.data.length,a.length);for(var s=0;s<a.length;s++){var c=a[s];c.providersResolver&&c.providersResolver(c)}for(var u=!1,l=!1,h=Kr(e,t,a.length,null),f=0;f<a.length;f++){var d=a[f];n.mergedAttrs=Wt(n.mergedAttrs,d.hostAttrs),ca(e,n,t,h,d),oa(h,d,o),null!==d.contentQueries&&(n.flags|=8),null===d.hostBindings&&null===d.hostAttrs&&0===d.hostVars||(n.flags|=128);var p=d.type.prototype;!u&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),u=!0),l||!p.ngOnChanges&&!p.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),l=!0),h++}!function(e,t){for(var n=t.directiveEnd,i=e.data,r=t.attrs,a=[],o=null,s=null,c=t.directiveStart;c<n;c++){var u=i[c],l=u.inputs,h=null===r||Or(t)?null:ha(l,r);a.push(h),o=ea(l,c,o),s=ea(u.outputs,c,s)}null!==o&&(o.hasOwnProperty("class")&&(t.flags|=16),o.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=a,t.inputs=o,t.outputs=s}(e,n)}o&&function(e,t,n){if(t)for(var i=e.localNames=[],r=0;r<t.length;r+=2){var a=n[t[r+1]];if(null==a)throw new A("301","Export of name '".concat(t[r+1],"' not found!"));i.push(t[r],a)}}(n,i,o)}return n.mergedAttrs=Wt(n.mergedAttrs,n.attrs),r}function ia(e,t,n,i,r,a){var o=a.hostBindings;if(o){var s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);var c=~t.index;(function(e){for(var t=e.length;t>0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=c&&s.push(c),s.push(i,r,o)}}function ra(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function aa(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function oa(e,t,n){if(n){if(t.exportAs)for(var i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;De(t)&&(n[""]=e)}}function sa(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function ca(e,t,n,i,r){e.data[i]=r;var a=r.factory||(r.factory=Te(r.type)),o=new Ut(a,De(r),null);e.blueprint[i]=o,n[i]=o,ia(e,t,0,i,Kr(e,n,r.hostVars,Tr),r)}function ua(e,t,n){var i=We(t,e),r=Xr(n),a=e[10],o=ma(e,Ur(e,r,null,n.onPush?64:16,i,t,a,a.createRenderer(i,n),null,null));e[t.index]=o}function la(e,t,n,i,r,a){var o=a[t];if(null!==o)for(var s=i.setInput,c=0;c<o.length;){var u=o[c++],l=o[c++],h=o[c++];null!==s?i.setInput(n,h,u,l):n[l]=h}}function ha(e,t){for(var n=null,i=0;i<t.length;){var r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,e[r],t[i+1])),i+=2}else i+=2;else i+=4}return n}function fa(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function da(e,t){var n=Ge(t,e);if(Xe(n)){var i=n[1];80&n[2]?Wr(i,n,i.template,n[8]):n[5]>0&&pa(n)}}function pa(e){for(var t=qi(e);null!==t;t=Qi(t))for(var n=Ce;n<t.length;n++){var i=t[n];if(1024&i[2]){var r=i[1];Wr(r,i,r.template,i[8])}else i[5]>0&&pa(i)}var a=e[1].components;if(null!==a)for(var o=0;o<a.length;o++){var s=Ge(a[o],e);Xe(s)&&s[5]>0&&pa(s)}}function va(e,t){var n=Ge(t,e),i=n[1];!function(e,t){for(var n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(i,n),Hr(i,n,n[8])}function ma(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function ba(e){for(;e;){e[2]|=64;var t=Wi(e);if(0!=(512&e[2])&&!t)return e;e=t}return null}function _a(e,t,n){var i=t[10];i.begin&&i.begin();try{Wr(e,t,e.template,n)}catch(r){throw xa(t,r),r}finally{i.end&&i.end()}}function ya(e){!function(e){for(var t=0;t<e.components.length;t++){var n=e.components[t],i=Ye(n),r=i[1];qr(r,i,r.template,n)}}(e[8])}function ga(e,t,n){yt(0),t(e,n)}var ka=function(){return Promise.resolve(null)}();function Oa(e){return e[7]||(e[7]=[])}function wa(e){return e.cleanup||(e.cleanup=[])}function Ca(e,t,n){return(null===e||De(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function xa(e,t){var n=e[9],i=n?n.get(Ni,null):null;i&&i.handleError(t)}function ja(e,t,n,i,r){for(var a=0;a<n.length;){var o=n[a++],s=n[a++],c=t[o],u=e.data[o];null!==u.setInput?u.setInput(c,r,i,s):c[s]=r}}function Ea(e,t,n){var i=n?e.styles:null,r=n?e.classes:null,a=0;if(null!==t)for(var o=0;o<t.length;o++){var s=t[o];"number"==typeof s?a=s:1==a?r=C(r,s):2==a&&(i=C(i,s+": "+t[++o]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=r:e.classesWithoutHost=r}var Sa=new On("INJECTOR",-1),Aa=function(){function e(){Object(f.a)(this,e)}return Object(h.a)(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pn;if(t===Pn){var n=new Error("NullInjectorError: No provider for ".concat(w(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),Da=new On("Set Injector scope."),Ta={},Pa={},Ia=[],Ra=void 0;function Ma(){return void 0===Ra&&(Ra=new Aa),Ra}function La(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new Fa(e,n,t||Ma(),i)}var Fa=function(){function e(t,n,i){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;Object(f.a)(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];n&&xn(n,function(e){return r.processProvider(e,t,n)}),xn([t],function(e){return r.processInjectorType(e,[],o)}),this.records.set(Sa,Va(void 0,this));var s=this.records.get(Da);this.scope=null!=s?s.value:null,this.source=a||("object"==typeof t?null:w(t))}return Object(h.a)(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pn,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:K.Default;this.assertNotDestroyed();var i=Fn(this);try{if(!(n&K.SkipSelf)){var r=this.records.get(e);if(void 0===r){var a=Ka(e)&&M(e);r=a&&this.injectableDefInScope(a)?Va(Na(e),Ta):null,this.records.set(e,r)}if(null!=r)return this.hydrate(e,r)}var o=n&K.Self?Ma():this.parent;return o.get(e,t=n&K.Optional&&t===Pn?null:t)}catch(c){if("NullInjectorError"===c.name){var s=c.ngTempTokenPath=c.ngTempTokenPath||[];if(s.unshift(w(e)),i)throw c;return Kn(c,e,"R3InjectorError",this.source)}throw c}finally{Fn(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(w(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var i=this;if(!(e=E(e)))return!1;var r=F(e),a=null==r&&e.ngModule||void 0,o=void 0===a?e:a,s=-1!==n.indexOf(o);if(void 0!==a&&(r=F(a)),null==r)return!1;if(null!=r.imports&&!s){var c;n.push(o);try{xn(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===c&&(c=[]),c.push(e))})}finally{}if(void 0!==c)for(var u=function(e){var t=c[e],n=t.ngModule,r=t.providers;xn(r,function(e){return i.processProvider(e,n,r||Ia)})},l=0;l<c.length;l++)u(l)}this.injectorDefTypes.add(o);var h=Te(o)||function(){return new o};this.records.set(o,Va(h,Ta));var f=r.providers;if(null!=f&&!s){var d=e;xn(f,function(e){return i.processProvider(e,d,f)})}return void 0!==a&&void 0!==e.providers}},{key:"processProvider",value:function(e,t,n){var i=za(e=E(e))?e:E(e&&e.provide),r=function(e,t,n){return Ua(e)?Va(void 0,e.useValue):Va(Ba(e),Ta)}(e);if(za(e)||!0!==e.multi)this.records.get(i);else{var a=this.records.get(i);a||((a=Va(void 0,Ta,!0)).factory=function(){return Un(a.multi)},this.records.set(i,a)),i=e,a.multi.push(e)}this.records.set(i,r)}},{key:"hydrate",value:function(e,t){var n;return t.value===Ta&&(t.value=Pa,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}},{key:"injectableDefInScope",value:function(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}]),e}();function Na(e){var t=M(e),n=null!==t?t.factory:Te(e);if(null!==n)return n;if(e instanceof On)throw new Error("Token ".concat(w(e)," is missing a \u0275prov definition."));if(e instanceof Function)return function(e){var t=e.length;if(t>0){var n=Sn(t,"?");throw new Error("Can't resolve all parameters for ".concat(w(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[B]||e[U]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Ba(e,t,n){var i,r=void 0;if(za(e)){var a=E(e);return Te(a)||Na(a)}if(Ua(e))r=function(){return E(e.useValue)};else if((i=e)&&i.useFactory)r=function(){return e.useFactory.apply(e,Object(s.a)(Un(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))r=function(){return Bn(E(e.useExisting))};else{var o=E(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Te(o)||Na(o);r=function(){return l(o,Object(s.a)(Un(e.deps)))}}return r}function Va(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Ua(e){return null!==e&&"object"==typeof e&&Mn in e}function za(e){return"function"==typeof e}function Ka(e){return"function"==typeof e||"object"==typeof e&&e instanceof On}var Ha=function(e,t,n){return function(e){var t=La(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0);return t._resolveInjectorDefTypes(),t}({name:n},t,e,n)},Wa=function(){var e=function(){function e(){Object(f.a)(this,e)}return Object(h.a)(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Ha(e,t,""):Ha(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Pn,e.NULL=new Aa,e.\u0275prov=I({token:e,providedIn:"any",factory:function(){return Bn(Sa)}}),e.__NG_ELEMENT_ID__=-1,e}();function qa(e,t){Rt(Ye(e)[1],ot())}function Qa(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,i=[e];t;){var r=void 0;if(De(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var a=e;a.inputs=Ga(e.inputs),a.declaredInputs=Ga(e.declaredInputs),a.outputs=Ga(e.outputs);var o=r.hostBindings;o&&Xa(e,o);var s=r.viewQuery,c=r.contentQueries;if(s&&Ya(e,s),c&&Za(e,c),O(e.inputs,r.inputs),O(e.declaredInputs,r.declaredInputs),O(e.outputs,r.outputs),De(r)&&r.data.animation){var u=e.data;u.animation=(u.animation||[]).concat(r.data.animation)}}var l=r.features;if(l)for(var h=0;h<l.length;h++){var f=l[h];f&&f.ngInherit&&f(e),f===Qa&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){for(var t=0,n=null,i=e.length-1;i>=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Wt(r.hostAttrs,n=Wt(n,r.hostAttrs))}}(i)}function Ga(e){return e===te?{}:e===ie?[]:e}function Ya(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function Za(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function Xa(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}var Ja=null;function $a(){if(!Ja){var e=ee.Symbol;if(e&&e.iterator)Ja=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var i=t[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Ja=i)}}return Ja}var eo=function(){function e(t){Object(f.a)(this,e),this.wrapped=t}return Object(h.a)(e,null,[{key:"wrap",value:function(t){return new e(t)}},{key:"unwrap",value:function(t){return e.isWrapped(t)?t.wrapped:t}},{key:"isWrapped",value:function(t){return t instanceof e}}]),e}();function to(e){return!!no(e)&&(Array.isArray(e)||!(e instanceof Map)&&$a()in e)}function no(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function io(e,t,n){return e[t]=n}function ro(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function ao(e,t,n,i){var r=it();return ro(r,pt(),t)&&(rt(),function(e,t,n,i,r,a){var o=We(e,t);!function(e,t,n,i,r,a,o){if(null==a)Ue(e)?e.removeAttribute(t,r,n):t.removeAttribute(r);else{var s=null==o?D(a):o(a,i||"",r);Ue(e)?e.setAttribute(t,r,s,n):n?t.setAttributeNS(n,r,s):t.setAttribute(r,s)}}(t[11],o,a,e.value,n,i,r)}(Tt(),r,e,t,n,i)),ao}function oo(e,t,n,i){return ro(e,pt(),n)?t+D(n)+i:Tr}function so(e,t,n,i,r,a,o,s){var c=it(),u=rt(),l=e+we,h=u.firstCreatePass?function(e,t,n,i,r,a,o,s,c){var u=t.consts,l=zr(t,e,4,o||null,Je(u,s));na(t,n,l,Je(u,c)),Rt(t,l);var h=l.tViews=Jr(2,l,i,r,a,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u);return null!==t.queries&&(t.queries.template(t,l),h.queries=t.queries.embeddedTView(l)),l}(l,u,c,t,n,i,r,a,o):u.data[l];ct(h,!1);var f=c[11].createComment("");ur(u,c,f,h),Bi(f,c),ma(c,c[l]=fa(f,c,f,h)),Ae(h)&&Yr(u,c,h),null!=o&&Zr(c,h,s)}function co(e){return Qe(tt.lFrame.contextLView,we+e)}function uo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:K.Default,n=it();if(null===n)return Bn(e,t);var i=ot();return sn(i,n,E(e),t)}function lo(){throw new Error("invalid")}function ho(e,t,n){var i=it();return ro(i,pt(),t)&&ta(rt(),Tt(),i,e,t,i[11],n,!1),ho}function fo(e,t,n,i,r){var a=r?"class":"style";ja(e,n,t.inputs[a],a,i)}function po(e,t,n,i){var r=it(),a=rt(),o=we+e,s=r[11],c=r[o]=Xi(s,t,tt.lFrame.currentNamespace),u=a.firstCreatePass?function(e,t,n,i,r,a,o){var s=t.consts,c=zr(t,e,2,r,Je(s,a));return na(t,n,c,Je(s,o)),null!==c.attrs&&Ea(c,c.attrs,!1),null!==c.mergedAttrs&&Ea(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(o,a,r,0,t,n,i):a.data[o];ct(u,!0);var l=u.mergedAttrs;null!==l&&zt(s,c,l);var h=u.classes;null!==h&&_r(s,c,h);var f=u.styles;null!==f&&br(s,c,f),64!=(64&u.flags)&&ur(a,r,c,u),0===tt.lFrame.elementDepthCount&&Bi(c,r),tt.lFrame.elementDepthCount++,Ae(u)&&(Yr(a,r,u),Gr(a,u,r)),null!==i&&Zr(r,u)}function vo(){var e=ot();ut()?lt():ct(e=e.parent,!1);var t=e;tt.lFrame.elementDepthCount--;var n=rt();n.firstCreatePass&&(Rt(n,e),Ee(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&fo(n,t,it(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&fo(n,t,it(),t.stylesWithoutHost,!1)}function mo(e,t,n,i){po(e,t,n,i),vo()}function bo(e,t,n){var i=it(),r=rt(),a=e+we,o=r.firstCreatePass?function(e,t,n,i,r){var a=t.consts,o=Je(a,i),s=zr(t,e,8,"ng-container",o);return null!==o&&Ea(s,o,!0),na(t,n,s,Je(a,r)),null!==t.queries&&t.queries.elementStart(t,s),s}(a,r,i,t,n):r.data[a];ct(o,!0);var s=i[a]=i[11].createComment("");ur(r,i,s,o),Bi(s,i),Ae(o)&&(Yr(r,i,o),Gr(r,o,i)),null!=n&&Zr(i,o)}function _o(){var e=ot(),t=rt();ut()?lt():ct(e=e.parent,!1),t.firstCreatePass&&(Rt(t,e),Ee(e)&&t.queries.elementEnd(e))}function yo(e,t,n){bo(e,t,n),_o()}function go(){return it()}function ko(e){return!!e&&"function"==typeof e.then}function Oo(e){return!!e&&"function"==typeof e.subscribe}var wo=Oo;function Co(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=it(),a=rt(),o=ot();return Eo(a,r,r[11],o,e,t,n,i),Co}function xo(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,r=ot(),a=it(),o=rt(),s=bt(o.data),c=Ca(s,r,a);return Eo(o,a,c,r,e,t,n,i),xo}function jo(e,t,n,i){var r=e.cleanup;if(null!=r)for(var a=0;a<r.length-1;a+=2){var o=r[a];if(o===n&&r[a+1]===i){var s=t[7],c=r[a+2];return s.length>c?s[c]:null}"string"==typeof o&&(a+=2)}return null}function Eo(e,t,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,c=Ae(i),u=e.firstCreatePass,l=u&&wa(e),h=Oa(t),f=!0;if(3&i.type){var d=We(i,t),p=s?s(d):te,v=p.target||d,m=h.length,b=s?function(e){return s(Ke(e[i.index])).target}:i.index;if(Ue(n)){var _=null;if(!s&&c&&(_=jo(e,t,r,i.index)),null!==_){var y=_.__ngLastListenerFn__||_;y.__ngNextListenerFn__=a,_.__ngLastListenerFn__=a,f=!1}else{a=Ao(i,t,0,a,!1);var g=n.listen(p.name||v,r,a);h.push(a,g),l&&l.push(r,b,m,m+1)}}else a=Ao(i,t,0,a,!0),v.addEventListener(r,a,o),h.push(a),l&&l.push(r,b,m,o)}else a=Ao(i,t,0,a,!1);var k,O=i.outputs;if(f&&null!==O&&(k=O[r])){var w=k.length;if(w)for(var C=0;C<w;C+=2){var x=k[C],j=k[C+1],E=t[x],S=E[j],A=S.subscribe(a),D=h.length;h.push(a,A),l&&l.push(r,i.index,D,-(D+1))}}}function So(e,t,n,i){try{return!1!==n(i)}catch(r){return xa(e,r),!1}}function Ao(e,t,n,i,r){return function n(a){if(a===Function)return i;var o=2&e.flags?Ge(e.index,t):t;0==(32&t[2])&&ba(o);for(var s=So(t,0,i,a),c=n.__ngNextListenerFn__;c;)s=So(t,0,c,a)&&s,c=c.__ngNextListenerFn__;return r&&!1===s&&(a.preventDefault(),a.returnValue=!1),s}}function Do(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return St(e)}function To(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),r=0;r<t.length;r++){var a=t[r];if("*"!==a){if(null===i?Er(e,a,!0):Sr(i,a))return r}else n=r}return n}function Po(e){var t=it()[16][6];if(!t.projection)for(var n=t.projection=Sn(e?e.length:1,null),i=n.slice(),r=t.child;null!==r;){var a=e?To(r,e):0;null!==a&&(i[a]?i[a].projectionNext=r:n[a]=r,i[a]=r),r=r.next}}function Io(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=it(),r=rt(),a=zr(r,we+e,16,null,n||null);null===a.projection&&(a.projection=t),lt(),64!=(64&a.flags)&&vr(r,i,a)}function Ro(e,t,n){return Mo(e,"",t,"",n),Ro}function Mo(e,t,n,i,r){var a=it(),o=oo(a,t,n,i);return o!==Tr&&ta(rt(),Tt(),a,e,o,a[11],r,!1),Mo}function Lo(e,t,n,i,r){for(var a=e[n+1],o=null===t,s=i?Mr(a):Fr(a),c=!1;0!==s&&(!1===c||o);){var u=e[s+1];Fo(e[s],t)&&(c=!0,e[s+1]=i?Br(u):Lr(u)),s=i?Mr(u):Fr(u)}c&&(e[n+1]=i?Lr(a):Br(a))}function Fo(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Tn(e,t)>=0}var No={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Bo(e){return e.substring(No.key,No.keyEnd)}function Vo(e,t){var n=No.textEnd;return n===t?-1:(t=No.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,No.key=t,n),Uo(e,t,n))}function Uo(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function zo(e,t,n){return Wo(e,t,n,!1),zo}function Ko(e,t){return Wo(e,t,null,!0),Ko}function Ho(e,t){for(var n=function(e){return function(e){No.key=0,No.keyEnd=0,No.value=0,No.valueEnd=0,No.textEnd=e.length}(e),Vo(e,Uo(e,0,No.textEnd))}(t);n>=0;n=Vo(t,n))An(e,Bo(t),!0)}function Wo(e,t,n,i){var r=it(),a=rt(),o=vt(2);a.firstUpdatePass&&Qo(a,e,o,i),t!==Tr&&ro(r,o,t)&&Zo(a,a.data[At()],r,r[11],e,r[o+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=w(ni(e)))),e}(t,n),i,o)}function qo(e,t){return t>=e.expandoStartIndex}function Qo(e,t,n,i){var r=e.data;if(null===r[n+1]){var a=r[At()],o=qo(e,n);$o(a,i)&&null===t&&!o&&(t=!1),t=function(e,t,n,i){var r=bt(e),a=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Yo(n=Go(null,e,t,n,i),t.attrs,i),a=null);else{var o=t.directiveStylingLast;if(-1===o||e[o]!==r)if(n=Go(r,e,t,n,i),null===a){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==Fr(i))return e[Mr(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[Mr(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=Yo(s=Go(null,e,t,s[1],i),t.attrs,i))}else a=function(e,t,n){for(var i=void 0,r=t.directiveEnd,a=1+t.directiveStylingLast;a<r;a++)i=Yo(i,e[a].hostAttrs,n);return Yo(i,t.attrs,n)}(e,t,i)}return void 0!==a&&(i?t.residualClasses=a:t.residualStyles=a),n}(r,a,t,i),function(e,t,n,i,r,a){var o=a?t.classBindings:t.styleBindings,s=Mr(o),c=Fr(o);e[i]=n;var u,l=!1;if(Array.isArray(n)?(null===(u=n[1])||Tn(n,u)>0)&&(l=!0):u=n,r)if(0!==c){var h=Mr(e[s+1]);e[i+1]=Rr(h,s),0!==h&&(e[h+1]=Nr(e[h+1],i)),e[s+1]=131071&e[s+1]|i<<17}else e[i+1]=Rr(s,0),0!==s&&(e[s+1]=Nr(e[s+1],i)),s=i;else e[i+1]=Rr(c,0),0===s?s=i:e[c+1]=Nr(e[c+1],i),c=i;l&&(e[i+1]=Lr(e[i+1])),Lo(e,u,i,!0),Lo(e,u,i,!1),function(e,t,n,i,r){var a=r?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&Tn(a,t)>=0&&(n[i+1]=Br(n[i+1]))}(t,u,e,i,a),o=Rr(s,c),a?t.classBindings=o:t.styleBindings=o}(r,a,t,n,o,i)}}function Go(e,t,n,i,r){var a=null,o=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s<o&&(i=Yo(i,(a=t[s]).hostAttrs,r),a!==e);)s++;return null!==e&&(n.directiveStylingLast=s),i}function Yo(e,t,n){var i=n?1:2,r=-1;if(null!==t)for(var a=0;a<t.length;a++){var o=t[a];"number"==typeof o?r=o:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),An(e,o,!!n||t[++a]))}return void 0===e?null:e}function Zo(e,t,n,i,r,a,o,s){if(3&t.type){var c=e.data,u=c[s+1];Jo(1==(1&u)?Xo(c,t,n,r,Fr(u),o):void 0)||(Jo(a)||2==(2&u)&&(a=Xo(c,null,n,r,s,o)),function(e,t,n,i,r){var a=Ue(e);if(t)r?a?e.addClass(n,i):n.classList.add(i):a?e.removeClass(n,i):n.classList.remove(i);else{var o=-1===i.indexOf("-")?void 0:Ki.DashCase;if(null==r)a?e.removeStyle(n,i,o):n.style.removeProperty(i);else{var s="string"==typeof r&&r.endsWith("!important");s&&(r=r.slice(0,-10),o|=Ki.Important),a?e.setStyle(n,i,r,o):n.style.setProperty(i,r,s?"important":"")}}}(i,o,He(At(),n),r,a))}}function Xo(e,t,n,i,r,a){for(var o=null===t,s=void 0;r>0;){var c=e[r],u=Array.isArray(c),l=u?c[1]:c,h=null===l,f=n[r+1];f===Tr&&(f=h?ne:void 0);var d=h?Dn(f,i):l===i?f:void 0;if(u&&!Jo(d)&&(d=Dn(c,i)),Jo(d)&&(s=d,o))return s;var p=e[r+1];r=o?Mr(p):Fr(p)}if(null!==t){var v=a?t.residualClasses:t.residualStyles;null!=v&&(s=Dn(v,i))}return s}function Jo(e){return void 0!==e}function $o(e,t){return 0!=(e.flags&(t?16:32))}function es(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=it(),i=rt(),r=e+we,a=i.firstCreatePass?zr(i,r,1,t,null):i.data[r],o=n[r]=Zi(n[11],t);ur(i,n,o,a),ct(a,!1)}function ts(e){return ns("",e,""),ts}function ns(e,t,n){var i=it(),r=oo(i,e,t,n);return r!==Tr&&function(e,t,n){var i=He(t,e);!function(e,t,n){Ue(e)?e.setValue(t,n):t.textContent=n}(e[11],i,n)}(i,At(),r),ns}function is(e,t,n){!function(e,t,n,i){var r=rt(),a=vt(2);r.firstUpdatePass&&Qo(r,null,a,i);var o=it();if(n!==Tr&&ro(o,a,n)){var s=r.data[At()];if($o(s,i)&&!qo(r,a)){var c=s.classesWithoutHost;null!==c&&(n=C(c,n||"")),fo(r,s,o,n,i)}else!function(e,t,n,i,r,a,o,s){r===Tr&&(r=ne);for(var c=0,u=0,l=0<r.length?r[0]:null,h=0<a.length?a[0]:null;null!==l||null!==h;){var f=c<r.length?r[c+1]:void 0,d=u<a.length?a[u+1]:void 0,p=null,v=void 0;l===h?(c+=2,u+=2,f!==d&&(p=h,v=d)):null===h||null!==l&&l<h?(c+=2,p=l):(u+=2,p=h,v=d),null!==p&&Zo(e,t,n,i,p,v,true,s),l=c<r.length?r[c]:null,h=u<a.length?a[u]:null}}(r,s,o,o[11],o[a+1],o[a+1]=function(e,t,n){if(null==n||""===n)return ne;var i=[],r=ni(n);if(Array.isArray(r))for(var a=0;a<r.length;a++)e(i,r[a],!0);else if("object"==typeof r)for(var o in r)r.hasOwnProperty(o)&&e(i,o,r[o]);else"string"==typeof r&&t(i,r);return i}(e,t,n),0,a)}}(An,Ho,oo(it(),e,t,n),!0)}function rs(e,t,n){var i=it();return ro(i,pt(),t)&&ta(rt(),Tt(),i,e,t,i[11],n,!0),rs}function as(e,t,n){var i=it();if(ro(i,pt(),t)){var r=rt(),a=Tt();ta(r,a,i,e,t,Ca(bt(r.data),a,i),n,!0)}return as}var os=void 0,ss=["en",[["a","p"],["AM","PM"],os],[["AM","PM"],os,os],[["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"]],os,[["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"]],os,[["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}",os,"{1} 'at' {0}",os],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],cs={};function us(e,t,n){"string"!=typeof t&&(n=t,t=e[ps.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),cs[t]=e,n&&(cs[t][ps.ExtraData]=n)}function ls(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=ds(t);if(n)return n;var i=t.split("-")[0];if(n=ds(i))return n;if("en"===i)return ss;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function hs(e){return ls(e)[ps.CurrencyCode]||null}function fs(e){return ls(e)[ps.PluralCase]}function ds(e){return e in cs||(cs[e]=ee.ng&&ee.ng.common&&ee.ng.common.locales&&ee.ng.common.locales[e]),cs[e]}var ps=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({}),vs="en-US";function ms(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: ".concat(e)+" [Expected=> ".concat(null," ").concat("!="," ").concat(t," <=Actual]"))}(n,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function bs(e,t,n){var i=rt();if(i.firstCreatePass){var r=De(e);_s(n,i.data,i.blueprint,r,!0),_s(t,i.data,i.blueprint,r,!1)}}function _s(e,t,n,i,r){if(e=E(e),Array.isArray(e))for(var a=0;a<e.length;a++)_s(e[a],t,n,i,r);else{var o=rt(),s=it(),c=za(e)?e:E(e.provide),u=Ba(e),l=ot(),h=1048575&l.providerIndexes,f=l.directiveStart,d=l.providerIndexes>>20;if(za(e)||!e.multi){var p=new Ut(u,r,uo),v=ks(c,t,r?h:h+d,f);-1===v?(rn($t(l,s),o,c),ys(o,e,t.length),t.push(c),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(p),s.push(p)):(n[v]=p,s[v]=p)}else{var m=ks(c,t,h+d,f),b=ks(c,t,h,h+d),_=b>=0&&n[b];if(r&&!_||!r&&!(m>=0&&n[m])){rn($t(l,s),o,c);var y=function(e,t,n,i,r){var a=new Ut(e,n,uo);return a.multi=[],a.index=t,a.componentProviders=0,gs(a,r,i&&!n),a}(r?ws:Os,n.length,r,i,u);!r&&_&&(n[b].providerFactory=y),ys(o,e,t.length,0),t.push(c),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(y),s.push(y)}else ys(o,e,m>-1?m:b,gs(n[r?b:m],u,!r&&i));!r&&i&&_&&n[b].componentProviders++}}}function ys(e,t,n,i){var r=za(t);if(r||t.useClass){var a=(t.useClass||t).prototype.ngOnDestroy;if(a){var o=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=o.indexOf(n);-1===s?o.push(n,[i,a]):o[s+1].push(i,a)}else o.push(n,a)}}}function gs(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function ks(e,t,n,i){for(var r=n;r<i;r++)if(t[r]===e)return r;return-1}function Os(e,t,n,i){return Cs(this.multi,[])}function ws(e,t,n,i){var r,a=this.multi;if(this.providerFactory){var o=this.providerFactory.componentProviders,s=fn(n,n[1],this.providerFactory.index,i);Cs(a,r=s.slice(0,o));for(var c=o;c<s.length;c++)r.push(s[c])}else Cs(a,r=[]);return r}function Cs(e,t){for(var n=0;n<e.length;n++)t.push((0,e[n])());return t}function xs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return bs(n,i?i(e):e,t)}}}var js=function e(){Object(f.a)(this,e)},Es=function e(){Object(f.a)(this,e)},Ss=function(){function e(){Object(f.a)(this,e)}return Object(h.a)(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(w(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),As=function(){var e=function e(){Object(f.a)(this,e)};return e.NULL=new Ss,e}();function Ds(){}function Ts(e,t){return new Is(We(e,t))}var Ps=function(){return Ts(ot(),it())},Is=function(){var e=function e(t){Object(f.a)(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=Ps,e}();function Rs(e){return e instanceof Is?e.nativeElement:e}var Ms=function e(){Object(f.a)(this,e)},Ls=function(){var e=function e(){Object(f.a)(this,e)};return e.__NG_ELEMENT_ID__=function(){return Fs()},e}(),Fs=function(){var e=it(),t=Ge(ot().index,e);return function(e){return e[11]}(xe(t)?t:e)},Ns=function(){var e=function e(){Object(f.a)(this,e)};return e.\u0275prov=I({token:e,providedIn:"root",factory:function(){return null}}),e}(),Bs=function e(t){Object(f.a)(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},Vs=new Bs("11.2.14"),Us=function(){function e(){Object(f.a)(this,e)}return Object(h.a)(e,[{key:"supports",value:function(e){return to(e)}},{key:"create",value:function(e){return new Ks(e)}}]),e}(),zs=function(e,t){return t},Ks=function(){function e(t){Object(f.a)(this,e),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||zs}return Object(h.a)(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var a=!n||t&&t.currentIndex<Qs(n,i,r)?t:n,o=Qs(a,i,r),s=a.currentIndex;if(a===n)i--,n=n._nextRemoved;else if(t=t._next,null==a.previousIndex)i++;else{r||(r=[]);var c=o-i,u=s-i;if(c!=u){for(var l=0;l<c;l++){var h=l<r.length?r[l]:r[l]=0,f=h+l;u<=f&&f<c&&(r[l]=h+1)}r[a.previousIndex]=u-c}}o!==s&&e(a,o,s)}}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachMovedItem",value:function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"forEachIdentityChange",value:function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}},{key:"diff",value:function(e){if(null==e&&(e=[]),!to(e))throw new Error("Error trying to diff '".concat(w(e),"'. Only arrays and iterables are allowed"));return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n,i,r,a=this._itHead,o=!1;if(Array.isArray(e)){this.length=e.length;for(var s=0;s<this.length;s++)r=this._trackByFn(s,i=e[s]),null!==a&&Object.is(a.trackById,r)?(o&&(a=this._verifyReinsertion(a,i,r,s)),Object.is(a.item,i)||this._addIdentityChange(a,i)):(a=this._mismatch(a,i,r,s),o=!0),a=a._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var i,r=e[$a()]();!(i=r.next()).done;)t(i.value)}(e,function(e){r=t._trackByFn(n,e),null!==a&&Object.is(a.trackById,r)?(o&&(a=t._verifyReinsertion(a,e,r,n)),Object.is(a.item,e)||t._addIdentityChange(a,e)):(a=t._mismatch(a,e,r,n),o=!0),a=a._next,n++}),this.length=n;return this._truncate(a),this.collection=e,this.isDirty}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}},{key:"_reset",value:function(){if(this.isDirty){var e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(e,t,n,i){var r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,i)):e=this._addAfter(new Hs(t,n),r,i),e}},{key:"_verifyReinsertion",value:function(e,t,n,i){var r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}},{key:"_truncate",value:function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}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)}},{key:"_reinsertAfter",value:function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var i=e._prevRemoved,r=e._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_moveAfter",value:function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_addAfter",value:function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}},{key:"_insertAfter",value:function(e,t,n){var i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new qs),this._linkedRecords.put(e),e.currentIndex=n,e}},{key:"_remove",value:function(e){return this._addToRemovals(this._unlink(e))}},{key:"_unlink",value:function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}},{key:"_addToMoves",value:function(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}},{key:"_addToRemovals",value:function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new qs),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}},{key:"_addIdentityChange",value:function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}]),e}(),Hs=function e(t,n){Object(f.a)(this,e),this.item=t,this.trackById=n,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},Ws=function(){function e(){Object(f.a)(this,e),this._head=null,this._tail=null}return Object(h.a)(e,[{key:"add",value:function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}},{key:"get",value:function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}},{key:"remove",value:function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}]),e}(),qs=function(){function e(){Object(f.a)(this,e),this.map=new Map}return Object(h.a)(e,[{key:"put",value:function(e){var t=e.trackById,n=this.map.get(t);n||(n=new Ws,this.map.set(t,n)),n.add(e)}},{key:"get",value:function(e,t){var n=this.map.get(e);return n?n.get(e,t):null}},{key:"remove",value:function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}},{key:"isEmpty",get:function(){return 0===this.map.size}},{key:"clear",value:function(){this.map.clear()}}]),e}();function Qs(e,t,n){var i=e.previousIndex;if(null===i)return i;var r=0;return n&&i<n.length&&(r=n[i]),i+t+r}var Gs=function(){function e(){Object(f.a)(this,e)}return Object(h.a)(e,[{key:"supports",value:function(e){return e instanceof Map||no(e)}},{key:"create",value:function(){return new Ys}}]),e}(),Ys=function(){function e(){Object(f.a)(this,e),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(h.a)(e,[{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}},{key:"forEachItem",value:function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachChangedItem",value:function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"diff",value:function(e){if(e){if(!(e instanceof Map||no(e)))throw new Error("Error trying to diff '".concat(w(e),"'. Only maps and objects are allowed"))}else e=new Map;return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,function(e,i){if(n&&n.key===i)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var r=t._getOrCreateRecordForKey(i,e);n=t._insertBeforeOrAppend(n,r)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}},{key:"_getOrCreateRecordForKey",value:function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}var a=new Zs(e);return this._records.set(e,a),a.currentValue=t,this._addToAdditions(a),a}},{key:"_reset",value:function(){if(this.isDirty){var e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}},{key:"_addToAdditions",value:function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}},{key:"_addToChanges",value:function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}},{key:"_forEach",value:function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(function(n){return t(e[n],n)})}}]),e}(),Zs=function e(t){Object(f.a)(this,e),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};function Xs(){return new Js([new Us])}var Js=function(){var e=function(){function e(t){Object(f.a)(this,e),this.factories=t}return Object(h.a)(e,[{key:"find",value:function(e){var t,n=this.factories.find(function(t){return t.supports(e)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'"))}}],[{key:"create",value:function(t,n){if(null!=n){var i=n.factories.slice();t=t.concat(i)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||Xs())},deps:[[e,new Gn,new qn]]}}}]),e}();return e.\u0275prov=I({token:e,providedIn:"root",factory:Xs}),e}();function $s(){return new ec([new Gs])}var ec=function(){var e=function(){function e(t){Object(f.a)(this,e),this.factories=t}return Object(h.a)(e,[{key:"find",value:function(e){var t=this.factories.find(function(t){return t.supports(e)});if(t)return t;throw new Error("Cannot find a differ supporting object '".concat(e,"'"))}}],[{key:"create",value:function(t,n){if(n){var i=n.factories.slice();t=t.concat(i)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||$s())},deps:[[e,new Gn,new qn]]}}}]),e}();return e.\u0275prov=I({token:e,providedIn:"root",factory:$s}),e}();function tc(e,t,n,i){for(var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==n;){var a=t[n.index];if(null!==a&&i.push(Ke(a)),je(a))for(var o=Ce;o<a.length;o++){var c=a[o],u=c[1].firstChild;null!==u&&tc(c[1],c,u,i)}var l=n.type;if(8&l)tc(e,t,n.child,i);else if(32&l)for(var h=Hi(n,t),f=void 0;f=h();)i.push(f);else if(16&l){var d=hr(t,n);if(Array.isArray(d))i.push.apply(i,Object(s.a)(d));else{var p=Wi(t[16]);tc(p[1],p,d,i,!0)}}n=r?n.projectionNext:n.next}return i}var nc=function(){function e(t,n){Object(f.a)(this,e),this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}return Object(h.a)(e,[{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return tc(t,e,t.firstChild,[])}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}},{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var e=this._lView[3];if(je(e)){var t=e[8],n=t?t.indexOf(this):-1;n>-1&&($i(e,n),En(t,n))}this._attachedToViewContainer=!1}er(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){$r(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){ba(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){_a(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){ft(!0);try{_a(e,t,n)}finally{ft(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,pr(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}]),e}(),ic=function(e){Object(d.a)(n,e);var t=Object(p.a)(n);function n(e){var i;return Object(f.a)(this,n),(i=t.call(this,e))._view=e,i}return Object(h.a)(n,[{key:"detectChanges",value:function(){ya(this._view)}},{key:"checkNoChanges",value:function(){!function(e){ft(!0);try{ya(e)}finally{ft(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(nc),rc=oc,ac=function(){var e=function e(){Object(f.a)(this,e)};return e.__NG_ELEMENT_ID__=rc,e.__ChangeDetectorRef__=!0,e}();function oc(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return sc(ot(),it(),e)}function sc(e,t,n){if(!n&&Se(e)){var i=Ge(e.index,t);return new nc(i,i)}return 47&e.type?new nc(t[16],t):null}var cc=[new Gs],uc=new Js([new Us]),lc=new ec(cc),hc=function(){return pc(ot(),it())},fc=function(){var e=function e(){Object(f.a)(this,e)};return e.__NG_ELEMENT_ID__=hc,e}(),dc=function(e){Object(d.a)(n,e);var t=Object(p.a)(n);function n(e,i,r){var a;return Object(f.a)(this,n),(a=t.call(this))._declarationLView=e,a._declarationTContainer=i,a.elementRef=r,a}return Object(h.a)(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Ur(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),Hr(t,n,e),new nc(n)}}]),n}(fc);function pc(e,t){return 4&e.type?new dc(t,e,Ts(e,t)):null}var vc=function e(){Object(f.a)(this,e)},mc=function e(){Object(f.a)(this,e)},bc=function(){return Oc(ot(),it())},_c=function(){var e=function e(){Object(f.a)(this,e)};return e.__NG_ELEMENT_ID__=bc,e}(),yc=function(e){Object(d.a)(n,e);var t=Object(p.a)(n);function n(e,i,r){var a;return Object(f.a)(this,n),(a=t.call(this))._lContainer=e,a._hostTNode=i,a._hostLView=r,a}return Object(h.a)(n,[{key:"element",get:function(){return Ts(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new mn(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=nn(this._hostTNode,this._hostLView);if(Qt(e)){var t=Yt(e,this._hostLView),n=Gt(e);return new mn(t[1].data[n+8],t)}return new mn(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=gc(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-Ce}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var a=n||this.parentInjector;if(!r&&null==e.ngModule&&a){var o=a.get(vc,null);o&&(r=o)}var s=e.create(a,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var n=e._lView,i=n[1];if(je(n[3])){var r=this.indexOf(e);if(-1!==r)this.detach(r);else{var a=n[3],o=new yc(a,a[6],a[3]);o.detach(o.indexOf(e))}}var s=this._adjustIndex(t),c=this._lContainer;!function(e,t,n,i){var r=Ce+i,a=n.length;i>0&&(n[r-1][4]=t),i<a-Ce?(t[4]=n[r],jn(n,Ce+i,t)):(n.push(t),t[4]=null),t[3]=n;var o=t[17];null!==o&&n!==o&&function(e,t){var n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(o,t);var s=t[19];null!==s&&s.insertView(e),t[2]|=128}(i,n,c,s);var u=fr(s,c),l=n[11],h=or(l,c[7]);return null!==h&&function(e,t,n,i,r,a){i[0]=r,i[6]=t,pr(e,i,n,1,r,a)}(i,c[6],l,n,h,u),e.attachToViewContainerRef(),jn(kc(c),s,e),e}},{key:"move",value:function(e,t){return this.insert(e,t)}},{key:"indexOf",value:function(e){var t=gc(this._lContainer);return null!==t?t.indexOf(e):-1}},{key:"remove",value:function(e){var t=this._adjustIndex(e,-1),n=$i(this._lContainer,t);n&&(En(kc(this._lContainer),t),er(n[1],n))}},{key:"detach",value:function(e){var t=this._adjustIndex(e,-1),n=$i(this._lContainer,t);return n&&null!=En(kc(this._lContainer),t)?new nc(n):null}},{key:"_adjustIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}}]),n}(_c);function gc(e){return e[8]}function kc(e){return e[8]||(e[8]=[])}function Oc(e,t){var n,i=t[e.index];if(je(i))n=i;else{var r;if(8&e.type)r=Ke(i);else{var a=t[11];r=a.createComment("");var o=We(e,t);ir(a,or(a,o),r,function(e,t){return Ue(e)?e.nextSibling(t):t.nextSibling}(a,o),!1)}t[e.index]=n=fa(i,t,r,e),ma(t,n)}return new yc(n,e,t)}var wc={},Cc=function(e){Object(d.a)(n,e);var t=Object(p.a)(n);function n(e){var i;return Object(f.a)(this,n),(i=t.call(this)).ngModule=e,i}return Object(h.a)(n,[{key:"resolveComponentFactory",value:function(e){var t=ke(e);return new Ec(t,this.ngModule)}}]),n}(As);function xc(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var jc=new On("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Vi}}),Ec=function(e){Object(d.a)(n,e);var t=Object(p.a)(n);function n(e,i){var r;return Object(f.a)(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(Dr).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return Object(h.a)(n,[{key:"inputs",get:function(){return xc(this.componentDef.inputs)}},{key:"outputs",get:function(){return xc(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,i){var r,a,o=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var a=e.get(n,wc,r);return a!==wc||i===wc?a:t.get(n,i,r)}}}(e,i.injector):e,s=o.get(Ms,ze),c=o.get(Ns,null),u=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(Ue(e))return e.selectRootElement(t,n===Y.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(u,n,this.componentDef.encapsulation):Xi(s.createRenderer(null,this.componentDef),l,function(e){var t=e.toLowerCase();return"svg"===t?Ne:"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),f=this.componentDef.onPush?576:528,d={components:[],scheduler:Vi,clean:ka,playerHandler:null,flags:0},p=Jr(0,null,null,1,0,null,null,null,null,null),v=Ur(null,p,d,f,null,null,s,u,c,o);Ot(v);try{var m=function(e,t,n,i,r,a){var o=n[1];n[20]=e;var s=zr(o,20,2,"#host",null),c=s.mergedAttrs=t.hostAttrs;null!==c&&(Ea(s,c,!0),null!==e&&(zt(r,e,c),null!==s.classes&&_r(r,e,s.classes),null!==s.styles&&br(r,e,s.styles)));var u=i.createRenderer(e,t),l=Ur(n,Xr(t),null,t.onPush?64:16,n[20],s,i,u,null,null);return o.firstCreatePass&&(rn($t(s,n),o,t.type),aa(o,s),sa(s,n.length,1)),ma(n,l),n[20]=l}(h,this.componentDef,v,s,u);if(h)if(n)zt(u,h,["ng-version",Vs.full]);else{var b=function(e){for(var t=[],n=[],i=1,r=2;i<e.length;){var a=e[i];if("string"==typeof a)2===r?""!==a&&t.push(a,e[++i]):8===r&&n.push(a);else{if(!xr(r))break;r=a}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]),_=b.attrs,y=b.classes;_&&zt(u,h,_),y&&y.length>0&&_r(u,h,y.join(" "))}if(a=qe(p,we),void 0!==t)for(var g=a.projection=[],k=0;k<this.ngContentSelectors.length;k++){var O=t[k];g.push(null!=O?Array.from(O):null)}r=function(e,t,n,i,r){var a=n[1],o=function(e,t,n){var i=ot();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),ca(e,i,t,Kr(e,t,1,null),n));var r=fn(t,e,i.directiveStart,i);Bi(r,t);var a=We(i,t);return a&&Bi(a,t),r}(a,n,t);if(i.components.push(o),e[8]=o,r&&r.forEach(function(e){return e(o,t)}),t.contentQueries){var s=ot();t.contentQueries(1,o,s.directiveStart)}var c=ot();return!a.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Dt(c.index),ia(n[1],c,0,c.directiveStart,c.directiveEnd,t),ra(t,o)),o}(m,this.componentDef,v,d,[qa]),Hr(p,v,null)}finally{Et()}return new Sc(this.componentType,r,Ts(a,v),v,a)}}]),n}(Es),Sc=function(e){Object(d.a)(n,e);var t=Object(p.a)(n);function n(e,i,r,a,o){var s;return Object(f.a)(this,n),(s=t.call(this)).location=r,s._rootLView=a,s._tNode=o,s.instance=i,s.hostView=s.changeDetectorRef=new ic(a),s.componentType=e,s}return Object(h.a)(n,[{key:"injector",get:function(){return new mn(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(e){this.hostView.onDestroy(e)}}]),n}(js),Ac=new Map,Dc=function(e){Object(d.a)(n,e);var t=Object(p.a)(n);function n(e,i){var r;Object(f.a)(this,n),(r=t.call(this))._parent=i,r._bootstrapComponents=[],r.injector=Object(a.a)(r),r.destroyCbs=[],r.componentFactoryResolver=new Cc(Object(a.a)(r));var o=Oe(e),s=e[ce]||null;return s&&ms(s),r._bootstrapComponents=zi(o.bootstrap),r._r3Injector=La(e,i,[{provide:vc,useValue:Object(a.a)(r)},{provide:As,useValue:r.componentFactoryResolver}],w(e)),r._r3Injector._resolveInjectorDefTypes(),r.instance=r.get(e),r}return Object(h.a)(n,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wa.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:K.Default;return e===Wa||e===vc||e===Sa?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(vc),Tc=function(e){Object(d.a)(n,e);var t=Object(p.a)(n);function n(e){var i,r,a;return Object(f.a)(this,n),(i=t.call(this)).moduleType=e,null!==Oe(e)&&(r=e,a=new Set,function e(t){var n=Oe(t,!0),i=n.id;null!==i&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(w(t)," vs ").concat(w(t.name)))}(i,Ac.get(i),t),Ac.set(i,t));var r,s=zi(n.imports),c=Object(o.a)(s);try{for(c.s();!(r=c.n()).done;){var u=r.value;a.has(u)||(a.add(u),e(u))}}catch(l){c.e(l)}finally{c.f()}}(r)),i}return Object(h.a)(n,[{key:"create",value:function(e){return new Dc(this.moduleType,e)}}]),n}(mc);function Pc(e,t,n){var i=dt()+e,r=it();return r[i]===Tr?io(r,i,n?t.call(n):t()):function(e,t){return e[t]}(r,i)}function Ic(e,t,n,i){return Lc(it(),dt(),e,t,n,i)}function Rc(e,t,n,i,r){return Fc(it(),dt(),e,t,n,i,r)}function Mc(e,t){var n=e[t];return n===Tr?void 0:n}function Lc(e,t,n,i,r,a){var o=t+n;return ro(e,o,r)?io(e,o+1,a?i.call(a,r):i(r)):Mc(e,o+1)}function Fc(e,t,n,i,r,a,o){var s=t+n;return function(e,t,n,i){var r=ro(e,t,n);return ro(e,t+1,i)||r}(e,s,r,a)?io(e,s+2,o?i.call(o,r,a):i(r,a)):Mc(e,s+2)}function Nc(e,t){var n,i=rt(),r=e+we;i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if(e===i.name)return i}throw new A("302","The pipe '".concat(e,"' could not be found!"))}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var a=n.factory||(n.factory=Te(n.type)),o=W(uo);try{var s=Xt(!1),c=a();return Xt(s),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(i,it(),r,c),c}finally{W(o)}}function Bc(e,t,n){var i=e+we,r=it(),a=Qe(r,i);return zc(r,Uc(r,i)?Lc(r,dt(),t,a.transform,n,a):a.transform(n))}function Vc(e,t,n,i){var r=e+we,a=it(),o=Qe(a,r);return zc(a,Uc(a,r)?Fc(a,dt(),t,o.transform,n,i,o):o.transform(n,i))}function Uc(e,t){return e[1].data[t].pure}function zc(e,t){return eo.isWrapped(t)&&(t=eo.unwrap(t),e[tt.lFrame.bindingIndex]=Tr),t}function Kc(e){return function(t){setTimeout(e,void 0,t)}}var Hc=function(e){Object(d.a)(n,e);var t=Object(p.a)(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object(f.a)(this,n),(e=t.call(this)).__isAsync=i,e}return Object(h.a)(n,[{key:"emit",value:function(e){Object(i.a)(Object(r.a)(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,a){var o,s,c,u=e,l=t||function(){return null},h=a;if(e&&"object"==typeof e){var f=e;u=null===(o=f.next)||void 0===o?void 0:o.bind(f),l=null===(s=f.error)||void 0===s?void 0:s.bind(f),h=null===(c=f.complete)||void 0===c?void 0:c.bind(f)}this.__isAsync&&(l=Kc(l),u&&(u=Kc(u)),h&&(h=Kc(h)));var d=Object(i.a)(Object(r.a)(n.prototype),"subscribe",this).call(this,{next:u,error:l,complete:h});return e instanceof m.a&&e.add(d),d}}]),n}(b.a);function Wc(){return this._results[$a()]()}var qc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Object(f.a)(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=$a(),i=e.prototype;i[n]||(i[n]=Wc)}return Object(h.a)(e,[{key:"changes",get:function(){return this._changes||(this._changes=new Hc)}},{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){var n=this;n.dirty=!1;var i=Cn(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++){var r=e[i],a=t[i];if(n&&(r=n(r),a=n(a)),a!==r)return!1}return!0}(n._results,i,t))&&(n._results=i,n.length=i.length,n.last=i[this.length-1],n.first=i[0])}},{key:"notifyOnChanges",value:function(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),e}(),Qc=function(){function e(t){Object(f.a)(this,e),this.queryList=t,this.matches=null}return Object(h.a)(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),Gc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Object(f.a)(this,e),this.queries=t}return Object(h.a)(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],a=0;a<i;a++){var o=n.getByIndex(a);r.push(this.queries[o.indexInDeclarationView].clone())}return new e(r)}return null}},{key:"insertView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"detachView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"dirtyQueriesWithMatches",value:function(e){for(var t=0;t<this.queries.length;t++)null!==cu(e,t).matches&&this.queries[t].setDirty()}}]),e}(),Yc=function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Object(f.a)(this,e),this.predicate=t,this.flags=n,this.read=i},Zc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Object(f.a)(this,e),this.queries=t}return Object(h.a)(e,[{key:"elementStart",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}},{key:"elementEnd",value:function(e){for(var t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}},{key:"embeddedTView",value:function(t){for(var n=null,i=0;i<this.length;i++){var r=null!==n?n.length:0,a=this.getByIndex(i).embeddedTView(t,r);a&&(a.indexInDeclarationView=i,null!==n?n.push(a):n=[a])}return null!==n?new e(n):null}},{key:"template",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}},{key:"getByIndex",value:function(e){return this.queries[e]}},{key:"length",get:function(){return this.queries.length}},{key:"track",value:function(e){this.queries.push(e)}}]),e}(),Xc=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;Object(f.a)(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return Object(h.a)(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i<n.length;i++){var r=n[i];this.matchTNodeWithReadOption(e,t,Jc(t,r)),this.matchTNodeWithReadOption(e,t,hn(t,e,r,!1,!1))}else n===fc?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,hn(t,e,n,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(e,t,n){if(null!==n){var i=this.metadata.read;if(null!==i)if(i===Is||i===_c||i===fc&&4&t.type)this.addMatch(t.index,-2);else{var r=hn(t,e,i,!1,!1);null!==r&&this.addMatch(t.index,r)}else this.addMatch(t.index,n)}}},{key:"addMatch",value:function(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}]),e}();function Jc(e,t){var n=e.localNames;if(null!==n)for(var i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function $c(e,t,n,i){return-1===n?function(e,t){return 11&e.type?Ts(e,t):4&e.type?pc(e,t):null}(t,e):-2===n?function(e,t,n){return n===Is?Ts(t,e):n===fc?pc(t,e):n===_c?Oc(t,e):void 0}(e,t,i):fn(e,e[1],n,t)}function eu(e,t,n,i){var r=t[19].queries[i];if(null===r.matches){for(var a=e.data,o=n.matches,s=[],c=0;c<o.length;c+=2){var u=o[c];s.push(u<0?null:$c(t,a[u],o[c+1],n.metadata.read))}r.matches=s}return r.matches}function tu(e,t,n,i){var r=e.queries.getByIndex(n),a=r.matches;if(null!==a)for(var o=eu(e,t,r,n),s=0;s<a.length;s+=2){var c=a[s];if(c>0)i.push(o[s/2]);else{for(var u=a[s+1],l=t[-c],h=Ce;h<l.length;h++){var f=l[h];f[17]===f[3]&&tu(f[1],f,u,i)}if(null!==l[9])for(var d=l[9],p=0;p<d.length;p++){var v=d[p];tu(v[1],v,u,i)}}}return i}function nu(e){var t=it(),n=rt(),i=_t();yt(i+1);var r=cu(n,i);if(e.dirty&&Ze(t)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{var a=r.crossesNgTemplate?tu(n,t,i,[]):eu(n,t,r,i);e.reset(a,Rs),e.notifyOnChanges()}return!0}return!1}function iu(e,t,n){var i=rt();i.firstCreatePass&&(su(i,new Yc(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),ou(i,it(),t)}function ru(e,t,n,i){var r=rt();if(r.firstCreatePass){var a=ot();su(r,new Yc(t,n,i),a.index),function(e,t){var n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(r,e),2==(2&n)&&(r.staticContentQueries=!0)}ou(r,it(),n)}function au(){return e=it(),t=_t(),e[19].queries[t].queryList;var e,t}function ou(e,t,n){var i=new qc(4==(4&n));$r(e,t,i,i.destroy),null===t[19]&&(t[19]=new Gc),t[19].queries.push(new Qc(i))}function su(e,t,n){null===e.queries&&(e.queries=new Zc),e.queries.track(new Xc(t,n))}function cu(e,t){return e.queries.getByIndex(t)}function uu(e,t){return pc(e,t)}function lu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K.Default,t=oc(!0);if(null!=t||e&K.Optional)return t;P("ChangeDetectorRef")}var hu=new On("Application Initializer"),fu=function(){var e=function(){function e(t){var n=this;Object(f.a)(this,e),this.appInits=t,this.resolve=Ds,this.reject=Ds,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,t){n.resolve=e,n.reject=t})}return Object(h.a)(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var i=0;i<this.appInits.length;i++){var r=this.appInits[i]();ko(r)&&t.push(r)}Promise.all(t).then(function(){n()}).catch(function(t){e.reject(t)}),0===t.length&&n(),this.initialized=!0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Bn(hu,8))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e}(),du=new On("AppId"),pu={provide:du,useFactory:function(){return"".concat(vu()).concat(vu()).concat(vu())},deps:[]};function vu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var mu=new On("Platform Initializer"),bu=new On("Platform ID"),_u=new On("appBootstrapListener"),yu=function(){var e=function(){function e(){Object(f.a)(this,e)}return Object(h.a)(e,[{key:"log",value:function(e){console.log(e)}},{key:"warn",value:function(e){console.warn(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e}(),gu=new On("LocaleId"),ku=new On("DefaultCurrencyCode"),Ou=function e(t,n){Object(f.a)(this,e),this.ngModuleFactory=t,this.componentFactories=n},wu=function(e){return new Tc(e)},Cu=wu,xu=function(e){return Promise.resolve(wu(e))},ju=function(e){var t=wu(e),n=zi(Oe(e).declarations).reduce(function(e,t){var n=ke(t);return n&&e.push(new Ec(n)),e},[]);return new Ou(t,n)},Eu=ju,Su=function(e){return Promise.resolve(ju(e))},Au=function(){var e=function(){function e(){Object(f.a)(this,e),this.compileModuleSync=Cu,this.compileModuleAsync=xu,this.compileModuleAndAllComponentsSync=Eu,this.compileModuleAndAllComponentsAsync=Su}return Object(h.a)(e,[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(e){}},{key:"getModuleId",value:function(e){}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e}(),Du=function(){return Promise.resolve(0)}();function Tu(e){"undefined"==typeof Zone?Du.then(function(){e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var Pu=function(){function e(t){var n=t.enableLongStackTrace,i=void 0!==n&&n,r=t.shouldCoalesceEventChangeDetection,a=void 0!==r&&r,o=t.shouldCoalesceRunChangeDetection,s=void 0!==o&&o;if(Object(f.a)(this,e),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Hc(!1),this.onMicrotaskEmpty=new Hc(!1),this.onStable=new Hc(!1),this.onError=new Hc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();var c,u,l=this;l._nesting=0,l._outer=l._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(l._inner=l._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(l._inner=l._inner.fork(Zone.longStackTraceZoneSpec)),l.shouldCoalesceEventChangeDetection=!s&&a,l.shouldCoalesceRunChangeDetection=s,l.lastRequestAnimationFrameId=-1,l.nativeRequestAnimationFrame=function(){var e=ee.requestAnimationFrame,t=ee.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){var n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);var i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,u=function(){!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ee,function(){e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){e.lastRequestAnimationFrameId=-1,Mu(e),Ru(e)},void 0,function(){},function(){})),e.fakeTopEventTask.invoke()}),Mu(e))}(c)},(c=l)._inner=c._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,t,n,i,r,a){try{return Lu(c),e.invokeTask(n,i,r,a)}finally{(c.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||c.shouldCoalesceRunChangeDetection)&&u(),Fu(c)}},onInvoke:function(e,t,n,i,r,a,o){try{return Lu(c),e.invoke(n,i,r,a,o)}finally{c.shouldCoalesceRunChangeDetection&&u(),Fu(c)}},onHasTask:function(e,t,n,i){e.hasTask(n,i),t===n&&("microTask"==i.change?(c._hasPendingMicrotasks=i.microTask,Mu(c),Ru(c)):"macroTask"==i.change&&(c.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,t,n,i){return e.handleError(n,i),c.runOutsideAngular(function(){return c.onError.emit(i)}),!1}})}return Object(h.a)(e,[{key:"run",value:function(e,t,n){return this._inner.run(e,t,n)}},{key:"runTask",value:function(e,t,n,i){var r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+i,e,Iu,Ds,Ds);try{return r.runTask(a,t,n)}finally{r.cancelTask(a)}}},{key:"runGuarded",value:function(e,t,n){return this._inner.runGuarded(e,t,n)}},{key:"runOutsideAngular",value:function(e){return this._outer.run(e)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),e}(),Iu={};function Ru(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(function(){return e.onStable.emit(null)})}finally{e.isStable=!0}}}function Mu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Lu(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Fu(e){e._nesting--,Ru(e)}var Nu=function(){function e(){Object(f.a)(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Hc,this.onMicrotaskEmpty=new Hc,this.onStable=new Hc,this.onError=new Hc}return Object(h.a)(e,[{key:"run",value:function(e,t,n){return e.apply(t,n)}},{key:"runGuarded",value:function(e,t,n){return e.apply(t,n)}},{key:"runOutsideAngular",value:function(e){return e()}},{key:"runTask",value:function(e,t,n,i){return e.apply(t,n)}}]),e}(),Bu=function(){var e=function(){function e(t){var n=this;Object(f.a)(this,e),this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(function(){n.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}return Object(h.a)(e,[{key:"_watchAngularEvents",value:function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.subscribe({next:function(){Pu.assertNotInAngularZone(),Tu(function(){e._isZoneStable=!0,e._runCallbacksIfReady()})}})})}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var e=this;if(this.isStable())Tu(function(){for(;0!==e._callbacks.length;){var t=e._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(e._didWork)}e._didWork=!1});else{var t=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(e){return!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)}),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}}):[]}},{key:"addCallback",value:function(e,t,n){var i=this,r=-1;t&&t>0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(e,t,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(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Bn(Pu))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e}(),Vu=function(){var e=function(){function e(){Object(f.a)(this,e),this._applications=new Map,Ku.addToWindow(this)}return Object(h.a)(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Ku.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e}();function Uu(e){Ku=e}var zu,Ku=new(function(){function e(){Object(f.a)(this,e)}return Object(h.a)(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Hu=!0,Wu=!1;function qu(){return Wu=!0,Hu}function Qu(){if(Wu)throw new Error("Cannot enable prod mode after platform setup.");Hu=!1}var Gu=function(e,t,n){var i=new Tc(n);return Promise.resolve(i)},Yu=new On("AllowMultipleToken"),Zu=function e(t,n){Object(f.a)(this,e),this.name=t,this.token=n};function Xu(e){if(zu&&!zu.destroyed&&!zu.injector.get(Yu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");zu=e.get(tl);var t=e.get(mu,null);return t&&t.forEach(function(e){return e()}),zu}function Ju(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(t),r=new On(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=el();if(!a||a.injector.get(Yu,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var o=n.concat(t).concat({provide:r,useValue:!0},{provide:Da,useValue:"platform"});Xu(Wa.create({providers:o,name:i}))}return $u(r)}}function $u(e){var t=el();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}function el(){return zu&&!zu.destroyed?zu:null}var tl=function(){var e=function(){function e(t){Object(f.a)(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return Object(h.a)(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,i,r=this,a=(i={ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1},"noop"===(n=t?t.ngZone:void 0)?new Nu:("zone.js"===n?void 0:n)||new Pu({enableLongStackTrace:qu(),shouldCoalesceEventChangeDetection:!!(null==i?void 0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void 0:i.ngZoneRunCoalescing)})),o=[{provide:Pu,useValue:a}];return a.run(function(){var t=Wa.create({providers:o,parent:r.injector,name:e.moduleType.name}),n=e.create(t),i=n.injector.get(Ni,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(function(){var e=a.onError.subscribe({next:function(e){i.handleError(e)}});n.onDestroy(function(){rl(r._modules,n),e.unsubscribe()})}),function(e,t,i){try{var a=((o=n.injector.get(fu)).runInitializers(),o.donePromise.then(function(){return ms(n.injector.get(gu,vs)||vs),r._moduleDoBootstrap(n),n}));return ko(a)?a.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):a}catch(s){throw t.runOutsideAngular(function(){return e.handleError(s)}),s}var o}(i,a)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=nl({},n);return Gu(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(il);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(w(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Bn(Wa))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e}();function nl(e,t){return Array.isArray(t)?t.reduce(nl,e):Object.assign(Object.assign({},e),t)}var il=function(){var e=function(){function e(t,n,i,r,a){var o=this;Object(f.a)(this,e),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){o._zone.run(function(){o.tick()})}});var s=new _.a(function(e){o._stable=o._zone.isStable&&!o._zone.hasPendingMacrotasks&&!o._zone.hasPendingMicrotasks,o._zone.runOutsideAngular(function(){e.next(o._stable),e.complete()})}),c=new _.a(function(e){var t;o._zone.runOutsideAngular(function(){t=o._zone.onStable.subscribe(function(){Pu.assertNotInAngularZone(),Tu(function(){o._stable||o._zone.hasPendingMacrotasks||o._zone.hasPendingMicrotasks||(o._stable=!0,e.next(!0))})})});var n=o._zone.onUnstable.subscribe(function(){Pu.assertInAngularZone(),o._stable&&(o._stable=!1,o._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(y.a)(s,c.pipe(Object(g.a)()))}return Object(h.a)(e,[{key:"bootstrap",value:function(e,t){var n,i=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=e instanceof Es?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(vc),a=n.create(Wa.NULL,[],t||n.selector,r),o=a.location.nativeElement,s=a.injector.get(Bu,null),c=s&&a.injector.get(Vu);return s&&c&&c.registerApplication(o,s),a.onDestroy(function(){i.detachView(a.hostView),rl(i.components,a),c&&c.unregisterApplication(o)}),this._loadComponent(a),a}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=Object(o.a)(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(i){n.e(i)}finally{n.f()}}catch(r){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(r)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;rl(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(_u,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Bn(Pu),Bn(Wa),Bn(Ni),Bn(As),Bn(fu))},e.\u0275prov=I({token:e,factory:e.\u0275fac}),e}();function rl(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var al=function(e){Object(d.a)(n,e);var t=Object(p.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(function(e){Object(d.a)(n,e);var t=Object(p.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(ac)),ol=function(e){return null},sl=Ju(null,"core",[{provide:bu,useValue:"unknown"},{provide:tl,deps:[Wa]},{provide:Vu,deps:[]},{provide:yu,deps:[]}]),cl=[{provide:il,useClass:il,deps:[Pu,Wa,Ni,As,fu]},{provide:jc,deps:[Pu],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:fu,useClass:fu,deps:[[new qn,hu]]},{provide:Au,useClass:Au,deps:[]},pu,{provide:Js,useFactory:function(){return uc},deps:[]},{provide:ec,useFactory:function(){return lc},deps:[]},{provide:gu,useFactory:function(e){return ms(e=e||"undefined"!=typeof $localize&&$localize.locale||vs),e},deps:[[new Wn(gu),new qn,new Gn]]},{provide:ku,useValue:"USD"}],ul=function(){var e=function e(t){Object(f.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)(Bn(il))},e.\u0275mod=me({type:e}),e.\u0275inj=R({providers:cl}),e}()},foSv:function(e,t,n){"use strict";function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",function(){return i})},gRHU:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("2fFW"),r=n("NJ4a"),a={closed:!0,next:function(e){},error:function(e){if(i.a.useDeprecatedSynchronousErrorHandling)throw e;Object(r.a)(e)},complete:function(){}}},jZKg:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("HDdC"),r=n("quSY");function a(e,t){return new i.a(function(n){var i=new r.a,a=0;return i.add(t.schedule(function(){a!==e.length?(n.next(e[a++]),n.closed||i.add(this.schedule())):n.complete()})),i})}},jtHE:function(e,t,n){"use strict";n.d(t,"a",function(){return v});var i=n("1OyB"),r=n("vuIU"),a=n("ReuC"),o=n("foSv"),s=n("Ji7U"),c=n("LK+K"),u=n("XNiG"),l=n("qgXg"),h=n("quSY"),f=n("pxpQ"),d=n("9ppp"),p=n("Ylt2"),v=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,o=arguments.length>2?arguments[2]:void 0;return Object(i.a)(this,n),(e=t.call(this)).scheduler=o,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=r<1?1:r,e._windowTime=a<1?1:a,a===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return Object(r.a)(n,[{key:"nextInfiniteTimeWindow",value:function(e){if(!this.isStopped){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}Object(a.a)(Object(o.a)(n.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this.isStopped||(this._events.push(new m(this._getNow(),e)),this._trimBufferThenGetEvents()),Object(a.a)(Object(o.a)(n.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,a=i.length;if(this.closed)throw new d.a;if(this.isStopped||this.hasError?t=h.a.EMPTY:(this.observers.push(e),t=new p.a(this,e)),r&&e.add(e=new f.a(e,r)),n)for(var o=0;o<a&&!e.closed;o++)e.next(i[o]);else for(var s=0;s<a&&!e.closed;s++)e.next(i[s].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t}},{key:"_getNow",value:function(){return(this.scheduler||l.a).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,r=i.length,a=0;a<r&&!(e-i[a].time<n);)a++;return r>t&&(a=Math.max(a,r-t)),a>0&&i.splice(0,a),i}}]),n}(u.a),m=function e(t,n){Object(i.a)(this,e),this.time=t,this.value=n}},kJWO:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},l7GE:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("1OyB"),r=n("vuIU"),a=n("Ji7U"),o=n("LK+K"),s=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return Object(r.a)(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(n("7o/Q").a)},l7P3:function(e,t,n){"use strict";n.d(t,"a",function(){return A}),n.d(t,"b",function(){return S}),n.d(t,"c",function(){return I}),n.d(t,"d",function(){return ne}),n.d(t,"e",function(){return te}),n.d(t,"f",function(){return oe}),n.d(t,"g",function(){return ue}),n.d(t,"h",function(){return de}),n.d(t,"i",function(){return Qe}),n.d(t,"j",function(){return Ge}),n.d(t,"k",function(){return qe}),n.d(t,"l",function(){return ie}),n.d(t,"m",function(){return $}),n.d(t,"n",function(){return j}),n.d(t,"o",function(){return Oe}),n.d(t,"p",function(){return ye}),n("uFwe");var i=n("T5bk"),r=n("ODXe"),a=n("KQm4"),o=n("rePB"),s=n("1OyB"),c=n("vuIU"),u=n("ReuC"),l=n("foSv"),h=n("Ji7U"),f=n("LK+K"),d=n("fXoL"),p=n("2Vo4"),v=n("HDdC"),m=n("XNiG"),b=n("qgXg"),_=n("pxpQ"),y=n("zp1y"),g=n("Kqap"),k=n("lJxs");function O(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.length;if(0===i)throw new Error("list of properties cannot be empty.");return function(e){return Object(k.a)(w(t,i))(e)}}function w(e,t){return function(n){for(var i=n,r=0;r<t;r++){var a=null!=i?i[e[r]]:void 0;if(void 0===a)return;i=a}return i}}var C=n("/uUt"),x={};function j(e,t){if(x[e]=(x[e]||0)+1,"function"==typeof t)return E(e,function(){return Object.assign(Object.assign({},t.apply(void 0,arguments)),{type:e})});switch(t?t._as:"empty"){case"empty":return E(e,function(){return{type:e}});case"props":return E(e,function(t){return Object.assign(Object.assign({},t),{type:e})});default:throw new Error("Unexpected config.")}}function E(e,t){return Object.defineProperty(t,"type",{value:e,writable:!1})}var S="@ngrx/store/init",A=function(){var e=function(e){Object(h.a)(n,e);var t=Object(f.a)(n);function n(){return Object(s.a)(this,n),t.call(this,{type:S})}return Object(c.a)(n,[{key:"next",value:function(e){if("function"==typeof e)throw new TypeError("\n        Dispatch expected an object, instead it received a function.\n        If you're using the createAction function, make sure to invoke the function\n        before dispatching the action. For example, someAction should be someAction().");if(void 0===e)throw new TypeError("Actions must be objects");if(void 0===e.type)throw new TypeError("Actions must have a type property");Object(u.a)(Object(l.a)(n.prototype),"next",this).call(this,e)}},{key:"complete",value:function(){}},{key:"ngOnDestroy",value:function(){Object(u.a)(Object(l.a)(n.prototype),"complete",this).call(this)}}]),n}(p.a);return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=d.Gb({token:e,factory:e.\u0275fac}),e}(),D=[A],T=new d.q("@ngrx/store Internal Root Guard"),P=new d.q("@ngrx/store Internal Initial State"),I=new d.q("@ngrx/store Initial State"),R=new d.q("@ngrx/store Reducer Factory"),M=new d.q("@ngrx/store Internal Reducer Factory Provider"),L=new d.q("@ngrx/store Initial Reducers"),F=new d.q("@ngrx/store Internal Initial Reducers"),N=new d.q("@ngrx/store Store Features"),B=new d.q("@ngrx/store Internal Store Reducers"),V=new d.q("@ngrx/store Internal Feature Reducers"),U=new d.q("@ngrx/store Internal Feature Configs"),z=new d.q("@ngrx/store Internal Store Features"),K=new d.q("@ngrx/store Internal Feature Reducers Token"),H=new d.q("@ngrx/store Feature Reducers"),W=new d.q("@ngrx/store User Provided Meta Reducers"),q=new d.q("@ngrx/store Meta Reducers"),Q=new d.q("@ngrx/store Internal Resolved Meta Reducers"),G=new d.q("@ngrx/store User Runtime Checks Config"),Y=new d.q("@ngrx/store Internal User Runtime Checks Config"),Z=new d.q("@ngrx/store Internal Runtime Checks"),X=new d.q("@ngrx/store Check if Action types are unique");function J(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.keys(e),i={},r=0;r<n.length;r++){var a=n[r];"function"==typeof e[a]&&(i[a]=e[a])}var o=Object.keys(i);return function(e,n){e=void 0===e?t:e;for(var r=!1,a={},s=0;s<o.length;s++){var c=o[s],u=e[c],l=(0,i[c])(u,n);a[c]=l,r=r||l!==u}return r?a:e}}function $(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){if(0===t.length)return e;var n=t[t.length-1];return t.slice(0,-1).reduceRight(function(e,t){return t(e)},n(e))}}function ee(e,t){return Array.isArray(t)&&t.length>0&&(e=$.apply(null,[].concat(Object(a.a)(t),[e]))),function(t,n){var i=e(t);return function(e,t){return i(e=void 0===e?n:e,t)}}}var te=function(e){Object(h.a)(n,e);var t=Object(f.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return n}(v.a),ne=function(e){Object(h.a)(n,e);var t=Object(f.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return n}(A),ie="@ngrx/store/update-reducers",re=function(){var e=function(e){Object(h.a)(n,e);var t=Object(f.a)(n);function n(e,i,r,a){var o;return Object(s.a)(this,n),(o=t.call(this,a(r,i))).dispatcher=e,o.initialState=i,o.reducers=r,o.reducerFactory=a,o}return Object(c.a)(n,[{key:"addFeature",value:function(e){this.addFeatures([e])}},{key:"addFeatures",value:function(e){var t=e.reduce(function(e,t){var n=t.reducers,i=t.reducerFactory,r=t.metaReducers,o=t.initialState,s=t.key,c="function"==typeof n?function(e){var t=Array.isArray(e)&&e.length>0?$.apply(void 0,Object(a.a)(e)):function(e){return e};return function(e,n){return e=t(e),function(t,i){return e(t=void 0===t?n:t,i)}}}(r)(n,o):ee(i,r)(n,o);return e[s]=c,e},{});this.addReducers(t)}},{key:"removeFeature",value:function(e){this.removeFeatures([e])}},{key:"removeFeatures",value:function(e){this.removeReducers(e.map(function(e){return e.key}))}},{key:"addReducer",value:function(e,t){this.addReducers(Object(o.a)({},e,t))}},{key:"addReducers",value:function(e){this.reducers=Object.assign(Object.assign({},this.reducers),e),this.updateReducers(Object.keys(e))}},{key:"removeReducer",value:function(e){this.removeReducers([e])}},{key:"removeReducers",value:function(e){var t=this;e.forEach(function(e){var n,i;t.reducers=(n=t.reducers,i=e,Object.keys(n).filter(function(e){return e!==i}).reduce(function(e,t){return Object.assign(e,Object(o.a)({},t,n[t]))},{}))}),this.updateReducers(e)}},{key:"updateReducers",value:function(e){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:ie,features:e})}},{key:"ngOnDestroy",value:function(){this.complete()}}]),n}(p.a);return e.\u0275fac=function(t){return new(t||e)(d.Ub(ne),d.Ub(I),d.Ub(L),d.Ub(R))},e.\u0275prov=d.Gb({token:e,factory:e.\u0275fac}),e}(),ae=[re,{provide:te,useExisting:re},{provide:ne,useExisting:A}],oe=function(){var e=function(e){Object(h.a)(n,e);var t=Object(f.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"ngOnDestroy",value:function(){this.complete()}}]),n}(m.a);return e.\u0275fac=function(t){return se(t||e)},e.\u0275prov=d.Gb({token:e,factory:e.\u0275fac}),e}(),se=d.Sb(oe),ce=[oe],ue=function(e){Object(h.a)(n,e);var t=Object(f.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return n}(v.a),le=function(){var e=function(e){Object(h.a)(n,e);var t=Object(f.a)(n);function n(e,i,r,a){var o;Object(s.a)(this,n),o=t.call(this,a);var c={state:a},u=e.pipe(Object(_.b)(b.b)).pipe(Object(y.a)(i)).pipe(Object(g.a)(he,c));return o.stateSubscription=u.subscribe(function(e){var t=e.action;o.next(e.state),r.next(t)}),o}return Object(c.a)(n,[{key:"ngOnDestroy",value:function(){this.stateSubscription.unsubscribe(),this.complete()}}]),n}(p.a);return e.\u0275fac=function(t){return new(t||e)(d.Ub(A),d.Ub(te),d.Ub(oe),d.Ub(I))},e.\u0275prov=d.Gb({token:e,factory:e.\u0275fac}),e.INIT=S,e}();function he(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{state:void 0},t=arguments.length>1?arguments[1]:void 0,n=Object(r.a)(t,2),i=n[0],a=n[1],o=e.state;return{state:a(o,i),action:i}}var fe=[le,{provide:ue,useExisting:le}],de=function(){var e=function(e){Object(h.a)(n,e);var t=Object(f.a)(n);function n(e,i,r){var a;return Object(s.a)(this,n),(a=t.call(this)).actionsObserver=i,a.reducerManager=r,a.source=e,a}return Object(c.a)(n,[{key:"select",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return ve.call.apply(ve,[null,e].concat(n))(this)}},{key:"lift",value:function(e){var t=new n(this,this.actionsObserver,this.reducerManager);return t.operator=e,t}},{key:"dispatch",value:function(e){this.actionsObserver.next(e)}},{key:"next",value:function(e){this.actionsObserver.next(e)}},{key:"error",value:function(e){this.actionsObserver.error(e)}},{key:"complete",value:function(){this.actionsObserver.complete()}},{key:"addReducer",value:function(e,t){this.reducerManager.addReducer(e,t)}},{key:"removeReducer",value:function(e){this.reducerManager.removeReducer(e)}}]),n}(v.a);return e.\u0275fac=function(t){return new(t||e)(d.Ub(ue),d.Ub(A),d.Ub(re))},e.\u0275prov=d.Gb({token:e,factory:e.\u0275fac}),e}(),pe=[de];function ve(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return function(n){var r;if("string"==typeof e){var o=[t].concat(i).filter(Boolean);r=n.pipe(O.apply(void 0,[e].concat(Object(a.a)(o))))}else{if("function"!=typeof e)throw new TypeError("Unexpected type '".concat(typeof e,"' in select operator,")+" expected 'string' or 'function'");r=n.pipe(Object(k.a)(function(n){return e(n,t)}))}return r.pipe(Object(C.a)())}}function me(e,t){return e===t}function be(e,t,n){for(var i=0;i<e.length;i++)if(!n(e[i],t[i]))return!0;return!1}function _e(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:me,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:me,r=null,a=null;function o(){r=null,a=null}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;t={result:e}}function c(){t=void 0}function u(){if(void 0!==t)return t.result;if(!r)return a=e.apply(null,arguments),r=arguments,a;if(!be(arguments,r,n))return a;var o=e.apply(null,arguments);return r=arguments,i(a,o)?a:(a=o,o)}return{memoized:u,reset:o,setResult:s,clearResult:c}}function ye(){return ke(_e).apply(void 0,arguments)}function ge(e,t,n,i){if(void 0===n){var r=t.map(function(t){return t(e)});return i.memoized.apply(null,r)}var o=t.map(function(t){return t(e,n)});return i.memoized.apply(null,[].concat(Object(a.a)(o),[n]))}function ke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{stateFn:ge};return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var s=r;if(Array.isArray(s[0])){var c=s,u=Object(i.a)(c),l=u[0],h=u.slice(1);s=[].concat(Object(a.a)(l),Object(a.a)(h))}var f=s.slice(0,s.length-1),d=s[s.length-1],p=f.filter(function(e){return e.release&&"function"==typeof e.release}),v=e(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d.apply(null,t)}),m=_e(function(e,n){return t.stateFn.apply(null,[e,f,n,v])});function b(){m.reset(),v.reset(),p.forEach(function(e){return e.release()})}return Object.assign(m.memoized,{release:b,projector:v.memoized,setResult:m.setResult,clearResult:m.clearResult})}}function Oe(e){return ye(function(t){var n=t[e];return!Object(d.T)()||e in t||console.warn('@ngrx/store: The feature name "'.concat(e,'" does ')+"not exist in the state, therefore createFeatureSelector cannot access it.  Be sure it is imported in a loaded module "+"using StoreModule.forRoot('".concat(e,"', ...) or ")+"StoreModule.forFeature('".concat(e,"', ...).  If the default ")+"state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored."),n},function(e){return e})}var we="https://ngrx.io/guide/store/configuration/runtime-checks";function Ce(e){return void 0===e}function xe(e){return null===e}function je(e){return Array.isArray(e)}function Ee(e){return"string"==typeof e}function Se(e){return"boolean"==typeof e}function Ae(e){return"number"==typeof e}function De(e){return"object"==typeof e&&null!==e}function Te(e){if(!function(e){return De(e)&&!je(e)}(e))return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function Pe(e){return"function"==typeof e}function Ie(e){return Pe(e)&&e.hasOwnProperty("\u0275cmp")}function Re(e){Object.freeze(e);var t=Pe(e);return Object.getOwnPropertyNames(e).forEach(function(n){if(!n.startsWith("\u0275")&&function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,n)&&(!t||"caller"!==n&&"callee"!==n&&"arguments"!==n)){var i=e[n];!De(i)&&!Pe(i)||Object.isFrozen(i)||Re(i)}}),e}function Me(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if((Ce(e)||xe(e))&&0===t.length)return{path:["root"],value:e};var n=Object.keys(e);return n.reduce(function(n,i){if(n)return n;var r=e[i];return Ie(r)?n:!(Ce(r)||xe(r)||Ae(r)||Se(r)||Ee(r)||je(r))&&(Te(r)?Me(r,[].concat(Object(a.a)(t),[i])):{path:[].concat(Object(a.a)(t),[i]),value:r})},!1)}function Le(e,t){if(!1!==e){var n=e.path.join("."),i=new Error("Detected unserializable ".concat(t,' at "').concat(n,'". ').concat(we,"#strict").concat(t,"serializability"));throw i.value=e.value,i.unserializablePath=n,i}}function Fe(e){return Object(d.T)()?Object.assign({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},e):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function Ne(e){var t=e.strictActionSerializability,n=e.strictStateSerializability;return function(e){return t||n?function(e,t){return function(n,i){t.action(i)&&Le(Me(i),"action");var r=e(n,i);return t.state()&&Le(Me(r),"state"),r}}(e,{action:function(e){return t&&!Ve(e)},state:function(){return n}}):e}}function Be(e){var t=e.strictActionImmutability,n=e.strictStateImmutability;return function(e){return t||n?function(e,t){return function(n,i){var r=t.action(i)?Re(i):i,a=e(n,r);return t.state()?Re(a):a}}(e,{action:function(e){return t&&!Ve(e)},state:function(){return n}}):e}}function Ve(e){return e.type.startsWith("@ngrx")}function Ue(e){var t=e.strictActionWithinNgZone;return function(e){return t?function(e,t){return function(n,i){if(t.action(i)&&!d.x.isInAngularZone())throw new Error("Action '".concat(i.type,"' running outside NgZone. ").concat(we,"#strictactionwithinngzone"));return e(n,i)}}(e,{action:function(e){return t&&!Ve(e)}}):e}}function ze(e){return[{provide:Y,useValue:e},{provide:G,useFactory:He,deps:[Y]},{provide:Z,deps:[G],useFactory:Fe},{provide:q,multi:!0,deps:[Z],useFactory:Be},{provide:q,multi:!0,deps:[Z],useFactory:Ne},{provide:q,multi:!0,deps:[Z],useFactory:Ue}]}function Ke(){return[{provide:X,multi:!0,deps:[Z],useFactory:We}]}function He(e){return e}function We(e){if(e.strictActionTypeUniqueness){var t=Object.entries(x).filter(function(e){return Object(r.a)(e,2)[1]>1}).map(function(e){return Object(r.a)(e,1)[0]});if(t.length)throw new Error("Action types are registered more than once, ".concat(t.map(function(e){return'"'.concat(e,'"')}).join(", "),". ").concat(we,"#strictactiontypeuniqueness"))}}var qe=function(){var e=function e(t,n,i,r,a,o){Object(s.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)(d.Ub(A),d.Ub(te),d.Ub(oe),d.Ub(de),d.Ub(T,8),d.Ub(X,8))},e.\u0275mod=d.Ib({type:e}),e.\u0275inj=d.Hb({}),e}(),Qe=function(){var e=function(){function e(t,n,i,r,a){Object(s.a)(this,e),this.features=t,this.featureReducers=n,this.reducerManager=i;var o=t.map(function(e,t){var i=n.shift()[t];return Object.assign(Object.assign({},e),{reducers:i,initialState:Je(e.initialState)})});i.addFeatures(o)}return Object(c.a)(e,[{key:"ngOnDestroy",value:function(){this.reducerManager.removeFeatures(this.features)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(d.Ub(z),d.Ub(H),d.Ub(re),d.Ub(qe),d.Ub(X,8))},e.\u0275mod=d.Ib({type:e}),e.\u0275inj=d.Hb({}),e}(),Ge=function(){var e=function(){function e(){Object(s.a)(this,e)}return Object(c.a)(e,null,[{key:"forRoot",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{ngModule:qe,providers:[{provide:T,useFactory:et,deps:[[de,new d.y,new d.I]]},{provide:P,useValue:t.initialState},{provide:I,useFactory:Je,deps:[P]},{provide:F,useValue:e},{provide:B,useExisting:e instanceof d.q?e:F},{provide:L,deps:[d.r,F,[new d.o(B)]],useFactory:Ye},{provide:W,useValue:t.metaReducers?t.metaReducers:[]},{provide:Q,deps:[q,W],useFactory:$e},{provide:M,useValue:t.reducerFactory?t.reducerFactory:J},{provide:R,deps:[M,Q],useFactory:ee},D,ae,ce,fe,pe,ze(t.runtimeChecks),Ke()]}}},{key:"forFeature",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{ngModule:Qe,providers:[{provide:U,multi:!0,useValue:e instanceof Object?{}:n},{provide:N,multi:!0,useValue:{key:e instanceof Object?e.name:e,reducerFactory:n instanceof d.q||!n.reducerFactory?J:n.reducerFactory,metaReducers:n instanceof d.q||!n.metaReducers?[]:n.metaReducers,initialState:n instanceof d.q||!n.initialState?void 0:n.initialState}},{provide:z,deps:[d.r,U,N],useFactory:Ze},{provide:V,multi:!0,useValue:e instanceof Object?e.reducer:t},{provide:K,multi:!0,useExisting:t instanceof d.q?t:V},{provide:H,multi:!0,deps:[d.r,V,[new d.o(K)]],useFactory:Xe},Ke()]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=d.Ib({type:e}),e.\u0275inj=d.Hb({}),e}();function Ye(e,t){return t instanceof d.q?e.get(t):t}function Ze(e,t,n){return n.map(function(n,i){if(t[i]instanceof d.q){var r=e.get(t[i]);return{key:n.key,reducerFactory:r.reducerFactory?r.reducerFactory:J,metaReducers:r.metaReducers?r.metaReducers:[],initialState:r.initialState}}return n})}function Xe(e,t){return t.map(function(t){return t instanceof d.q?e.get(t):t})}function Je(e){return"function"==typeof e?e():e}function $e(e,t){return e.concat(t)}function et(e){if(e)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature() instead.");return"guarded"}},lJxs:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("JX7q"),r=n("Ji7U"),a=n("LK+K"),o=n("1OyB"),s=n("vuIU"),c=n("7o/Q");function u(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new l(e,t))}}var l=function(){function e(t,n){Object(o.a)(this,e),this.project=t,this.thisArg=n}return Object(s.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new h(e,this.project,this.thisArg))}}]),e}(),h=function(e){Object(r.a)(n,e);var t=Object(a.a)(n);function n(e,r,a){var s;return Object(o.a)(this,n),(s=t.call(this,e)).project=r,s.count=0,s.thisArg=a||Object(i.a)(s),s}return Object(s.a)(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(c.a)},mCNh:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a});var i=n("SpAZ");function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a(t)}function a(e){return 0===e.length?i.a:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}},mlxB:function(e,t,n){"use strict";function i(e){return e instanceof Date&&!isNaN(+e)}n.d(t,"a",function(){return i})},n6bG:function(e,t,n){"use strict";function i(e){return"function"==typeof e}n.d(t,"a",function(){return i})},ngJS:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){return function(t){for(var n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.complete()}}},pLZG:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("Ji7U"),r=n("LK+K"),a=n("1OyB"),o=n("vuIU"),s=n("7o/Q");function c(e,t){return function(n){return n.lift(new u(e,t))}}var u=function(){function e(t,n){Object(a.a)(this,e),this.predicate=t,this.thisArg=n}return Object(o.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.predicate,this.thisArg))}}]),e}(),l=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i,r){var o;return Object(a.a)(this,n),(o=t.call(this,e)).predicate=i,o.thisArg=r,o.count=0,o}return Object(o.a)(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(s.a)},pxpQ:function(e,t,n){"use strict";n.d(t,"b",function(){return u}),n.d(t,"a",function(){return h});var i=n("Ji7U"),r=n("LK+K"),a=n("1OyB"),o=n("vuIU"),s=n("7o/Q"),c=n("WMd4");function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new l(e,t))}}var l=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Object(a.a)(this,e),this.scheduler=t,this.delay=n}return Object(o.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new h(e,this.scheduler,this.delay))}}]),e}(),h=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Object(a.a)(this,n),(r=t.call(this,e)).scheduler=i,r.delay=o,r}return Object(o.a)(n,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new f(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(c.a.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(c.a.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(c.a.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){e.notification.observe(e.destination),this.unsubscribe()}}]),n}(s.a),f=function e(t,n){Object(a.a)(this,e),this.notification=t,this.destination=n}},qgXg:function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"a",function(){return h});var i=n("1OyB"),r=n("vuIU"),a=n("ReuC"),o=n("foSv"),s=n("Ji7U"),c=n("LK+K"),u=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,r){var a;return Object(i.a)(this,n),(a=t.call(this,e,r)).scheduler=e,a.work=r,a}return Object(r.a)(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?Object(a.a)(Object(o.a)(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?Object(a.a)(Object(o.a)(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?Object(a.a)(Object(o.a)(n.prototype),"requestAsyncId",this).call(this,e,t,i):e.flush(this)}}]),n}(n("3N8a").a),l=new(function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return n}(n("IjjT").a))(u),h=l},quSY:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("1OyB"),r=n("vuIU"),a=n("DH7j"),o=n("XoHu"),s=n("n6bG"),c=function(){function e(e){return Error.call(this),this.message=e?"".concat(e.length," errors occurred during unsubscription:\n").concat(e.map(function(e,t){return"".concat(t+1,") ").concat(e.toString())}).join("\n  ")):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),u=function(){var e,t=function(){function e(t){Object(i.a)(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return Object(r.a)(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,i=this._ctorUnsubscribe,r=this._unsubscribe,u=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var h=0;h<n.length;++h)n[h].remove(this);if(Object(s.a)(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(v){t=v instanceof c?l(v.errors):[v]}}if(Object(a.a)(u))for(var f=-1,d=u.length;++f<d;){var p=u[f];if(Object(o.a)(p))try{p.unsubscribe()}catch(v){t=t||[],v instanceof c?t=t.concat(l(v.errors)):t.push(v)}}if(t)throw new c(t)}}},{key:"add",value:function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var i=n;(n=new e)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var r=n._parentOrParents;if(null===r)n._parentOrParents=this;else if(r instanceof e){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}var a=this._subscriptions;return null===a?this._subscriptions=[n]:a.push(n),n}},{key:"remove",value:function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}]),e}();return t.EMPTY=((e=new t).closed=!0,e),t}();function l(e){return e.reduce(function(e,t){return e.concat(t instanceof c?t.errors:t)},[])}},rePB:function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",function(){return i})},s4An:function(e,t,n){"use strict";function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",function(){return i})},tS1D:function(e,t,n){"use strict";n.d(t,"a",function(){return b});var i=n("D0XW"),r=function(){function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e}(),a=n("ReuC"),o=n("foSv"),s=n("Ji7U"),c=n("LK+K"),u=n("1OyB"),l=n("vuIU"),h=n("mlxB"),f=n("zx2A");function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.a;return function(i){var r=Object(h.a)(e),a=r?+e-n.now():Math.abs(e);return i.lift(new p(a,r,t,n))}}var p=function(){function e(t,n,i,r){Object(u.a)(this,e),this.waitFor=t,this.absoluteTimeout=n,this.withObservable=i,this.scheduler=r}return Object(l.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new v(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}]),e}(),v=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,a,o){var s;return Object(u.a)(this,n),(s=t.call(this,e)).absoluteTimeout=i,s.waitFor=r,s.withObservable=a,s.scheduler=o,s.scheduleTimeout(),s}return Object(l.a)(n,[{key:"scheduleTimeout",value:function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(n.dispatchTimeout,this.waitFor,this))}},{key:"_next",value:function(e){this.absoluteTimeout||this.scheduleTimeout(),Object(a.a)(Object(o.a)(n.prototype),"_next",this).call(this,e)}},{key:"_unsubscribe",value:function(){this.action=void 0,this.scheduler=null,this.withObservable=null}}],[{key:"dispatchTimeout",value:function(e){var t=e.withObservable;e._unsubscribeAndRecycle(),e.add(Object(f.c)(t,new f.a(e)))}}]),n}(f.b),m=n("z6cu");function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.a;return d(e,Object(m.a)(new r),t)}},uFwe:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("BsWD");function r(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=Object(i.a)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw o}}}}},vuIU:function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}n.d(t,"a",function(){return r})},w1tV:function(e,t,n){"use strict";n.d(t,"a",function(){return g});var i=n("1OyB"),r=n("vuIU"),a=n("ReuC"),o=n("foSv"),s=n("Ji7U"),c=n("LK+K"),u=n("XNiG"),l=n("HDdC"),h=n("7o/Q"),f=n("quSY");function d(){return function(e){return e.lift(new p(e))}}var p=function(){function e(t){Object(i.a)(this,e),this.connectable=t}return Object(r.a)(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new v(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),v=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,r){var a;return Object(i.a)(this,n),(a=t.call(this,e)).connectable=r,a}return Object(r.a)(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(h.a),m=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,r){var a;return Object(i.a)(this,n),(a=t.call(this)).source=e,a.subjectFactory=r,a._refCount=0,a._isComplete=!1,a}return Object(r.a)(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new f.a).add(this.source.subscribe(new _(this.getSubject(),this))),e.closed&&(this._connection=null,e=f.a.EMPTY)),e}},{key:"refCount",value:function(){return d()(this)}}]),n}(l.a),b=function(){var e=m.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}}(),_=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,r){var a;return Object(i.a)(this,n),(a=t.call(this,e)).connectable=r,a}return Object(r.a)(n,[{key:"_error",value:function(e){this._unsubscribe(),Object(a.a)(Object(o.a)(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),Object(a.a)(Object(o.a)(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(u.b);function y(){return new u.a}function g(){return function(e){return d()((t=y,function(e){var n;n="function"==typeof t?t:function(){return t};var i=Object.create(e,b);return i.source=e,i.subjectFactory=n,i})(e));var t}}},yCtX:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("HDdC"),r=n("ngJS"),a=n("jZKg");function o(e,t){return t?Object(a.a)(e,t):new i.a(Object(r.a)(e))}},"z+Ro":function(e,t,n){"use strict";function i(e){return e&&"function"==typeof e.schedule}n.d(t,"a",function(){return i})},z6cu:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("HDdC");function r(e,t){return new i.a(t?function(n){return t.schedule(a,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function a(e){e.subscriber.error(e.error)}},zP0r:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("Ji7U"),r=n("LK+K"),a=n("1OyB"),o=n("vuIU"),s=n("7o/Q");function c(e){return function(t){return t.lift(new u(e))}}var u=function(){function e(t){Object(a.a)(this,e),this.total=t}return Object(o.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.total))}}]),e}(),l=function(e){Object(i.a)(n,e);var t=Object(r.a)(n);function n(e,i){var r;return Object(a.a)(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return Object(o.a)(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(s.a)},zUnb:function(e,t,n){"use strict";n.r(t);var i=n("ReuC"),r=n("foSv"),a=n("1OyB"),o=n("vuIU"),s=n("Ji7U"),c=n("LK+K"),u=n("uFwe"),l=n("ODXe"),h=n("fXoL"),f=null;function d(){return f}var p=function e(){Object(a.a)(this,e)},v=new h.q("DocumentToken"),m=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(h.Gb)({factory:b,token:e,providedIn:"platform"}),e}();function b(){return Object(h.Ub)(_)}var _=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this))._doc=e,i._init(),i}return Object(o.a)(n,[{key:"_init",value:function(){this.location=d().getLocation(),this._history=d().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return d().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){d().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){d().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(e,t,n){y()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){y()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}}]),n}(m);return e.\u0275fac=function(t){return new(t||e)(h.Ub(v))},e.\u0275prov=Object(h.Gb)({factory:g,token:e,providedIn:"platform"}),e}();function y(){return!!window.history.pushState}function g(){return new _(Object(h.Ub)(v))}function k(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function O(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function w(e){return e&&"?"!==e[0]?"?"+e:e}var C=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(h.Gb)({factory:x,token:e,providedIn:"root"}),e}();function x(e){var t=Object(h.Ub)(v).location;return new E(Object(h.Ub)(m),t&&t.origin||"")}var j=new h.q("appBaseHref"),E=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i){var r;if(Object(a.a)(this,n),(r=t.call(this))._platformLocation=e,null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)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=i,r}return Object(o.a)(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return k(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+w(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+w(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+w(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(C);return e.\u0275fac=function(t){return new(t||e)(h.Ub(m),h.Ub(j,8))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}(),S=function(){var e=function(){function e(t,n){var i=this;Object(a.a)(this,e),this._subject=new h.m,this._urlChangeListeners=[],this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=O(D(r)),this._platformStrategy.onPopState(function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})})}return Object(o.a)(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+w(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,D(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+w(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+w(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(C),h.Ub(m))},e.normalizeQueryParams=w,e.joinWithSlash=k,e.stripTrailingSlash=O,e.\u0275prov=Object(h.Gb)({factory:A,token:e,providedIn:"root"}),e}();function A(){return new S(Object(h.Ub)(C),Object(h.Ub)(m))}function D(e){return e.replace(/\/index.html$/,"")}var T=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}({}),P=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),I=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function R(e,t){var n=Object(h.ib)(e),i=n[h.Y.NumberSymbols][t];if(void 0===i){if(t===I.CurrencyDecimal)return n[h.Y.NumberSymbols][I.Decimal];if(t===I.CurrencyGroup)return n[h.Y.NumberSymbols][I.Group]}return i}var M=h.lb,L=/^(\d+)?\.((\d+)(-(\d+))?)?$/,F=".",N="0",B="#";function V(e){if(0===e.digits[0])return e;var t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}function U(e){var t,n,i,r,a,o=Math.abs(e)+"",s=0;for((n=o.indexOf(F))>-1&&(o=o.replace(F,"")),(i=o.search(/e/i))>0?(n<0&&(n=i),n+=+o.slice(i+1),o=o.substring(0,i)):n<0&&(n=o.length),i=0;o.charAt(i)===N;i++);if(i===(a=o.length))t=[0],n=1;else{for(a--;o.charAt(a)===N;)a--;for(n-=i,t=[],r=0;i<=a;i++,r++)t[r]=Number(o.charAt(i))}return n>22&&(t=t.splice(0,21),s=n-1,n=1),{digits:t,exponent:s,integerLen:n}}function z(e,t,n){if(t>n)throw new Error("The minimum number of digits after fraction (".concat(t,") is higher than the maximum (").concat(n,")."));var i=e.digits,r=i.length-e.integerLen,a=Math.min(Math.max(t,r),n),o=a+e.integerLen,s=i[o];if(o>0){i.splice(Math.max(e.integerLen,o));for(var c=o;c<i.length;c++)i[c]=0}else{r=Math.max(0,r),e.integerLen=1,i.length=Math.max(1,o=a+1),i[0]=0;for(var u=1;u<o;u++)i[u]=0}if(s>=5)if(o-1<0){for(var l=0;l>o;l--)i.unshift(0),e.integerLen++;i.unshift(1),e.integerLen++}else i[o-1]++;for(;r<Math.max(0,a);r++)i.push(0);var h=0!==a,f=t+e.integerLen,d=i.reduceRight(function(e,t,n,i){return i[n]=(t+=e)<10?t:t-10,h&&(0===i[n]&&n>=f?i.pop():h=!1),t>=10?1:0},0);d&&(i.unshift(d),e.integerLen++)}function K(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}var H=function e(){Object(a.a)(this,e)},W=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this)).locale=e,i}return Object(o.a)(n,[{key:"getPluralCategory",value:function(e,t){switch(M(t||this.locale)(e)){case P.Zero:return"zero";case P.One:return"one";case P.Two:return"two";case P.Few:return"few";case P.Many:return"many";default:return"other"}}}]),n}(H);return e.\u0275fac=function(t){return new(t||e)(h.Ub(h.u))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}();function q(e,t){t=encodeURIComponent(t);var n,i=Object(u.a)(e.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,a=r.indexOf("="),o=-1==a?[r,""]:[r.slice(0,a),r.slice(a+1)],s=Object(l.a)(o,2),c=s[1];if(s[0].trim()===t)return decodeURIComponent(c)}}catch(h){i.e(h)}finally{i.f()}return null}var Q=function(){var e=function(){function e(t,n,i,r){Object(a.a)(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return Object(o.a)(e,[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(h.ob)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Object(h.ub)(e.item)));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.s),h.Kb(h.t),h.Kb(h.j),h.Kb(h.C))},e.\u0275dir=h.Fb({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),G=function(){function e(t,n,i,r){Object(a.a)(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return Object(o.a)(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),Y=function(){var e=function(){function e(t,n,i){Object(a.a)(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return Object(o.a)(e,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,i,r){if(null==e.previousIndex){var a=t._viewContainer.createEmbeddedView(t._template,new G(null,t._ngForOf,-1,-1),null===r?void 0:r),o=new Z(e,a);n.push(o)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,r);var c=new Z(e,s);n.push(c)}});for(var i=0;i<n.length;i++)this._perViewChange(n[i].view,n[i].record);for(var r=0,a=this._viewContainer.length;r<a;r++){var o=this._viewContainer.get(r);o.context.index=r,o.context.count=a,o.context.ngForOf=this._ngForOf}e.forEachIdentityChange(function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item})}},{key:"_perViewChange",value:function(e,t){e.context.$implicit=t.item}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.N),h.Kb(h.J),h.Kb(h.s))},e.\u0275dir=h.Fb({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e}(),Z=function e(t,n){Object(a.a)(this,e),this.record=t,this.view=n},X=function(){var e=function(){function e(t,n){Object(a.a)(this,e),this._viewContainer=t,this._context=new J,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return Object(o.a)(e,[{key:"ngIf",set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}},{key:"ngIfThen",set:function(e){$("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(e){$("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}},{key:"_updateView",value: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)))}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.N),h.Kb(h.J))},e.\u0275dir=h.Fb({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e}(),J=function e(){Object(a.a)(this,e),this.$implicit=null,this.ngIf=null};function $(e,t){if(t&&!t.createEmbeddedView)throw new Error("".concat(e," must be a TemplateRef, but received '").concat(Object(h.ub)(t),"'."))}var ee=function(){function e(t,n){Object(a.a)(this,e),this._viewContainerRef=t,this._templateRef=n,this._created=!1}return Object(o.a)(e,[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}]),e}(),te=function(){var e=function(){function e(){Object(a.a)(this,e),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object(o.a)(e,[{key:"ngSwitch",set:function(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}},{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}},{key:"_matchCase",value:function(e){var t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}},{key:"_updateDefaultCases",value:function(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(var t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=h.Fb({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e}(),ne=function(){var e=function(){function e(t,n,i){Object(a.a)(this,e),this.ngSwitch=i,i._addCase(),this._view=new ee(t,n)}return Object(o.a)(e,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.N),h.Kb(h.J),h.Kb(te,9))},e.\u0275dir=h.Fb({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e}(),ie=function(){var e=function e(t,n,i){Object(a.a)(this,e),i._addDefault(new ee(t,n))};return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.N),h.Kb(h.J),h.Kb(te,9))},e.\u0275dir=h.Fb({type:e,selectors:[["","ngSwitchDefault",""]]}),e}();function re(e,t){return Error("InvalidPipeArgument: '".concat(t,"' for pipe '").concat(Object(h.ub)(e),"'"))}var ae=function(){function e(){Object(a.a)(this,e)}return Object(o.a)(e,[{key:"createSubscription",value:function(e,t){return e.subscribe({next:t,error:function(e){throw e}})}},{key:"dispose",value:function(e){e.unsubscribe()}},{key:"onDestroy",value:function(e){e.unsubscribe()}}]),e}(),oe=new(function(){function e(){Object(a.a)(this,e)}return Object(o.a)(e,[{key:"createSubscription",value:function(e,t){return e.then(t,function(e){throw e})}},{key:"dispose",value:function(e){}},{key:"onDestroy",value:function(e){}}]),e}()),se=new ae,ce=function(){var e=function(){function e(t){Object(a.a)(this,e),this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}return Object(o.a)(e,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose()}},{key:"transform",value:function(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}},{key:"_subscribe",value:function(e){var t=this;this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,function(n){return t._updateLatestValue(e,n)})}},{key:"_selectStrategy",value:function(t){if(Object(h.qb)(t))return oe;if(Object(h.rb)(t))return se;throw re(e,t)}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Wb())},e.\u0275pipe=h.Jb({name:"async",type:e,pure:!1}),e}(),ue=function(){var e=function(){function e(t){Object(a.a)(this,e),this._locale=t}return Object(o.a)(e,[{key:"transform",value:function(t,n,i){if(!function(e){return!(null==e||""===e||e!=e)}(t))return null;i=i||this._locale;try{return function(e,t,n){return function(e,t,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s="",c=!1;if(isFinite(e)){var u=U(e);o&&(u=V(u));var l=t.minInt,h=t.minFrac,f=t.maxFrac;if(a){var d=a.match(L);if(null===d)throw new Error("".concat(a," is not a valid digit info"));var p=d[1],v=d[3],m=d[5];null!=p&&(l=K(p)),null!=v&&(h=K(v)),null!=m?f=K(m):null!=v&&h>f&&(f=h)}z(u,h,f);var b=u.digits,_=u.integerLen,y=u.exponent,g=[];for(c=b.every(function(e){return!e});_<l;_++)b.unshift(0);for(;_<0;_++)b.unshift(0);_>0?g=b.splice(_,b.length):(g=b,b=[0]);var k=[];for(b.length>=t.lgSize&&k.unshift(b.splice(-t.lgSize,b.length).join(""));b.length>t.gSize;)k.unshift(b.splice(-t.gSize,b.length).join(""));b.length&&k.unshift(b.join("")),s=k.join(R(n,i)),g.length&&(s+=R(n,r)+g.join("")),y&&(s+=R(n,I.Exponential)+"+"+y)}else s=R(n,I.Infinity);return e<0&&!c?t.negPre+s+t.negSuf:t.posPre+s+t.posSuf}(e,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=e.split(";"),r=i[0],a=i[1],o=-1!==r.indexOf(F)?r.split(F):[r.substring(0,r.lastIndexOf(N)+1),r.substring(r.lastIndexOf(N)+1)],s=o[0],c=o[1]||"";n.posPre=s.substr(0,s.indexOf(B));for(var u=0;u<c.length;u++){var l=c.charAt(u);l===N?n.minFrac=n.maxFrac=u+1:l===B?n.maxFrac=u+1:n.posSuf+=l}var h=s.split(",");if(n.gSize=h[1]?h[1].length:0,n.lgSize=h[2]||h[1]?(h[2]||h[1]).length:0,a){var f=r.length-n.posPre.length-n.posSuf.length,d=a.indexOf(B);n.negPre=a.substr(0,d).replace(/'/g,""),n.negSuf=a.substr(d+f).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}(function(e,t){return Object(h.ib)(e)[h.Y.NumberFormats][t]}(t,T.Decimal),R(t,I.MinusSign)),t,I.Group,I.Decimal,n)}(function(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error("".concat(e," is not a number"));return e}(t),i,n)}catch(r){throw re(e,r.message)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.u))},e.\u0275pipe=h.Jb({name:"number",type:e,pure:!0}),e}(),le=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({providers:[{provide:H,useClass:W}]}),e}();function he(e){return"browser"===e}function fe(e){return"server"===e}var de,pe=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=ve||(ve=document.querySelector("base"))?ve.getAttribute("href"):null;return null==n?null:(t=n,de||(de=document.createElement("a")),de.setAttribute("href",t),"/"===de.pathname.charAt(0)?de.pathname:"/"+de.pathname)}},{key:"resetBaseElement",value:function(){ve=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return q(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,f||(f=e)}}]),n}(function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.call(this)}return Object(o.a)(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(p)),ve=null,me=new h.q("TRANSITION_ID"),be=[{provide:h.c,useFactory:function(e,t,n){return function(){n.get(h.d).donePromise.then(function(){var n=d();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(function(t){return t.getAttribute("ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[me,v,h.r],multi:!0}],_e=function(){function e(){Object(a.a)(this,e)}return Object(o.a)(e,[{key:"addToWindow",value:function(e){h.nb.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},h.nb.getAllAngularTestabilities=function(){return e.getAllTestabilities()},h.nb.getAllAngularRootElements=function(){return e.getAllRootElements()},h.nb.frameworkStabilizers||(h.nb.frameworkStabilizers=[]),h.nb.frameworkStabilizers.push(function(e){var t=h.nb.getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?d().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){Object(h.V)(new e)}}]),e}(),ye=new h.q("EventManagerPlugins"),ge=function(){var e=function(){function e(t,n){var i=this;Object(a.a)(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()}return Object(o.a)(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i<n.length;i++){var r=n[i];if(r.supports(e))return this._eventNameToPlugin.set(e,r),r}throw new Error("No event manager plugin found for event ".concat(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(ye),h.Ub(h.x))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}(),ke=function(){function e(t){Object(a.a)(this,e),this._doc=t}return Object(o.a)(e,[{key:"addGlobalEventListener",value:function(e,t,n){var i=d().getGlobalEventTarget(this._doc,e);if(!i)throw new Error("Unsupported event target ".concat(i," for event ").concat(t));return this.addEventListener(i,t,n)}}]),e}(),Oe=function(){var e=function(){function e(){Object(a.a)(this,e),this._stylesSet=new Set}return Object(o.a)(e,[{key:"addStyles",value:function(e){var t=this,n=new Set;e.forEach(function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))}),this.onStylesAdded(n)}},{key:"onStylesAdded",value:function(e){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}(),we=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this))._doc=e,i._hostNodes=new Map,i._hostNodes.set(e.head,[]),i}return Object(o.a)(n,[{key:"_addStylesToHost",value:function(e,t,n){var i=this;e.forEach(function(e){var r=i._doc.createElement("style");r.textContent=e,n.push(t.appendChild(r))})}},{key:"addHost",value:function(e){var t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}},{key:"removeHost",value:function(e){var t=this._hostNodes.get(e);t&&t.forEach(Ce),this._hostNodes.delete(e)}},{key:"onStylesAdded",value:function(e){var t=this;this._hostNodes.forEach(function(n,i){t._addStylesToHost(e,i,n)})}},{key:"ngOnDestroy",value:function(){this._hostNodes.forEach(function(e){return e.forEach(Ce)})}}]),n}(Oe);return e.\u0275fac=function(t){return new(t||e)(h.Ub(v))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}();function Ce(e){d().remove(e)}var xe={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/"},je=/%COMP%/g,Ee="%COMP%",Se="_nghost-".concat(Ee),Ae="_ngcontent-".concat(Ee);function De(e,t,n){for(var i=0;i<t.length;i++){var r=t[i];Array.isArray(r)?De(e,r,n):(r=r.replace(je,e),n.push(r))}return n}function Te(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var Pe=function(){var e=function(){function e(t,n,i){Object(a.a)(this,e),this.eventManager=t,this.sharedStylesHost=n,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new Ie(t)}return Object(o.a)(e,[{key:"createRenderer",value:function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case h.O.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new Re(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case 1:case h.O.ShadowDom:return new Me(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var i=De(t.id,t.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(ge),h.Ub(we),h.Ub(h.b))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}(),Ie=function(){function e(t){Object(a.a)(this,e),this.eventManager=t,this.data=Object.create(null)}return Object(o.a)(e,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,t){return t?document.createElementNS(xe[t]||t,e):document.createElement(e)}},{key:"createComment",value:function(e){return document.createComment(e)}},{key:"createText",value:function(e){return document.createTextNode(e)}},{key:"appendChild",value:function(e,t){e.appendChild(t)}},{key:"insertBefore",value:function(e,t,n){e&&e.insertBefore(t,n)}},{key:"removeChild",value:function(e,t){e&&e.removeChild(t)}},{key:"selectRootElement",value:function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'.concat(e,'" did not match any elements'));return t||(n.textContent=""),n}},{key:"parentNode",value:function(e){return e.parentNode}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"setAttribute",value:function(e,t,n,i){if(i){t=i+":"+t;var r=xe[i];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}},{key:"removeAttribute",value:function(e,t,n){if(n){var i=xe[n];i?e.removeAttributeNS(i,t):e.removeAttribute("".concat(n,":").concat(t))}else e.removeAttribute(t)}},{key:"addClass",value:function(e,t){e.classList.add(t)}},{key:"removeClass",value:function(e,t){e.classList.remove(t)}},{key:"setStyle",value:function(e,t,n,i){i&(h.E.DashCase|h.E.Important)?e.style.setProperty(t,n,i&h.E.Important?"important":""):e.style[t]=n}},{key:"removeStyle",value:function(e,t,n){n&h.E.DashCase?e.style.removeProperty(t):e.style[t]=""}},{key:"setProperty",value:function(e,t,n){e[t]=n}},{key:"setValue",value:function(e,t){e.nodeValue=t}},{key:"listen",value:function(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Te(n)):this.eventManager.addEventListener(e,t,Te(n))}}]),e}(),Re=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o){var s;Object(a.a)(this,n),(s=t.call(this,e)).component=r;var c=De(o+"-"+r.id,r.styles,[]);return i.addStyles(c),s.contentAttr=Ae.replace(je,o+"-"+r.id),s.hostAttr=Se.replace(je,o+"-"+r.id),s}return Object(o.a)(n,[{key:"applyToHost",value:function(e){Object(i.a)(Object(r.a)(n.prototype),"setAttribute",this).call(this,e,this.hostAttr,"")}},{key:"createElement",value:function(e,t){var a=Object(i.a)(Object(r.a)(n.prototype),"createElement",this).call(this,e,t);return Object(i.a)(Object(r.a)(n.prototype),"setAttribute",this).call(this,a,this.contentAttr,""),a}}]),n}(Ie),Me=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o){var s;Object(a.a)(this,n),(s=t.call(this,e)).sharedStylesHost=i,s.hostEl=r,s.shadowRoot=r.attachShadow({mode:"open"}),s.sharedStylesHost.addHost(s.shadowRoot);for(var c=De(o.id,o.styles,[]),u=0;u<c.length;u++){var l=document.createElement("style");l.textContent=c[u],s.shadowRoot.appendChild(l)}return s}return Object(o.a)(n,[{key:"nodeOrShadowRoot",value:function(e){return e===this.hostEl?this.shadowRoot:e}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(e,t){return Object(i.a)(Object(r.a)(n.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"insertBefore",value:function(e,t,a){return Object(i.a)(Object(r.a)(n.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(e),t,a)}},{key:"removeChild",value:function(e,t){return Object(i.a)(Object(r.a)(n.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"parentNode",value:function(e){return this.nodeOrShadowRoot(Object(i.a)(Object(r.a)(n.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(e)))}}]),n}(Ie),Le=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){return Object(a.a)(this,n),t.call(this,e)}return Object(o.a)(n,[{key:"supports",value:function(e){return!0}},{key:"addEventListener",value:function(e,t,n){var i=this;return e.addEventListener(t,n,!1),function(){return i.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){return e.removeEventListener(t,n)}}]),n}(ke);return e.\u0275fac=function(t){return new(t||e)(h.Ub(v))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}(),Fe=["alt","control","meta","shift"],Ne={"\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"},Be={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"},Ve={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},Ue=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){return Object(a.a)(this,n),t.call(this,e)}return Object(o.a)(n,[{key:"supports",value:function(e){return null!=n.parseEventName(e)}},{key:"addEventListener",value:function(e,t,i){var r=n.parseEventName(t),a=n.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return d().onAndCancel(e,r.domEventName,a)})}}],[{key:"parseEventName",value:function(e){var t=e.toLowerCase().split("."),i=t.shift();if(0===t.length||"keydown"!==i&&"keyup"!==i)return null;var r=n._normalizeKey(t.pop()),a="";if(Fe.forEach(function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),a+=e+".")}),a+=r,0!=t.length||0===r.length)return null;var o={};return o.domEventName=i,o.fullKey=a,o}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Be.hasOwnProperty(t)&&(t=Be[t]))}return Ne[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Fe.forEach(function(i){i!=n&&(0,Ve[i])(e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded(function(){return t(r)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(ke);return e.\u0275fac=function(t){return new(t||e)(h.Ub(v))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}(),ze=[{provide:h.z,useValue:"browser"},{provide:h.A,useValue:function(){pe.makeCurrent(),_e.init()},multi:!0},{provide:v,useFactory:function(){return Object(h.tb)(document),document},deps:[]}],Ke=Object(h.P)(h.U,"browser",ze),He=[[],{provide:h.X,useValue:"root"},{provide:h.l,useFactory:function(){return new h.l},deps:[]},{provide:ye,useClass:Le,multi:!0,deps:[v,h.x,h.z]},{provide:ye,useClass:Ue,multi:!0,deps:[v]},[],{provide:Pe,useClass:Pe,deps:[ge,we,h.b]},{provide:h.D,useExisting:Pe},{provide:Oe,useExisting:we},{provide:we,useClass:we,deps:[v]},{provide:h.K,useClass:h.K,deps:[h.x]},{provide:ge,useClass:ge,deps:[ye,h.x]},[]],We=function(){var e=function(){function e(t){if(Object(a.a)(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return Object(o.a)(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:h.b,useValue:t.appId},{provide:me,useExisting:h.b},be]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(e,12))},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({providers:He,imports:[le,h.e]}),e}();"undefined"!=typeof window&&window;var qe=n("KQm4"),Qe=n("LRne"),Ge=n("HDdC"),Ye=n("bOdf"),Ze=n("pLZG"),Xe=n("lJxs"),Je=function e(){Object(a.a)(this,e)},$e=function e(){Object(a.a)(this,e)},et=function(){function e(t){var n=this;Object(a.a)(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var i=e.slice(0,t),r=i.toLowerCase(),a=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(a):n.headers.set(r,[a])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return Object(o.a)(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,Object(qe.a)(n)),this.headers.set(t,i);break;case"d":var r=e.value;if(r){var a=this.headers.get(t);if(!a)return;0===(a=a.filter(function(e){return-1===r.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,a)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),tt=function(){function e(){Object(a.a)(this,e)}return Object(o.a)(e,[{key:"encodeKey",value:function(e){return it(e)}},{key:"encodeValue",value:function(e){return it(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function nt(e,t){var n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(e){var i=e.indexOf("="),r=-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],a=Object(l.a)(r,2),o=a[0],s=a[1],c=n.get(o)||[];c.push(s),n.set(o,c)}),n}function it(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var rt=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Object(a.a)(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new tt,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=nt(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(e){var i=n.fromObject[e];t.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}return Object(o.a)(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var i=e[n];Array.isArray(i)?i.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(t.value);-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}();function at(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function ot(e){return"undefined"!=typeof Blob&&e instanceof Blob}function st(e){return"undefined"!=typeof FormData&&e instanceof FormData}var ct=function(){function e(t,n,i,r){var o;if(Object(a.a)(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new et),this.params){var s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{var c=n.indexOf("?");this.urlWithParams=n+(-1===c?"?":c<n.length-1?"&":"")+s}}else this.params=new rt,this.urlWithParams=n}return Object(o.a)(e,[{key:"serializeBody",value:function(){return null===this.body?null:at(this.body)||ot(this.body)||st(this.body)||"string"==typeof this.body?this.body:this.body instanceof rt?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||st(this.body)?null:ot(this.body)?this.body.type||null:at(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof rt?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}},{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,i=t.url||this.url,r=t.responseType||this.responseType,a=void 0!==t.body?t.body:this.body,o=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,c=t.headers||this.headers,u=t.params||this.params;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce(function(e,n){return e.set(n,t.setHeaders[n])},c)),t.setParams&&(u=Object.keys(t.setParams).reduce(function(e,n){return e.set(n,t.setParams[n])},u)),new e(n,i,a,{params:u,headers:c,reportProgress:s,responseType:r,withCredentials:o})}}]),e}(),ut=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),lt=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";Object(a.a)(this,e),this.headers=t.headers||new et,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},ht=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a.a)(this,n),(e=t.call(this,i)).type=ut.ResponseHeader,e}return Object(o.a)(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(lt),ft=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a.a)(this,n),(e=t.call(this,i)).type=ut.Response,e.body=void 0!==i.body?i.body:null,e}return Object(o.a)(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(lt),dt=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return n}(lt);function pt(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var vt=function(){var e=function(){function e(t){Object(a.a)(this,e),this.handler=t}return Object(o.a)(e,[{key:"request",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof ct)n=e;else{var a=void 0;a=r.headers instanceof et?r.headers:new et(r.headers);var o=void 0;r.params&&(o=r.params instanceof rt?r.params:new rt({fromObject:r.params})),n=new ct(e,t,void 0!==r.body?r.body:null,{headers:a,params:o,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}var s=Object(Qe.a)(n).pipe(Object(Ye.a)(function(e){return i.handler.handle(e)}));if(e instanceof ct||"events"===r.observe)return s;var c=s.pipe(Object(Ze.a)(function(e){return e instanceof ft}));switch(r.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return c.pipe(Object(Xe.a)(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return c.pipe(Object(Xe.a)(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return c.pipe(Object(Xe.a)(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return c.pipe(Object(Xe.a)(function(e){return e.body}))}case"response":return c;default:throw new Error("Unreachable: unhandled observe type ".concat(r.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new rt).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,pt(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,pt(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,pt(n,t))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(Je))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}(),mt=function(){function e(t,n){Object(a.a)(this,e),this.next=t,this.interceptor=n}return Object(o.a)(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),bt=new h.q("HTTP_INTERCEPTORS"),_t=function(){var e=function(){function e(){Object(a.a)(this,e)}return Object(o.a)(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}(),yt=/^\)\]\}',?\n/,gt=function e(){Object(a.a)(this,e)},kt=function(){var e=function(){function e(){Object(a.a)(this,e)}return Object(o.a)(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}(),Ot=function(){var e=function(){function e(t){Object(a.a)(this,e),this.xhrFactory=t}return Object(o.a)(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Ge.a(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var a=e.responseType.toLowerCase();i.responseType="json"!==a?a:"text"}var o=e.serializeBody(),s=null,c=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new et(i.getAllResponseHeaders()),a=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new ht({headers:r,status:t,statusText:n,url:a})},u=function(){var t=c(),r=t.headers,a=t.status,o=t.statusText,s=t.url,u=null;204!==a&&(u=void 0===i.response?i.responseText:i.response),0===a&&(a=u?200:0);var l=a>=200&&a<300;if("json"===e.responseType&&"string"==typeof u){var h=u;u=u.replace(yt,"");try{u=""!==u?JSON.parse(u):null}catch(f){u=h,l&&(l=!1,u={error:f,text:u})}}l?(n.next(new ft({body:u,headers:r,status:a,statusText:o,url:s||void 0})),n.complete()):n.error(new dt({error:u,headers:r,status:a,statusText:o,url:s||void 0}))},l=function(e){var t=c(),r=new dt({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t.url||void 0});n.error(r)},h=!1,f=function(t){h||(n.next(c()),h=!0);var r={type:ut.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},d=function(e){var t={type:ut.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",u),i.addEventListener("error",l),i.addEventListener("timeout",l),i.addEventListener("abort",l),e.reportProgress&&(i.addEventListener("progress",f),null!==o&&i.upload&&i.upload.addEventListener("progress",d)),i.send(o),n.next({type:ut.Sent}),function(){i.removeEventListener("error",l),i.removeEventListener("abort",l),i.removeEventListener("load",u),i.removeEventListener("timeout",l),e.reportProgress&&(i.removeEventListener("progress",f),null!==o&&i.upload&&i.upload.removeEventListener("progress",d)),i.readyState!==i.DONE&&i.abort()}})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(gt))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}(),wt=new h.q("XSRF_COOKIE_NAME"),Ct=new h.q("XSRF_HEADER_NAME"),xt=function e(){Object(a.a)(this,e)},jt=function(){var e=function(){function e(t,n,i){Object(a.a)(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return Object(o.a)(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=q(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(v),h.Ub(h.z),h.Ub(wt))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}(),Et=function(){var e=function(){function e(t,n){Object(a.a)(this,e),this.tokenService=t,this.headerName=n}return Object(o.a)(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(xt),h.Ub(Ct))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}(),St=function(){var e=function(){function e(t,n){Object(a.a)(this,e),this.backend=t,this.injector=n,this.chain=null}return Object(o.a)(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(bt,[]);this.chain=t.reduceRight(function(e,t){return new mt(e,t)},this.backend)}return this.chain.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub($e),h.Ub(h.r))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}(),At=function(){var e=function(){function e(){Object(a.a)(this,e)}return Object(o.a)(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:Et,useClass:_t}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:wt,useValue:t.cookieName}:[],t.headerName?{provide:Ct,useValue:t.headerName}:[]]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({providers:[Et,{provide:bt,useExisting:Et,multi:!0},{provide:xt,useClass:jt},{provide:wt,useValue:"XSRF-TOKEN"},{provide:Ct,useValue:"X-XSRF-TOKEN"}]}),e}(),Dt=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({providers:[vt,{provide:Je,useClass:St},Ot,{provide:$e,useExisting:Ot},kt,{provide:gt,useExisting:kt}],imports:[[At.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}(),Tt=function(){function e(e){this.httpClient=e,this.options={withCredentials:!0}}return e.prototype.getProjectCount=function(){return this.httpClient.get("/group-project-search/project-count/")},e.\u0275fac=function(t){return new(t||e)(h.Ub(vt))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),Pt=n("T5bk"),It=(n("rePB"),n("JX7q")),Rt=n("XNiG"),Mt=n("2Vo4"),Lt=n("VRyK");n("3N8a"),n("IjjT");var Ft=n("DH7j"),Nt=n("n6bG");function Bt(e,t,n,i){return Object(Nt.a)(n)&&(i=n,n=void 0),i?Bt(e,t,n).pipe(Object(Xe.a)(function(e){return Object(Ft.a)(e)?i.apply(void 0,Object(qe.a)(e)):i(e)})):new Ge.a(function(i){Vt(e,t,function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},i,n)})}function Vt(e,t,n,i,r){var a;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var o=e;e.addEventListener(t,n,r),a=function(){return o.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),a=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var c=e;e.addListener(t,n),a=function(){return c.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var u=0,l=e.length;u<l;u++)Vt(e[u],t,n,i,r)}i.add(a)}var Ut=n("Kj3r"),zt=n("eIep"),Kt=n("1G5W"),Ht=n("IzEk"),Wt=n("7o/Q");function qt(){}function Qt(e,t,n){return function(i){return i.lift(new Gt(e,t,n))}}var Gt=function(){function e(t,n,i){Object(a.a)(this,e),this.nextOrObserver=t,this.error=n,this.complete=i}return Object(o.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new Yt(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),Yt=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o){var s;return Object(a.a)(this,n),(s=t.call(this,e))._tapNext=qt,s._tapError=qt,s._tapComplete=qt,s._tapError=r||qt,s._tapComplete=o||qt,Object(Nt.a)(i)?(s._context=Object(It.a)(s),s._tapNext=i):i&&(s._context=i,s._tapNext=i.next||qt,s._tapError=i.error||qt,s._tapComplete=i.complete||qt),s}return Object(o.a)(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(Wt.a),Zt={provide:h.a,useFactory:function(e,t){return function(){if(he(t)){var n=Array.from(e.querySelectorAll("[class*=".concat(Xt,"]"))),i=/\bflex-layout-.+?\b/g;n.forEach(function(e){e.classList.contains("".concat(Xt,"ssr"))&&e.parentNode?e.parentNode.removeChild(e):e.className.replace(i,"")})}}},deps:[v,h.z],multi:!0},Xt="flex-layout-",Jt=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({providers:[Zt]}),e}(),$t=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;Object(a.a)(this,e),this.matches=t,this.mediaQuery=n,this.mqAlias=i,this.suffix=r,this.priority=o,this.property=""}return Object(o.a)(e,[{key:"clone",value:function(){return new e(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}]),e}(),en=function(){var e=function(){function e(){Object(a.a)(this,e),this.stylesheet=new Map}return Object(o.a)(e,[{key:"addStyleToElement",value:function(e,t,n){var i=this.stylesheet.get(e);i?i.set(t,n):this.stylesheet.set(e,new Map([[t,n]]))}},{key:"clearStyles",value:function(){this.stylesheet.clear()}},{key:"getStyleForElement",value:function(e,t){var n=this.stylesheet.get(e),i="";if(n){var r=n.get(t);"number"!=typeof r&&"string"!=typeof r||(i=r+"")}return i}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(h.Gb)({factory:function(){return new e},token:e,providedIn:"root"}),e}(),tn={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},nn=new h.q("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return tn}}),rn=new h.q("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),an=new h.q("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}});function on(e,t){return e=e?e.clone():new $t,t&&(e.mqAlias=t.alias,e.mediaQuery=t.mediaQuery,e.suffix=t.suffix,e.priority=t.priority),e}var sn="inline",cn=["row","column","row-reverse","column-reverse"];function un(e){var t=function(e){var t=(e=e?e.toLowerCase():"").split(" "),n=Object(l.a)(t,3),i=n[0],r=n[1],a=n[2];return cn.find(function(e){return e===i})||(i=cn[0]),r===sn&&(r=a!==sn?a:"",a=sn),[i,ln(r),!!a]}(e),n=Object(l.a)(t,3);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{display:arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":t||null}}(n[0],n[1],n[2])}function ln(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}var hn=function(){var e=function(){function e(t,n,i,r){Object(a.a)(this,e),this.elementRef=t,this.styleBuilder=n,this.styler=i,this.marshal=r,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new Rt.a,this.styleCache=new Map}return Object(o.a)(e,[{key:"parentElement",get:function(){return this.elementRef.nativeElement.parentElement}},{key:"nativeElement",get:function(){return this.elementRef.nativeElement}},{key:"activatedValue",get:function(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)},set:function(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}},{key:"ngOnChanges",value:function(e){var t=this;Object.keys(e).forEach(function(n){if(-1!==t.inputs.indexOf(n)){var i=n.split(".").slice(1).join(".");t.setValue(e[n].currentValue,i)}})}},{key:"ngOnDestroy",value:function(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}},{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}},{key:"addStyles",value:function(e,t){var n=this.styleBuilder,i=n.shouldCache,r=this.styleCache.get(e);r&&i||(r=n.buildStyles(e,t),i&&this.styleCache.set(e,r)),this.mru=Object.assign({},r),this.applyStyleToElement(r),n.sideEffect(e,r,t)}},{key:"clearStyles",value:function(){var e=this;Object.keys(this.mru).forEach(function(t){e.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}},{key:"triggerUpdate",value:function(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}},{key:"getFlexFlowDirection",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var n=this.styler.getFlowDirection(e),i=Object(l.a)(n,2),r=i[0],a=i[1];if(!a&&t){var o=un(r),s=[e];this.styler.applyStyleToElements(o,s)}return r.trim()}return"row"}},{key:"hasWrap",value:function(e){return this.styler.hasWrap(e)}},{key:"applyStyleToElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nativeElement;this.styler.applyStyleToElement(n,e,t)}},{key:"setValue",value:function(e,t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,t)}},{key:"updateWithValue",value:function(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}]),e}();return e.\u0275fac=function(e){h.Xb()},e.\u0275dir=h.Fb({type:e,features:[h.xb]}),e}(),fn=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],dn="(orientation: portrait) and (max-width: 599.98px)",pn="(orientation: landscape) and (max-width: 959.98px)",vn="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",mn="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",bn="(orientation: portrait) and (min-width: 840px)",_n="(orientation: landscape) and (min-width: 1280px)",yn={HANDSET:"".concat(dn,", ").concat(pn),TABLET:"".concat(vn," , ").concat(mn),WEB:"".concat(bn,", ").concat(_n," "),HANDSET_PORTRAIT:"".concat(dn),TABLET_PORTRAIT:"".concat(vn," "),WEB_PORTRAIT:"".concat(bn),HANDSET_LANDSCAPE:"".concat(pn),TABLET_LANDSCAPE:"".concat(mn),WEB_LANDSCAPE:"".concat(_n)},gn=[{alias:"handset",priority:2e3,mediaQuery:yn.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:yn.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:yn.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:yn.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:yn.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:yn.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:yn.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:yn.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:yn.WEB_PORTRAIT,overlapping:!0}];function kn(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];for(var r=0,a=n;r<a.length;r++){var o=a[r];if(null!=o)for(var s in o)o.hasOwnProperty(s)&&(e[s]=o[s])}return e}var On=/(\.|-|_)/g;function wn(e){var t=e.length>0?e.charAt(0):"",n=e.length>1?e.slice(1):"";return t.toUpperCase()+n}function Cn(e){return e.forEach(function(e){e.suffix||(e.suffix=e.alias.replace(On,"|").split("|").map(wn).join(""),e.overlapping=!!e.overlapping)}),e}var xn=new h.q("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var e=Object(h.S)(an),t=Object(h.S)(nn),n=[].concat.apply([],(e||[]).map(function(e){return Array.isArray(e)?e:[e]}));return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};return e.forEach(function(e){n[e.alias]=e}),t.forEach(function(e){n[e.alias]?kn(n[e.alias],e):n[e.alias]=e}),Cn(Object.keys(n).map(function(e){return n[e]}))}((t.disableDefaultBps?[]:fn).concat(t.addOrientationBps?gn:[]),n)}});function jn(e,t){return(t&&t.priority||0)-(e&&e.priority||0)}function En(e,t){return(e.priority||0)-(t.priority||0)}var Sn=function(){var e=function(){function e(t){Object(a.a)(this,e),this.findByMap=new Map,this.items=Object(qe.a)(t).sort(En)}return Object(o.a)(e,[{key:"findByAlias",value:function(e){return e?this.findWithPredicate(e,function(t){return t.alias==e}):null}},{key:"findByQuery",value:function(e){return this.findWithPredicate(e,function(t){return t.mediaQuery==e})}},{key:"overlappings",get:function(){return this.items.filter(function(e){return 1==e.overlapping})}},{key:"aliases",get:function(){return this.items.map(function(e){return e.alias})}},{key:"suffixes",get:function(){return this.items.map(function(e){return e.suffix?e.suffix:""})}},{key:"findWithPredicate",value:function(e,t){var n=this.findByMap.get(e);return n||(n=this.items.find(t)||null,this.findByMap.set(e,n)),n||null}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(xn))},e.\u0275prov=Object(h.Gb)({factory:function(){return new e(Object(h.Ub)(xn))},token:e,providedIn:"root"}),e}(),An=function(){var e=function(){function e(t,n,i){Object(a.a)(this,e),this._zone=t,this._platformId=n,this._document=i,this.source=new Mt.a(new $t(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}return Object(o.a)(e,[{key:"activations",get:function(){var e=[];return this.registry.forEach(function(t,n){t.matches&&e.push(n)}),e}},{key:"isActive",value:function(e){var t=this.registry.get(e);return t?t.matches:this.registerQuery(e).some(function(e){return e.matches})}},{key:"observe",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e&&e.length){var i=this._observable$.pipe(Object(Ze.a)(function(t){return!n||e.indexOf(t.mediaQuery)>-1})),r=new Ge.a(function(n){var i=t.registerQuery(e);if(i.length){var r=i.pop();i.forEach(function(e){n.next(e)}),t.source.next(r)}n.complete()});return Object(Lt.a)(r,i)}return this._observable$}},{key:"registerQuery",value:function(e){var t=this,n=Array.isArray(e)?e:[e],i=[];return function(e,t){var n=e.filter(function(e){return!Dn[e]});if(n.length>0){var i=n.join(", ");try{var r=t.createElement("style");if(r.setAttribute("type","text/css"),!r.styleSheet){var a="\n/*\n  @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n  see http://bit.ly/2sd4HMP\n*/\n@media ".concat(i," {.fx-query-test{ }}\n");r.appendChild(t.createTextNode(a))}t.head.appendChild(r),n.forEach(function(e){return Dn[e]=r})}catch(o){console.error(o)}}}(n,this._document),n.forEach(function(e){var n=function(n){t._zone.run(function(){return t.source.next(new $t(n.matches,e))})},r=t.registry.get(e);r||((r=t.buildMQL(e)).addListener(n),t.pendingRemoveListenerFns.push(function(){return r.removeListener(n)}),t.registry.set(e,r)),r.matches&&i.push(new $t(!0,e))}),i}},{key:"ngOnDestroy",value:function(){for(var e;e=this.pendingRemoveListenerFns.pop();)e()}},{key:"buildMQL",value:function(e){return function(e,t){return t&&window.matchMedia("all").addListener?window.matchMedia(e):{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){},onchange:null,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!1}}}(e,he(this._platformId))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(h.x),h.Ub(h.z),h.Ub(v))},e.\u0275prov=Object(h.Gb)({factory:function(){return new e(Object(h.Ub)(h.x),Object(h.Ub)(h.z),Object(h.Ub)(v))},token:e,providedIn:"root"}),e}(),Dn={},Tn="print",Pn={alias:Tn,mediaQuery:Tn,priority:1e3},In=function(){var e=function(){function e(t,n,i){Object(a.a)(this,e),this.breakpoints=t,this.layoutConfig=n,this._document=i,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new Rn,this.deactivations=[]}return Object(o.a)(e,[{key:"withPrintQuery",value:function(e){return[].concat(Object(qe.a)(e),[Tn])}},{key:"isPrintEvent",value:function(e){return e.mediaQuery.startsWith(Tn)}},{key:"printAlias",get:function(){return this.layoutConfig.printWithBreakpoints||[]}},{key:"printBreakPoints",get:function(){var e=this;return this.printAlias.map(function(t){return e.breakpoints.findByAlias(t)}).filter(function(e){return null!==e})}},{key:"getEventBreakpoints",value:function(e){var t=this.breakpoints.findByQuery(e.mediaQuery);return(t?[].concat(Object(qe.a)(this.printBreakPoints),[t]):this.printBreakPoints).sort(jn)}},{key:"updateEvent",value:function(e){var t=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(t=this.getEventBreakpoints(e)[0],e.mediaQuery=t?t.mediaQuery:""),on(e,t)}},{key:"registerBeforeAfterPrintHooks",value:function(e){var t=this;if(this._document.defaultView&&!this.registeredBeforeAfterPrintHooks){this.registeredBeforeAfterPrintHooks=!0;var n=function(){t.isPrinting||(t.isPrintingBeforeAfterEvent=!0,t.startPrinting(e,t.getEventBreakpoints(new $t(!0,Tn))),e.updateStyles())},i=function(){t.isPrintingBeforeAfterEvent=!1,t.isPrinting&&(t.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",n),this._document.defaultView.addEventListener("afterprint",i),this.beforePrintEventListeners.push(n),this.afterPrintEventListeners.push(i)}}},{key:"interceptEvents",value:function(e){var t=this;return this.registerBeforeAfterPrintHooks(e),function(n){t.isPrintEvent(n)?n.matches&&!t.isPrinting?(t.startPrinting(e,t.getEventBreakpoints(n)),e.updateStyles()):n.matches||!t.isPrinting||t.isPrintingBeforeAfterEvent||(t.stopPrinting(e),e.updateStyles()):t.collectActivations(n)}}},{key:"blockPropagation",value:function(){var e=this;return function(t){return!(e.isPrinting||e.isPrintEvent(t))}}},{key:"startPrinting",value:function(e,t){this.isPrinting=!0,e.activatedBreakpoints=this.queue.addPrintBreakpoints(t)}},{key:"stopPrinting",value:function(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}},{key:"collectActivations",value:function(e){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(e.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{var t=this.breakpoints.findByQuery(e.mediaQuery);t&&(this.deactivations.push(t),this.deactivations.sort(jn))}}},{key:"ngOnDestroy",value:function(){var e=this;this.beforePrintEventListeners.forEach(function(t){return e._document.defaultView.removeEventListener("beforeprint",t)}),this.afterPrintEventListeners.forEach(function(t){return e._document.defaultView.removeEventListener("afterprint",t)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(Sn),h.Ub(nn),h.Ub(v))},e.\u0275prov=Object(h.Gb)({factory:function(){return new e(Object(h.Ub)(Sn),Object(h.Ub)(nn),Object(h.Ub)(v))},token:e,providedIn:"root"}),e}(),Rn=function(){function e(){Object(a.a)(this,e),this.printBreakpoints=[]}return Object(o.a)(e,[{key:"addPrintBreakpoints",value:function(e){var t=this;return e.push(Pn),e.sort(jn),e.forEach(function(e){return t.addBreakpoint(e)}),this.printBreakpoints}},{key:"addBreakpoint",value:function(e){e&&void 0===this.printBreakpoints.find(function(t){return t.mediaQuery===e.mediaQuery})&&(this.printBreakpoints=function(e){return!!e&&e.mediaQuery.startsWith(Tn)}(e)?[e].concat(Object(qe.a)(this.printBreakpoints)):[].concat(Object(qe.a)(this.printBreakpoints),[e]))}},{key:"clear",value:function(){this.printBreakpoints=[]}}]),e}();function Mn(e){for(var t in e){var n=e[t]||"";switch(t){case"display":e.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":e["-webkit-"+t]=n;break;case"flex-direction":e["-webkit-flex-direction"]=n=n||"row",e["flex-direction"]=n;break;case"order":e.order=e["-webkit-"+t]=isNaN(+n)?"0":n}}return e}var Ln=function(){var e=function(){function e(t,n,i,r){Object(a.a)(this,e),this._serverStylesheet=t,this._serverModuleLoaded=n,this._platformId=i,this.layoutConfig=r}return Object(o.a)(e,[{key:"applyStyleToElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i={};"string"==typeof t&&(i[t]=n,t=i),i=this.layoutConfig.disableVendorPrefixes?t:Mn(t),this._applyMultiValueStyleToElement(i,e)}},{key:"applyStyleToElements",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=this.layoutConfig.disableVendorPrefixes?e:Mn(e);n.forEach(function(e){t._applyMultiValueStyleToElement(i,e)})}},{key:"getFlowDirection",value:function(e){var t="flex-direction",n=this.lookupStyle(e,t);return[n||"row",this.lookupInlineStyle(e,t)||fe(this._platformId)&&this._serverModuleLoaded?n:""]}},{key:"hasWrap",value:function(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}},{key:"lookupAttributeValue",value:function(e,t){return e.getAttribute(t)||""}},{key:"lookupInlineStyle",value:function(e,t){return he(this._platformId)?e.style.getPropertyValue(t):this._getServerStyle(e,t)}},{key:"lookupStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i="";if(e){var r=i=this.lookupInlineStyle(e,t);r||(he(this._platformId)?n||(i=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(i=this._serverStylesheet.getStyleForElement(e,t)))}return i?i.trim():""}},{key:"_applyMultiValueStyleToElement",value:function(e,t){var n=this;Object.keys(e).sort().forEach(function(i){var r=e[i],a=Array.isArray(r)?r:[r];a.sort();var o,s=Object(u.a)(a);try{for(s.s();!(o=s.n()).done;){var c=o.value;c=c?c+"":"",he(n._platformId)||!n._serverModuleLoaded?he(n._platformId)?t.style.setProperty(i,c):n._setServerStyle(t,i,c):n._serverStylesheet.addStyleToElement(t,i,c)}}catch(l){s.e(l)}finally{s.f()}})}},{key:"_setServerStyle",value:function(e,t,n){t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var i=this._readStyleAttribute(e);i[t]=n||"",this._writeStyleAttribute(e,i)}},{key:"_getServerStyle",value:function(e,t){return this._readStyleAttribute(e)[t]||""}},{key:"_readStyleAttribute",value:function(e){var t={},n=e.getAttribute("style");if(n)for(var i=n.split(/;+/g),r=0;r<i.length;r++){var a=i[r].trim();if(a.length>0){var o=a.indexOf(":");if(-1===o)throw new Error("Invalid CSS style: ".concat(a));t[a.substr(0,o).trim()]=a.substr(o+1).trim()}}return t}},{key:"_writeStyleAttribute",value:function(e,t){var n="";for(var i in t)t[i]&&(n+=i+":"+t[i]+";");e.setAttribute("style",n)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(en),h.Ub(rn),h.Ub(h.z),h.Ub(nn))},e.\u0275prov=Object(h.Gb)({factory:function(){return new e(Object(h.Ub)(en),Object(h.Ub)(rn),Object(h.Ub)(h.z),Object(h.Ub)(nn))},token:e,providedIn:"root"}),e}(),Fn=function(){function e(){Object(a.a)(this,e),this.shouldCache=!0}return Object(o.a)(e,[{key:"sideEffect",value:function(e,t,n){}}]),e}();function Nn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1",i=[t,n,e],r=e.indexOf("calc");if(r>0){i[2]=Bn(e.substring(r).trim());var a=e.substr(0,r).trim().split(" ");2==a.length&&(i[0]=a[0],i[1]=a[1])}else if(0==r)i[2]=Bn(e.trim());else{var o=e.split(" ");i=3===o.length?o:[t,n,e]}return i}function Bn(e){return e.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}var Vn=function(){var e=function(){function e(t,n,i){Object(a.a)(this,e),this.matchMedia=t,this.breakpoints=n,this.hook=i,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new Rt.a,this.observeActivations()}return Object(o.a)(e,[{key:"activatedAlias",get:function(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}},{key:"onMediaChange",value:function(e){var t=this.findByQuery(e.mediaQuery);t&&((e=on(e,t)).matches&&-1===this.activatedBreakpoints.indexOf(t)?(this.activatedBreakpoints.push(t),this.activatedBreakpoints.sort(jn),this.updateStyles()):e.matches||-1===this.activatedBreakpoints.indexOf(t)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(t),1),this.activatedBreakpoints.sort(jn),this.updateStyles()))}},{key:"init",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];Un(this.updateMap,e,t,n),Un(this.clearMap,e,t,i),this.buildElementKeyMap(e,t),this.watchExtraTriggers(e,t,r)}},{key:"getValue",value:function(e,t,n){var i=this.elementMap.get(e);if(i){var r=void 0!==n?i.get(n):this.getActivatedValues(i,t);if(r)return r.get(t)}}},{key:"hasValue",value:function(e,t){var n=this.elementMap.get(e);if(n){var i=this.getActivatedValues(n,t);if(i)return void 0!==i.get(t)||!1}return!1}},{key:"setValue",value:function(e,t,n,i){var r=this.elementMap.get(e);if(r){var a=(r.get(i)||new Map).set(t,n);r.set(i,a),this.elementMap.set(e,r)}else r=(new Map).set(i,(new Map).set(t,n)),this.elementMap.set(e,r);var o=this.getValue(e,t);void 0!==o&&this.updateElement(e,t,o)}},{key:"trackValue",value:function(e,t){return this.subject.asObservable().pipe(Object(Ze.a)(function(n){return n.element===e&&n.key===t}))}},{key:"updateStyles",value:function(){var e=this;this.elementMap.forEach(function(t,n){var i=new Set(e.elementKeyMap.get(n)),r=e.getActivatedValues(t);r&&r.forEach(function(t,r){e.updateElement(n,r,t),i.delete(r)}),i.forEach(function(i){if(r=e.getActivatedValues(t,i)){var a=r.get(i);e.updateElement(n,i,a)}else e.clearElement(n,i)})})}},{key:"clearElement",value:function(e,t){var n=this.clearMap.get(e);if(n){var i=n.get(t);i&&(i(),this.subject.next({element:e,key:t,value:""}))}}},{key:"updateElement",value:function(e,t,n){var i=this.updateMap.get(e);if(i){var r=i.get(t);r&&(r(n),this.subject.next({element:e,key:t,value:n}))}}},{key:"releaseElement",value:function(e){var t=this.watcherMap.get(e);t&&(t.forEach(function(e){return e.unsubscribe()}),this.watcherMap.delete(e));var n=this.elementMap.get(e);n&&(n.forEach(function(e,t){return n.delete(t)}),this.elementMap.delete(e))}},{key:"triggerUpdate",value:function(e,t){var n=this,i=this.elementMap.get(e);if(i){var r=this.getActivatedValues(i,t);r&&(t?this.updateElement(e,t,r.get(t)):r.forEach(function(t,i){return n.updateElement(e,i,t)}))}}},{key:"buildElementKeyMap",value:function(e,t){var n=this.elementKeyMap.get(e);n||(n=new Set,this.elementKeyMap.set(e,n)),n.add(t)}},{key:"watchExtraTriggers",value:function(e,t,n){var i=this;if(n&&n.length){var r=this.watcherMap.get(e);if(r||(r=new Map,this.watcherMap.set(e,r)),!r.get(t)){var a=Lt.a.apply(void 0,Object(qe.a)(n)).subscribe(function(){var n=i.getValue(e,t);i.updateElement(e,t,n)});r.set(t,a)}}}},{key:"findByQuery",value:function(e){return this.breakpoints.findByQuery(e)}},{key:"getActivatedValues",value:function(e,t){for(var n=0;n<this.activatedBreakpoints.length;n++){var i=e.get(this.activatedBreakpoints[n].alias);if(i&&(void 0===t||i.has(t)&&null!=i.get(t)))return i}var r=e.get("");return void 0===t||r&&r.has(t)?r:void 0}},{key:"observeActivations",value:function(){var e=this.breakpoints.items.map(function(e){return e.mediaQuery});this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(Qt(this.hook.interceptEvents(this)),Object(Ze.a)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(An),h.Ub(Sn),h.Ub(In))},e.\u0275prov=Object(h.Gb)({factory:function(){return new e(Object(h.Ub)(An),Object(h.Ub)(Sn),Object(h.Ub)(In))},token:e,providedIn:"root"}),e}();function Un(e,t,n,i){if(void 0!==i){var r=e.get(t);r||(r=new Map,e.set(t,r)),r.set(n,i)}}var zn=new h.q("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(h.S)(v)}}),Kn=function(){var e=function(){function e(t){if(Object(a.a)(this,e),this.value="ltr",this.change=new h.m,t){var n=(t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null);this.value="ltr"===n||"rtl"===n?n:"ltr"}}return Object(o.a)(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(zn,8))},e.\u0275prov=Object(h.Gb)({factory:function(){return new e(Object(h.Ub)(zn,8))},token:e,providedIn:"root"}),e}(),Hn=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({}),e}(),Wn="inline",qn=["row","column","row-reverse","column-reverse"];function Qn(e){var t=(e=e?e.toLowerCase():"").split(" "),n=Object(l.a)(t,3),i=n[0],r=n[1],a=n[2];return qn.find(function(e){return e===i})||(i=qn[0]),r===Wn&&(r=a!==Wn?a:"",a=Wn),[i,Yn(r),!!a]}function Gn(e){var t=Qn(e);return Object(l.a)(t,1)[0].indexOf("row")>-1}function Yn(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}var Zn=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"buildStyles",value:function(e){return t=Qn(e),function(e){return{display:arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)||null}}((n=Object(l.a)(t,3))[0],n[1],n[2]);var t,n}}]),n}(Fn);return e.\u0275fac=function(t){return Xn(t||e)},e.\u0275prov=Object(h.Gb)({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Xn=h.Sb(Zn),Jn=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"],$n=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o){var s;return Object(a.a)(this,n),(s=t.call(this,e,r,i,o)).DIRECTIVE_KEY="layout",s.styleCache=ni,s.init(),s}return n}(hn);return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.j),h.Kb(Ln),h.Kb(Zn),h.Kb(Vn))},e.\u0275dir=h.Fb({type:e,features:[h.wb]}),e}(),ei=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){var e;return Object(a.a)(this,n),(e=t.apply(this,arguments)).inputs=Jn,e}return n}($n);return e.\u0275fac=function(t){return ti(t||e)},e.\u0275dir=h.Fb({type:e,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[h.wb]}),e}(),ti=h.Sb(ei),ni=new Map;function ii(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];for(var r=0,a=n;r<a.length;r++){var o=a[r];if(null!=o)for(var s in o)o.hasOwnProperty(s)&&(e[s]=o[s])}return e}new Map,new Map,new Map,new Map;var ri=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this)).layoutConfig=e,i}return Object(o.a)(n,[{key:"buildStyles",value:function(e,t){var n=e.split(" "),i=Object(Pt.a)(n),r=i[0],a=i[1],o=i.slice(2).join(" "),s=t.direction.indexOf("column")>-1?"column":"row",c=Gn(s)?"max-width":"max-height",u=Gn(s)?"min-width":"min-height",l=String(o).indexOf("calc")>-1,h=l||"auto"===o,f=String(o).indexOf("%")>-1&&!l,d=String(o).indexOf("px")>-1||String(o).indexOf("rem")>-1||String(o).indexOf("em")>-1||String(o).indexOf("vw")>-1||String(o).indexOf("vh")>-1,p=l||d;a="0"==a?0:a;var v=!(r="0"==r?0:r)&&!a,m={},b={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(o||""){case"":o="row"===s?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":r=0,o="auto";break;case"grow":o="100%";break;case"noshrink":a=0,o="auto";break;case"auto":break;case"none":r=0,a=0,o="auto";break;default:p||f||isNaN(o)||(o+="%"),"0%"===o&&(p=!0),"0px"===o&&(o="0%"),m=ii(b,l?{"flex-grow":r,"flex-shrink":a,"flex-basis":p?o:"100%"}:{flex:"".concat(r," ").concat(a," ").concat(p?o:"100%")})}return m.flex||m["flex-grow"]||(m=ii(b,l?{"flex-grow":r,"flex-shrink":a,"flex-basis":o}:{flex:"".concat(r," ").concat(a," ").concat(o)})),"0%"!==o&&"0px"!==o&&"0.000000001px"!==o&&"auto"!==o&&(m[u]=v||p&&r?o:null,m[c]=v||!h&&a?o:null),m[u]||m[c]?t.hasWrap&&(m[l?"flex-basis":"flex"]=m[c]?l?m[c]:"".concat(r," ").concat(a," ").concat(m[c]):l?m[u]:"".concat(r," ").concat(a," ").concat(m[u])):m=ii(b,l?{"flex-grow":r,"flex-shrink":a,"flex-basis":o}:{flex:"".concat(r," ").concat(a," ").concat(o)}),ii(m,{"box-sizing":"border-box"})}}]),n}(Fn);return e.\u0275fac=function(t){return new(t||e)(h.Ub(nn))},e.\u0275prov=Object(h.Gb)({factory:function(){return new e(Object(h.Ub)(nn))},token:e,providedIn:"root"}),e}(),ai=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"],oi=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o,s){var c;return Object(a.a)(this,n),(c=t.call(this,e,o,i,s)).layoutConfig=r,c.marshal=s,c.DIRECTIVE_KEY="flex",c.direction=void 0,c.wrap=void 0,c.flexGrow="1",c.flexShrink="1",c.init(),c}return Object(o.a)(n,[{key:"shrink",get:function(){return this.flexShrink},set:function(e){this.flexShrink=e||"1",this.triggerReflow()}},{key:"grow",get:function(){return this.flexGrow},set:function(e){this.flexGrow=e||"1",this.triggerReflow()}},{key:"ngOnInit",value:function(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(Object(Kt.a)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(Object(Kt.a)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}},{key:"onLayoutChange",value:function(e){var t=e.value.split(" ");this.direction=t[0],this.wrap=void 0!==t[1]&&"wrap"===t[1],this.triggerUpdate()}},{key:"updateWithValue",value:function(e){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));var t=this.direction,n=t.startsWith("row"),i=this.wrap;n&&i?this.styleCache=hi:n&&!i?this.styleCache=ui:!n&&i?this.styleCache=fi:n||i||(this.styleCache=li);var r=Nn(String(e).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(r.join(" "),{direction:t,hasWrap:i})}},{key:"triggerReflow",value:function(){var e=this.activatedValue;if(void 0!==e){var t=Nn(e+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,t.join(" "))}}}]),n}(hn);return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.j),h.Kb(Ln),h.Kb(nn),h.Kb(ri),h.Kb(Vn))},e.\u0275dir=h.Fb({type:e,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[h.wb]}),e}(),si=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){var e;return Object(a.a)(this,n),(e=t.apply(this,arguments)).inputs=ai,e}return n}(oi);return e.\u0275fac=function(t){return ci(t||e)},e.\u0275dir=h.Fb({type:e,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[h.wb]}),e}(),ci=h.Sb(si),ui=new Map,li=new Map,hi=new Map,fi=new Map,di=(new Map,new Map,new Map,new Map,new Map,new Map,new Map,function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"buildStyles",value:function(e,t){var n={},i=e.split(" "),r=Object(l.a)(i,2),a=r[1];switch(r[0]){case"center":n["justify-content"]="center";break;case"space-around":n["justify-content"]="space-around";break;case"space-between":n["justify-content"]="space-between";break;case"space-evenly":n["justify-content"]="space-evenly";break;case"end":case"flex-end":n["justify-content"]="flex-end";break;case"start":case"flex-start":default:n["justify-content"]="flex-start"}switch(a){case"start":case"flex-start":n["align-items"]=n["align-content"]="flex-start";break;case"center":n["align-items"]=n["align-content"]="center";break;case"end":case"flex-end":n["align-items"]=n["align-content"]="flex-end";break;case"space-between":n["align-content"]="space-between",n["align-items"]="stretch";break;case"space-around":n["align-content"]="space-around",n["align-items"]="stretch";break;case"baseline":n["align-content"]="stretch",n["align-items"]="baseline";break;case"stretch":default:n["align-items"]=n["align-content"]="stretch"}return ii(n,{display:t.inline?"inline-flex":"flex","flex-direction":t.layout,"box-sizing":"border-box","max-width":"stretch"===a?Gn(t.layout)?null:"100%":null,"max-height":"stretch"===a&&Gn(t.layout)?"100%":null})}}]),n}(Fn);return e.\u0275fac=function(t){return pi(t||e)},e.\u0275prov=Object(h.Gb)({factory:function(){return new e},token:e,providedIn:"root"}),e}()),pi=h.Sb(di),vi=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"],mi=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o){var s;return Object(a.a)(this,n),(s=t.call(this,e,r,i,o)).DIRECTIVE_KEY="layout-align",s.layout="row",s.inline=!1,s.init(),s.marshal.trackValue(s.nativeElement,"layout").pipe(Object(Kt.a)(s.destroySubject)).subscribe(s.onLayoutChange.bind(Object(It.a)(s))),s}return Object(o.a)(n,[{key:"updateWithValue",value:function(e){var t=this.layout||"row",n=this.inline;"row"===t&&n?this.styleCache=wi:"row"!==t||n?"row-reverse"===t&&n?this.styleCache=xi:"row-reverse"!==t||n?"column"===t&&n?this.styleCache=Ci:"column"!==t||n?"column-reverse"===t&&n?this.styleCache=ji:"column-reverse"!==t||n||(this.styleCache=Oi):this.styleCache=gi:this.styleCache=ki:this.styleCache=yi,this.addStyles(e,{layout:t,inline:n})}},{key:"onLayoutChange",value:function(e){var t=this,n=e.value.split(" ");this.layout=n[0],this.inline=e.value.includes("inline"),qn.find(function(e){return e===t.layout})||(this.layout="row"),this.triggerUpdate()}}]),n}(hn);return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.j),h.Kb(Ln),h.Kb(di),h.Kb(Vn))},e.\u0275dir=h.Fb({type:e,features:[h.wb]}),e}(),bi=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){var e;return Object(a.a)(this,n),(e=t.apply(this,arguments)).inputs=vi,e}return n}(mi);return e.\u0275fac=function(t){return _i(t||e)},e.\u0275dir=h.Fb({type:e,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[h.wb]}),e}(),_i=h.Sb(bi),yi=new Map,gi=new Map,ki=new Map,Oi=new Map,wi=new Map,Ci=new Map,xi=new Map,ji=new Map,Ei=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[Jt,Hn]]}),e}();function Si(e){return null!=e&&"false"!=="".concat(e)}function Ai(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Di(e)?Number(e):t}function Di(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function Ti(e){return Array.isArray(e)?e:[e]}function Pi(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function Ii(e){return e instanceof h.j?e.nativeElement:e}new Map;var Ri=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o,s,c,u){var l;return Object(a.a)(this,n),(l=t.call(this,e,null,i,r)).ngClassInstance=u,l.DIRECTIVE_KEY="ngClass",l.ngClassInstance||(l.ngClassInstance=new Q(o,s,e,c)),l.init(),l.setValue("",""),l}return Object(o.a)(n,[{key:"klass",set:function(e){this.ngClassInstance.klass=e,this.setValue(e,"")}},{key:"updateWithValue",value:function(e){this.ngClassInstance.ngClass=e,this.ngClassInstance.ngDoCheck()}},{key:"ngDoCheck",value:function(){this.ngClassInstance.ngDoCheck()}}]),n}(hn);return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.j),h.Kb(Ln),h.Kb(Vn),h.Kb(h.s),h.Kb(h.t),h.Kb(h.C),h.Kb(Q,10))},e.\u0275dir=h.Fb({type:e,inputs:{klass:["class","klass"]},features:[h.wb]}),e}(),Mi=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"],Li=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){var e;return Object(a.a)(this,n),(e=t.apply(this,arguments)).inputs=Mi,e}return n}(Ri);return e.\u0275fac=function(t){return Fi(t||e)},e.\u0275dir=h.Fb({type:e,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[h.wb]}),e}(),Fi=h.Sb(Li);new WeakMap;var Ni,Bi=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[Jt]]}),e}(),Vi=n("quSY"),Ui=13;function zi(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.length?n.some(function(t){return e[t]}):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}try{Ni="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(jy){Ni=!1}var Ki,Hi,Wi,qi,Qi=function(){var e=function e(t){Object(a.a)(this,e),this._platformId=t,this.isBrowser=this._platformId?he(this._platformId):"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&&!Ni)&&"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 e.\u0275fac=function(t){return new(t||e)(h.Ub(h.z))},e.\u0275prov=Object(h.Gb)({factory:function(){return new e(Object(h.Ub)(h.z))},token:e,providedIn:"root"}),e}(),Gi=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({}),e}(),Yi=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Zi(){if(Ki)return Ki;if("object"!=typeof document||!document)return Ki=new Set(Yi);var e=document.createElement("input");return Ki=new Set(Yi.filter(function(t){return e.setAttribute("type",t),e.type===t}))}function Xi(e){return function(){if(null==Hi&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Hi=!0}}))}finally{Hi=Hi||!1}return Hi}()?e:!!e.capture}function Ji(){if(null==Wi){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Wi=!1;if("scrollBehavior"in document.documentElement.style)Wi=!0;else{var e=Element.prototype.scrollTo;Wi=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return Wi}function $i(e){if(function(){if(null==qi){var e="undefined"!=typeof document?document.head:null;qi=!(!e||!e.createShadowRoot&&!e.attachShadow)}return qi}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}var er=function(){var e=function(){function e(){Object(a.a)(this,e)}return Object(o.a)(e,[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(h.Gb)({factory:function(){return new e},token:e,providedIn:"root"}),e}(),tr=function(){var e=function(){function e(t){Object(a.a)(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}return Object(o.a)(e,[{key:"ngOnDestroy",value:function(){var e=this;this._observedElements.forEach(function(t,n){return e._cleanupObserver(n)})}},{key:"observe",value:function(e){var t=this,n=Ii(e);return new Ge.a(function(e){var i=t._observeElement(n).subscribe(e);return function(){i.unsubscribe(),t._unobserveElement(n)}})}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new Rt.a,n=this._mutationObserverFactory.create(function(e){return t.next(e)});n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),n=t.observer,i=t.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(e)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(er))},e.\u0275prov=Object(h.Gb)({factory:function(){return new e(Object(h.Ub)(er))},token:e,providedIn:"root"}),e}(),nr=function(){var e=function(){function e(t,n,i){Object(a.a)(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=i,this.event=new h.m,this._disabled=!1,this._currentSubscription=null}return Object(o.a)(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=Si(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=Ai(e),this._subscribe()}},{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){e._currentSubscription=(e.debounce?t.pipe(Object(Ut.a)(e.debounce)):t).subscribe(e.event)})}},{key:"_unsubscribe",value:function(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Kb(tr),h.Kb(h.j),h.Kb(h.x))},e.\u0275dir=h.Fb({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e}(),ir=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({providers:[er]}),e}();function rr(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var ar="cdk-describedby-message-container",or="cdk-describedby-message",sr="cdk-describedby-host",cr=0,ur=new Map,lr=null,hr=function(){var e=function(){function e(t){Object(a.a)(this,e),this._document=t}return Object(o.a)(e,[{key:"describe",value:function(e,t,n){if(this._canBeDescribed(e,t)){var i=fr(t,n);"string"!=typeof t?(dr(t),ur.set(i,{messageElement:t,referenceCount:0})):ur.has(i)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}}},{key:"removeDescription",value:function(e,t,n){if(t&&this._isElementNode(e)){var i=fr(t,n);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),"string"==typeof t){var r=ur.get(i);r&&0===r.referenceCount&&this._deleteMessageElement(i)}lr&&0===lr.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[".concat(sr,"]")),t=0;t<e.length;t++)this._removeCdkDescribedByReferenceIds(e[t]),e[t].removeAttribute(sr);lr&&this._deleteMessagesContainer(),ur.clear()}},{key:"_createMessageElement",value:function(e,t){var n=this._document.createElement("div");dr(n),n.textContent=e,t&&n.setAttribute("role",t),this._createMessagesContainer(),lr.appendChild(n),ur.set(fr(e,t),{messageElement:n,referenceCount:0})}},{key:"_deleteMessageElement",value:function(e){var t=ur.get(e),n=t&&t.messageElement;lr&&n&&lr.removeChild(n),ur.delete(e)}},{key:"_createMessagesContainer",value:function(){if(!lr){var e=this._document.getElementById(ar);e&&e.parentNode&&e.parentNode.removeChild(e),(lr=this._document.createElement("div")).id=ar,lr.style.visibility="hidden",lr.classList.add("cdk-visually-hidden"),this._document.body.appendChild(lr)}}},{key:"_deleteMessagesContainer",value:function(){lr&&lr.parentNode&&(lr.parentNode.removeChild(lr),lr=null)}},{key:"_removeCdkDescribedByReferenceIds",value:function(e){var t=rr(e,"aria-describedby").filter(function(e){return 0!=e.indexOf(or)});e.setAttribute("aria-describedby",t.join(" "))}},{key:"_addMessageReference",value:function(e,t){var n,i,r,a=ur.get(t);i=a.messageElement.id,(r=rr(n=e,"aria-describedby")).some(function(e){return e.trim()==i.trim()})||(r.push(i.trim()),n.setAttribute("aria-describedby",r.join(" "))),e.setAttribute(sr,""),a.referenceCount++}},{key:"_removeMessageReference",value:function(e,t){var n,i,r,a,o=ur.get(t);o.referenceCount--,r=o.messageElement.id,(a=rr(n=e,i="aria-describedby").filter(function(e){return e!=r.trim()})).length?n.setAttribute(i,a.join(" ")):n.removeAttribute(i),e.removeAttribute(sr)}},{key:"_isElementDescribedByMessage",value:function(e,t){var n=rr(e,"aria-describedby"),i=ur.get(t),r=i&&i.messageElement.id;return!!r&&-1!=n.indexOf(r)}},{key:"_canBeDescribed",value:function(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;var n=null==t?"":"".concat(t).trim(),i=e.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}},{key:"_isElementNode",value:function(e){return e.nodeType===this._document.ELEMENT_NODE}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(v))},e.\u0275prov=Object(h.Gb)({factory:function(){return new e(Object(h.Ub)(v))},token:e,providedIn:"root"}),e}();function fr(e,t){return"string"==typeof e?"".concat(t||"","/").concat(e):e}function dr(e){e.id||(e.id="".concat(or,"-").concat(cr++))}var pr=function(){function e(t){var n=this;Object(a.a)(this,e),this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Rt.a,this._typeaheadSubscription=Vi.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(e){return e.disabled},this._pressedLetters=[],this.tabOut=new Rt.a,this.change=new Rt.a,t instanceof h.B&&t.changes.subscribe(function(e){if(n._activeItem){var t=e.toArray().indexOf(n._activeItem);t>-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})}return Object(o.a)(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Qt(function(t){return e._pressedLetters.push(t)}),Object(Ut.a)(t),Object(Ze.a)(function(){return e._pressedLetters.length>0}),Object(Xe.a)(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i<n.length+1;i++){var r=(e._activeItemIndex+i)%n.length,a=n[r];if(!e._skipPredicateFn(a)&&0===a.getLabel().toUpperCase().trim().indexOf(t)){e.setActiveItem(r);break}}e._pressedLetters=[]}),this}},{key:"withHomeAndEnd",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1});switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||zi(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof h.B?this._items.toArray():this._items}}]),e}(),vr=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),Object(i.a)(Object(r.a)(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(pr),mr=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){var e;return Object(a.a)(this,n),(e=t.apply(this,arguments))._origin="program",e}return Object(o.a)(n,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){Object(i.a)(Object(r.a)(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(pr),br=function(){var e=function(){function e(t){Object(a.a)(this,e),this._platform=t}return Object(o.a)(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t,n=function(e){try{return e.frameElement}catch(jy){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){if(-1===yr(n))return!1;if(!this.isVisible(n))return!1}var i=e.nodeName.toLowerCase(),r=yr(e);return e.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||_r(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(Qi))},e.\u0275prov=Object(h.Gb)({factory:function(){return new e(Object(h.Ub)(Qi))},token:e,providedIn:"root"}),e}();function _r(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function yr(e){if(!_r(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var gr=function(){function e(t,n,i,r){var o=this,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Object(a.a)(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,s||this.attachAnchors()}return Object(o.a)(e,[{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusInitialElement())})})}},{key:"focusFirstTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusFirstTabbableElement())})})}},{key:"focusLastTabbableElementWhenReady",value:function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusLastTabbableElement())})})}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], ")+"[cdkFocusRegion".concat(e,"], ")+"[cdk-focus-".concat(e,"]")),n=0;n<t.length;n++)t[n].hasAttribute("cdk-focus-".concat(e))?console.warn("Found use of deprecated attribute 'cdk-focus-".concat(e,"', ")+"use 'cdkFocusRegion".concat(e,"' instead. The deprecated ")+"attribute will be removed in 8.0.0.",t[n]):t[n].hasAttribute("cdk-focus-region-".concat(e))&&console.warn("Found use of deprecated attribute 'cdk-focus-region-".concat(e,"', ")+"use 'cdkFocusRegion".concat(e,"' instead. The deprecated attribute ")+"will be removed in 8.0.0.",t[n]);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(){var e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),!this._checker.isFocusable(e)){var t=this._getFirstTabbableElement(e);return null==t||t.focus(),!!t}return e.focus(),!0}return this.focusFirstTabbableElement()}},{key:"focusFirstTabbableElement",value:function(){var e=this._getRegionBoundary("start");return e&&e.focus(),!!e}},{key:"focusLastTabbableElement",value:function(){var e=this._getRegionBoundary("end");return e&&e.focus(),!!e}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=0;n<t.length;n++){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_getLastTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=t.length-1;n>=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(Object(Ht.a)(1)).subscribe(e)}}]),e}(),kr=function(){var e=function(){function e(t,n,i){Object(a.a)(this,e),this._checker=t,this._ngZone=n,this._document=i}return Object(o.a)(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new gr(e,this._checker,this._ngZone,this._document,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(br),h.Ub(h.x),h.Ub(v))},e.\u0275prov=Object(h.Gb)({factory:function(){return new e(Object(h.Ub)(br),Object(h.Ub)(h.x),Object(h.Ub)(v))},token:e,providedIn:"root"}),e}();"undefined"!=typeof Element&&Element;var Or=new h.q("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),wr=new h.q("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Cr=function(){var e=function(){function e(t,n,i,r){Object(a.a)(this,e),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=t||this._createLiveElement()}return Object(o.a)(e,[{key:"announce",value:function(e){for(var t,n,i=this,r=this._defaultOptions,a=arguments.length,o=new Array(a>1?a-1:0),s=1;s<a;s++)o[s-1]=arguments[s];return 1===o.length&&"number"==typeof o[0]?n=o[0]:(t=o[0],n=o[1]),this.clear(),clearTimeout(this._previousTimeout),t||(t=r&&r.politeness?r.politeness:"polite"),null==n&&r&&(n=r.duration),this._liveElement.setAttribute("aria-live",t),this._ngZone.runOutsideAngular(function(){return new Promise(function(t){clearTimeout(i._previousTimeout),i._previousTimeout=setTimeout(function(){i._liveElement.textContent=e,t(),"number"==typeof n&&(i._previousTimeout=setTimeout(function(){return i.clear()},n))},100)})})}},{key:"clear",value:function(){this._liveElement&&(this._liveElement.textContent="")}},{key:"ngOnDestroy",value:function(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}},{key:"_createLiveElement",value:function(){for(var e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),n=this._document.createElement("div"),i=0;i<t.length;i++)t[i].parentNode.removeChild(t[i]);return n.classList.add(e),n.classList.add("cdk-visually-hidden"),n.setAttribute("aria-atomic","true"),n.setAttribute("aria-live","polite"),this._document.body.appendChild(n),n}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(Or,8),h.Ub(h.x),h.Ub(v),h.Ub(wr,8))},e.\u0275prov=Object(h.Gb)({factory:function(){return new e(Object(h.Ub)(Or,8),Object(h.Ub)(h.x),Object(h.Ub)(v),Object(h.Ub)(wr,8))},token:e,providedIn:"root"}),e}();function xr(e){return 0===e.buttons}function jr(e){var t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}var Er=new h.q("cdk-focus-monitor-default-options"),Sr=Xi({passive:!0,capture:!0}),Ar=function(){var e=function(){function e(t,n,i,r){var o=this;Object(a.a)(this,e),this._ngZone=t,this._platform=n,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=function(){o._lastTouchTarget=null,o._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(e){if(!o._lastTouchTarget){var t=xr(e)?"keyboard":"mouse";o._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=function(e){jr(e)?o._lastTouchTarget||o._setOriginForCurrentEventQueue("keyboard"):(null!=o._touchTimeoutId&&clearTimeout(o._touchTimeoutId),o._lastTouchTarget=Dr(e),o._touchTimeoutId=setTimeout(function(){return o._lastTouchTarget=null},650))},this._windowFocusListener=function(){o._windowFocused=!0,o._windowFocusTimeoutId=setTimeout(function(){return o._windowFocused=!1})},this._rootNodeFocusAndBlurListener=function(e){for(var t=Dr(e),n="focus"===e.type?o._onFocus:o._onBlur,i=t;i;i=i.parentElement)n.call(o,e,i)},this._document=i,this._detectionMode=(null==r?void 0:r.detectionMode)||0}return Object(o.a)(e,[{key:"monitor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ii(e);if(!this._platform.isBrowser||1!==n.nodeType)return Object(Qe.a)(null);var i=$i(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var a={checkChildren:t,subject:new Rt.a,rootNode:i};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject}},{key:"stopMonitoring",value:function(e){var t=Ii(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,n){var i=this,r=Ii(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(e){var n=Object(l.a)(e,2);return i._originChanged(n[0],t,n[1])}):(this._setOriginForCurrentEventQueue(t),"function"==typeof r.focus&&r.focus(n))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOriginForCurrentEventQueue",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout(function(){return t._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(e){var t=Dr(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t);n&&(n.checkChildren||t===Dr(e))&&this._originChanged(t,this._getFocusOrigin(e),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,Sr),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,Sr)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,Sr),e.addEventListener("mousedown",t._documentMousedownListener,Sr),e.addEventListener("touchstart",t._documentTouchstartListener,Sr),n.addEventListener("focus",t._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Sr),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Sr),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,Sr),i.removeEventListener("mousedown",this._documentMousedownListener,Sr),i.removeEventListener("touchstart",this._documentTouchstartListener,Sr),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}},{key:"_getClosestElementsInfo",value:function(e){var t=[];return this._elementInfo.forEach(function(n,i){(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(h.x),h.Ub(Qi),h.Ub(v,8),h.Ub(Er,8))},e.\u0275prov=Object(h.Gb)({factory:function(){return new e(Object(h.Ub)(h.x),Object(h.Ub)(Qi),Object(h.Ub)(v,8),Object(h.Ub)(Er,8))},token:e,providedIn:"root"}),e}();function Dr(e){return e.composedPath?e.composedPath()[0]:e.target}var Tr=function(){var e=function(){function e(t,n){Object(a.a)(this,e),this._elementRef=t,this._focusMonitor=n,this.cdkFocusChange=new h.m}return Object(o.a)(e,[{key:"ngAfterViewInit",value:function(){var e=this,t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(t){return e.cdkFocusChange.emit(t)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.j),h.Kb(Ar))},e.\u0275dir=h.Fb({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),e}(),Pr="cdk-high-contrast-black-on-white",Ir="cdk-high-contrast-white-on-black",Rr="cdk-high-contrast-active",Mr=function(){var e=function(){function e(t,n){Object(a.a)(this,e),this._platform=t,this._document=n}return Object(o.a)(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove(Rr),e.remove(Pr),e.remove(Ir);var t=this.getHighContrastMode();1===t?(e.add(Rr),e.add(Pr)):2===t&&(e.add(Rr),e.add(Ir))}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(Qi),h.Ub(v))},e.\u0275prov=Object(h.Gb)({factory:function(){return new e(Object(h.Ub)(Qi),Object(h.Ub)(v))},token:e,providedIn:"root"}),e}(),Lr=function(){var e=function e(t){Object(a.a)(this,e),t._applyBodyHighContrastModeCssClasses()};return e.\u0275fac=function(t){return new(t||e)(h.Ub(Mr))},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[Gi,ir]]}),e}(),Fr=function(){function e(){Object(a.a)(this,e)}return Object(o.a)(e,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}}]),e}(),Nr=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o){var s;return Object(a.a)(this,n),(s=t.call(this)).component=e,s.viewContainerRef=i,s.injector=r,s.componentFactoryResolver=o,s}return n}(Fr),Br=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r){var o;return Object(a.a)(this,n),(o=t.call(this)).templateRef=e,o.viewContainerRef=i,o.context=r,o}return Object(o.a)(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,Object(i.a)(Object(r.a)(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,Object(i.a)(Object(r.a)(n.prototype),"detach",this).call(this)}}]),n}(Fr),Vr=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this)).element=e instanceof h.j?e.nativeElement:e,i}return n}(Fr),Ur=function(){function e(){Object(a.a)(this,e),this._isDisposed=!1,this.attachDomPortal=null}return Object(o.a)(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof Nr?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof Br?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof Vr?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),zr=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,o,s,c,u){var l,h;return Object(a.a)(this,n),(h=t.call(this)).outletElement=e,h._componentFactoryResolver=o,h._appRef=s,h._defaultInjector=c,h.attachDomPortal=function(e){var t=e.element,a=h._document.createComment("dom-portal");t.parentNode.insertBefore(a,t),h.outletElement.appendChild(t),h._attachedPortal=e,Object(i.a)((l=Object(It.a)(h),Object(r.a)(n.prototype)),"setDisposeFn",l).call(l,function(){a.parentNode&&a.parentNode.replaceChild(t,a)})},h._document=u,h}return Object(o.a)(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),i.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(i);-1!==e&&n.remove(e)}),this._attachedPortal=e,i}},{key:"dispose",value:function(){Object(i.a)(Object(r.a)(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(Ur),Kr=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,o,s){var c,u;return Object(a.a)(this,n),(u=t.call(this))._componentFactoryResolver=e,u._viewContainerRef=o,u._isInitialized=!1,u.attached=new h.m,u.attachDomPortal=function(e){var t=e.element,a=u._document.createComment("dom-portal");e.setAttachedHost(Object(It.a)(u)),t.parentNode.insertBefore(a,t),u._getRootNode().appendChild(t),u._attachedPortal=e,Object(i.a)((c=Object(It.a)(u),Object(r.a)(n.prototype)),"setDisposeFn",c).call(c,function(){a.parentNode&&a.parentNode.replaceChild(t,a)})},u._document=s,u}return Object(o.a)(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&Object(i.a)(Object(r.a)(n.prototype),"detach",this).call(this),e&&Object(i.a)(Object(r.a)(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){Object(i.a)(Object(r.a)(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,a=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),o=t.createComponent(a,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),Object(i.a)(Object(r.a)(n.prototype),"setDisposeFn",this).call(this,function(){return o.destroy()}),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var a=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return Object(i.a)(Object(r.a)(n.prototype),"setDisposeFn",this).call(this,function(){return t._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}]),n}(Ur);return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.h),h.Kb(h.N),h.Kb(v))},e.\u0275dir=h.Fb({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[h.wb]}),e}(),Hr=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({}),e}(),Wr=new h.M("11.2.13"),qr=n("bHdf");function Qr(){return Object(qr.a)(1)}function Gr(){return Qr()(Qe.a.apply(void 0,arguments))}var Yr=n("z+Ro");function Zr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[t.length-1];return Object(Yr.a)(i)?(t.pop(),function(e){return Gr(t,e,i)}):function(e){return Gr(t,e)}}var Xr=function e(){Object(a.a)(this,e)},Jr=function e(){Object(a.a)(this,e)},$r="*";function ea(e,t){return{type:7,name:e,definitions:t,options:{}}}function ta(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function na(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function ia(e){return{type:6,styles:e,offset:null}}function ra(e,t,n){return{type:0,name:e,styles:t,options:n}}function aa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function oa(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function sa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function ca(e){Promise.resolve(null).then(e)}var ua=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Object(a.a)(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}return Object(o.a)(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;ca(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),la=function(){function e(t){var n=this;Object(a.a)(this,e),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 i=0,r=0,o=0,s=this.players.length;0==s?ca(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==s&&n._onFinish()}),e.onDestroy(function(){++r==s&&n._onDestroy()}),e.onStart(function(){++o==s&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return Object(o.a)(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),ha="!";function fa(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function da(e){switch(e.length){case 0:return new ua;case 1:return e[0];default:return new la(e)}}function pa(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],c=-1,u=null;if(i.forEach(function(e){var n=e.offset,i=n==c,l=i&&u||{};Object.keys(e).forEach(function(n){var i=n,s=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,o),s){case ha:s=r[n];break;case $r:s=a[n];break;default:s=t.normalizeStyleValue(n,i,s,o)}l[i]=s}),i||s.push(l),u=l,c=n}),o.length){var l="\n - ";throw new Error("Unable to animate due to the following errors:".concat(l).concat(o.join(l)))}return s}function va(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&ma(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&ma(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&ma(n,"destroy",e))})}}function ma(e,t,n){var i=n.totalTime,r=ba(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),a=e._data;return null!=a&&(r._data=a),r}function ba(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:a,disabled:!!o}}function _a(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function ya(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var ga=function(e,t){return!1},ka=function(e,t){return!1},Oa=function(e,t,n){return[]},wa=fa();(wa||"undefined"!=typeof Element)&&(ga=function(e,t){return e.contains(t)},ka=function(){if(wa||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:ka}(),Oa=function(e,t,n){var i=[];if(n)for(var r=e.querySelectorAll(t),a=0;a<r.length;a++)i.push(r[a]);else{var o=e.querySelector(t);o&&i.push(o)}return i});var Ca=null,xa=!1;function ja(e){Ca||(Ca=("undefined"!=typeof document?document.body:null)||{},xa=!!Ca.style&&"WebkitAppearance"in Ca.style);var t=!0;return Ca.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in Ca.style)&&xa&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Ca.style),t}var Ea=ka,Sa=ga,Aa=Oa;function Da(e){var t={};return Object.keys(e).forEach(function(n){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]}),t}var Ta=function(){var e=function(){function e(){Object(a.a)(this,e)}return Object(o.a)(e,[{key:"validateStyleProperty",value:function(e){return ja(e)}},{key:"matchesElement",value:function(e,t){return Ea(e,t)}},{key:"containsElement",value:function(e,t){return Sa(e,t)}},{key:"query",value:function(e,t,n){return Aa(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return n||""}},{key:"animate",value:function(e,t,n,i,r){return new ua(n,i)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}(),Pa=function(){var e=function e(){Object(a.a)(this,e)};return e.NOOP=new Ta,e}(),Ia="ng-enter",Ra="ng-leave",Ma="ng-trigger",La=".ng-trigger",Fa="ng-animating",Na=".ng-animating";function Ba(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Va(parseFloat(t[1]),t[2])}function Va(e,t){switch(t){case"s":return 1e3*e;default:return e}}function Ua(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var i,r=0,a="";if("string"==typeof e){var o=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===o)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};i=Va(parseFloat(o[1]),o[2]);var s=o[3];null!=s&&(r=Va(parseFloat(s),o[4]));var c=o[5];c&&(a=c)}else i=e;if(!n){var u=!1,l=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),u=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&t.splice(l,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:i,delay:r,easing:a}}(e,t,n)}function za(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function Ka(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else za(e,n);return n}function Ha(e,t,n){return n?t+":"+n+";":""}function Wa(e){for(var t="",n=0;n<e.style.length;n++){var i=e.style.item(n);t+=Ha(0,i,e.style.getPropertyValue(i))}for(var r in e.style)e.style.hasOwnProperty(r)&&!r.startsWith("_")&&(t+=Ha(0,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[r]));e.setAttribute("style",t)}function qa(e,t,n){e.style&&(Object.keys(t).forEach(function(i){var r=eo(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[r]),e.style[r]=t[i]}),fa()&&Wa(e))}function Qa(e,t){e.style&&(Object.keys(t).forEach(function(t){var n=eo(t);e.style[n]=""}),fa()&&Wa(e))}function Ga(e){return Array.isArray(e)?1==e.length?e[0]:na(e):e}var Ya=new RegExp("".concat("{{","\\s*(.+?)\\s*").concat("}}"),"g");function Za(e){var t=[];if("string"==typeof e){for(var n;n=Ya.exec(e);)t.push(n[1]);Ya.lastIndex=0}return t}function Xa(e,t,n){var i=e.toString(),r=i.replace(Ya,function(e,i){var r=t[i];return t.hasOwnProperty(i)||(n.push("Please provide a value for the animation param ".concat(i)),r=""),r.toString()});return r==i?e:r}function Ja(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var $a=/-+([a-z0-9])/g;function eo(e){return e.replace($a,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1].toUpperCase()})}function to(e,t){return 0===e||0===t}function no(e,t,n){var i=Object.keys(n);if(i.length&&t.length){var r=t[0],a=[];if(i.forEach(function(e){r.hasOwnProperty(e)||a.push(e),r[e]=n[e]}),a.length)for(var o=function(){var n=t[s];a.forEach(function(t){n[t]=ro(e,t)})},s=1;s<t.length;s++)o()}return t}function io(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #".concat(t.type))}}function ro(e,t){return window.getComputedStyle(e)[t]}var ao="*",oo=new Set(["true","1"]),so=new Set(["false","0"]);function co(e,t){var n=oo.has(e)||so.has(e),i=oo.has(t)||so.has(t);return function(r,a){var o=e==ao||e==r,s=t==ao||t==a;return!o&&n&&"boolean"==typeof r&&(o=r?oo.has(e):so.has(e)),!s&&i&&"boolean"==typeof a&&(s=a?oo.has(t):so.has(t)),o&&s}}var uo=":self",lo=new RegExp("s*".concat(uo,"s*,?"),"g");function ho(e,t,n){return new fo(e).build(t,n)}var fo=function(){function e(t){Object(a.a)(this,e),this._driver=t}return Object(o.a)(e,[{key:"build",value:function(e,t){var n=new po(t);return this._resetContextStyleTimingState(n),io(this,Ga(e),n)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}},{key:"visitTrigger",value:function(e,t){var n=this,i=t.queryCount=0,r=t.depCount=0,a=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var s=e,c=s.name;c.toString().split(/\s*,\s*/).forEach(function(e){s.name=e,a.push(n.visitState(s,t))}),s.name=c}else if(1==e.type){var u=n.visitTransition(e,t);i+=u.queryCount,r+=u.depCount,o.push(u)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:a,transitions:o,queryCount:i,depCount:r,options:null}}},{key:"visitState",value:function(e,t){var n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){var r=new Set,a=i||{};if(n.styles.forEach(function(e){if(vo(e)){var t=e;Object.keys(t).forEach(function(e){Za(t[e]).forEach(function(e){a.hasOwnProperty(e)||r.add(e)})})}}),r.size){var o=Ja(r.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(o.join(", ")))}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}},{key:"visitTransition",value:function(e,t){t.queryCount=0,t.depCount=0;var n,i,r,a=io(this,Ga(e.animation),t);return{type:1,matchers:(n=e.expr,i=t.errors,r=[],"string"==typeof n?n.split(/\s*,\s*/).forEach(function(e){return function(e,t,n){if(":"==e[0]){var i=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t)<parseFloat(e)};default:return t.push('The transition alias value "'.concat(e,'" is not supported')),"* => *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var a=r[1],o=r[2],s=r[3];t.push(co(a,s)),"<"!=o[0]||a==ao&&s==ao||t.push(co(s,a))}(e,r,i)}):r.push(n),r),animation:a,queryCount:t.queryCount,depCount:t.depCount,options:mo(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return io(n,e,t)}),options:mo(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,a=e.steps.map(function(e){t.currentTime=i;var a=io(n,e,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:a,options:mo(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,i=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return bo(Ua(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=bo(0,0,"");return r.dynamic=!0,r.strValue=i,r}return bo((n=n||Ua(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var r=e.styles?e.styles:ia({});if(5==r.type)n=this.visitKeyframes(r,t);else{var a=e.styles,o=!1;if(!a){o=!0;var s={};i.easing&&(s.easing=i.easing),a=ia(s)}t.currentTime+=i.duration+i.delay;var c=this.visitStyle(a,t);c.isEmptyStep=o,n=c}return t.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==$r?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(vo(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var a in t)if(t[a].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,a=t.currentTime;i&&a>0&&(a-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var o,s,c,u=t.collectedStyles[t.currentQuerySelector],l=u[i],h=!0;l&&(a!=r&&a>=l.startTime&&r<=l.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(l.startTime,'ms" and "').concat(l.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(a,'ms" and "').concat(r,'ms"')),h=!1),a=l.startTime),h&&(u[i]={startTime:a,endTime:r}),t.options&&(o=t.errors,s=t.options.params||{},(c=Za(e[i])).length&&c.forEach(function(e){s.hasOwnProperty(e)||o.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))}))}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,a=[],o=!1,s=!1,c=0,u=e.steps.map(function(e){var i=n._makeStyleAst(e,t),u=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(vo(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(vo(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),l=0;return null!=u&&(r++,l=i.offset=u),s=s||l<0||l>1,o=o||l<c,c=l,a.push(l),i});s&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),o&&t.errors.push("Please ensure that all keyframe offsets are in order");var l=e.steps.length,h=0;r>0&&r<l?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(h=1/(l-1));var f=l-1,d=t.currentTime,p=t.currentAnimateTimings,v=p.duration;return u.forEach(function(e,r){var o=h>0?r==f?1:h*r:a[r],s=o*v;t.currentTime=d+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=o,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:io(this,Ga(e.animation),t),options:mo(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:mo(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:mo(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;var r=function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return e==uo});return t&&(e=e.replace(lo,"")),[e=e.replace(/@\*/g,La).replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,Na),t]}(e.selector),a=Object(l.a)(r,2),o=a[0],s=a[1];t.currentQuerySelector=n.length?n+" "+o:o,_a(t.collectedStyles,t.currentQuerySelector,{});var c=io(this,Ga(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:c,originalSelector:e.selector,options:mo(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Ua(e.timings,t.errors,!0);return{type:12,animation:io(this,Ga(e.animation),t),timings:n,options:null}}}]),e}(),po=function e(t){Object(a.a)(this,e),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 vo(e){return!Array.isArray(e)&&"object"==typeof e}function mo(e){var t;return e?(e=za(e)).params&&(e.params=(t=e.params)?za(t):null):e={},e}function bo(e,t,n){return{duration:e,delay:t,easing:n}}function _o(e,t,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:a,totalTime:r+a,easing:o,subTimeline:s}}var yo=function(){function e(){Object(a.a)(this,e),this._map=new Map}return Object(o.a)(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,i=this._map.get(e);i||this._map.set(e,i=[]),(n=i).push.apply(n,Object(qe.a)(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),go=new RegExp(":enter","g"),ko=new RegExp(":leave","g");function Oo(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new wo).buildKeyframes(e,t,n,i,r,a,o,s,c,u)}var wo=function(){function e(){Object(a.a)(this,e)}return Object(o.a)(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,a,o,s,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];c=c||new yo;var l=new xo(e,t,c,i,r,u,[]);l.options=s,l.currentTimeline.setStyles([a],null,l.errors,s),io(this,n,l);var h=l.timelines.filter(function(e){return e.containsAnimation()});if(h.length&&Object.keys(o).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([o],null,l.errors,s)}return h.length?h.map(function(e){return e.buildKeyframes()}):[_o(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(n,i,i.options);r!=a&&t.transformIntoNewTimeline(a)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?Ba(n.duration):null,a=null!=n.delay?Ba(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,a);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),io(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,a=e.options;if(a&&(a.params||a.delay)&&((r=t.createSubContext(a)).transformIntoNewTimeline(),null!=a.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Co);var o=Ba(a.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(function(e){return io(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,a=e.options&&e.options.delay?Ba(e.options.delay):0;e.steps.forEach(function(o){var s=t.createSubContext(e.options);a&&s.delayNextStep(a),io(n,o,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return Ua(t.params?Xa(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(function(e){a.forwardTime((e.offset||0)*r),a.setStyles(e.styles,e.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},a=r.delay?Ba(r.delay):0;a&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Co);var o=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var c=null;s.forEach(function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);a&&s.delayNextStep(a),i===t.element&&(c=s.currentTimeline),io(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),c&&(t.currentTimeline.mergeTimelineCollectedStyles(c),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),s=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=o-s;break;case"full":s=n.currentStaggerTime}var c=t.currentTimeline;s&&c.delayNextStep(s);var u=c.currentTime;io(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)}}]),e}(),Co={},xo=function(){function e(t,n,i,r,o,s,c,u){Object(a.a)(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=c,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Co,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new jo(this._driver,n,0),c.push(this.currentTimeline)}return Object(o.a)(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=Ba(i.duration)),null!=i.delay&&(r.delay=Ba(i.delay));var a=i.params;if(a){var o=r.params;o||(o=this.options.params={}),Object.keys(a).forEach(function(e){t&&o.hasOwnProperty(e)||(o[e]=Xa(a[e],o,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,a=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return a.previousNode=this.previousNode,a.currentAnimateTimings=this.currentAnimateTimings,a.options=this._copyOptions(),a.updateOptions(t),a.currentQueryIndex=this.currentQueryIndex,a.currentQueryTotal=this.currentQueryTotal,a.parentContext=this,this.subContextCount++,a}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=Co,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new Eo(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,i,r,a){var o=[];if(i&&o.push(this.element),e.length>0){e=(e=e.replace(go,"."+this._enterClassName)).replace(ko,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),o.push.apply(o,Object(qe.a)(s))}return r||0!=o.length||a.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),o}}]),e}(),jo=function(){function e(t,n,i,r){Object(a.a)(this,e),this._driver=t,this.element=n,this.startTime=i,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(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return Object(o.a)(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value: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))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||$r,t._currentKeyframe[e]=$r}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var a=i&&i.params||{},o=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]=$r}):Ka(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(o).forEach(function(e){var t=Xa(o[e],a,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:$r),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(a,o){var s=Ka(a,!0);Object.keys(s).forEach(function(e){var i=s[e];i==ha?t.add(e):i==$r&&n.add(e)}),i||(s.offset=o/e.duration),r.push(s)});var a=t.size?Ja(t.values()):[],o=n.size?Ja(n.values()):[];if(i){var s=r[0],c=za(s);s.offset=0,c.offset=1,r=[s,c]}return _o(this.element,r,a,o,this.duration,this.startTime,this.easing,!1)}}]),e}(),Eo=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o,s,c){var u,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return Object(a.a)(this,n),(u=t.call(this,e,i,c.delay)).element=i,u.keyframes=r,u.preStyleProps=o,u.postStyleProps=s,u._stretchStartingKeyframe=l,u.timings={duration:c.duration,delay:c.delay,easing:c.easing},u}return Object(o.a)(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var a=[],o=i+n,s=n/o,c=Ka(e[0],!1);c.offset=0,a.push(c);var u=Ka(e[0],!1);u.offset=So(s),a.push(u);for(var l=e.length-1,h=1;h<=l;h++){var f=Ka(e[h],!1);f.offset=So((n+f.offset*i)/o),a.push(f)}i=o,n=0,r="",e=a}return _o(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(jo);function So(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var Ao=function e(){Object(a.a)(this,e)},Do=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"normalizePropertyName",value:function(e,t){return eo(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",a=n.toString().trim();if(To[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return a+r}}]),n}(Ao),To=function(){return e="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(","),t={},e.forEach(function(e){return t[e]=!0}),t;var e,t}();function Po(e,t,n,i,r,a,o,s,c,u,l,h,f){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:a,toState:i,toStyles:o,timelines:s,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:h,errors:f}}var Io={},Ro=function(){function e(t,n,i){Object(a.a)(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return Object(o.a)(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],a=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):a}},{key:"build",value:function(e,t,n,i,r,a,o,s,c,u){var l=[],h=this.ast.options&&this.ast.options.params||Io,f=this.buildStyles(n,o&&o.params||Io,l),d=s&&s.params||Io,p=this.buildStyles(i,d,l),v=new Set,m=new Map,b=new Map,_="void"===i,y={params:Object.assign(Object.assign({},h),d)},g=u?[]:Oo(e,t,this.ast.animation,r,a,f,p,y,c,l),k=0;if(g.forEach(function(e){k=Math.max(e.duration+e.delay,k)}),l.length)return Po(t,this._triggerName,n,i,_,f,p,[],[],m,b,k,l);g.forEach(function(e){var n=e.element,i=_a(m,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=_a(b,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&v.add(n)});var O=Ja(v.values());return Po(t,this._triggerName,n,i,_,f,p,g,O,m,b,k)}}]),e}(),Mo=function(){function e(t,n){Object(a.a)(this,e),this.styles=t,this.defaultParams=n}return Object(o.a)(e,[{key:"buildStyles",value:function(e,t){var n={},i=za(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var r=e;Object.keys(r).forEach(function(e){var a=r[e];a.length>1&&(a=Xa(a,i,t)),n[e]=a})}}),n}}]),e}(),Lo=function(){function e(t,n){var i=this;Object(a.a)(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(e){i.states[e.name]=new Mo(e.style,e.options&&e.options.params||{})}),Fo(this.states,"true","1"),Fo(this.states,"false","0"),n.transitions.forEach(function(e){i.transitionFactories.push(new Ro(t,e,i.states))}),this.fallbackTransition=new Ro(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object(o.a)(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}]),e}();function Fo(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var No=new yo,Bo=function(){function e(t,n,i){Object(a.a)(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return Object(o.a)(e,[{key:"register",value:function(e,t){var n=[],i=ho(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=pa(this._driver,this._normalizer,i,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=[],o=this._animations[e],s=new Map;if(o?(n=Oo(this._driver,t,o,Ia,Ra,{},{},r,No,a)).forEach(function(e){var t=_a(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(a.push("The requested animation doesn't exist or has already been destroyed"),n=[]),a.length)throw new Error("Unable to create the animation due to the following errors: ".concat(a.join("\n")));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,$r)})});var c=n.map(function(e){var t=s.get(e.element);return i._buildPlayer(e,{},t)}),u=da(c);return this._playersById[e]=u,u.onDestroy(function(){return i.destroy(e)}),this.players.push(u),u}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,i){var r=ba(t,"","","");return va(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),Vo="ng-animate-queued",Uo="ng-animate-disabled",zo=".ng-animate-disabled",Ko="ng-star-inserted",Ho=[],Wo={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},qo={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Qo=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Object(a.a)(this,e),this.namespaceId=n;var i=t&&t.hasOwnProperty("value"),r=i?t.value:t;if(this.value=$o(r),i){var o=za(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return Object(o.a)(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}}]),e}(),Go="void",Yo=new Qo(Go),Zo=function(){function e(t,n,i){Object(a.a)(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,rs(n,this._hostClassName)}return Object(o.a)(e,[{key:"listen",value:function(e,t,n,i){var r,a=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var o=_a(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};o.push(s);var c=_a(this._engine.statesByElement,e,{});return c.hasOwnProperty(t)||(rs(e,Ma),rs(e,"ng-trigger-"+t),c[t]=Yo),function(){a._engine.afterFlush(function(){var e=o.indexOf(s);e>=0&&o.splice(e,1),a._triggers[t]||delete c[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=this._getTrigger(t),o=new Jo(this.id,t,e),s=this._engine.statesByElement.get(e);s||(rs(e,Ma),rs(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var c=s[t],u=new Qo(n,this.id),l=n&&n.hasOwnProperty("value");!l&&c&&u.absorbOptions(c.options),s[t]=u,c||(c=Yo);var h=u.value===Go;if(h||c.value!==u.value){var f=_a(this._engine.playersByElement,e,[]);f.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var d=a.matchTransition(c.value,u.value,e,u.params),p=!1;if(!d){if(!r)return;d=a.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:c,toState:u,player:o,isFallbackTransition:p}),p||(rs(e,Vo),o.onStart(function(){as(e,Vo)})),o.onDone(function(){var t=i.players.indexOf(o);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(o);r>=0&&n.splice(r,1)}}),this.players.push(o),f.push(o),o}if(!cs(c.params,u.params)){var v=[],m=a.matchStyles(c.value,c.params,v),b=a.matchStyles(u.value,u.params,v);v.length?this._engine.reportError(v):this._engine.afterFlush(function(){Qa(e,m),qa(e,b)})}}},{key:"deregister",value:function(e){var t=this;delete this._triggers[e],this._engine.statesByElement.forEach(function(t,n){delete t[e]}),this._elementListeners.forEach(function(n,i){t._elementListeners.set(i,n.filter(function(t){return t.name!=e}))})}},{key:"clearElementCache",value:function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var t=this._engine.playersByElement.get(e);t&&(t.forEach(function(e){return e.destroy()}),this._engine.playersByElement.delete(e))}},{key:"_signalRemovalForInnerTriggers",value:function(e,t){var n=this,i=this._engine.driver.query(e,La,!0);i.forEach(function(e){if(!e.__ng_removed){var i=n._engine.fetchNamespacesByElement(e);i.size?i.forEach(function(n){return n.triggerLeaveAnimation(e,t,!1,!0)}):n.clearElementCache(e)}}),this._engine.afterFlushAnimationsDone(function(){return i.forEach(function(e){return n.clearElementCache(e)})})}},{key:"triggerLeaveAnimation",value:function(e,t,n,i){var r=this,a=this._engine.statesByElement.get(e);if(a){var o=[];if(Object.keys(a).forEach(function(t){if(r._triggers[t]){var n=r.trigger(e,t,Go,i);n&&o.push(n)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&da(o).onDone(function(){return r._engine.processLeaveNode(e)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(e){var t=this,n=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(n&&i){var r=new Set;n.forEach(function(n){var a=n.name;if(!r.has(a)){r.add(a);var o=t._triggers[a].fallbackTransition,s=i[a]||Yo,c=new Qo(Go),u=new Jo(t.id,a,e);t._engine.totalQueuedPlayers++,t._queue.push({element:e,triggerName:a,transition:o,fromState:s,toState:c,player:u,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(e,t){var n=this,i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),!this.triggerLeaveAnimation(e,t,!0)){var r=!1;if(i.totalAnimations){var a=i.players.length?i.playersByQueriedElement.get(e):[];if(a&&a.length)r=!0;else for(var o=e;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{var s=e.__ng_removed;s&&s!==Wo||(i.afterFlush(function(){return n.clearElementCache(e)}),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}}},{key:"insertNode",value:function(e,t){rs(e,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(e){var t=this,n=[];return this._queue.forEach(function(i){var r=i.player;if(!r.destroyed){var a=i.element,o=t._elementListeners.get(a);o&&o.forEach(function(t){if(t.name==i.triggerName){var n=ba(a,i.triggerName,i.fromState.value,i.toState.value);n._data=e,va(i.player,t.phase,n,t.callback)}}),r.markedForDestroy?t._engine.afterFlush(function(){r.destroy()}):n.push(i)}}),this._queue=[],n.sort(function(e,n){var i=e.transition.ast.depCount,r=n.transition.ast.depCount;return 0==i||0==r?i-r:t._engine.driver.containsElement(e.element,n.element)?1:-1})}},{key:"destroy",value:function(e){this.players.forEach(function(e){return e.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,e)}},{key:"elementContainsData",value:function(e){var t=!1;return this._elementListeners.has(e)&&(t=!0),!!this._queue.find(function(t){return t.element===e})||t}}]),e}(),Xo=function(){function e(t,n,i){Object(a.a)(this,e),this.bodyNode=t,this.driver=n,this._normalizer=i,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(e,t){}}return Object(o.a)(e,[{key:"_onRemovalComplete",value:function(e,t){this.onRemovalComplete(e,t)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach(function(t){t.players.forEach(function(t){t.queued&&e.push(t)})}),e}},{key:"createNamespace",value:function(e,t){var n=new Zo(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}},{key:"_balanceNamespaceList",value:function(e,t){var n=this._namespaceList.length-1;if(n>=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r<i.length;r++){var a=n[i[r]].namespaceId;if(a){var o=this._fetchNamespace(a);o&&t.add(o)}}return t}},{key:"trigger",value:function(e,t,n,i){if(es(t)){var r=this._fetchNamespace(e);if(r)return r.trigger(t,n,i),!0}return!1}},{key:"insertNode",value:function(e,t,n,i){if(es(t)){var r=t.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;var a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1)}if(e){var o=this._fetchNamespace(e);o&&o.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),rs(e,Uo)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),as(e,Uo))}},{key:"removeNode",value:function(e,t,n,i){if(es(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var a=this.namespacesByHostElement.get(t);a&&a.id!==e&&a.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return es(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,La,!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,Na,!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return da(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=Wo,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,zo)&&this.markElementAsDisabled(e,!1),this.driver.query(e,zo,!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,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 i=0;i<this.collectedEnterElements.length;i++){var r=this.collectedEnterElements[i];rs(r,Ko)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var a=[];try{n=this._flushAnimations(a,t)}finally{for(var o=0;o<a.length;o++)a[o]()}}else for(var s=0;s<this.collectedLeaveElements.length;s++){var c=this.collectedLeaveElements[s];this.processLeaveNode(c)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(e){return e()}),this._flushFns=[],this._whenQuietFns.length){var u=this._whenQuietFns;this._whenQuietFns=[],n.length?da(n).onDone(function(){u.forEach(function(e){return e()})}):u.forEach(function(e){return e()})}}},{key:"reportError",value:function(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n ".concat(e.join("\n")))}},{key:"_flushAnimations",value:function(e,t){var n=this,i=new yo,r=[],a=new Map,o=[],s=new Map,c=new Map,u=new Map,l=new Set;this.disabledNodes.forEach(function(e){l.add(e);for(var t=n.driver.query(e,".ng-animate-queued",!0),i=0;i<t.length;i++)l.add(t[i])});var h=this.bodyNode,f=Array.from(this.statesByElement.keys()),d=is(f,this.collectedEnterElements),p=new Map,v=0;d.forEach(function(e,t){var n=Ia+v++;p.set(t,n),e.forEach(function(e){return rs(e,n)})});for(var m=[],b=new Set,_=new Set,y=0;y<this.collectedLeaveElements.length;y++){var g=this.collectedLeaveElements[y],k=g.__ng_removed;k&&k.setForRemoval&&(m.push(g),b.add(g),k.hasAnimation?this.driver.query(g,".ng-star-inserted",!0).forEach(function(e){return b.add(e)}):_.add(g))}var O=new Map,w=is(f,Array.from(b));w.forEach(function(e,t){var n=Ra+v++;O.set(t,n),e.forEach(function(e){return rs(e,n)})}),e.push(function(){d.forEach(function(e,t){var n=p.get(t);e.forEach(function(e){return as(e,n)})}),w.forEach(function(e,t){var n=O.get(t);e.forEach(function(e){return as(e,n)})}),m.forEach(function(e){n.processLeaveNode(e)})});for(var C=[],x=[],j=this._namespaceList.length-1;j>=0;j--)this._namespaceList[j].drainQueuedTransitions(t).forEach(function(e){var t=e.player,a=e.element;if(C.push(t),n.collectedEnterElements.length){var l=a.__ng_removed;if(l&&l.setForMove)return void t.destroy()}var f=!h||!n.driver.containsElement(h,a),d=O.get(a),v=p.get(a),m=n._buildInstruction(e,i,v,d,f);if(m.errors&&m.errors.length)x.push(m);else{if(f)return t.onStart(function(){return Qa(a,m.fromStyles)}),t.onDestroy(function(){return qa(a,m.toStyles)}),void r.push(t);if(e.isFallbackTransition)return t.onStart(function(){return Qa(a,m.fromStyles)}),t.onDestroy(function(){return qa(a,m.toStyles)}),void r.push(t);m.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(a,m.timelines),o.push({instruction:m,player:t,element:a}),m.queriedElements.forEach(function(e){return _a(s,e,[]).push(t)}),m.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=c.get(t);i||c.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),m.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=u.get(t);i||u.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(x.length){var E=[];x.forEach(function(e){E.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return E.push("- ".concat(e,"\n"))})}),C.forEach(function(e){return e.destroy()}),this.reportError(E)}var S=new Map,A=new Map;o.forEach(function(e){var t=e.element;i.has(t)&&(A.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,S))}),r.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){_a(S,t,[]).push(e),e.destroy()})});var D=m.filter(function(e){return us(e,c,u)}),T=new Map;ns(T,this.driver,_,u,$r).forEach(function(e){us(e,c,u)&&D.push(e)});var P=new Map;d.forEach(function(e,t){ns(P,n.driver,new Set(e),c,ha)}),D.forEach(function(e){var t=T.get(e),n=P.get(e);T.set(e,Object.assign(Object.assign({},t),n))});var I=[],R=[],M={};o.forEach(function(e){var t=e.element,o=e.player,s=e.instruction;if(i.has(t)){if(l.has(t))return o.onDestroy(function(){return qa(t,s.toStyles)}),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);var c=M;if(A.size>1){for(var u=t,h=[];u=u.parentNode;){var f=A.get(u);if(f){c=f;break}h.push(u)}h.forEach(function(e){return A.set(e,c)})}var d=n._buildAnimation(o.namespaceId,s,S,a,P,T);if(o.setRealPlayer(d),c===M)I.push(o);else{var p=n.playersByElement.get(c);p&&p.length&&(o.parentPlayer=da(p)),r.push(o)}}else Qa(t,s.fromStyles),o.onDestroy(function(){return qa(t,s.toStyles)}),R.push(o),l.has(t)&&r.push(o)}),R.forEach(function(e){var t=a.get(e.element);if(t&&t.length){var n=da(t);e.setRealPlayer(n)}}),r.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var L=0;L<m.length;L++){var F=m[L],N=F.__ng_removed;if(as(F,Ra),!N||!N.hasAnimation){var B=[];if(s.size){var V=s.get(F);V&&V.length&&B.push.apply(B,Object(qe.a)(V));for(var U=this.driver.query(F,Na,!0),z=0;z<U.length;z++){var K=s.get(U[z]);K&&K.length&&B.push.apply(B,Object(qe.a)(K))}}var H=B.filter(function(e){return!e.destroyed});H.length?os(this,F,H):this.processLeaveNode(F)}}return m.length=0,I.forEach(function(e){n.players.push(e),e.onDone(function(){e.destroy();var t=n.players.indexOf(e);n.players.splice(t,1)}),e.play()}),I}},{key:"elementContainsData",value:function(e,t){var n=!1,i=t.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}},{key:"afterFlush",value:function(e){this._flushFns.push(e)}},{key:"afterFlushAnimationsDone",value:function(e){this._whenQuietFns.push(e)}},{key:"_getPreviousPlayers",value:function(e,t,n,i,r){var a=[];if(t){var o=this.playersByQueriedElement.get(e);o&&(a=o)}else{var s=this.playersByElement.get(e);if(s){var c=!r||r==Go;s.forEach(function(e){e.queued||(c||e.triggerName==i)&&a.push(e)})}}return(n||i)&&(a=a.filter(function(e){return!(n&&n!=e.namespaceId||i&&i!=e.triggerName)})),a}},{key:"_beforeAnimationBuild",value:function(e,t,n){var i,r=this,a=t.element,o=t.isRemovalTransition?void 0:e,s=t.isRemovalTransition?void 0:t.triggerName,c=Object(u.a)(t.timelines);try{var l=function(){var e=i.value.element,c=e!==a,u=_a(n,e,[]);r._getPreviousPlayers(e,c,o,s,t.toState).forEach(function(e){var t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),u.push(e)})};for(c.s();!(i=c.n()).done;)l()}catch(h){c.e(h)}finally{c.f()}Qa(a,t.fromStyles)}},{key:"_buildAnimation",value:function(e,t,n,i,r,a){var o=this,s=t.triggerName,c=t.element,u=[],l=new Set,h=new Set,f=t.timelines.map(function(t){var f=t.element;l.add(f);var d=f.__ng_removed;if(d&&d.removedBeforeQueried)return new ua(t.duration,t.delay);var p,v,m=f!==c,b=(p=(n.get(f)||Ho).map(function(e){return e.getRealPlayer()}),v=[],ss(p,v),v).filter(function(e){return!!e.element&&e.element===f}),_=r.get(f),y=a.get(f),g=pa(o.driver,o._normalizer,f,t.keyframes,_,y),k=o._buildPlayer(t,g,b);if(t.subTimeline&&i&&h.add(f),m){var O=new Jo(e,s,f);O.setRealPlayer(k),u.push(O)}return k});u.forEach(function(e){_a(o.playersByQueriedElement,e.element,[]).push(e),e.onDone(function(){return function(e,t,n){var i;if(e instanceof Map){if(i=e.get(t)){if(i.length){var r=i.indexOf(n);i.splice(r,1)}0==i.length&&e.delete(t)}}else if(i=e[t]){if(i.length){var a=i.indexOf(n);i.splice(a,1)}0==i.length&&delete e[t]}return i}(o.playersByQueriedElement,e.element,e)})}),l.forEach(function(e){return rs(e,Fa)});var d=da(f);return d.onDestroy(function(){l.forEach(function(e){return as(e,Fa)}),qa(c,t.toStyles)}),h.forEach(function(e){_a(i,e,[]).push(d)}),d}},{key:"_buildPlayer",value:function(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new ua(e.duration,e.delay)}}]),e}(),Jo=function(){function e(t,n,i){Object(a.a)(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new ua,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return Object(o.a)(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return va(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){_a(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function $o(e){return null!=e?e:null}function es(e){return e&&1===e.nodeType}function ts(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function ns(e,t,n,i,r){var a=[];n.forEach(function(e){return a.push(ts(e))});var o=[];i.forEach(function(n,i){var a={};n.forEach(function(e){var n=a[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=qo,o.push(i))}),e.set(i,a)});var s=0;return n.forEach(function(e){return ts(e,a[s++])}),o}function is(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function a(e){if(!e)return 1;var t=r.get(e);if(t)return t;var o=e.parentNode;return t=n.has(o)?o:i.has(o)?1:a(o),r.set(e,t),t}return t.forEach(function(e){var t=a(e);1!==t&&n.get(t).push(e)}),n}function rs(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function as(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function os(e,t,n){da(n).onDone(function(){return e.processLeaveNode(t)})}function ss(e,t){for(var n=0;n<e.length;n++){var i=e[n];i instanceof la?ss(i.players,t):t.push(i)}}function cs(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r<n.length;r++){var a=n[r];if(!t.hasOwnProperty(a)||e[a]!==t[a])return!1}return!0}function us(e,t,n){var i=n.get(e);if(!i)return!1;var r=t.get(e);return r?i.forEach(function(e){return r.add(e)}):t.set(e,i),n.delete(e),!0}var ls=function(){function e(t,n,i){var r=this;Object(a.a)(this,e),this.bodyNode=t,this._driver=n,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new Xo(t,n,i),this._timelineEngine=new Bo(t,n,i),this._transitionEngine.onRemovalComplete=function(e,t){return r.onRemovalComplete(e,t)}}return Object(o.a)(e,[{key:"registerTrigger",value:function(e,t,n,i,r){var a=e+"-"+i,o=this._triggerCache[a];if(!o){var s=[],c=ho(this._driver,r,s);if(s.length)throw new Error('The animation trigger "'.concat(i,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));o=function(e,t){return new Lo(e,t)}(i,c),this._triggerCache[a]=o}this._transitionEngine.registerTrigger(t,i,o)}},{key:"register",value:function(e,t){this._transitionEngine.register(e,t)}},{key:"destroy",value:function(e,t){this._transitionEngine.destroy(e,t)}},{key:"onInsert",value:function(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}},{key:"onRemove",value:function(e,t,n,i){this._transitionEngine.removeNode(e,t,i||!1,n)}},{key:"disableAnimations",value:function(e,t){this._transitionEngine.markElementAsDisabled(e,t)}},{key:"process",value:function(e,t,n,i){if("@"==n.charAt(0)){var r=ya(n),a=Object(l.a)(r,2);this._timelineEngine.command(a[0],t,a[1],i)}else this._transitionEngine.trigger(e,t,n,i)}},{key:"listen",value:function(e,t,n,i,r){if("@"==n.charAt(0)){var a=ya(n),o=Object(l.a)(a,2);return this._timelineEngine.listen(o[0],t,o[1],r)}return this._transitionEngine.listen(e,t,n,i,r)}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function hs(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=ds(t[0]),t.length>1&&(i=ds(t[t.length-1]))):t&&(n=ds(t)),n||i?new fs(e,n,i):null}var fs=function(){var e=function(){function e(t,n,i){Object(a.a)(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return Object(o.a)(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&qa(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(qa(this._element,this._initialStyles),this._endStyles&&(qa(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Qa(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Qa(this._element,this._endStyles),this._endStyles=null),qa(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function ds(e){for(var t=null,n=Object.keys(e),i=0;i<n.length;i++){var r=n[i];ps(r)&&((t=t||{})[r]=e[r])}return t}function ps(e){return"display"===e||"position"===e}var vs="animation",ms="animationend",bs=function(){function e(t,n,i,r,o,s,c){var u=this;Object(a.a)(this,e),this._element=t,this._name=n,this._duration=i,this._delay=r,this._easing=o,this._fillMode=s,this._onDoneFn=c,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(e){return u._handleCallback(e)}}return Object(o.a)(e,[{key:"apply",value:function(){var e,t,n;e=this._element,t="".concat(this._duration,"ms ").concat(this._easing," ").concat(this._delay,"ms 1 normal ").concat(this._fillMode," ").concat(this._name),(n=ws(e,"").trim()).length&&(function(e,t){for(var n=0;n<e.length;n++)","===e.charAt(n)&&0}(n),t="".concat(n,", ").concat(t)),Os(e,"",t),ks(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){_s(this._element,this._name,"paused")}},{key:"resume",value:function(){_s(this._element,this._name,"running")}},{key:"setPosition",value:function(e){var t=ys(this._element,this._name);this._position=e*this._duration,Os(this._element,"Delay","-".concat(this._position,"ms"),t)}},{key:"getPosition",value:function(){return this._position}},{key:"_handleCallback",value:function(e){var t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),ks(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,i;this._destroyed||(this._destroyed=!0,this.finish(),t=this._name,(i=gs(n=ws(e=this._element,"").split(","),t))>=0&&(n.splice(i,1),Os(e,"",n.join(","))))}}]),e}();function _s(e,t,n){Os(e,"PlayState",n,ys(e,t))}function ys(e,t){var n=ws(e,"");return n.indexOf(",")>0?gs(n.split(","),t):gs([n],t)}function gs(e,t){for(var n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function ks(e,t,n){n?e.removeEventListener(ms,t):e.addEventListener(ms,t)}function Os(e,t,n,i){var r=vs+t;if(null!=i){var a=e.style[r];if(a.length){var o=a.split(",");o[i]=n,n=o.join(",")}}e.style[r]=n}function ws(e,t){return e.style[vs+t]||""}var Cs=function(){function e(t,n,i,r,o,s,c,u){Object(a.a)(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=o,this._finalStyles=c,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=r+o,this._buildStyler()}return Object(o.a)(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new bs(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:ro(e.element,i))})}this.currentSnapshot=t}}]),e}(),xs=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i){var r;return Object(a.a)(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=Da(i),r}return Object(o.a)(n,[{key:"init",value: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]}),Object(i.a)(Object(r.a)(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),Object(i.a)(Object(r.a)(n.prototype),"play",this).call(this))}},{key:"destroy",value: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,Object(i.a)(Object(r.a)(n.prototype),"destroy",this).call(this))}}]),n}(ua),js="gen_css_kf_",Es=function(){function e(){Object(a.a)(this,e),this._count=0,this._head=document.querySelector("head")}return Object(o.a)(e,[{key:"validateStyleProperty",value:function(e){return ja(e)}},{key:"matchesElement",value:function(e,t){return Ea(e,t)}},{key:"containsElement",value:function(e,t){return Sa(e,t)}},{key:"query",value:function(e,t,n){return Aa(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return Da(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+="".concat(r,"}\n")}),i+="}\n";var a=document.createElement("style");return a.textContent=i,a}},{key:"animate",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=a.filter(function(e){return e instanceof Cs}),s={};to(n,i)&&o.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var c=Ss(t=no(e,t,s));if(0==n)return new xs(e,c);var u="".concat(js).concat(this._count++),l=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(l);var h=hs(e,t),f=new Cs(e,t,u,n,i,r,c,h);return f.onDestroy(function(){return As(l)}),f}}]),e}();function Ss(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}function As(e){e.parentNode.removeChild(e)}var Ds=function(){function e(t,n,i,r){Object(a.a)(this,e),this.element=t,this.keyframes=n,this.options=i,this._specialStyles=r,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=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return Object(o.a)(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:ro(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),Ts=function(){function e(){Object(a.a)(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Ps().toString()),this._cssKeyframesDriver=new Es}return Object(o.a)(e,[{key:"validateStyleProperty",value:function(e){return ja(e)}},{key:"matchesElement",value:function(e,t){return Ea(e,t)}},{key:"containsElement",value:function(e,t){return Sa(e,t)}},{key:"query",value:function(e,t,n){return Aa(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0,s=!o&&!this._isNativeImpl;if(s)return this._cssKeyframesDriver.animate(e,t,n,i,r,a);var c=0==i?"both":"forwards",u={duration:n,delay:i,fill:c};r&&(u.easing=r);var l={},h=a.filter(function(e){return e instanceof Ds});to(n,i)&&h.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return l[e]=t[e]})});var f=hs(e,t=no(e,t=t.map(function(e){return Ka(e,!1)}),l));return new Ds(e,t,u,f)}}]),e}();function Ps(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var Is=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i){var r;return Object(a.a)(this,n),(r=t.call(this))._nextAnimationId=0,r._renderer=e.createRenderer(i.body,{id:"0",encapsulation:h.O.None,styles:[],data:{animation:[]}}),r}return Object(o.a)(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?na(e):e;return Ls(this._renderer,null,t,"register",[n]),new Rs(t,this._renderer)}}]),n}(Xr);return e.\u0275fac=function(t){return new(t||e)(h.Ub(h.D),h.Ub(v))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}(),Rs=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i){var r;return Object(a.a)(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return Object(o.a)(n,[{key:"create",value:function(e,t){return new Ms(this._id,e,t||{},this._renderer)}}]),n}(Jr),Ms=function(){function e(t,n,i,r){Object(a.a)(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return Object(o.a)(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Ls(this._renderer,this.element,this.id,e,n)}},{key:"onDone",value:function(e){this._listen("done",e)}},{key:"onStart",value:function(e){this._listen("start",e)}},{key:"onDestroy",value:function(e){this._listen("destroy",e)}},{key:"init",value:function(){this._command("init")}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this._command("play"),this._started=!0}},{key:"pause",value:function(){this._command("pause")}},{key:"restart",value:function(){this._command("restart")}},{key:"finish",value:function(){this._command("finish")}},{key:"destroy",value:function(){this._command("destroy")}},{key:"reset",value:function(){this._command("reset")}},{key:"setPosition",value:function(e){this._command("setPosition",e)}},{key:"getPosition",value:function(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}]),e}();function Ls(e,t,n,i,r){return e.setProperty(t,"@@".concat(n,":").concat(i),r)}var Fs="@",Ns="@.disabled",Bs=function(){var e=function(){function e(t,n,i){Object(a.a)(this,e),this.delegate=t,this.engine=n,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=function(e,t){t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}return Object(o.a)(e,[{key:"createRenderer",value:function(e,t){var n=this,i=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){var r=this._rendererCache.get(i);return r||(r=new Vs("",i,this.engine),this._rendererCache.set(i,r)),r}var a=t.id,o=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(o,e),t.data.animation.forEach(function t(i){Array.isArray(i)?i.forEach(t):n.engine.registerTrigger(a,o,e,i.name,i)}),new Us(this,o,i,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var e=this;this.promise.then(function(){e._microtaskId++})}},{key:"scheduleListenerCallback",value:function(e,t,n){var i=this;e>=0&&e<this._microtaskId?this._zone.run(function(){return t(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){i._zone.run(function(){i._animationCallbacksBuffer.forEach(function(e){var t=Object(l.a)(e,2);(0,t[0])(t[1])}),i._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}},{key:"end",value:function(){var e=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){e._scheduleCountTask(),e.engine.flush(e._microtaskId)}),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(h.D),h.Ub(ls),h.Ub(h.x))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}(),Vs=function(){function e(t,n,i){Object(a.a)(this,e),this.namespaceId=t,this.delegate=n,this.engine=i,this.destroyNode=this.delegate.destroyNode?function(e){return n.destroyNode(e)}:null}return Object(o.a)(e,[{key:"data",get:function(){return this.delegate.data}},{key:"destroy",value:function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}},{key:"createElement",value:function(e,t){return this.delegate.createElement(e,t)}},{key:"createComment",value:function(e){return this.delegate.createComment(e)}},{key:"createText",value:function(e){return this.delegate.createText(e)}},{key:"appendChild",value:function(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}},{key:"insertBefore",value:function(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){t.charAt(0)==Fs&&t==Ns?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}}]),e}(),Us=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o){var s;return Object(a.a)(this,n),(s=t.call(this,i,r,o)).factory=e,s.namespaceId=i,s}return Object(o.a)(n,[{key:"setProperty",value:function(e,t,n){t.charAt(0)==Fs?"."==t.charAt(1)&&t==Ns?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){var i,r,a=this;if(t.charAt(0)==Fs){var o=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),s=t.substr(1),c="";if(s.charAt(0)!=Fs){var u=(r=(i=s).indexOf("."),[i.substring(0,r),i.substr(r+1)]),h=Object(l.a)(u,2);s=h[0],c=h[1]}return this.engine.listen(this.namespaceId,o,s,c,function(e){a.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}]),n}(Vs),zs=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r){return Object(a.a)(this,n),t.call(this,e.body,i,r)}return n}(ls);return e.\u0275fac=function(t){return new(t||e)(h.Ub(v),h.Ub(Pa),h.Ub(Ao))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}(),Ks=new h.q("AnimationModuleType"),Hs=[{provide:Xr,useClass:Is},{provide:Ao,useFactory:function(){return new Do}},{provide:ls,useClass:zs},{provide:h.D,useFactory:function(e,t,n){return new Bs(e,t,n)},deps:[Pe,ls,h.x]}],Ws=[{provide:Pa,useFactory:function(){return"function"==typeof Ps()?new Ts:new Es}},{provide:Ks,useValue:"BrowserAnimations"}].concat(Hs),qs=([{provide:Pa,useClass:Ta},{provide:Ks,useValue:"NoopAnimations"}].concat(Hs),function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({providers:Ws,imports:[We]}),e}());function Qs(e,t){if(1&e&&h.Lb(0,"mat-pseudo-checkbox",4),2&e){var n=h.cc();h.ic("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}function Gs(e,t){if(1&e&&(h.Qb(0,"span",5),h.zc(1),h.Pb()),2&e){var n=h.cc();h.zb(1),h.Bc("(",n.group.label,")")}}var Ys=["*"],Zs=function(){var e=function e(){Object(a.a)(this,e)};return e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",e}(),Xs=function(){var e=function e(){Object(a.a)(this,e)};return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),Js=new h.M("11.2.13"),$s=new h.q("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),ec=function(){var e=function(){function e(t,n,i){Object(a.a)(this,e),this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return Object(o.a)(e,[{key:"_getWindow",value:function(){var e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}},{key:"_checksAreEnabled",value:function(){return Object(h.T)()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);var t=getComputedStyle(e);t&&"none"!==t.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(e)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&Js.full!==Wr.full&&console.warn("The Angular Material version ("+Js.full+") does not match the Angular CDK version ("+Wr.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(Mr),h.Ub($s,8),h.Ub(v))},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[Hn],Hn]}),e}();function tc(e){return function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){var e;Object(a.a)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._disabled=!1,e}return Object(o.a)(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=Si(e)}}]),n}(e)}function nc(e,t){return function(e){Object(s.a)(i,e);var n=Object(c.a)(i);function i(){var e;Object(a.a)(this,i);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return(e=n.call.apply(n,[this].concat(o))).defaultColor=t,e.color=t,e}return Object(o.a)(i,[{key:"color",get:function(){return this._color},set:function(e){var t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-".concat(this._color)),t&&this._elementRef.nativeElement.classList.add("mat-".concat(t)),this._color=t)}}]),i}(e)}function ic(e){return function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){var e;Object(a.a)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._disableRipple=!1,e}return Object(o.a)(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=Si(e)}}]),n}(e)}function rc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=function(e){Object(s.a)(i,e);var n=Object(c.a)(i);function i(){var e;Object(a.a)(this,i);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return(e=n.call.apply(n,[this].concat(o)))._tabIndex=t,e.defaultTabIndex=t,e}return Object(o.a)(i,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(e){this._tabIndex=null!=e?Ai(e):this.defaultTabIndex}}]),i}(e);return n}function ac(e){return function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){var e;Object(a.a)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).errorState=!1,e.stateChanges=new Rt.a,e}return Object(o.a)(n,[{key:"updateErrorState",value:function(){var e=this.errorState,t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);t!==e&&(this.errorState=t,this.stateChanges.next())}}]),n}(e)}var oc,sc=new h.q("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Object(h.S)(h.u)}}),cc=function(){function e(){Object(a.a)(this,e),this._localeChanges=new Rt.a,this.localeChanges=this._localeChanges}return Object(o.a)(e,[{key:"getValidDateOrNull",value:function(e){return this.isDateInstance(e)&&this.isValid(e)?e:null}},{key:"deserialize",value:function(e){return null==e||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()}},{key:"setLocale",value:function(e){this.locale=e,this._localeChanges.next()}},{key:"compareDate",value:function(e,t){return this.getYear(e)-this.getYear(t)||this.getMonth(e)-this.getMonth(t)||this.getDate(e)-this.getDate(t)}},{key:"sameDate",value:function(e,t){if(e&&t){var n=this.isValid(e),i=this.isValid(t);return n&&i?!this.compareDate(e,t):n==i}return e==t}},{key:"clampDate",value:function(e,t,n){return t&&this.compareDate(e,t)<0?t:n&&this.compareDate(e,n)>0?n:e}}]),e}(),uc=new h.q("mat-date-formats");try{oc="undefined"!=typeof Intl}catch(jy){oc=!1}var lc={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},hc=pc(31,function(e){return String(e+1)}),fc={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},dc=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function pc(e,t){for(var n=Array(e),i=0;i<e;i++)n[i]=t(i);return n}var vc=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,o){var s,c;return Object(a.a)(this,n),(c=t.call(this)).useUtcForDisplay=!0,Object(i.a)((s=Object(It.a)(c),Object(r.a)(n.prototype)),"setLocale",s).call(s,e),c.useUtcForDisplay=!o.TRIDENT,c._clampDate=o.TRIDENT||o.EDGE,c}return Object(o.a)(n,[{key:"getYear",value:function(e){return e.getFullYear()}},{key:"getMonth",value:function(e){return e.getMonth()}},{key:"getDate",value:function(e){return e.getDate()}},{key:"getDayOfWeek",value:function(e){return e.getDay()}},{key:"getMonthNames",value:function(e){var t=this;if(oc){var n=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return pc(12,function(e){return t._stripDirectionalityCharacters(t._format(n,new Date(2017,e,1)))})}return lc[e]}},{key:"getDateNames",value:function(){var e=this;if(oc){var t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return pc(31,function(n){return e._stripDirectionalityCharacters(e._format(t,new Date(2017,0,n+1)))})}return hc}},{key:"getDayOfWeekNames",value:function(e){var t=this;if(oc){var n=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return pc(7,function(e){return t._stripDirectionalityCharacters(t._format(n,new Date(2017,0,e+1)))})}return fc[e]}},{key:"getYearName",value:function(e){if(oc){var t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(t,e))}return String(this.getYear(e))}},{key:"getFirstDayOfWeek",value:function(){return 0}},{key:"getNumDaysInMonth",value:function(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}},{key:"clone",value:function(e){return new Date(e.getTime())}},{key:"createDate",value:function(e,t,n){var i=this._createDateWithOverflow(e,t,n);return i.getMonth(),i}},{key:"today",value:function(){return new Date}},{key:"parse",value:function(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}},{key:"format",value:function(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");if(oc){this._clampDate&&(e.getFullYear()<1||e.getFullYear()>9999)&&(e=this.clone(e)).setFullYear(Math.max(1,Math.min(9999,e.getFullYear()))),t=Object.assign(Object.assign({},t),{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,t);return this._stripDirectionalityCharacters(this._format(n,e))}return this._stripDirectionalityCharacters(e.toDateString())}},{key:"addCalendarYears",value:function(e,t){return this.addCalendarMonths(e,12*t)}},{key:"addCalendarMonths",value:function(e,t){var n=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(n)!=((this.getMonth(e)+t)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}},{key:"addCalendarDays",value:function(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}},{key:"toIso8601",value:function(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}},{key:"deserialize",value:function(e){if("string"==typeof e){if(!e)return null;if(dc.test(e)){var t=new Date(e);if(this.isValid(t))return t}}return Object(i.a)(Object(r.a)(n.prototype),"deserialize",this).call(this,e)}},{key:"isDateInstance",value:function(e){return e instanceof Date}},{key:"isValid",value:function(e){return!isNaN(e.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(e,t,n){var i=new Date;return i.setFullYear(e,t,n),i.setHours(0,0,0,0),i}},{key:"_2digit",value:function(e){return("00"+e).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(e){return e.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(e,t){var n=new Date;return n.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(n)}}]),n}(cc);return e.\u0275fac=function(t){return new(t||e)(h.Ub(sc,8),h.Ub(Qi))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}(),mc=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({providers:[{provide:cc,useClass:vc}],imports:[[Gi]]}),e}(),bc={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},_c=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({providers:[{provide:uc,useValue:bc}],imports:[[mc]]}),e}(),yc=function(){var e=function(){function e(){Object(a.a)(this,e)}return Object(o.a)(e,[{key:"isErrorState",value:function(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(h.Gb)({factory:function(){return new e},token:e,providedIn:"root"}),e}(),gc=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[ec],ec]}),e}(),kc=function(){function e(t,n,i){Object(a.a)(this,e),this._renderer=t,this.element=n,this.config=i,this.state=3}return Object(o.a)(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),Oc={enterDuration:450,exitDuration:400},wc=Xi({passive:!0}),Cc=["mousedown","touchstart"],xc=["mouseup","mouseleave","touchend","touchcancel"],jc=function(){function e(t,n,i,r){Object(a.a)(this,e),this._target=t,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Ii(i))}return Object(o.a)(e,[{key:"fadeInRipple",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),a=Object.assign(Object.assign({},Oc),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var o=i.radius||Sc(e,t,r),s=e-r.left,c=t-r.top,u=a.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left="".concat(s-o,"px"),l.style.top="".concat(c-o,"px"),l.style.height="".concat(2*o,"px"),l.style.width="".concat(2*o,"px"),null!=i.color&&(l.style.backgroundColor=i.color),l.style.transitionDuration="".concat(u,"ms"),this._containerElement.appendChild(l),Ec(l),l.style.transform="scale(1)";var h=new kc(this,l,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var e=h===n._mostRecentTransientRipple;h.state=1,i.persistent||e&&n._isPointerDown||h.fadeOut()},u),h}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},Oc),e.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(e){e.config.persistent||e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=Ii(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(Cc))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(xc),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=xr(e),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||t||n||(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}},{key:"_onTouchStart",value:function(e){if(!this._target.rippleDisabled&&!jr(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var t=e.changedTouches,n=0;n<t.length;n++)this.fadeInRipple(t[n].clientX,t[n].clientY,this._target.rippleConfig)}}},{key:"_onPointerUp",value:function(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(function(e){!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}},{key:"_runTimeoutOutsideZone",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,wc)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(Cc.forEach(function(t){e._triggerElement.removeEventListener(t,e,wc)}),this._pointerUpEventsRegistered&&xc.forEach(function(t){e._triggerElement.removeEventListener(t,e,wc)}))}}]),e}();function Ec(e){window.getComputedStyle(e).getPropertyValue("opacity")}function Sc(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}var Ac=new h.q("mat-ripple-global-options"),Dc=function(){var e=function(){function e(t,n,i,r,o){Object(a.a)(this,e),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new jc(this,n,t,i)}return Object(o.a)(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.j),h.Kb(h.x),h.Kb(Qi),h.Kb(Ac,8),h.Kb(Ks,8))},e.\u0275dir=h.Fb({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&h.Cb("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e}(),Tc=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[ec,Gi],ec]}),e}(),Pc=function(){var e=function e(t){Object(a.a)(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1};return e.\u0275fac=function(t){return new(t||e)(h.Kb(Ks,8))},e.\u0275cmp=h.Eb({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&h.Cb("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),e}(),Ic=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[ec]]}),e}(),Rc=new h.q("MAT_OPTION_PARENT_COMPONENT"),Mc=tc(function e(){Object(a.a)(this,e)}),Lc=0,Fc=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var i,r;return Object(a.a)(this,n),(i=t.call(this))._labelId="mat-optgroup-label-".concat(Lc++),i._inert=null!==(r=null==e?void 0:e.inertGroups)&&void 0!==r&&r,i}return n}(Mc);return e.\u0275fac=function(t){return new(t||e)(h.Kb(Rc,8))},e.\u0275dir=h.Fb({type:e,inputs:{label:"label"},features:[h.wb]}),e}(),Nc=new h.q("MatOptgroup"),Bc=0,Vc=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Object(a.a)(this,e),this.source=t,this.isUserInput=n},Uc=function(){var e=function(){function e(t,n,i,r){Object(a.a)(this,e),this._element=t,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(Bc++),this.onSelectionChange=new h.m,this._stateChanges=new Rt.a}return Object(o.a)(e,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=Si(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){e.keyCode!==Ui&&32!==e.keyCode||zi(e)||(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new Vc(this,e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.j),h.Kb(h.g),h.Kb(void 0),h.Kb(Fc))},e.\u0275dir=h.Fb({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e}(),zc=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o){return Object(a.a)(this,n),t.call(this,e,i,r,o)}return n}(Uc);return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.j),h.Kb(h.g),h.Kb(Rc,8),h.Kb(Nc,8))},e.\u0275cmp=h.Eb({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&h.Yb("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(h.Tb("id",t.id),h.Ab("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),h.Cb("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[h.wb],ngContentSelectors:Ys,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(h.hc(),h.xc(0,Qs,1,2,"mat-pseudo-checkbox",0),h.Qb(1,"span",1),h.gc(2),h.Pb(),h.xc(3,Gs,2,1,"span",2),h.Lb(4,"div",3)),2&e&&(h.ic("ngIf",t.multiple),h.zb(3),h.ic("ngIf",t.group&&t.group._inert),h.zb(1),h.ic("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[X,Dc,Pc],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e}();function Kc(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),a=0,o=0;o<e+1;o++)i[o].group&&i[o].group===r[a]&&a++;return a}return 0}var Hc=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[Tc,le,ec,Ic]]}),e}(),Wc=n("D0XW");function qc(e){return!Object(Ft.a)(e)&&e-parseFloat(e)+1>=0}function Qc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return qc(t)?i=Number(t)<1?1:Number(t):Object(Yr.a)(t)&&(n=t),Object(Yr.a)(n)||(n=Wc.a),new Ge.a(function(t){var r=qc(e)?e:+e-n.now();return n.schedule(Gc,r,{index:0,period:i,subscriber:t})})}function Gc(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}var Yc=n("/uUt"),Zc=n("zx2A");function Xc(e){return function(t){return t.lift(new Jc(e))}}var Jc=function(){function e(t){Object(a.a)(this,e),this.durationSelector=t}return Object(o.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new $c(e,this.durationSelector))}}]),e}(),$c=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i){var r;return Object(a.a)(this,n),(r=t.call(this,e)).durationSelector=i,r.hasValue=!1,r}return Object(o.a)(n,[{key:"_next",value:function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t;try{t=(0,this.durationSelector)(e)}catch(i){return this.destination.error(i)}var n=Object(Zc.c)(t,new Zc.a(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},{key:"clearThrottle",value:function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),n}(Zc.b);function eu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wc.a;return Xc(function(){return Qc(e,t)})}n("jtHE");var tu=function e(){Object(a.a)(this,e)};function nu(e){return e&&"function"==typeof e.connect}var iu=function(){function e(){Object(a.a)(this,e)}return Object(o.a)(e,[{key:"applyChanges",value:function(e,t,n,i,r){e.forEachOperation(function(e,i,a){var o,s;if(null==e.previousIndex){var c=n(e,i,a);o=t.createEmbeddedView(c.templateRef,c.context,c.index),s=1}else null==a?(t.remove(i),s=3):(o=t.get(i),t.move(o,a),s=2);r&&r({context:null==o?void 0:o.context,operation:s,record:e})})}},{key:"detach",value:function(){}}]),e}(),ru=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Object(a.a)(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Rt.a,i&&i.length&&(n?i.forEach(function(e){return t._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return Object(o.a)(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this._verifyValueAssignment(n),n.forEach(function(t){return e._markSelected(t)}),this._emitChangeEvent()}},{key:"deselect",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this._verifyValueAssignment(n),n.forEach(function(t){return e._unmarkSelected(t)}),this._emitChangeEvent()}},{key:"toggle",value:function(e){this.isSelected(e)?this.deselect(e):this.select(e)}},{key:"clear",value:function(){this._unmarkAll(),this._emitChangeEvent()}},{key:"isSelected",value:function(e){return this._selection.has(e)}},{key:"isEmpty",value:function(){return 0===this._selection.size}},{key:"hasValue",value:function(){return!this.isEmpty()}},{key:"sort",value:function(e){this._multiple&&this.selected&&this._selected.sort(e)}},{key:"isMultipleSelection",value:function(){return this._multiple}},{key:"_emitChangeEvent",value: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=[])}},{key:"_markSelected",value:function(e){this.isSelected(e)||(this._multiple||this._unmarkAll(),this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}},{key:"_unmarkSelected",value:function(e){this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}},{key:"_unmarkAll",value:function(){var e=this;this.isEmpty()||this._selection.forEach(function(t){return e._unmarkSelected(t)})}},{key:"_verifyValueAssignment",value:function(e){}}]),e}(),au=function(){var e=function(){function e(){Object(a.a)(this,e),this._listeners=[]}return Object(o.a)(e,[{key:"notify",value:function(e,t){var n,i=Object(u.a)(this._listeners);try{for(i.s();!(n=i.n()).done;)(0,n.value)(e,t)}catch(r){i.e(r)}finally{i.f()}}},{key:"listen",value:function(e){var t=this;return this._listeners.push(e),function(){t._listeners=t._listeners.filter(function(t){return e!==t})}}},{key:"ngOnDestroy",value:function(){this._listeners=[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(h.Gb)({factory:function(){return new e},token:e,providedIn:"root"}),e}(),ou=new h.q("_ViewRepeater"),su=function(){var e=function(){function e(t,n,i){Object(a.a)(this,e),this._ngZone=t,this._platform=n,this._scrolled=new Rt.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return Object(o.a)(e,[{key:"register",value:function(e){var t=this;this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(function(){return t._scrolled.next(e)}))}},{key:"deregister",value:function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}},{key:"scrolled",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new Ge.a(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(eu(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):Object(Qe.a)()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(Object(Ze.a)(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=Ii(t),i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return Bt(e._getWindow().document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(h.x),h.Ub(Qi),h.Ub(v,8))},e.\u0275prov=Object(h.Gb)({factory:function(){return new e(Object(h.Ub)(h.x),Object(h.Ub)(Qi),Object(h.Ub)(v,8))},token:e,providedIn:"root"}),e}(),cu=function(){var e=function(){function e(t,n,i){var r=this;Object(a.a)(this,e),this._platform=t,this._change=new Rt.a,this._changeListener=function(e){r._change.next(e)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var e=r._getWindow();e.addEventListener("resize",r._changeListener),e.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._updateViewportSize()})})}return Object(o.a)(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(eu(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(Qi),h.Ub(h.x),h.Ub(v,8))},e.\u0275prov=Object(h.Gb)({factory:function(){return new e(Object(h.Ub)(Qi),Object(h.Ub)(h.x),Object(h.Ub)(v,8))},token:e,providedIn:"root"}),e}(),uu=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({}),e}(),lu=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[Hn,Gi,uu],Hn,uu]}),e}();function hu(e,t){1&e&&h.gc(0)}var fu=["*"];function du(e,t){}var pu=function(e){return{animationDuration:e}},vu=function(e,t){return{value:e,params:t}},mu=["tabBodyWrapper"],bu=["tabHeader"];function _u(e,t){}function yu(e,t){if(1&e&&h.xc(0,_u,0,0,"ng-template",9),2&e){var n=h.cc().$implicit;h.ic("cdkPortalOutlet",n.templateLabel)}}function gu(e,t){if(1&e&&h.zc(0),2&e){var n=h.cc().$implicit;h.Ac(n.textLabel)}}function ku(e,t){if(1&e){var n=h.Rb();h.Qb(0,"div",6),h.Yb("click",function(){h.rc(n);var e=t.$implicit,i=t.index,r=h.cc(),a=h.pc(1);return r._handleClick(e,a,i)})("cdkFocusChange",function(e){h.rc(n);var i=t.index;return h.cc()._tabFocusChanged(e,i)}),h.Qb(1,"div",7),h.xc(2,yu,1,1,"ng-template",8),h.xc(3,gu,1,1,"ng-template",8),h.Pb(),h.Pb()}if(2&e){var i=t.$implicit,r=t.index,a=h.cc();h.Cb("mat-tab-label-active",a.selectedIndex==r),h.ic("id",a._getTabLabelId(r))("disabled",i.disabled)("matRippleDisabled",i.disabled||a.disableRipple),h.Ab("tabIndex",a._getTabIndex(i,r))("aria-posinset",r+1)("aria-setsize",a._tabs.length)("aria-controls",a._getTabContentId(r))("aria-selected",a.selectedIndex==r)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),h.zb(2),h.ic("ngIf",i.templateLabel),h.zb(1),h.ic("ngIf",!i.templateLabel)}}function Ou(e,t){if(1&e){var n=h.Rb();h.Qb(0,"mat-tab-body",10),h.Yb("_onCentered",function(){return h.rc(n),h.cc()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return h.rc(n),h.cc()._setTabBodyWrapperHeight(e)}),h.Pb()}if(2&e){var i=t.$implicit,r=t.index,a=h.cc();h.Cb("mat-tab-body-active",a.selectedIndex==r),h.ic("id",a._getTabContentId(r))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",a.animationDuration),h.Ab("aria-labelledby",a._getTabLabelId(r))}}var wu=["tabListContainer"],Cu=["tabList"],xu=["nextPaginator"],ju=["previousPaginator"],Eu=new h.q("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(e){return{left:e?(e.offsetLeft||0)+"px":"0",width:e?(e.offsetWidth||0)+"px":"0"}}}}),Su=function(){var e=function(){function e(t,n,i,r){Object(a.a)(this,e),this._elementRef=t,this._ngZone=n,this._inkBarPositioner=i,this._animationMode=r}return Object(o.a)(e,[{key:"alignToElement",value:function(e){var t=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return t._setStyles(e)})}):this._setStyles(e)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(e){var t=this._inkBarPositioner(e),n=this._elementRef.nativeElement;n.style.left=t.left,n.style.width=t.width}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.j),h.Kb(h.x),h.Kb(Eu),h.Kb(Ks,8))},e.\u0275dir=h.Fb({type:e,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&h.Cb("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),e}(),Au=new h.q("MatTabContent"),Du=new h.q("MatTabLabel"),Tu=tc(function e(){Object(a.a)(this,e)}),Pu=new h.q("MAT_TAB_GROUP"),Iu=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i){var r;return Object(a.a)(this,n),(r=t.call(this))._viewContainerRef=e,r._closestTabGroup=i,r.textLabel="",r._contentPortal=null,r._stateChanges=new Rt.a,r.position=null,r.origin=null,r.isActive=!1,r}return Object(o.a)(n,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(e){this._setTemplateLabelInput(e)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new Br(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(e){e&&(this._templateLabel=e)}}]),n}(Tu);return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.N),h.Kb(Pu))},e.\u0275cmp=h.Eb({type:e,selectors:[["mat-tab"]],contentQueries:function(e,t,n){var i;1&e&&(h.Db(n,Du,1),h.Db(n,Au,3,h.J)),2&e&&(h.oc(i=h.Zb())&&(t.templateLabel=i.first),h.oc(i=h.Zb())&&(t._explicitContent=i.first))},viewQuery:function(e,t){var n;1&e&&h.Cc(h.J,3),2&e&&h.oc(n=h.Zb())&&(t._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[h.wb,h.xb],ngContentSelectors:fu,decls:1,vars:0,template:function(e,t){1&e&&(h.hc(),h.xc(0,hu,1,0,"ng-template"))},encapsulation:2}),e}(),Ru={translateTab:ea("translateTab",[ra("center, void, left-origin-center, right-origin-center",ia({transform:"none"})),ra("left",ia({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),ra("right",ia({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),aa("* => left, * => right, left => center, right => center",ta("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),aa("void => left-origin-center",[ia({transform:"translate3d(-100%, 0, 0)"}),ta("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),aa("void => right-origin-center",[ia({transform:"translate3d(100%, 0, 0)"}),ta("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},Mu=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o){var s;return Object(a.a)(this,n),(s=t.call(this,e,i,o))._host=r,s._centeringSub=Vi.a.EMPTY,s._leavingSub=Vi.a.EMPTY,s}return Object(o.a)(n,[{key:"ngOnInit",value:function(){var e=this;Object(i.a)(Object(r.a)(n.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(Zr(this._host._isCenterPosition(this._host._position))).subscribe(function(t){t&&!e.hasAttached()&&e.attach(e._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){e.detach()})}},{key:"ngOnDestroy",value:function(){Object(i.a)(Object(r.a)(n.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),n}(Kr);return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.h),h.Kb(h.N),h.Kb(Object(h.R)(function(){return Fu})),h.Kb(v))},e.\u0275dir=h.Fb({type:e,selectors:[["","matTabBodyHost",""]],features:[h.wb]}),e}(),Lu=function(){var e=function(){function e(t,n,i){var r=this;Object(a.a)(this,e),this._elementRef=t,this._dir=n,this._dirChangeSubscription=Vi.a.EMPTY,this._translateTabComplete=new Rt.a,this._onCentering=new h.m,this._beforeCentering=new h.m,this._afterLeavingCenter=new h.m,this._onCentered=new h.m(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe(function(e){r._computePositionAnimationState(e),i.markForCheck()})),this._translateTabComplete.pipe(Object(Yc.a)(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){r._isCenterPosition(e.toState)&&r._isCenterPosition(r._position)&&r._onCentered.emit(),r._isCenterPosition(e.fromState)&&!r._isCenterPosition(r._position)&&r._afterLeavingCenter.emit()})}return Object(o.a)(e,[{key:"position",set:function(e){this._positionIndex=e,this._computePositionAnimationState()}},{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(e){var t=this._isCenterPosition(e.toState);this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}},{key:"_computePositionAnimationState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(e){var t=this._getLayoutDirection();return"ltr"==t&&e<=0||"rtl"==t&&e>0?"left-origin-center":"right-origin-center"}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.j),h.Kb(Kn,8),h.Kb(h.g))},e.\u0275dir=h.Fb({type:e,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),e}(),Fu=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r){return Object(a.a)(this,n),t.call(this,e,i,r)}return n}(Lu);return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.j),h.Kb(Kn,8),h.Kb(h.g))},e.\u0275cmp=h.Eb({type:e,selectors:[["mat-tab-body"]],viewQuery:function(e,t){var n;1&e&&h.Cc(Kr,1),2&e&&h.oc(n=h.Zb())&&(t._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[h.wb],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,t){1&e&&(h.Qb(0,"div",0,1),h.Yb("@translateTab.start",function(e){return t._onTranslateTabStarted(e)})("@translateTab.done",function(e){return t._translateTabComplete.next(e)}),h.xc(2,du,0,0,"ng-template",2),h.Pb()),2&e&&h.ic("@translateTab",h.nc(3,vu,t._position,h.mc(1,pu,t.animationDuration)))},directives:[Mu],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Ru.translateTab]}}),e}(),Nu=new h.q("MAT_TABS_CONFIG"),Bu=0,Vu=function e(){Object(a.a)(this,e)},Uu=nc(ic(function e(t){Object(a.a)(this,e),this._elementRef=t}),"primary"),zu=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o){var s;return Object(a.a)(this,n),(s=t.call(this,e))._changeDetectorRef=i,s._animationMode=o,s._tabs=new h.B,s._indexToSelect=0,s._tabBodyWrapperHeight=0,s._tabsSubscription=Vi.a.EMPTY,s._tabLabelSubscription=Vi.a.EMPTY,s._selectedIndex=null,s.headerPosition="above",s.selectedIndexChange=new h.m,s.focusChange=new h.m,s.animationDone=new h.m,s.selectedTabChange=new h.m(!0),s._groupId=Bu++,s.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",s.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,s.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,s}return Object(o.a)(n,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(e){this._dynamicHeight=Si(e)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){this._indexToSelect=Ai(e,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(e){var t=this._elementRef.nativeElement;t.classList.remove("mat-background-".concat(this.backgroundColor)),e&&t.classList.add("mat-background-".concat(e)),this._backgroundColor=e}},{key:"ngAfterContentChecked",value:function(){var e=this,t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){var n=null==this._selectedIndex;if(!n){this.selectedTabChange.emit(this._createChangeEvent(t));var i=this._tabBodyWrapper.nativeElement;i.style.minHeight=i.clientHeight+"px"}Promise.resolve().then(function(){e._tabs.forEach(function(e,n){return e.isActive=n===t}),n||(e.selectedIndexChange.emit(t),e._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(n,i){n.position=i-t,null==e._selectedIndex||0!=n.position||n.origin||(n.origin=t-e._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var e=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(e._clampTabIndex(e._indexToSelect)===e._selectedIndex)for(var t=e._tabs.toArray(),n=0;n<t.length;n++)if(t[n].isActive){e._indexToSelect=e._selectedIndex=n;break}e._changeDetectorRef.markForCheck()})}},{key:"_subscribeToAllTabChanges",value:function(){var e=this;this._allTabs.changes.pipe(Zr(this._allTabs)).subscribe(function(t){e._tabs.reset(t.filter(function(t){return t._closestTabGroup===e})),e._tabs.notifyOnChanges()})}},{key:"ngOnDestroy",value:function(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}},{key:"realignInkBar",value:function(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}},{key:"_focusChanged",value:function(e){this.focusChange.emit(this._createChangeEvent(e))}},{key:"_createChangeEvent",value:function(e){var t=new Vu;return t.index=e,this._tabs&&this._tabs.length&&(t.tab=this._tabs.toArray()[e]),t}},{key:"_subscribeToTabLabels",value:function(){var e=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Lt.a.apply(void 0,Object(qe.a)(this._tabs.map(function(e){return e._stateChanges}))).subscribe(function(){return e._changeDetectorRef.markForCheck()})}},{key:"_clampTabIndex",value:function(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}},{key:"_getTabLabelId",value:function(e){return"mat-tab-label-".concat(this._groupId,"-").concat(e)}},{key:"_getTabContentId",value:function(e){return"mat-tab-content-".concat(this._groupId,"-").concat(e)}},{key:"_setTabBodyWrapperHeight",value:function(e){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var t=this._tabBodyWrapper.nativeElement;t.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(t.style.height=e+"px")}}},{key:"_removeTabBodyWrapperHeight",value:function(){var e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}},{key:"_handleClick",value:function(e,t,n){e.disabled||(this.selectedIndex=t.focusIndex=n)}},{key:"_getTabIndex",value:function(e,t){return e.disabled?null:this.selectedIndex===t?0:-1}},{key:"_tabFocusChanged",value:function(e,t){e&&(this._tabHeader.focusIndex=t)}}]),n}(Uu);return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.j),h.Kb(h.g),h.Kb(Nu,8),h.Kb(Ks,8))},e.\u0275dir=h.Fb({type:e,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[h.wb]}),e}(),Ku=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o){return Object(a.a)(this,n),t.call(this,e,i,r,o)}return n}(zu);return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.j),h.Kb(h.g),h.Kb(Nu,8),h.Kb(Ks,8))},e.\u0275cmp=h.Eb({type:e,selectors:[["mat-tab-group"]],contentQueries:function(e,t,n){var i;1&e&&h.Db(n,Iu,1),2&e&&h.oc(i=h.Zb())&&(t._allTabs=i)},viewQuery:function(e,t){var n;1&e&&(h.Cc(mu,1),h.Cc(bu,1)),2&e&&(h.oc(n=h.Zb())&&(t._tabBodyWrapper=n.first),h.oc(n=h.Zb())&&(t._tabHeader=n.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,t){2&e&&h.Cb("mat-tab-group-dynamic-height",t.dynamicHeight)("mat-tab-group-inverted-header","below"===t.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[h.yb([{provide:Pu,useExisting:e}]),h.wb],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(e,t){1&e&&(h.Qb(0,"mat-tab-header",0,1),h.Yb("indexFocused",function(e){return t._focusChanged(e)})("selectFocusedIndex",function(e){return t.selectedIndex=e}),h.xc(2,ku,4,14,"div",2),h.Pb(),h.Qb(3,"div",3,4),h.xc(5,Ou,1,8,"mat-tab-body",5),h.Pb()),2&e&&(h.ic("selectedIndex",t.selectedIndex||0)("disableRipple",t.disableRipple)("disablePagination",t.disablePagination),h.zb(2),h.ic("ngForOf",t._tabs),h.zb(1),h.Cb("_mat-animation-noopable","NoopAnimations"===t._animationMode),h.zb(2),h.ic("ngForOf",t._tabs))},directives:function(){return[Yu,Y,Wu,Dc,Tr,X,Kr,Fu]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),e}(),Hu=tc(function e(){Object(a.a)(this,e)}),Wu=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this)).elementRef=e,i}return Object(o.a)(n,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),n}(Hu);return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.j))},e.\u0275dir=h.Fb({type:e,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,t){2&e&&(h.Ab("aria-disabled",!!t.disabled),h.Cb("mat-tab-disabled",t.disabled))},inputs:{disabled:"disabled"},features:[h.wb]}),e}(),qu=Xi({passive:!0}),Qu=function(){var e=function(){function e(t,n,i,r,o,s,c){var u=this;Object(a.a)(this,e),this._elementRef=t,this._changeDetectorRef=n,this._viewportRuler=i,this._dir=r,this._ngZone=o,this._platform=s,this._animationMode=c,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Rt.a,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Rt.a,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new h.m,this.indexFocused=new h.m,o.runOutsideAngular(function(){Bt(t.nativeElement,"mouseleave").pipe(Object(Kt.a)(u._destroyed)).subscribe(function(){u._stopInterval()})})}return Object(o.a)(e,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){e=Ai(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}},{key:"ngAfterViewInit",value:function(){var e=this;Bt(this._previousPaginator.nativeElement,"touchstart",qu).pipe(Object(Kt.a)(this._destroyed)).subscribe(function(){e._handlePaginatorPress("before")}),Bt(this._nextPaginator.nativeElement,"touchstart",qu).pipe(Object(Kt.a)(this._destroyed)).subscribe(function(){e._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var e=this,t=this._dir?this._dir.change:Object(Qe.a)(null),n=this._viewportRuler.change(150),i=function(){e.updatePagination(),e._alignInkBarToSelectedTab()};this._keyManager=new mr(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),Object(Lt.a)(t,n,this._items.changes).pipe(Object(Kt.a)(this._destroyed)).subscribe(function(){e._ngZone.run(function(){return Promise.resolve().then(i)}),e._keyManager.withHorizontalOrientation(e._getLayoutDirection())}),this._keyManager.change.pipe(Object(Kt.a)(this._destroyed)).subscribe(function(t){e.indexFocused.emit(t),e._setTabFocus(t)})}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(e){if(!zi(e))switch(e.keyCode){case Ui:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}},{key:"_onContentChanges",value:function(){var e=this,t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(function(){e.updatePagination(),e._alignInkBarToSelectedTab(),e._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(e){this._isValidIndex(e)&&this.focusIndex!==e&&this._keyManager&&this._keyManager.setActiveItem(e)}},{key:"_isValidIndex",value:function(e){if(!this._items)return!0;var t=this._items?this._items.toArray()[e]:null;return!!t&&!t.disabled}},{key:"_setTabFocus",value:function(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();var t=this._tabListContainer.nativeElement,n=this._getLayoutDirection();t.scrollLeft="ltr"==n?0:t.scrollWidth-t.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var e=this.scrollDistance,t="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(t),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(e){this._scrollTo(e)}},{key:"_scrollHeader",value:function(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(e){this._stopInterval(),this._scrollHeader(e)}},{key:"_scrollToLabel",value:function(e){if(!this.disablePagination){var t=this._items?this._items.toArray()[e]:null;if(t){var n,i,r=this._tabListContainer.nativeElement.offsetWidth,a=t.elementRef.nativeElement,o=a.offsetLeft,s=a.offsetWidth;"ltr"==this._getLayoutDirection()?i=(n=o)+s:n=(i=this._tabList.nativeElement.offsetWidth-o)-s;var c=this.scrollDistance,u=this.scrollDistance+r;n<c?this.scrollDistance-=c-n+60:i>u&&(this.scrollDistance+=i-u+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var e=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(e,t){var n=this;t&&null!=t.button&&0!==t.button||(this._stopInterval(),Qc(650,100).pipe(Object(Kt.a)(Object(Lt.a)(this._stopScrolling,this._destroyed))).subscribe(function(){var t=n._scrollHeader(e),i=t.distance;(0===i||i>=t.maxScrollDistance)&&n._stopInterval()}))}},{key:"_scrollTo",value:function(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.j),h.Kb(h.g),h.Kb(cu),h.Kb(Kn,8),h.Kb(h.x),h.Kb(Qi),h.Kb(Ks,8))},e.\u0275dir=h.Fb({type:e,inputs:{disablePagination:"disablePagination"}}),e}(),Gu=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o,s,c,u){var l;return Object(a.a)(this,n),(l=t.call(this,e,i,r,o,s,c,u))._disableRipple=!1,l}return Object(o.a)(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=Si(e)}},{key:"_itemSelected",value:function(e){e.preventDefault()}}]),n}(Qu);return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.j),h.Kb(h.g),h.Kb(cu),h.Kb(Kn,8),h.Kb(h.x),h.Kb(Qi),h.Kb(Ks,8))},e.\u0275dir=h.Fb({type:e,inputs:{disableRipple:"disableRipple"},features:[h.wb]}),e}(),Yu=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o,s,c,u){return Object(a.a)(this,n),t.call(this,e,i,r,o,s,c,u)}return n}(Gu);return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.j),h.Kb(h.g),h.Kb(cu),h.Kb(Kn,8),h.Kb(h.x),h.Kb(Qi),h.Kb(Ks,8))},e.\u0275cmp=h.Eb({type:e,selectors:[["mat-tab-header"]],contentQueries:function(e,t,n){var i;1&e&&h.Db(n,Wu,0),2&e&&h.oc(i=h.Zb())&&(t._items=i)},viewQuery:function(e,t){var n;1&e&&(h.Cc(Su,3),h.Cc(wu,3),h.Cc(Cu,3),h.Cc(xu,1),h.Cc(ju,1)),2&e&&(h.oc(n=h.Zb())&&(t._inkBar=n.first),h.oc(n=h.Zb())&&(t._tabListContainer=n.first),h.oc(n=h.Zb())&&(t._tabList=n.first),h.oc(n=h.Zb())&&(t._nextPaginator=n.first),h.oc(n=h.Zb())&&(t._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,t){2&e&&h.Cb("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[h.wb],ngContentSelectors:fu,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(h.hc(),h.Qb(0,"div",0,1),h.Yb("click",function(){return t._handlePaginatorClick("before")})("mousedown",function(e){return t._handlePaginatorPress("before",e)})("touchend",function(){return t._stopInterval()}),h.Lb(2,"div",2),h.Pb(),h.Qb(3,"div",3,4),h.Yb("keydown",function(e){return t._handleKeydown(e)}),h.Qb(5,"div",5,6),h.Yb("cdkObserveContent",function(){return t._onContentChanges()}),h.Qb(7,"div",7),h.gc(8),h.Pb(),h.Lb(9,"mat-ink-bar"),h.Pb(),h.Pb(),h.Qb(10,"div",8,9),h.Yb("mousedown",function(e){return t._handlePaginatorPress("after",e)})("click",function(){return t._handlePaginatorClick("after")})("touchend",function(){return t._stopInterval()}),h.Lb(12,"div",2),h.Pb()),2&e&&(h.Cb("mat-tab-header-pagination-disabled",t._disableScrollBefore),h.ic("matRippleDisabled",t._disableScrollBefore||t.disableRipple),h.zb(5),h.Cb("_mat-animation-noopable","NoopAnimations"===t._animationMode),h.zb(5),h.Cb("mat-tab-header-pagination-disabled",t._disableScrollAfter),h.ic("matRippleDisabled",t._disableScrollAfter||t.disableRipple))},directives:[Dc,nr,Su],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),e}(),Zu=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[le,ec,Hr,Tc,ir,Lr],ec]}),e}(),Xu=n("l7GE"),Ju=n("ZUHj"),$u=n("yCtX"),el={};function tl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=void 0,r=void 0;return Object(Yr.a)(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(i=t.pop()),1===t.length&&Object(Ft.a)(t[0])&&(t=t[0]),Object($u.a)(t,r).lift(new nl(i))}var nl=function(){function e(t){Object(a.a)(this,e),this.resultSelector=t}return Object(o.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new il(e,this.resultSelector))}}]),e}(),il=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i){var r;return Object(a.a)(this,n),(r=t.call(this,e)).resultSelector=i,r.active=0,r.values=[],r.observables=[],r}return Object(o.a)(n,[{key:"_next",value:function(e){this.values.push(el),this.observables.push(e)}},{key:"_complete",value:function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var i=e[n];this.add(Object(Ju.a)(this,i,void 0,n))}}}},{key:"notifyComplete",value:function(e){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(e,t,n){var i=this.values,r=this.toRespond?i[n]===el?--this.toRespond:this.toRespond:0;i[n]=t,0===r&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}},{key:"_tryResultSelector",value:function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(Xu.a),rl=function(e){return e.GET_SEARCH_RESULTS="[searchResults] get search results",e.GET_SEARCH_RESULTS_RESPONSE="[searchResults] get search results response",e}({}),al=function(){return function(e){this.payload=e,this.type=rl.GET_SEARCH_RESULTS}}(),ol=function(){return function(e){this.payload=e,this.type=rl.GET_SEARCH_RESULTS_RESPONSE}}(),sl=function(e){return e.ERROR_ACTION="An Error occurred",e}({}),cl=function(){return function(e){this.payload=e,this.type=sl.ERROR_ACTION}}(),ul=function(){return(ul=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function ll(e,t,n,i){var r,a=arguments.length,o=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(o=(a<3?r(o):a>3?r(t,n,o):r(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function hl(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function fl(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,r++)i[r]=a[o];return i}var dl={search:null,results:null,loading:!1};function pl(e,t){switch(void 0===e&&(e=dl),t.type){case rl.GET_SEARCH_RESULTS:var n=t;return ul(ul({},e),{search:n.payload,loading:!0});case rl.GET_SEARCH_RESULTS_RESPONSE:var i=t;return ul(ul({},e),{results:i.payload,loading:!1});case sl.ERROR_ACTION:return ul(ul({},e),{results:null,loading:!1});default:return e}}var vl=n("l7P3"),ml=Object(vl.o)("project-search-results"),bl=Object(vl.p)(ml,function(e){return e.search}),_l=Object(vl.p)(ml,function(e){return e.results}),yl=Object(vl.p)(ml,function(e){return e.loading}),gl=n("Cfvw"),kl=n("EY2u");function Ol(e){return new Ge.a(function(t){var n;try{n=e()}catch(i){return void t.error(i)}return(n?Object(gl.a)(n):Object(kl.b)()).subscribe(t)})}var wl=n("WMd4");n("mCNh");var Cl=function(){function e(){Object(a.a)(this,e)}return Object(o.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new xl(e))}}]),e}(),xl=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"_next",value:function(e){}}]),n}(Wt.a),jl=function(){function e(){Object(a.a)(this,e)}return Object(o.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new El(e))}}]),e}(),El=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){return Object(a.a)(this,n),t.call(this,e)}return Object(o.a)(n,[{key:"_next",value:function(e){this.destination.next(wl.a.createNext(e))}},{key:"_error",value:function(e){var t=this.destination;t.next(wl.a.createError(e)),t.complete()}},{key:"_complete",value:function(){var e=this.destination;e.next(wl.a.createComplete()),e.complete()}}]),n}(Wt.a),Sl=n("JIr8");function Al(e,t,n,i){return function(r){return r.lift(new Dl(e,t,n,i))}}var Dl=function(){function e(t,n,i,r){Object(a.a)(this,e),this.keySelector=t,this.elementSelector=n,this.durationSelector=i,this.subjectSelector=r}return Object(o.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new Tl(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}]),e}(),Tl=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o,s){var c;return Object(a.a)(this,n),(c=t.call(this,e)).keySelector=i,c.elementSelector=r,c.durationSelector=o,c.subjectSelector=s,c.groups=null,c.attemptedToUnsubscribe=!1,c.count=0,c}return Object(o.a)(n,[{key:"_next",value:function(e){var t;try{t=this.keySelector(e)}catch(n){return void this.error(n)}this._group(e,t)}},{key:"_group",value:function(e,t){var n=this.groups;n||(n=this.groups=new Map);var i,r=n.get(t);if(this.elementSelector)try{i=this.elementSelector(e)}catch(s){this.error(s)}else i=e;if(!r){r=this.subjectSelector?this.subjectSelector():new Rt.a,n.set(t,r);var a=new Il(t,r,this);if(this.destination.next(a),this.durationSelector){var o;try{o=this.durationSelector(new Il(t,r))}catch(s){return void this.error(s)}this.add(o.subscribe(new Pl(t,r,this)))}}r.closed||r.next(i)}},{key:"_error",value:function(e){var t=this.groups;t&&(t.forEach(function(t,n){t.error(e)}),t.clear()),this.destination.error(e)}},{key:"_complete",value:function(){var e=this.groups;e&&(e.forEach(function(e,t){e.complete()}),e.clear()),this.destination.complete()}},{key:"removeGroup",value:function(e){this.groups.delete(e)}},{key:"unsubscribe",value:function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&Object(i.a)(Object(r.a)(n.prototype),"unsubscribe",this).call(this))}}]),n}(Wt.a),Pl=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r){var o;return Object(a.a)(this,n),(o=t.call(this,i)).key=e,o.group=i,o.parent=r,o}return Object(o.a)(n,[{key:"_next",value:function(e){this.complete()}},{key:"_unsubscribe",value:function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)}}]),n}(Wt.a),Il=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r){var o;return Object(a.a)(this,n),(o=t.call(this)).key=e,o.groupSubject=i,o.refCountSubscription=r,o}return Object(o.a)(n,[{key:"_subscribe",value:function(e){var t=new Vi.a,n=this.refCountSubscription,i=this.groupSubject;return n&&!n.closed&&t.add(new Rl(n)),t.add(i.subscribe(e)),t}}]),n}(Ge.a),Rl=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this)).parent=e,e.count++,i}return Object(o.a)(n,[{key:"unsubscribe",value:function(){var e=this.parent;e.closed||this.closed||(Object(i.a)(Object(r.a)(n.prototype),"unsubscribe",this).call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())}}]),n}(Vi.a),Ml=n("5+tZ");function Ll(e,t){return t?function(n){return n.pipe(Ll(function(n,i){return Object(gl.a)(e(n,i)).pipe(Object(Xe.a)(function(e,r){return t(n,e,i,r)}))}))}:function(t){return t.lift(new Fl(e))}}var Fl=function(){function e(t){Object(a.a)(this,e),this.project=t}return Object(o.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new Nl(e,this.project))}}]),e}(),Nl=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i){var r;return Object(a.a)(this,n),(r=t.call(this,e)).project=i,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return Object(o.a)(n,[{key:"_next",value:function(e){this.hasSubscription||this.tryNext(e)}},{key:"tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=new Zc.a(this),n=this.destination;n.add(t);var i=Object(Zc.c)(e,t);i!==t&&n.add(i)}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}]),n}(Zc.b),Bl=function(){function e(){Object(a.a)(this,e)}return Object(o.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new Vl(e))}}]),e}(),Vl=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){return Object(a.a)(this,n),t.call(this,e)}return Object(o.a)(n,[{key:"_next",value:function(e){e.observe(this.destination)}}]),n}(Wt.a);n("zp1y");var Ul={dispatch:!0,useEffectsErrorHandler:!0},zl="__@ngrx/effects_create__";function Kl(e){return Object.getOwnPropertyNames(e).filter(function(t){return!(!e[t]||!e[t].hasOwnProperty(zl))&&e[t][zl].hasOwnProperty("dispatch")}).map(function(t){return Object.assign({propertyName:t},e[t][zl])})}function Hl(e){return Object.getPrototypeOf(e)}var Wl="__@ngrx/effects__";function ql(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t,n){Yl(t,Object.assign(Object.assign(Object.assign({},Ul),e),{propertyName:n}))}}function Ql(e){return Object(vl.m)(Zl,Hl)(e)}function Gl(e){return e.constructor.hasOwnProperty(Wl)}function Yl(e,t){Gl(e)?e.constructor[Wl].push(t):Object.defineProperty(e.constructor,Wl,{value:[t]})}function Zl(e){return Gl(e)?e.constructor[Wl]:[]}function Xl(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return e.pipe(Object(Sl.a)(function(i){return t&&t.handleError(i),n<=1?e:Xl(e,t,n-1)}))}var Jl=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var i;return Object(a.a)(this,n),i=t.call(this),e&&(i.source=e),i}return Object(o.a)(n,[{key:"lift",value:function(e){var t=new n;return t.source=this,t.operator=e,t}}]),n}(Ge.a);return e.\u0275fac=function(t){return new(t||e)(h.Ub(vl.f))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}();function $l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(Ze.a)(function(e){return t.some(function(t){return"string"==typeof t?t===e.type:t.type===e.type})})}function eh(e){return th(e,"ngrxOnInitEffects")}function th(e,t){return e&&t in e&&"function"==typeof e[t]}var nh=new h.q("@ngrx/effects Internal Root Guard"),ih=new h.q("@ngrx/effects User Provided Effects"),rh=new h.q("@ngrx/effects Internal Root Effects"),ah=new h.q("@ngrx/effects Root Effects"),oh=new h.q("@ngrx/effects Internal Feature Effects"),sh=new h.q("@ngrx/effects Feature Effects"),ch=new h.q("@ngrx/effects Effects Error Handler"),uh=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i){var r;return Object(a.a)(this,n),(r=t.call(this)).errorHandler=e,r.effectsErrorHandler=i,r}return Object(o.a)(n,[{key:"addEffects",value:function(e){this.next(e)}},{key:"toActions",value:function(){var e=this;return this.pipe(Al(Hl),Object(Ml.a)(function(e){return e.pipe(Al(lh))}),Object(Ml.a)(function(t){var n=t.pipe(Ll(function(t){return(n=e.errorHandler,i=e.effectsErrorHandler,function(e){var t=function(e,t,n){var i,r=Hl(e).constructor.name,a=(i=e,[Ql,Kl].reduce(function(e,t){return e.concat(t(i))},[])).map(function(i){var a=i.propertyName,o=i.dispatch,s=i.useEffectsErrorHandler,c="function"==typeof e[a]?e[a]():e[a],u=s?n(c,t):c;return!1===o?u.pipe(function(e){return e.lift(new Cl)}):u.pipe(function(e){return e.lift(new jl)}).pipe(Object(Xe.a)(function(t){return{effect:e[a],notification:t,propertyName:a,sourceName:r,sourceInstance:e}}))});return Lt.a.apply(void 0,Object(qe.a)(a))}(e,n,i);return th(e,"ngrxOnRunEffects")?e.ngrxOnRunEffects(t):t})(t);var n,i}),Object(Xe.a)(function(t){return function(e,t){if("N"===e.notification.kind){var n=e.notification.value;!function(e){return"function"!=typeof e&&e&&e.type&&"string"==typeof e.type}(n)&&t.handleError(new Error("Effect ".concat((i=e,r=i.propertyName,a="function"==typeof i.sourceInstance[r],'"'.concat(i.sourceName,".").concat(String(r)).concat(a?"()":"",'"'))," dispatched an invalid action: ").concat(function(e){try{return JSON.stringify(e)}catch(jy){return e}}(n))))}var i,r,a}(t,e.errorHandler),t.notification}),Object(Ze.a)(function(e){return"N"===e.kind&&null!=e.value}),function(e){return e.lift(new Bl)}),i=t.pipe(Object(Ht.a)(1),Object(Ze.a)(eh),Object(Xe.a)(function(e){return e.ngrxOnInitEffects()}));return Object(Lt.a)(n,i)}))}}]),n}(Rt.a);return e.\u0275fac=function(t){return new(t||e)(h.Ub(h.l),h.Ub(ch))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}();function lh(e){return th(e,"ngrxOnIdentifyEffects")?e.ngrxOnIdentifyEffects():""}var hh=function(){var e=function(){function e(t,n){Object(a.a)(this,e),this.effectSources=t,this.store=n,this.effectsSubscription=null}return Object(o.a)(e,[{key:"start",value:function(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}},{key:"ngOnDestroy",value:function(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(uh),h.Ub(vl.h))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}(),fh="@ngrx/effects/init",dh=(Object(vl.n)(fh),function(){var e=function(){function e(t,n,i,r,o,s,c){Object(a.a)(this,e),this.sources=t,n.start(),r.forEach(function(e){return t.addEffects(e)}),i.dispatch({type:fh})}return Object(o.a)(e,[{key:"addEffects",value:function(e){this.sources.addEffects(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(uh),h.Ub(hh),h.Ub(vl.h),h.Ub(ah),h.Ub(vl.k,8),h.Ub(vl.i,8),h.Ub(nh,8))},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({}),e}()),ph=function(){var e=function e(t,n,i,r){Object(a.a)(this,e),n.forEach(function(e){return e.forEach(function(e){return t.addEffects(e)})})};return e.\u0275fac=function(t){return new(t||e)(h.Ub(dh),h.Ub(sh),h.Ub(vl.k,8),h.Ub(vl.i,8))},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({}),e}(),vh=function(){var e=function(){function e(){Object(a.a)(this,e)}return Object(o.a)(e,null,[{key:"forFeature",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{ngModule:ph,providers:[e,{provide:oh,multi:!0,useValue:e},{provide:ih,multi:!0,useValue:[]},{provide:sh,multi:!0,useFactory:mh,deps:[h.r,oh,ih]}]}}},{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{ngModule:dh,providers:[{provide:ch,useValue:Xl},hh,uh,Jl,e,{provide:rh,useValue:[e]},{provide:nh,useFactory:bh,deps:[[hh,new h.y,new h.I],[rh,new h.H]]},{provide:ih,multi:!0,useValue:[]},{provide:ah,useFactory:mh,deps:[h.r,rh,ih]}]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({}),e}();function mh(e,t,n){var i,r=[],a=Object(u.a)(t);try{for(a.s();!(i=a.n()).done;){var o=i.value;r.push.apply(r,Object(qe.a)(o))}}catch(h){a.e(h)}finally{a.f()}var s,c=Object(u.a)(n);try{for(c.s();!(s=c.n()).done;){var l=s.value;r.push.apply(r,Object(qe.a)(l))}}catch(h){c.e(h)}finally{c.f()}return function(e,t){return t.map(function(t){return e.get(t)})}(e,r)}function bh(e,t){if((1!==t.length||0!==t[0].length)&&e)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}var _h=function(){function e(e){this.httpClient=e,this.options={withCredentials:!0}}return e.prototype.getProjects=function(e){return this.httpClient.post("/group-project-search/search/",e,this.options)},e.\u0275fac=function(t){return new(t||e)(h.Ub(vt))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),yh=[function(){function e(e,t){var n=this;this.actions$=e,this.service=t,this.getProjects=this.actions$.pipe($l(rl.GET_SEARCH_RESULTS),Object(Ml.a)(function(e){return n.service.getProjects(e.payload).pipe(Object(Xe.a)(function(e){return new ol(e)}),Object(Sl.a)(function(e){return Object(Qe.a)(new cl(e))}))}))}return e.\u0275fac=function(t){return new(t||e)(h.Ub(Jl),h.Ub(_h))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),ll([ql(),hl("design:type",Ge.a)],e.prototype,"getProjects",void 0),e}()],gh=[[["caption"]],[["colgroup"],["col"]]],kh=["caption","colgroup, col"];function Oh(e){return function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){var e;Object(a.a)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._sticky=!1,e._hasStickyChanged=!1,e}return Object(o.a)(n,[{key:"sticky",get:function(){return this._sticky},set:function(e){var t=this._sticky;this._sticky=Si(e),this._hasStickyChanged=t!==this._sticky}},{key:"hasStickyChanged",value:function(){var e=this._hasStickyChanged;return this._hasStickyChanged=!1,e}},{key:"resetStickyChanged",value:function(){this._hasStickyChanged=!1}}]),n}(e)}var wh=new h.q("CDK_TABLE"),Ch=function(){var e=function e(t){Object(a.a)(this,e),this.template=t};return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.J))},e.\u0275dir=h.Fb({type:e,selectors:[["","cdkCellDef",""]]}),e}(),xh=function(){var e=function e(t){Object(a.a)(this,e),this.template=t};return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.J))},e.\u0275dir=h.Fb({type:e,selectors:[["","cdkHeaderCellDef",""]]}),e}(),jh=function(){var e=function e(t){Object(a.a)(this,e),this.template=t};return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.J))},e.\u0275dir=h.Fb({type:e,selectors:[["","cdkFooterCellDef",""]]}),e}(),Eh=Oh(function e(){Object(a.a)(this,e)}),Sh=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this))._table=e,i._stickyEnd=!1,i}return Object(o.a)(n,[{key:"name",get:function(){return this._name},set:function(e){this._setNameInput(e)}},{key:"stickyEnd",get:function(){return this._stickyEnd},set:function(e){var t=this._stickyEnd;this._stickyEnd=Si(e),this._hasStickyChanged=t!==this._stickyEnd}},{key:"_updateColumnCssClassName",value:function(){this._columnCssClassName=["cdk-column-".concat(this.cssClassFriendlyName)]}},{key:"_setNameInput",value:function(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}]),n}(Eh);return e.\u0275fac=function(t){return new(t||e)(h.Kb(wh,8))},e.\u0275dir=h.Fb({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,n){var i;1&e&&(h.Db(n,Ch,1),h.Db(n,xh,1),h.Db(n,jh,1)),2&e&&(h.oc(i=h.Zb())&&(t.cell=i.first),h.oc(i=h.Zb())&&(t.headerCell=i.first),h.oc(i=h.Zb())&&(t.footerCell=i.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[h.yb([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),h.wb]}),e}(),Ah=function e(t,n){Object(a.a)(this,e);var i,r=n.nativeElement.classList,o=Object(u.a)(t._columnCssClassName);try{for(o.s();!(i=o.n()).done;)r.add(i.value)}catch(s){o.e(s)}finally{o.f()}},Dh=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i){return Object(a.a)(this,n),t.call(this,e,i)}return n}(Ah);return e.\u0275fac=function(t){return new(t||e)(h.Kb(Sh),h.Kb(h.j))},e.\u0275dir=h.Fb({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[h.wb]}),e}(),Th=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i){return Object(a.a)(this,n),t.call(this,e,i)}return n}(Ah);return e.\u0275fac=function(t){return new(t||e)(h.Kb(Sh),h.Kb(h.j))},e.\u0275dir=h.Fb({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[h.wb]}),e}(),Ph=function e(){Object(a.a)(this,e),this.tasks=[],this.endTasks=[]},Ih=new h.q("_COALESCED_STYLE_SCHEDULER"),Rh=function(){var e=function(){function e(t){Object(a.a)(this,e),this._ngZone=t,this._currentSchedule=null,this._destroyed=new Rt.a}return Object(o.a)(e,[{key:"schedule",value:function(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}},{key:"scheduleEnd",value:function(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_createScheduleIfNeeded",value:function(){var e=this;this._currentSchedule||(this._currentSchedule=new Ph,this._getScheduleObservable().pipe(Object(Kt.a)(this._destroyed)).subscribe(function(){for(;e._currentSchedule.tasks.length||e._currentSchedule.endTasks.length;){var t=e._currentSchedule;e._currentSchedule=new Ph;var n,i=Object(u.a)(t.tasks);try{for(i.s();!(n=i.n()).done;)(0,n.value)()}catch(o){i.e(o)}finally{i.f()}var r,a=Object(u.a)(t.endTasks);try{for(a.s();!(r=a.n()).done;)(0,r.value)()}catch(o){a.e(o)}finally{a.f()}}e._currentSchedule=null}))}},{key:"_getScheduleObservable",value:function(){return this._ngZone.isStable?Object(gl.a)(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Object(Ht.a)(1))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(h.x))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}(),Mh=function(){var e=function(){function e(t,n){Object(a.a)(this,e),this.template=t,this._differs=n}return Object(o.a)(e,[{key:"ngOnChanges",value:function(e){if(!this._columnsDiffer){var t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}},{key:"getColumnsDiff",value:function(){return this._columnsDiffer.diff(this.columns)}},{key:"extractCellTemplate",value:function(e){return this instanceof Fh?e.headerCell.template:this instanceof Bh?e.footerCell.template:e.cell.template}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.J),h.Kb(h.s))},e.\u0275dir=h.Fb({type:e,features:[h.xb]}),e}(),Lh=Oh(function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return n}(Mh)),Fh=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r){var o;return Object(a.a)(this,n),(o=t.call(this,e,i))._table=r,o}return Object(o.a)(n,[{key:"ngOnChanges",value:function(e){Object(i.a)(Object(r.a)(n.prototype),"ngOnChanges",this).call(this,e)}}]),n}(Lh);return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.J),h.Kb(h.s),h.Kb(wh,8))},e.\u0275dir=h.Fb({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[h.wb,h.xb]}),e}(),Nh=Oh(function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return n}(Mh)),Bh=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r){var o;return Object(a.a)(this,n),(o=t.call(this,e,i))._table=r,o}return Object(o.a)(n,[{key:"ngOnChanges",value:function(e){Object(i.a)(Object(r.a)(n.prototype),"ngOnChanges",this).call(this,e)}}]),n}(Nh);return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.J),h.Kb(h.s),h.Kb(wh,8))},e.\u0275dir=h.Fb({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[h.wb,h.xb]}),e}(),Vh=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r){var o;return Object(a.a)(this,n),(o=t.call(this,e,i))._table=r,o}return n}(Mh);return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.J),h.Kb(h.s),h.Kb(wh,8))},e.\u0275dir=h.Fb({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[h.wb]}),e}(),Uh=function(){var e=function(){function e(t){Object(a.a)(this,e),this._viewContainer=t,e.mostRecentCellOutlet=this}return Object(o.a)(e,[{key:"ngOnDestroy",value:function(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.N))},e.\u0275dir=h.Fb({type:e,selectors:[["","cdkCellOutlet",""]]}),e.mostRecentCellOutlet=null,e}(),zh=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=h.Eb({type:e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&h.Mb(0,0)},directives:[Uh],encapsulation:2}),e}(),Kh=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=h.Eb({type:e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&h.Mb(0,0)},directives:[Uh],encapsulation:2}),e}(),Hh=function(){var e=function e(t){Object(a.a)(this,e),this.templateRef=t};return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.J))},e.\u0275dir=h.Fb({type:e,selectors:[["ng-template","cdkNoDataRow",""]]}),e}(),Wh=["top","bottom","left","right"],qh=function(){function e(t,n,i,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],c=arguments.length>6?arguments[6]:void 0;Object(a.a)(this,e),this._isNativeHtmlTable=t,this._stickCellCss=n,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=s,this._positionListener=c,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(n,"-border-elem-top"),bottom:"".concat(n,"-border-elem-bottom"),left:"".concat(n,"-border-elem-left"),right:"".concat(n,"-border-elem-right")}}return Object(o.a)(e,[{key:"clearStickyPositioning",value:function(e,t){var n,i=this,r=[],a=Object(u.a)(e);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.nodeType===o.ELEMENT_NODE){r.push(o);for(var s=0;s<o.children.length;s++)r.push(o.children[s])}}}catch(c){a.e(c)}finally{a.f()}this._scheduleStyleChanges(function(){var e,n=Object(u.a)(r);try{for(n.s();!(e=n.n()).done;)i._removeStickyStyle(e.value,t)}catch(c){n.e(c)}finally{n.f()}})}},{key:"updateStickyColumns",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.length&&this._isBrowser&&(t.some(function(e){return e})||n.some(function(e){return e}))){var a=e[0],o=a.children.length,s=this._getCellWidths(a,r),c=this._getStickyStartColumnPositions(s,t),l=this._getStickyEndColumnPositions(s,n),h=t.lastIndexOf(!0),f=n.indexOf(!0);this._scheduleStyleChanges(function(){var r,a="rtl"===i.direction,d=a?"right":"left",p=a?"left":"right",v=Object(u.a)(e);try{for(v.s();!(r=v.n()).done;)for(var m=r.value,b=0;b<o;b++){var _=m.children[b];t[b]&&i._addStickyStyle(_,d,c[b],b===h),n[b]&&i._addStickyStyle(_,p,l[b],b===f)}}catch(y){v.e(y)}finally{v.f()}i._positionListener&&(i._positionListener.stickyColumnsUpdated({sizes:-1===h?[]:s.slice(0,h+1).map(function(e,n){return t[n]?e:null})}),i._positionListener.stickyEndColumnsUpdated({sizes:-1===f?[]:s.slice(f).map(function(e,t){return n[t+f]?e:null}).reverse()}))})}else this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}))}},{key:"stickRows",value:function(e,t,n){var i=this;if(this._isBrowser){for(var r="bottom"===n?e.slice().reverse():e,a="bottom"===n?t.slice().reverse():t,o=[],s=[],c=[],l=0,h=0;l<r.length;l++)if(o[l]=h,a[l]){var f=r[l];c[l]=this._isNativeHtmlTable?Array.from(f.children):[f];var d=f.getBoundingClientRect().height;h+=d,s[l]=d}var p=a.lastIndexOf(!0);this._scheduleStyleChanges(function(){for(var e,t,l=0;l<r.length;l++)if(a[l]){var h,f=o[l],d=l===p,v=Object(u.a)(c[l]);try{for(v.s();!(h=v.n()).done;)i._addStickyStyle(h.value,n,f,d)}catch(m){v.e(m)}finally{v.f()}}"top"===n?null===(e=i._positionListener)||void 0===e||e.stickyHeaderRowsUpdated({sizes:s,elements:c}):null===(t=i._positionListener)||void 0===t||t.stickyFooterRowsUpdated({sizes:s,elements:c})})}}},{key:"updateStickyFooterContainer",value:function(e,t){var n=this;if(this._isNativeHtmlTable){var i=e.querySelector("tfoot");this._scheduleStyleChanges(function(){t.some(function(e){return!e})?n._removeStickyStyle(i,["bottom"]):n._addStickyStyle(i,"bottom",0,!1)})}}},{key:"_removeStickyStyle",value:function(e,t){var n,i=Object(u.a)(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;e.style[r]="",e.classList.remove(this._borderCellCss[r])}}catch(a){i.e(a)}finally{i.f()}Wh.some(function(n){return-1===t.indexOf(n)&&e.style[n]})?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}},{key:"_addStickyStyle",value:function(e,t,n,i){e.classList.add(this._stickCellCss),i&&e.classList.add(this._borderCellCss[t]),e.style[t]="".concat(n,"px"),e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}},{key:"_getCalculatedZIndex",value:function(e){var t,n={top:100,bottom:10,left:1,right:1},i=0,r=Object(u.a)(Wh);try{for(r.s();!(t=r.n()).done;){var a=t.value;e.style[a]&&(i+=n[a])}}catch(o){r.e(o)}finally{r.f()}return i?"".concat(i):""}},{key:"_getCellWidths",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var n=[],i=e.children,r=0;r<i.length;r++){var a=i[r];n.push(a.getBoundingClientRect().width)}return this._cachedCellWidths=n,n}},{key:"_getStickyStartColumnPositions",value:function(e,t){for(var n=[],i=0,r=0;r<e.length;r++)t[r]&&(n[r]=i,i+=e[r]);return n}},{key:"_getStickyEndColumnPositions",value:function(e,t){for(var n=[],i=0,r=e.length;r>0;r--)t[r]&&(n[r]=i,i+=e[r]);return n}},{key:"_scheduleStyleChanges",value:function(e){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(e):e()}}]),e}(),Qh=new h.q("CDK_SPL"),Gh=function(){var e=function e(t,n){Object(a.a)(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.N),h.Kb(h.j))},e.\u0275dir=h.Fb({type:e,selectors:[["","rowOutlet",""]]}),e}(),Yh=function(){var e=function e(t,n){Object(a.a)(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.N),h.Kb(h.j))},e.\u0275dir=h.Fb({type:e,selectors:[["","headerRowOutlet",""]]}),e}(),Zh=function(){var e=function e(t,n){Object(a.a)(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.N),h.Kb(h.j))},e.\u0275dir=h.Fb({type:e,selectors:[["","footerRowOutlet",""]]}),e}(),Xh=function(){var e=function e(t,n){Object(a.a)(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.N),h.Kb(h.j))},e.\u0275dir=h.Fb({type:e,selectors:[["","noDataRowOutlet",""]]}),e}(),Jh=function(){var e=function(){function e(t,n,i,r,o,s,c,u,l,h,f){Object(a.a)(this,e),this._differs=t,this._changeDetectorRef=n,this._elementRef=i,this._dir=o,this._platform=c,this._viewRepeater=u,this._coalescedStyleScheduler=l,this._stickyPositioningListener=h,this._viewportRuler=f,this._onDestroy=new Rt.a,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.viewChange=new Mt.a({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return Object(o.a)(e,[{key:"trackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(e){this._multiTemplateDataRows=Si(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(e){this._fixedLayout=Si(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(t,n){return e.trackBy?e.trackBy(n.dataIndex,n.data):n}),this._viewportRuler&&this._viewportRuler.change().pipe(Object(Kt.a)(this._onDestroy)).subscribe(function(){e._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var e=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||e,this._forceRecalculateCellWidths=e,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),nu(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var e=this;this._renderRows=this._getAllRenderRows();var t=this._dataDiffer.diff(this._renderRows);if(t){var n=this._rowOutlet.viewContainer;this._viewRepeater?this._viewRepeater.applyChanges(t,n,function(t,n,i){return e._getEmbeddedViewArgs(t.item,i)},function(e){return e.item.data},function(t){1===t.operation&&t.context&&e._renderCellTemplateForItem(t.record.item.rowDef,t.context)}):t.forEachOperation(function(t,i,r){if(null==t.previousIndex){var a=t.item;e._renderRow(e._rowOutlet,a.rowDef,r,{$implicit:a.data})}else if(null==r)n.remove(i);else{var o=n.get(i);n.move(o,r)}}),this._updateRowIndexContext(),t.forEachIdentityChange(function(e){n.get(e.currentIndex).context.$implicit=e.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()}},{key:"addColumnDef",value:function(e){this._customColumnDefs.add(e)}},{key:"removeColumnDef",value:function(e){this._customColumnDefs.delete(e)}},{key:"addRowDef",value:function(e){this._customRowDefs.add(e)}},{key:"removeRowDef",value:function(e){this._customRowDefs.delete(e)}},{key:"addHeaderRowDef",value:function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(e){this._customNoDataRow=e}},{key:"updateStickyHeaderRowStyles",value:function(){var e=this._getRenderedRows(this._headerRowOutlet),t=this._elementRef.nativeElement.querySelector("thead");t&&(t.style.display=e.length?"":"none");var n=this._headerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var e=this._getRenderedRows(this._footerRowOutlet),t=this._elementRef.nativeElement.querySelector("tfoot");t&&(t.style.display=e.length?"":"none");var n=this._footerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var e=this,t=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(Object(qe.a)(t),Object(qe.a)(n),Object(qe.a)(i)),["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach(function(t,n){e._addStickyColumnStyles([t],e._headerRowDefs[n])}),this._rowDefs.forEach(function(t){for(var i=[],r=0;r<n.length;r++)e._renderRows[r].rowDef===t&&i.push(n[r]);e._addStickyColumnStyles(i,t)}),i.forEach(function(t,n){e._addStickyColumnStyles([t],e._footerRowDefs[n])}),Array.from(this._columnDefsByName.values()).forEach(function(e){return e.resetStickyChanged()})}},{key:"_getAllRenderRows",value:function(){var e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(var n=0;n<this._data.length;n++){var i=this._data[n],r=this._getRenderRowsForData(i,n,t.get(i));this._cachedRenderRowsMap.has(i)||this._cachedRenderRowsMap.set(i,new WeakMap);for(var a=0;a<r.length;a++){var o=r[a],s=this._cachedRenderRowsMap.get(o.data);s.has(o.rowDef)?s.get(o.rowDef).push(o):s.set(o.rowDef,[o]),e.push(o)}}return e}},{key:"_getRenderRowsForData",value:function(e,t,n){return this._getRowDefs(e,t).map(function(i){var r=n&&n.has(i)?n.get(i):[];if(r.length){var a=r.shift();return a.dataIndex=t,a}return{data:e,rowDef:i,dataIndex:t}})}},{key:"_cacheColumnDefs",value:function(){var e=this;this._columnDefsByName.clear(),$h(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(function(t){e._columnDefsByName.has(t.name),e._columnDefsByName.set(t.name,t)})}},{key:"_cacheRowDefs",value:function(){this._headerRowDefs=$h(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=$h(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=$h(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);var e=this._rowDefs.filter(function(e){return!e.when});this._defaultRowDef=e[0]}},{key:"_renderUpdatedColumns",value:function(){var e=function(e,t){return e||!!t.getColumnsDiff()},t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();var n=this._headerRowDefs.reduce(e,!1);n&&this._forceRenderHeaderRows();var i=this._footerRowDefs.reduce(e,!1);return i&&this._forceRenderFooterRows(),t||n||i}},{key:"_switchDataSource",value:function(e){this._data=[],nu(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}},{key:"_observeRenderChanges",value:function(){var e,t,n=this;this.dataSource&&(nu(this.dataSource)?e=this.dataSource.connect(this):(t=this.dataSource)&&(t instanceof Ge.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Object(Qe.a)(this.dataSource)),this._renderChangeSubscription=e.pipe(Object(Kt.a)(this._onDestroy)).subscribe(function(e){n._data=e||[],n.renderRows()}))}},{key:"_forceRenderHeaderRows",value:function(){var e=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(t,n){return e._renderRow(e._headerRowOutlet,t,n)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(t,n){return e._renderRow(e._footerRowOutlet,t,n)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(e,t){var n=this,i=Array.from(t.columns||[]).map(function(e){return n._columnDefsByName.get(e)}),r=i.map(function(e){return e.sticky}),a=i.map(function(e){return e.stickyEnd});this._stickyStyler.updateStickyColumns(e,r,a,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(e){for(var t=[],n=0;n<e.viewContainer.length;n++){var i=e.viewContainer.get(n);t.push(i.rootNodes[0])}return t}},{key:"_getRowDefs",value:function(e,t){if(1==this._rowDefs.length)return[this._rowDefs[0]];var n=[];if(this.multiTemplateDataRows)n=this._rowDefs.filter(function(n){return!n.when||n.when(t,e)});else{var i=this._rowDefs.find(function(n){return n.when&&n.when(t,e)})||this._defaultRowDef;i&&n.push(i)}return n}},{key:"_getEmbeddedViewArgs",value:function(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}},{key:"_renderRow",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=e.viewContainer.createEmbeddedView(t.template,i,n);return this._renderCellTemplateForItem(t,i),r}},{key:"_renderCellTemplateForItem",value:function(e,t){var n,i=Object(u.a)(this._getCellTemplates(e));try{for(i.s();!(n=i.n()).done;)Uh.mostRecentCellOutlet&&Uh.mostRecentCellOutlet._viewContainer.createEmbeddedView(n.value,t)}catch(r){i.e(r)}finally{i.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,t=0,n=e.length;t<n;t++){var i=e.get(t).context;i.count=n,i.first=0===t,i.last=t===n-1,i.even=t%2==0,i.odd=!i.even,this.multiTemplateDataRows?(i.dataIndex=this._renderRows[t].dataIndex,i.renderIndex=t):i.index=this._renderRows[t].dataIndex}}},{key:"_getCellTemplates",value:function(e){var t=this;return e&&e.columns?Array.from(e.columns,function(n){var i=t._columnDefsByName.get(n);return e.extractCellTemplate(i)}):[]}},{key:"_applyNativeTableSections",value:function(){for(var e=this._document.createDocumentFragment(),t=0,n=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];t<n.length;t++){var i=n[t],r=this._document.createElement(i.tag);r.setAttribute("role","rowgroup");var a,o=Object(u.a)(i.outlets);try{for(o.s();!(a=o.n()).done;)r.appendChild(a.value.elementRef.nativeElement)}catch(s){o.e(s)}finally{o.f()}e.appendChild(r)}this._elementRef.nativeElement.appendChild(e)}},{key:"_forceRenderDataRows",value:function(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}},{key:"_checkStickyStates",value:function(){var e=function(e,t){return e||t.hasStickyChanged()};this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}},{key:"_setupStickyStyler",value:function(){var e=this;this._stickyStyler=new qh(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Object(Qe.a)()).pipe(Object(Kt.a)(this._onDestroy)).subscribe(function(t){e._stickyStyler.direction=t,e.updateStickyColumnStyles()})}},{key:"_getOwnDefs",value:function(e){var t=this;return e.filter(function(e){return!e._table||e._table===t})}},{key:"_updateNoDataRow",value:function(){var e=this._customNoDataRow||this._noDataRow;if(e){var t=0===this._rowOutlet.viewContainer.length;if(t!==this._isShowingNoDataRow){var n=this._noDataRowOutlet.viewContainer;t?n.createEmbeddedView(e.templateRef):n.clear(),this._isShowingNoDataRow=t}}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.s),h.Kb(h.g),h.Kb(h.j),h.Vb("role"),h.Kb(Kn,8),h.Kb(v),h.Kb(Qi),h.Kb(ou,8),h.Kb(Ih,8),h.Kb(Qh,12),h.Kb(cu,8))},e.\u0275cmp=h.Eb({type:e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,n){var i;1&e&&(h.Db(n,Hh,1),h.Db(n,Sh,1),h.Db(n,Vh,1),h.Db(n,Fh,1),h.Db(n,Bh,1)),2&e&&(h.oc(i=h.Zb())&&(t._noDataRow=i.first),h.oc(i=h.Zb())&&(t._contentColumnDefs=i),h.oc(i=h.Zb())&&(t._contentRowDefs=i),h.oc(i=h.Zb())&&(t._contentHeaderRowDefs=i),h.oc(i=h.Zb())&&(t._contentFooterRowDefs=i))},viewQuery:function(e,t){var n;1&e&&(h.Cc(Gh,3),h.Cc(Yh,3),h.Cc(Zh,3),h.Cc(Xh,3)),2&e&&(h.oc(n=h.Zb())&&(t._rowOutlet=n.first),h.oc(n=h.Zb())&&(t._headerRowOutlet=n.first),h.oc(n=h.Zb())&&(t._footerRowOutlet=n.first),h.oc(n=h.Zb())&&(t._noDataRowOutlet=n.first))},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&h.Cb("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[h.yb([{provide:wh,useExisting:e},{provide:ou,useClass:iu},{provide:Ih,useClass:Rh},{provide:Qh,useValue:null}])],ngContentSelectors:kh,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(h.hc(gh),h.gc(0),h.gc(1,1),h.Mb(2,0),h.Mb(3,1),h.Mb(4,2),h.Mb(5,3))},directives:[Yh,Gh,Xh,Zh],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),e}();function $h(e,t){return e.concat(Array.from(t))}var ef=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[lu]]}),e}(),tf=[[["caption"]],[["colgroup"],["col"]]],nf=["caption","colgroup, col"],rf=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){var e;return Object(a.a)(this,n),(e=t.apply(this,arguments)).stickyCssClass="mat-table-sticky",e.needsPositionStickyOnElement=!1,e}return n}(Jh);return e.\u0275fac=function(t){return af(t||e)},e.\u0275cmp=h.Eb({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&h.Cb("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[h.yb([{provide:ou,useClass:iu},{provide:Jh,useExisting:e},{provide:wh,useExisting:e},{provide:Ih,useClass:Rh}]),h.wb],ngContentSelectors:nf,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(h.hc(tf),h.gc(0),h.gc(1,1),h.Mb(2,0),h.Mb(3,1),h.Mb(4,2),h.Mb(5,3))},directives:[Yh,Gh,Xh,Zh],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),e}(),af=h.Sb(rf),of=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return n}(Ch);return e.\u0275fac=function(t){return sf(t||e)},e.\u0275dir=h.Fb({type:e,selectors:[["","matCellDef",""]],features:[h.yb([{provide:Ch,useExisting:e}]),h.wb]}),e}(),sf=h.Sb(of),cf=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return n}(xh);return e.\u0275fac=function(t){return uf(t||e)},e.\u0275dir=h.Fb({type:e,selectors:[["","matHeaderCellDef",""]],features:[h.yb([{provide:xh,useExisting:e}]),h.wb]}),e}(),uf=h.Sb(cf),lf=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"name",get:function(){return this._name},set:function(e){this._setNameInput(e)}},{key:"_updateColumnCssClassName",value:function(){Object(i.a)(Object(r.a)(n.prototype),"_updateColumnCssClassName",this).call(this),this._columnCssClassName.push("mat-column-".concat(this.cssClassFriendlyName))}}]),n}(Sh);return e.\u0275fac=function(t){return hf(t||e)},e.\u0275dir=h.Fb({type:e,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[h.yb([{provide:Sh,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),h.wb]}),e}(),hf=h.Sb(lf),ff=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return n}(Dh);return e.\u0275fac=function(t){return df(t||e)},e.\u0275dir=h.Fb({type:e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[h.wb]}),e}(),df=h.Sb(ff),pf=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return n}(Th);return e.\u0275fac=function(t){return vf(t||e)},e.\u0275dir=h.Fb({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[h.wb]}),e}(),vf=h.Sb(pf),mf=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return n}(Fh);return e.\u0275fac=function(t){return bf(t||e)},e.\u0275dir=h.Fb({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[h.yb([{provide:Fh,useExisting:e}]),h.wb]}),e}(),bf=h.Sb(mf),_f=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return n}(Vh);return e.\u0275fac=function(t){return yf(t||e)},e.\u0275dir=h.Fb({type:e,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[h.yb([{provide:Vh,useExisting:e}]),h.wb]}),e}(),yf=h.Sb(_f),gf=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return n}(zh);return e.\u0275fac=function(t){return kf(t||e)},e.\u0275cmp=h.Eb({type:e,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[h.yb([{provide:zh,useExisting:e}]),h.wb],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&h.Mb(0,0)},directives:[Uh],encapsulation:2}),e}(),kf=h.Sb(gf),Of=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return n}(Kh);return e.\u0275fac=function(t){return wf(t||e)},e.\u0275cmp=h.Eb({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[h.yb([{provide:Kh,useExisting:e}]),h.wb],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&h.Mb(0,0)},directives:[Uh],encapsulation:2}),e}(),wf=h.Sb(Of),Cf=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[ef,ec],ec]}),e}(),xf=9007199254740991,jf=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return n}(function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Object(a.a)(this,n),(e=t.call(this))._renderData=new Mt.a([]),e._filter=new Mt.a(""),e._internalPageChanges=new Rt.a,e._renderChangesSubscription=null,e.sortingDataAccessor=function(e,t){var n=e[t];if(Di(n)){var i=Number(n);return i<xf?i:n}return n},e.sortData=function(t,n){var i=n.active,r=n.direction;return i&&""!=r?t.sort(function(t,n){var a=e.sortingDataAccessor(t,i),o=e.sortingDataAccessor(n,i),s=typeof a,c=typeof o;s!==c&&("number"===s&&(a+=""),"number"===c&&(o+=""));var u=0;return null!=a&&null!=o?a>o?u=1:a<o&&(u=-1):null!=a?u=1:null!=o&&(u=-1),u*("asc"==r?1:-1)}):t},e.filterPredicate=function(e,t){var n=Object.keys(e).reduce(function(t,n){return t+e[n]+"\u25ec"},"").toLowerCase(),i=t.trim().toLowerCase();return-1!=n.indexOf(i)},e._data=new Mt.a(i),e._updateChangeSubscription(),e}return Object(o.a)(n,[{key:"data",get:function(){return this._data.value},set:function(e){this._data.next(e),this._renderChangesSubscription||this._filterData(e)}},{key:"filter",get:function(){return this._filter.value},set:function(e){this._filter.next(e),this._renderChangesSubscription||this._filterData(this.data)}},{key:"sort",get:function(){return this._sort},set:function(e){this._sort=e,this._updateChangeSubscription()}},{key:"paginator",get:function(){return this._paginator},set:function(e){this._paginator=e,this._updateChangeSubscription()}},{key:"_updateChangeSubscription",value:function(){var e,t=this,n=this._sort?Object(Lt.a)(this._sort.sortChange,this._sort.initialized):Object(Qe.a)(null),i=this._paginator?Object(Lt.a)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Object(Qe.a)(null),r=tl([this._data,this._filter]).pipe(Object(Xe.a)(function(e){var n=Object(l.a)(e,1);return t._filterData(n[0])})),a=tl([r,n]).pipe(Object(Xe.a)(function(e){var n=Object(l.a)(e,1);return t._orderData(n[0])})),o=tl([a,i]).pipe(Object(Xe.a)(function(e){var n=Object(l.a)(e,1);return t._pageData(n[0])}));null===(e=this._renderChangesSubscription)||void 0===e||e.unsubscribe(),this._renderChangesSubscription=o.subscribe(function(e){return t._renderData.next(e)})}},{key:"_filterData",value:function(e){var t=this;return this.filteredData=null==this.filter||""===this.filter?e:e.filter(function(e){return t.filterPredicate(e,t.filter)}),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}},{key:"_orderData",value:function(e){return this.sort?this.sortData(e.slice(),this.sort):e}},{key:"_pageData",value:function(e){if(!this.paginator)return e;var t=this.paginator.pageIndex*this.paginator.pageSize;return e.slice(t,t+this.paginator.pageSize)}},{key:"_updatePaginator",value:function(e){var t=this;Promise.resolve().then(function(){var n=t.paginator;if(n&&(n.length=e,n.pageIndex>0)){var i=Math.ceil(n.length/n.pageSize)-1||0,r=Math.min(n.pageIndex,i);r!==n.pageIndex&&(n.pageIndex=r,t._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var e;null===(e=this._renderChangesSubscription)||void 0===e||e.unsubscribe(),this._renderChangesSubscription=null}}]),n}(tu)),Ef=n("XoHu");function Sf(e,t){return new Ge.a(function(n){var i=e.length;if(0!==i)for(var r=new Array(i),a=0,o=0,s=function(s){var c=Object(gl.a)(e[s]),u=!1;n.add(c.subscribe({next:function(e){u||(u=!0,o++),r[s]=e},error:function(e){return n.error(e)},complete:function(){++a!==i&&u||(o===i&&n.next(t?t.reduce(function(e,t,n){return e[t]=r[n],e},{}):r),n.complete())}}))},c=0;c<i;c++)s(c);else n.complete()})}var Af=function e(){Object(a.a)(this,e)},Df=new h.q("NgValueAccessor"),Tf={provide:Df,useExisting:Object(h.R)(function(){return If}),multi:!0},Pf=new h.q("CompositionEventMode"),If=function(){var e=function(){function e(t,n,i){var r;Object(a.a)(this,e),this._renderer=t,this._elementRef=n,this._compositionMode=i,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=d()?d().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return Object(o.a)(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_handleInput",value:function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.C),h.Kb(h.j),h.Kb(Pf,8))},e.\u0275dir=h.Fb({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&h.Yb("input",function(e){return t._handleInput(e.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(e){return t._compositionEnd(e.target.value)})},features:[h.yb([Tf])]}),e}();function Rf(e){return null==e||0===e.length}function Mf(e){return null!=e&&"number"==typeof e.length}var Lf=new h.q("NgValidators"),Ff=new h.q("NgAsyncValidators"),Nf=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[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])?)*$/,Bf=function(){function e(){Object(a.a)(this,e)}return Object(o.a)(e,null,[{key:"min",value:function(e){return t=e,function(e){if(Rf(e.value)||Rf(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null};var t}},{key:"max",value:function(e){return t=e,function(e){if(Rf(e.value)||Rf(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null};var t}},{key:"required",value:function(e){return Vf(e)}},{key:"requiredTrue",value:function(e){return function(e){return!0===e.value?null:{required:!0}}(e)}},{key:"email",value:function(e){return function(e){return Rf(e.value)||Nf.test(e.value)?null:{email:!0}}(e)}},{key:"minLength",value:function(e){return t=e,function(e){return Rf(e.value)||!Mf(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null};var t}},{key:"maxLength",value:function(e){return t=e,function(e){return Mf(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null};var t}},{key:"pattern",value:function(e){return(t=e)?("string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),n=new RegExp(i)):(i=t.toString(),n=t),function(e){if(Rf(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:i,actualValue:t}}}):Uf;var t,n,i}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){return Qf(e)}},{key:"composeAsync",value:function(e){return Yf(e)}}]),e}();function Vf(e){return Rf(e.value)?{required:!0}:null}function Uf(e){return null}function zf(e){return null!=e}function Kf(e){var t=Object(h.qb)(e)?Object(gl.a)(e):e;return Object(h.pb)(t),t}function Hf(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function Wf(e,t){return t.map(function(t){return t(e)})}function qf(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function Qf(e){if(!e)return null;var t=e.filter(zf);return 0==t.length?null:function(e){return Hf(Wf(e,t))}}function Gf(e){return null!=e?Qf(qf(e)):null}function Yf(e){if(!e)return null;var t=e.filter(zf);return 0==t.length?null:function(e){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length){var i=t[0];if(Object(Ft.a)(i))return Sf(i,null);if(Object(Ef.a)(i)&&Object.getPrototypeOf(i)===Object.prototype){var r=Object.keys(i);return Sf(r.map(function(e){return i[e]}),r)}}if("function"==typeof t[t.length-1]){var a=t.pop();return Sf(t=1===t.length&&Object(Ft.a)(t[0])?t[0]:t,null).pipe(Object(Xe.a)(function(e){return a.apply(void 0,Object(qe.a)(e))}))}return Sf(t,null)}(Wf(e,t).map(Kf)).pipe(Object(Xe.a)(Hf))}}function Zf(e){return null!=e?Yf(qf(e)):null}function Xf(e,t){return null===e?[t]:Array.isArray(e)?[].concat(Object(qe.a)(e),[t]):[e,t]}function Jf(e){return e._rawValidators}function $f(e){return e._rawAsyncValidators}var ed=function(){var e=function(){function e(){Object(a.a)(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return Object(o.a)(e,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=Gf(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Zf(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=h.Fb({type:e}),e}(),td=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(ed);return e.\u0275fac=function(t){return nd(t||e)},e.\u0275dir=h.Fb({type:e,features:[h.wb]}),e}(),nd=h.Sb(td),id=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){var e;return Object(a.a)(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return n}(ed),rd=function(){function e(t){Object(a.a)(this,e),this._cd=t}return Object(o.a)(e,[{key:"is",value:function(e){var t,n;return!!(null===(n=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===n?void 0:n[e])}}]),e}(),ad=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){return Object(a.a)(this,n),t.call(this,e)}return n}(rd);return e.\u0275fac=function(t){return new(t||e)(h.Kb(id,2))},e.\u0275dir=h.Fb({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&h.Cb("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[h.wb]}),e}(),od=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){return Object(a.a)(this,n),t.call(this,e)}return n}(rd);return e.\u0275fac=function(t){return new(t||e)(h.Kb(td,10))},e.\u0275dir=h.Fb({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&h.Cb("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[h.wb]}),e}();function sd(e,t){ld(e,t,!0),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&fd(e,t)})}(e,t),function(e,t){var n=function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(function(){e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&fd(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){var n=function(e){t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(function(){e._unregisterOnDisabledChange(n)})}}(e,t)}function cd(e,t){var n=function(){};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),hd(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function ud(e,t){e.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function ld(e,t,n){var i=Jf(e);null!==t.validator?e.setValidators(Xf(i,t.validator)):"function"==typeof i&&e.setValidators([i]);var r=$f(e);if(null!==t.asyncValidator?e.setAsyncValidators(Xf(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]),n){var a=function(){return e.updateValueAndValidity()};ud(t._rawValidators,a),ud(t._rawAsyncValidators,a)}}function hd(e,t,n){var i=!1;if(null!==e){if(null!==t.validator){var r=Jf(e);if(Array.isArray(r)&&r.length>0){var a=r.filter(function(e){return e!==t.validator});a.length!==r.length&&(i=!0,e.setValidators(a))}}if(null!==t.asyncValidator){var o=$f(e);if(Array.isArray(o)&&o.length>0){var s=o.filter(function(e){return e!==t.asyncValidator});s.length!==o.length&&(i=!0,e.setAsyncValidators(s))}}}if(n){var c=function(){};ud(t._rawValidators,c),ud(t._rawAsyncValidators,c)}return i}function fd(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function dd(e,t){ld(e,t,!1)}function pd(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function vd(e,t){if(!t)return null;Array.isArray(t);var n=void 0,i=void 0,r=void 0;return t.forEach(function(e){e.constructor===If?n=e:Object.getPrototypeOf(e.constructor)===Af?i=e:r=e}),r||i||n||null}function md(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var bd="VALID",_d="INVALID",yd="PENDING",gd="DISABLED";function kd(e){return(xd(e)?e.validators:e)||null}function Od(e){return Array.isArray(e)?Gf(e):e||null}function wd(e,t){return(xd(t)?t.asyncValidators:e)||null}function Cd(e){return Array.isArray(e)?Zf(e):e||null}function xd(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var jd=function(){function e(t,n){Object(a.a)(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=Od(this._rawValidators),this._composedAsyncValidatorFn=Cd(this._rawAsyncValidators)}return Object(o.a)(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===bd}},{key:"invalid",get:function(){return this.status===_d}},{key:"pending",get:function(){return this.status==yd}},{key:"disabled",get:function(){return this.status===gd}},{key:"enabled",get:function(){return this.status!==gd}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=Od(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Cd(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=yd,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=gd,this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=bd,this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==bd&&this.status!==yd||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?gd:bd}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status=yd,this._hasOwnPendingAsyncValidator=!0;var n=Kf(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var i=e;return t.forEach(function(e){i=i instanceof Sd?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof Ad&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new h.m,this.statusChanges=new h.m}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?gd:this.errors?_d:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(yd)?yd:this._anyControlsHaveStatus(_d)?_d:bd}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){xd(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),Ed=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return Object(a.a)(this,n),(e=t.call(this,kd(r),wd(o,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!o}),e}return Object(o.a)(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){md(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){md(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(jd),Sd=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r){var o;return Object(a.a)(this,n),(o=t.call(this,kd(i),wd(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),o}return Object(o.a)(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof Ed?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){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[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var i=t.controls[n];i&&e(i,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t<n.length;t++){var i=n[t],r=this.controls[i];if(this.contains(i)&&e(r))return!0}return!1}},{key:"_reduceValue",value:function(){var e=this;return this._reduceChildren({},function(t,n,i){return(n.enabled||e.disabled)&&(t[i]=n.value),t})}},{key:"_reduceChildren",value:function(e,t){var n=e;return this._forEachChild(function(e,i){n=t(n,e,i)}),n}},{key:"_allControlsDisabled",value:function(){for(var e=0,t=Object.keys(this.controls);e<t.length;e++)if(this.controls[t[e]].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(jd),Ad=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r){var o;return Object(a.a)(this,n),(o=t.call(this,kd(i),wd(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!r}),o}return Object(o.a)(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof Ed?e.value:e.getRawValue()})}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){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(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=Object(u.a)(this.controls);try{for(t.s();!(e=t.n()).done;)if(e.value.enabled)return!1}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}]),n}(jd),Dd={provide:td,useExisting:Object(h.R)(function(){return Pd})},Td=function(){return Promise.resolve(null)}(),Pd=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i){var r;return Object(a.a)(this,n),(r=t.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new h.m,r.form=new Sd({},Gf(e),Zf(i)),r}return Object(o.a)(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(e){var t=this;Td.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),sd(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;Td.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),md(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;Td.then(function(){var n=t._findContainer(e.path),i=new Sd({});dd(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;Td.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;Td.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,pd(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}}]),n}(td);return e.\u0275fac=function(t){return new(t||e)(h.Kb(Lf,10),h.Kb(Ff,10))},e.\u0275dir=h.Fb({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&h.Yb("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h.yb([Dd]),h.wb]}),e}(),Id=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({}),e}(),Rd=new h.q("NgModelWithFormControlWarning"),Md={provide:td,useExisting:Object(h.R)(function(){return Ld})},Ld=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i){var r;return Object(a.a)(this,n),(r=t.call(this)).validators=e,r.asyncValidators=i,r.submitted=!1,r._onCollectionChange=function(){return r._updateDomValue()},r.directives=[],r.form=null,r.ngSubmit=new h.m,r._setValidators(e),r._setAsyncValidators(i),r}return Object(o.a)(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(hd(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return sd(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){cd(e.control||null,e),md(this.directives,e)}},{key:"addFormGroup",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormGroup",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormArray",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,pd(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=t.control,i=e.form.get(t.path);n!==i&&(cd(n||null,t),i instanceof Ed&&(sd(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);dd(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(e){if(this.form){var t=this.form.get(e.path);t&&function(e,t){return hd(e,t,!1)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){ld(this.form,this,!1),this._oldForm&&hd(this._oldForm,this,!1)}},{key:"_checkFormPresent",value:function(){}}]),n}(td);return e.\u0275fac=function(t){return new(t||e)(h.Kb(Lf,10),h.Kb(Ff,10))},e.\u0275dir=h.Fb({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&h.Yb("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h.yb([Md]),h.wb,h.xb]}),e}(),Fd={provide:id,useExisting:Object(h.R)(function(){return Nd})},Nd=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o,s){var c;return Object(a.a)(this,n),(c=t.call(this))._ngModelWarningConfig=s,c._added=!1,c.update=new h.m,c._ngModelWarningSent=!1,c._parent=e,c._setValidators(i),c._setAsyncValidators(r),c.valueAccessor=vd(Object(It.a)(c),o),c}return Object(o.a)(n,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){this._added||this._setUpControl(),function(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"path",get:function(){return e=null==this.name?this.name:this.name.toString(),t=this._parent,[].concat(Object(qe.a)(t.path),[e]);var e,t}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}]),n}(id);return e.\u0275fac=function(t){return new(t||e)(h.Kb(td,13),h.Kb(Lf,10),h.Kb(Ff,10),h.Kb(Df,10),h.Kb(Rd,8))},e.\u0275dir=h.Fb({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[h.yb([Fd]),h.wb,h.xb]}),e._ngModelWarningSentOnce=!1,e}(),Bd={provide:Lf,useExisting:Object(h.R)(function(){return Vd}),multi:!0},Vd=function(){var e=function(){function e(){Object(a.a)(this,e),this._required=!1}return Object(o.a)(e,[{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&"false"!=="".concat(e),this._onChange&&this._onChange()}},{key:"validate",value:function(e){return this.required?Vf(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=h.Fb({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&h.Ab("required",t.required?"":null)},inputs:{required:"required"},features:[h.yb([Bd])]}),e}(),Ud=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[Id]]}),e}(),zd=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[Ud]}),e}(),Kd=function(){var e=function(){function e(){Object(a.a)(this,e)}return Object(o.a)(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:Rd,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[Ud]}),e}(),Hd=["mat-button",""],Wd=["*"],qd=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-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:none;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-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-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,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-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:none;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 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-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-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{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:none;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 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 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.mat-button-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:none;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 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 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.mat-button-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 i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .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:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",Qd=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Gd=nc(tc(ic(function e(t){Object(a.a)(this,e),this._elementRef=t}))),Yd=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r){var o;Object(a.a)(this,n),(o=t.call(this,e))._focusMonitor=i,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var s,c=Object(u.a)(Qd);try{for(c.s();!(s=c.n()).done;){var l=s.value;o._hasHostAttributes(l)&&o._getHostElement().classList.add(l)}}catch(h){c.e(h)}finally{c.f()}return e.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return Object(o.a)(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.some(function(t){return e._getHostElement().hasAttribute(t)})}}]),n}(Gd);return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.j),h.Kb(Ar),h.Kb(Ks,8))},e.\u0275cmp=h.Eb({type:e,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){var n;1&e&&h.Cc(Dc,1),2&e&&h.oc(n=h.Zb())&&(t.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(h.Ab("disabled",t.disabled||null),h.Cb("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[h.wb],attrs:Hd,ngContentSelectors:Wd,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(h.hc(),h.Qb(0,"span",0),h.gc(1),h.Pb(),h.Lb(2,"span",1),h.Lb(3,"span",2)),2&e&&(h.zb(2),h.Cb("mat-button-ripple-round",t.isRoundButton||t.isIconButton),h.ic("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[Dc],styles:[qd],encapsulation:2,changeDetection:0}),e}(),Zd=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r){return Object(a.a)(this,n),t.call(this,i,e,r)}return Object(o.a)(n,[{key:"_haltDisabledEvents",value:function(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}}]),n}(Yd);return e.\u0275fac=function(t){return new(t||e)(h.Kb(Ar),h.Kb(h.j),h.Kb(Ks,8))},e.\u0275cmp=h.Eb({type:e,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(e,t){1&e&&h.Yb("click",function(e){return t._haltDisabledEvents(e)}),2&e&&(h.Ab("tabindex",t.disabled?-1:t.tabIndex||0)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString()),h.Cb("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[h.wb],attrs:Hd,ngContentSelectors:Wd,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(h.hc(),h.Qb(0,"span",0),h.gc(1),h.Pb(),h.Lb(2,"span",1),h.Lb(3,"span",2)),2&e&&(h.zb(2),h.Cb("mat-button-ripple-round",t.isRoundButton||t.isIconButton),h.ic("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[Dc],styles:[qd],encapsulation:2,changeDetection:0}),e}(),Xd=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[Tc,ec],ec]}),e}(),Jd=["underline"],$d=["connectionContainer"],ep=["inputContainer"],tp=["label"];function np(e,t){1&e&&(h.Ob(0),h.Qb(1,"div",14),h.Lb(2,"div",15),h.Lb(3,"div",16),h.Lb(4,"div",17),h.Pb(),h.Qb(5,"div",18),h.Lb(6,"div",15),h.Lb(7,"div",16),h.Lb(8,"div",17),h.Pb(),h.Nb())}function ip(e,t){1&e&&(h.Qb(0,"div",19),h.gc(1,1),h.Pb())}function rp(e,t){if(1&e&&(h.Ob(0),h.gc(1,2),h.Qb(2,"span"),h.zc(3),h.Pb(),h.Nb()),2&e){var n=h.cc(2);h.zb(3),h.Ac(n._control.placeholder)}}function ap(e,t){1&e&&h.gc(0,3,["*ngSwitchCase","true"])}function op(e,t){1&e&&(h.Qb(0,"span",23),h.zc(1," *"),h.Pb())}function sp(e,t){if(1&e){var n=h.Rb();h.Qb(0,"label",20,21),h.Yb("cdkObserveContent",function(){return h.rc(n),h.cc().updateOutlineGap()}),h.xc(2,rp,4,1,"ng-container",12),h.xc(3,ap,1,0,"ng-content",12),h.xc(4,op,2,0,"span",22),h.Pb()}if(2&e){var i=h.cc();h.Cb("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),h.ic("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),h.Ab("for",i._control.id)("aria-owns",i._control.id),h.zb(2),h.ic("ngSwitchCase",!1),h.zb(1),h.ic("ngSwitchCase",!0),h.zb(1),h.ic("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function cp(e,t){1&e&&(h.Qb(0,"div",24),h.gc(1,4),h.Pb())}function up(e,t){if(1&e&&(h.Qb(0,"div",25,26),h.Lb(2,"span",27),h.Pb()),2&e){var n=h.cc();h.zb(2),h.Cb("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function lp(e,t){if(1&e&&(h.Qb(0,"div"),h.gc(1,5),h.Pb()),2&e){var n=h.cc();h.ic("@transitionMessages",n._subscriptAnimationState)}}function hp(e,t){if(1&e&&(h.Qb(0,"div",31),h.zc(1),h.Pb()),2&e){var n=h.cc(2);h.ic("id",n._hintLabelId),h.zb(1),h.Ac(n.hintLabel)}}function fp(e,t){if(1&e&&(h.Qb(0,"div",28),h.xc(1,hp,2,2,"div",29),h.gc(2,6),h.Lb(3,"div",30),h.gc(4,7),h.Pb()),2&e){var n=h.cc();h.ic("@transitionMessages",n._subscriptAnimationState),h.zb(1),h.ic("ngIf",n.hintLabel)}}var dp=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],pp=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],vp=0,mp=new h.q("MatError"),bp=function(){var e=function e(){Object(a.a)(this,e),this.id="mat-error-".concat(vp++)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=h.Fb({type:e,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&h.Ab("id",t.id)},inputs:{id:"id"},features:[h.yb([{provide:mp,useExisting:e}])]}),e}(),_p={transitionMessages:ea("transitionMessages",[ra("enter",ia({opacity:1,transform:"translateY(0%)"})),aa("void => enter",[ia({opacity:0,transform:"translateY(-5px)"}),ta("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},yp=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=h.Fb({type:e}),e}(),gp=new h.q("MatHint"),kp=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=h.Fb({type:e,selectors:[["mat-label"]]}),e}(),Op=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=h.Fb({type:e,selectors:[["mat-placeholder"]]}),e}(),wp=new h.q("MatPrefix"),Cp=new h.q("MatSuffix"),xp=0,jp=nc(function e(t){Object(a.a)(this,e),this._elementRef=t},"primary"),Ep=new h.q("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Sp=new h.q("MatFormField"),Ap=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o,s,c,u,l){var h;return Object(a.a)(this,n),(h=t.call(this,e))._elementRef=e,h._changeDetectorRef=i,h._dir=o,h._defaults=s,h._platform=c,h._ngZone=u,h._outlineGapCalculationNeededImmediately=!1,h._outlineGapCalculationNeededOnStable=!1,h._destroyed=new Rt.a,h._showAlwaysAnimate=!1,h._subscriptAnimationState="",h._hintLabel="",h._hintLabelId="mat-hint-".concat(xp++),h._labelId="mat-form-field-label-".concat(xp++),h.floatLabel=h._getDefaultFloatLabelState(),h._animationsEnabled="NoopAnimations"!==l,h.appearance=s&&s.appearance?s.appearance:"legacy",h._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker,h}return Object(o.a)(n,[{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=Si(e)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(t.controlType)),t.stateChanges.pipe(Zr(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Object(Kt.a)(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe(Object(Kt.a)(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),Object(Lt.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Zr(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Zr(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Object(Kt.a)(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Bt(this._label.nativeElement,"transitionend").pipe(Object(Ht.a)(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,Object(qe.a)(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push.apply(e,Object(qe.a)(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),a=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var o=i.getBoundingClientRect();if(0===o.width&&0===o.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(o),c=e.children,u=this._getStartEnd(c[0].getBoundingClientRect()),l=0,h=0;h<c.length;h++)l+=c[h].offsetWidth;t=Math.abs(u-s)-5,n=l>0?.75*l+10:0}for(var f=0;f<r.length;f++)r[f].style.width="".concat(t,"px");for(var d=0;d<a.length;d++)a[d].style.width="".concat(n,"px");this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}else this._outlineGapCalculationNeededImmediately=!0}},{key:"_getStartEnd",value:function(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}},{key:"_isAttachedToDOM",value:function(){var e=this._elementRef.nativeElement;if(e.getRootNode){var t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}}]),n}(jp);return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.j),h.Kb(h.g),h.Kb(h.j),h.Kb(Kn,8),h.Kb(Ep,8),h.Kb(Qi),h.Kb(h.x),h.Kb(Ks,8))},e.\u0275cmp=h.Eb({type:e,selectors:[["mat-form-field"]],contentQueries:function(e,t,n){var i;1&e&&(h.Db(n,yp,1),h.Db(n,yp,3),h.Db(n,kp,1),h.Db(n,kp,3),h.Db(n,Op,1),h.Db(n,mp,1),h.Db(n,gp,1),h.Db(n,wp,1),h.Db(n,Cp,1)),2&e&&(h.oc(i=h.Zb())&&(t._controlNonStatic=i.first),h.oc(i=h.Zb())&&(t._controlStatic=i.first),h.oc(i=h.Zb())&&(t._labelChildNonStatic=i.first),h.oc(i=h.Zb())&&(t._labelChildStatic=i.first),h.oc(i=h.Zb())&&(t._placeholderChild=i.first),h.oc(i=h.Zb())&&(t._errorChildren=i),h.oc(i=h.Zb())&&(t._hintChildren=i),h.oc(i=h.Zb())&&(t._prefixChildren=i),h.oc(i=h.Zb())&&(t._suffixChildren=i))},viewQuery:function(e,t){var n;1&e&&(h.Cc(Jd,1),h.Cc($d,3),h.Cc(ep,1),h.Cc(tp,1)),2&e&&(h.oc(n=h.Zb())&&(t.underlineRef=n.first),h.oc(n=h.Zb())&&(t._connectionContainerRef=n.first),h.oc(n=h.Zb())&&(t._inputContainerRef=n.first),h.oc(n=h.Zb())&&(t._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(e,t){2&e&&h.Cb("mat-form-field-appearance-standard","standard"==t.appearance)("mat-form-field-appearance-fill","fill"==t.appearance)("mat-form-field-appearance-outline","outline"==t.appearance)("mat-form-field-appearance-legacy","legacy"==t.appearance)("mat-form-field-invalid",t._control.errorState)("mat-form-field-can-float",t._canLabelFloat())("mat-form-field-should-float",t._shouldLabelFloat())("mat-form-field-has-label",t._hasFloatingLabel())("mat-form-field-hide-placeholder",t._hideControlPlaceholder())("mat-form-field-disabled",t._control.disabled)("mat-form-field-autofilled",t._control.autofilled)("mat-focused",t._control.focused)("ng-untouched",t._shouldForward("untouched"))("ng-touched",t._shouldForward("touched"))("ng-pristine",t._shouldForward("pristine"))("ng-dirty",t._shouldForward("dirty"))("ng-valid",t._shouldForward("valid"))("ng-invalid",t._shouldForward("invalid"))("ng-pending",t._shouldForward("pending"))("_mat-animation-noopable",!t._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[h.yb([{provide:Sp,useExisting:e}]),h.wb],ngContentSelectors:pp,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,t){1&e&&(h.hc(dp),h.Qb(0,"div",0),h.Qb(1,"div",1,2),h.Yb("click",function(e){return t._control.onContainerClick&&t._control.onContainerClick(e)}),h.xc(3,np,9,0,"ng-container",3),h.xc(4,ip,2,0,"div",4),h.Qb(5,"div",5,6),h.gc(7),h.Qb(8,"span",7),h.xc(9,sp,5,16,"label",8),h.Pb(),h.Pb(),h.xc(10,cp,2,0,"div",9),h.Pb(),h.xc(11,up,3,4,"div",10),h.Qb(12,"div",11),h.xc(13,lp,2,1,"div",12),h.xc(14,fp,5,2,"div",13),h.Pb(),h.Pb()),2&e&&(h.zb(3),h.ic("ngIf","outline"==t.appearance),h.zb(1),h.ic("ngIf",t._prefixChildren.length),h.zb(5),h.ic("ngIf",t._hasFloatingLabel()),h.zb(1),h.ic("ngIf",t._suffixChildren.length),h.zb(1),h.ic("ngIf","outline"!=t.appearance),h.zb(1),h.ic("ngSwitch",t._getDisplayedMessages()),h.zb(1),h.ic("ngSwitchCase","error"),h.zb(1),h.ic("ngSwitchCase","hint"))},directives:[X,te,ne,nr],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[_p.transitionMessages]},changeDetection:0}),e}(),Dp=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[le,ec,ir],ec]}),e}(),Tp=Xi({passive:!0}),Pp=function(){var e=function(){function e(t,n){Object(a.a)(this,e),this._platform=t,this._ngZone=n,this._monitoredElements=new Map}return Object(o.a)(e,[{key:"monitor",value:function(e){var t=this;if(!this._platform.isBrowser)return kl.a;var n=Ii(e),i=this._monitoredElements.get(n);if(i)return i.subject;var r=new Rt.a,a="cdk-text-field-autofilled",o=function(e){"cdk-text-field-autofill-start"!==e.animationName||n.classList.contains(a)?"cdk-text-field-autofill-end"===e.animationName&&n.classList.contains(a)&&(n.classList.remove(a),t._ngZone.run(function(){return r.next({target:e.target,isAutofilled:!1})})):(n.classList.add(a),t._ngZone.run(function(){return r.next({target:e.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){n.addEventListener("animationstart",o,Tp),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:r,unlisten:function(){n.removeEventListener("animationstart",o,Tp)}}),r}},{key:"stopMonitoring",value:function(e){var t=Ii(e),n=this._monitoredElements.get(t);n&&(n.unlisten(),n.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}},{key:"ngOnDestroy",value:function(){var e=this;this._monitoredElements.forEach(function(t,n){return e.stopMonitoring(n)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(Qi),h.Ub(h.x))},e.\u0275prov=Object(h.Gb)({factory:function(){return new e(Object(h.Ub)(Qi),Object(h.Ub)(h.x))},token:e,providedIn:"root"}),e}(),Ip=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[Gi]]}),e}(),Rp=new h.q("MAT_INPUT_VALUE_ACCESSOR"),Mp=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Lp=0,Fp=ac(function e(t,n,i,r){Object(a.a)(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}),Np=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o,s,c,u,l,h,f){var d;Object(a.a)(this,n),(d=t.call(this,c,o,s,r))._elementRef=e,d._platform=i,d.ngControl=r,d._autofillMonitor=l,d._formField=f,d._uid="mat-input-".concat(Lp++),d.focused=!1,d.stateChanges=new Rt.a,d.controlType="mat-input",d.autofilled=!1,d._disabled=!1,d._required=!1,d._type="text",d._readonly=!1,d._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(e){return Zi().has(e)});var p=d._elementRef.nativeElement,v=p.nodeName.toLowerCase();return d._inputValueAccessor=u||p,d._previousNativeValue=d.value,d.id=d.id,i.IOS&&h.runOutsideAngular(function(){e.nativeElement.addEventListener("keyup",function(e){var t=e.target;t.value||t.selectionStart||t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),d._isServer=!d._platform.isBrowser,d._isNativeSelect="select"===v,d._isTextarea="textarea"===v,d._isNativeSelect&&(d.controlType=p.multiple?"mat-native-select-multiple":"mat-native-select"),d}return Object(o.a)(n,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=Si(e),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=Si(e)}},{key:"type",get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Zi().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(e){this._readonly=Si(e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(t){e.autofilled=t.isAutofilled,e.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_focusChanged",value:function(e){e===this.focused||this.readonly&&e||(this.focused=e,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var e,t,n=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(n!==this._previousPlaceholder){var i=this._elementRef.nativeElement;this._previousPlaceholder=n,n?i.setAttribute("placeholder",n):i.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}},{key:"_validateType",value:function(){Mp.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),n}(Fp);return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.j),h.Kb(Qi),h.Kb(id,10),h.Kb(Pd,8),h.Kb(Ld,8),h.Kb(yc),h.Kb(Rp,10),h.Kb(Pp),h.Kb(h.x),h.Kb(Sp,8))},e.\u0275dir=h.Fb({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(e,t){1&e&&h.Yb("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(h.Tb("disabled",t.disabled)("required",t.required),h.Ab("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.errorState&&!t.empty)("aria-required",t.required),h.Cb("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[h.yb([{provide:yp,useExisting:e}]),h.wb,h.xb]}),e}(),Bp=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({providers:[yc],imports:[[Ip,Dp,ec],Ip,Dp]}),e}(),Vp=function(){function e(t,n){Object(a.a)(this,e),this.predicate=t,this.inclusive=n}return Object(o.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new Up(e,this.predicate,this.inclusive))}}]),e}(),Up=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r){var o;return Object(a.a)(this,n),(o=t.call(this,e)).predicate=i,o.inclusive=r,o.index=0,o}return Object(o.a)(n,[{key:"_next",value:function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(i){return void n.error(i)}this.nextOrComplete(e,t)}},{key:"nextOrComplete",value:function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}]),n}(Wt.a),zp=Ji(),Kp=function(){function e(t,n){Object(a.a)(this,e),this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}return Object(o.a)(e,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Pi(-this._previousScrollPosition.left),e.style.top=Pi(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var e=this._document.documentElement,t=e.style,n=this._document.body.style,i=t.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),zp&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),zp&&(t.scrollBehavior=i,n.scrollBehavior=r)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}]),e}(),Hp=function(){function e(t,n,i,r){var o=this;Object(a.a)(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return Object(o.a)(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),Wp=function(){function e(){Object(a.a)(this,e)}return Object(o.a)(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function qp(e,t){return t.some(function(t){return e.bottom<t.top||e.top>t.bottom||e.right<t.left||e.left>t.right})}function Qp(e,t){return t.some(function(t){return e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right})}var Gp=function(){function e(t,n,i,r){Object(a.a)(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return Object(o.a)(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;qp(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),Yp=function(){var e=function e(t,n,i,r){var o=this;Object(a.a)(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new Wp},this.close=function(e){return new Hp(o._scrollDispatcher,o._ngZone,o._viewportRuler,e)},this.block=function(){return new Kp(o._viewportRuler,o._document)},this.reposition=function(e){return new Gp(o._scrollDispatcher,o._viewportRuler,o._ngZone,e)},this._document=r};return e.\u0275fac=function(t){return new(t||e)(h.Ub(su),h.Ub(cu),h.Ub(h.x),h.Ub(v))},e.\u0275prov=Object(h.Gb)({factory:function(){return new e(Object(h.Ub)(su),Object(h.Ub)(cu),Object(h.Ub)(h.x),Object(h.Ub)(v))},token:e,providedIn:"root"}),e}(),Zp=function e(t){if(Object(a.a)(this,e),this.scrollStrategy=new Wp,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];void 0!==t[r]&&(this[r]=t[r])}},Xp=function e(t,n,i,r,o){Object(a.a)(this,e),this.offsetX=i,this.offsetY=r,this.panelClass=o,this.originX=t.originX,this.originY=t.originY,this.overlayX=n.overlayX,this.overlayY=n.overlayY},Jp=function e(t,n){Object(a.a)(this,e),this.connectionPair=t,this.scrollableViewProperties=n},$p=function(){var e=function(){function e(t){Object(a.a)(this,e),this._attachedOverlays=[],this._document=t}return Object(o.a)(e,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(e){this.remove(e),this._attachedOverlays.push(e)}},{key:"remove",value:function(e){var t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(v))},e.\u0275prov=Object(h.Gb)({factory:function(){return new e(Object(h.Ub)(v))},token:e,providedIn:"root"}),e}(),ev=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e))._keydownListener=function(e){for(var t=i._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},i}return Object(o.a)(n,[{key:"add",value:function(e){Object(i.a)(Object(r.a)(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}($p);return e.\u0275fac=function(t){return new(t||e)(h.Ub(v))},e.\u0275prov=Object(h.Gb)({factory:function(){return new e(Object(h.Ub)(v))},token:e,providedIn:"root"}),e}(),tv=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i){var r;return Object(a.a)(this,n),(r=t.call(this,e))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(e){for(var t=e.composedPath?e.composedPath()[0]:e.target,n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var a=n[i];if(!(a._outsidePointerEvents.observers.length<1)&&a.hasAttached()){if(a.overlayElement.contains(t))break;a._outsidePointerEvents.next(e)}}},r}return Object(o.a)(n,[{key:"add",value:function(e){if(Object(i.a)(Object(r.a)(n.prototype),"add",this).call(this,e),!this._isAttached){var t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var e=this._document.body;e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),n}($p);return e.\u0275fac=function(t){return new(t||e)(h.Ub(v),h.Ub(Qi))},e.\u0275prov=Object(h.Gb)({factory:function(){return new e(Object(h.Ub)(v),Object(h.Ub)(Qi))},token:e,providedIn:"root"}),e}(),nv=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),iv=function(){var e=function(){function e(t,n){Object(a.a)(this,e),this._platform=n,this._document=t}return Object(o.a)(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var e="cdk-overlay-container";if(this._platform.isBrowser||nv)for(var t=this._document.querySelectorAll(".".concat(e,'[platform="server"], ')+".".concat(e,'[platform="test"]')),n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n]);var i=this._document.createElement("div");i.classList.add(e),nv?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(v),h.Ub(Qi))},e.\u0275prov=Object(h.Gb)({factory:function(){return new e(Object(h.Ub)(v),Object(h.Ub)(Qi))},token:e,providedIn:"root"}),e}(),rv=function(){function e(t,n,i,r,o,s,c,u,l){var h=this;Object(a.a)(this,e),this._portalOutlet=t,this._host=n,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=s,this._document=c,this._location=u,this._outsideClickDispatcher=l,this._backdropElement=null,this._backdropClick=new Rt.a,this._attachments=new Rt.a,this._detachments=new Rt.a,this._locationChanges=Vi.a.EMPTY,this._backdropClickHandler=function(e){return h._backdropClick.next(e)},this._keydownEvents=new Rt.a,this._outsidePointerEvents=new Rt.a,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}return Object(o.a)(e,[{key:"overlayElement",get:function(){return this._pane}},{key:"backdropElement",get:function(){return this._backdropElement}},{key:"hostElement",get:function(){return this._host}},{key:"attach",value:function(e){var t=this,n=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Object(Ht.a)(1)).subscribe(function(){t.hasAttached()&&t.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(function(){return t.dispose()})),this._outsideClickDispatcher.add(this),n}},{key:"detach",value:function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}}},{key:"dispose",value:function(){var e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,e&&this._detachments.next(),this._detachments.complete()}},{key:"hasAttached",value:function(){return this._portalOutlet.hasAttached()}},{key:"backdropClick",value:function(){return this._backdropClick}},{key:"attachments",value:function(){return this._attachments}},{key:"detachments",value:function(){return this._detachments}},{key:"keydownEvents",value:function(){return this._keydownEvents}},{key:"outsidePointerEvents",value:function(){return this._outsidePointerEvents}},{key:"getConfig",value:function(){return this._config}},{key:"updatePosition",value:function(){this._positionStrategy&&this._positionStrategy.apply()}},{key:"updatePositionStrategy",value:function(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}},{key:"setDirection",value:function(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}},{key:"addPanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!0)}},{key:"removePanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!1)}},{key:"getDirection",value:function(){var e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}},{key:"updateScrollStrategy",value:function(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var e=this._pane.style;e.width=Pi(this._config.width),e.height=Pi(this._config.height),e.minWidth=Pi(this._config.minWidth),e.minHeight=Pi(this._config.minHeight),e.maxWidth=Pi(this._config.maxWidth),e.maxHeight=Pi(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(e){this._pane.style.pointerEvents=e?"":"none"}},{key:"_attachBackdrop",value:function(){var e=this,t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){e._backdropElement&&e._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var e=this,t=this._backdropElement;if(t){var n,i=function i(){t&&(t.removeEventListener("click",e._backdropClickHandler),t.removeEventListener("transitionend",i),t.parentNode&&t.parentNode.removeChild(t)),e._backdropElement==t&&(e._backdropElement=null),e._config.backdropClass&&e._toggleClasses(t,e._config.backdropClass,!1),clearTimeout(n)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(function(){t.addEventListener("transitionend",i)}),t.style.pointerEvents="none",n=this._ngZone.runOutsideAngular(function(){return setTimeout(i,500)})}}},{key:"_toggleClasses",value:function(e,t,n){var i=e.classList;Ti(t).forEach(function(e){e&&(n?i.add(e):i.remove(e))})}},{key:"_detachContentWhenStable",value:function(){var e=this;this._ngZone.runOutsideAngular(function(){var t=e._ngZone.onStable.pipe(Object(Kt.a)(Object(Lt.a)(e._attachments,e._detachments))).subscribe(function(){e._pane&&e._host&&0!==e._pane.children.length||(e._pane&&e._config.panelClass&&e._toggleClasses(e._pane,e._config.panelClass,!1),e._host&&e._host.parentElement&&(e._previousHostParent=e._host.parentElement,e._previousHostParent.removeChild(e._host)),t.unsubscribe())})})}},{key:"_disposeScrollStrategy",value:function(){var e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}}]),e}(),av="cdk-overlay-connected-position-bounding-box",ov=/([A-Za-z%]+)$/,sv=function(){function e(t,n,i,r,o){Object(a.a)(this,e),this._viewportRuler=n,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Rt.a,this._resizeSubscription=Vi.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}return Object(o.a)(e,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(e){var t=this;this._validatePositions(),e.hostElement.classList.add(av),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){t._isInitialRender=!0,t.apply()})}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();var e,t,n=this._originRect,i=this._overlayRect,r=this._viewportRect,a=[],o=Object(u.a)(this._preferredPositions);try{for(o.s();!(t=o.n()).done;){var s=t.value,c=this._getOriginPoint(n,s),l=this._getOverlayPoint(c,i,s),h=this._getOverlayFit(l,i,r,s);if(h.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,c);this._canFitWithFlexibleDimensions(h,l,r)?a.push({position:s,origin:c,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(c,s)}):(!e||e.overlayFit.visibleArea<h.visibleArea)&&(e={overlayFit:h,overlayPoint:l,originPoint:c,position:s,overlayRect:i})}}catch(_){o.e(_)}finally{o.f()}if(a.length){var f,d=null,p=-1,v=Object(u.a)(a);try{for(v.s();!(f=v.n()).done;){var m=f.value,b=m.boundingBoxRect.width*m.boundingBoxRect.height*(m.position.weight||1);b>p&&(p=b,d=m)}}catch(_){v.e(_)}finally{v.f()}return this._isPushed=!1,void this._applyPosition(d.position,d.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&cv(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(av),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,{x:e.x+i,y:e.y+("center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height)}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=lv(t),a=e.x,o=e.y,s=this._getOffset(i,"x"),c=this._getOffset(i,"y");s&&(a+=s),c&&(o+=c);var u=0-o,l=o+r.height-n.height,h=this._subtractOverflows(r.width,0-a,a+r.width-n.width),f=this._subtractOverflows(r.height,u,l),d=h*f;return{visibleArea:d,isCompletelyWithinViewport:r.width*r.height===d,fitsInViewportVertically:f===r.height,fitsInViewportHorizontally:h==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,a=uv(this._overlayRef.getConfig().minHeight),o=uv(this._overlayRef.getConfig().minWidth);return(e.fitsInViewportVertically||null!=a&&a<=i)&&(e.fitsInViewportHorizontally||null!=o&&o<=r)}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,a=lv(t),o=this._viewportRect,s=Math.max(e.x+a.width-o.width,0),c=Math.max(e.y+a.height-o.height,0),u=Math.max(o.top-n.top-e.y,0),l=Math.max(o.left-n.left-e.x,0);return this._previousPushAmount={x:i=a.width<=o.width?l||-s:e.x<this._viewportMargin?o.left-n.left-e.x:0,y:r=a.height<=o.height?u||-c:e.y<this._viewportMargin?o.top-n.top-e.y:0},{x:e.x+i,y:e.y+r}}},{key:"_applyPosition",value:function(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){var n=this._getScrollVisibility(),i=new Jp(e,n);this._positionChanges.next(i)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(e){if(this._transformOriginSelector){var t,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),i=e.overlayY;t="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(var r=0;r<n.length;r++)n[r].style.transformOrigin="".concat(t," ").concat(i)}}},{key:"_calculateBoundingBoxRect",value:function(e,t){var n,i,r,a,o,s,c=this._viewportRect,u=this._isRtl();if("top"===t.overlayY)n=c.height-(i=e.y)+this._viewportMargin;else if("bottom"===t.overlayY)n=c.height-(r=c.height-e.y+2*this._viewportMargin)+this._viewportMargin;else{var l=Math.min(c.bottom-e.y+c.top,e.y),h=this._lastBoundingBoxSize.height;i=e.y-l,(n=2*l)>h&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-h/2)}if("end"===t.overlayX&&!u||"start"===t.overlayX&&u)s=c.width-e.x+this._viewportMargin,a=e.x-this._viewportMargin;else if("start"===t.overlayX&&!u||"end"===t.overlayX&&u)o=e.x,a=c.right-e.x;else{var f=Math.min(c.right-e.x+c.left,e.x),d=this._lastBoundingBoxSize.width;o=e.x-f,(a=2*f)>d&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.x-d/2)}return{top:i,left:o,bottom:r,right:s,width:a,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;i.height=Pi(n.height),i.top=Pi(n.top),i.bottom=Pi(n.bottom),i.width=Pi(n.width),i.left=Pi(n.left),i.right=Pi(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=Pi(r)),a&&(i.maxWidth=Pi(a))}this._lastBoundingBoxSize=n,cv(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){cv(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){cv(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(i){var o=this._viewportRuler.getViewportScrollPosition();cv(n,this._getExactOverlayY(t,e,o)),cv(n,this._getExactOverlayX(t,e,o))}else n.position="static";var s="",c=this._getOffset(t,"x"),u=this._getOffset(t,"y");c&&(s+="translateX(".concat(c,"px) ")),u&&(s+="translateY(".concat(u,"px)")),n.transform=s.trim(),a.maxHeight&&(i?n.maxHeight=Pi(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(i?n.maxWidth=Pi(a.maxWidth):r&&(n.maxWidth="")),cv(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var a=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=a,"bottom"===e.overlayY?i.bottom="".concat(this._document.documentElement.clientHeight-(r.y+this._overlayRect.height),"px"):i.top=Pi(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"==(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right="".concat(this._document.documentElement.clientWidth-(r.x+this._overlayRect.width),"px"):i.left=Pi(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:Qp(e,n),isOriginOutsideView:qp(e,n),isOverlayClipped:Qp(t,n),isOverlayOutsideView:qp(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.reduce(function(e,t){return e-Math.max(t,0)},e)}},{key:"_getNarrowedViewportRect",value:function(){var e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}},{key:"_isRtl",value:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"_hasExactPosition",value:function(){return!this._hasFlexibleDimensions||this._isPushed}},{key:"_getOffset",value:function(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}},{key:"_validatePositions",value:function(){}},{key:"_addPanelClasses",value:function(e){var t=this;this._pane&&Ti(e).forEach(function(e){""!==e&&-1===t._appliedPanelClasses.indexOf(e)&&(t._appliedPanelClasses.push(e),t._pane.classList.add(e))})}},{key:"_clearPanelClasses",value:function(){var e=this;this._pane&&(this._appliedPanelClasses.forEach(function(t){e._pane.classList.remove(t)}),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var e=this._origin;if(e instanceof h.j)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();var t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}}]),e}();function cv(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function uv(e){if("number"!=typeof e&&null!=e){var t=e.split(ov),n=Object(l.a)(t,2),i=n[1];return i&&"px"!==i?null:parseFloat(n[0])}return e||null}function lv(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}var hv=function(){function e(t,n,i,r,o,s,c){Object(a.a)(this,e),this._preferredPositions=[],this._positionStrategy=new sv(i,r,o,s,c).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,n),this.onPositionChange=this._positionStrategy.positionChanges}return Object(o.a)(e,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(e){this._overlayRef=e,this._positionStrategy.attach(e),this._direction&&(e.setDirection(this._direction),this._direction=null)}},{key:"dispose",value:function(){this._positionStrategy.dispose()}},{key:"detach",value:function(){this._positionStrategy.detach()}},{key:"apply",value:function(){this._positionStrategy.apply()}},{key:"recalculateLastPosition",value:function(){this._positionStrategy.reapplyLastPosition()}},{key:"withScrollableContainers",value:function(e){this._positionStrategy.withScrollableContainers(e)}},{key:"withFallbackPosition",value:function(e,t,n,i){var r=new Xp(e,t,n,i);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"withDirection",value:function(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this}},{key:"withOffsetX",value:function(e){return this._positionStrategy.withDefaultOffsetX(e),this}},{key:"withOffsetY",value:function(e){return this._positionStrategy.withDefaultOffsetY(e),this}},{key:"withLockedPosition",value:function(e){return this._positionStrategy.withLockedPosition(e),this}},{key:"withPositions",value:function(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"setOrigin",value:function(e){return this._positionStrategy.setOrigin(e),this}}]),e}(),fv="cdk-global-overlay-wrapper",dv=function(){function e(){Object(a.a)(this,e),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return Object(o.a)(e,[{key:"attach",value:function(e){var t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(fv),this._isDisposed=!1}},{key:"top",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,a=n.maxWidth,o=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||a&&"100%"!==a&&"100vw"!==a),c=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=c?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove(fv),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),pv=function(){var e=function(){function e(t,n,i,r){Object(a.a)(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return Object(o.a)(e,[{key:"global",value:function(){return new dv}},{key:"connectedTo",value:function(e,t,n){return new hv(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new sv(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(cu),h.Ub(v),h.Ub(Qi),h.Ub(iv))},e.\u0275prov=Object(h.Gb)({factory:function(){return new e(Object(h.Ub)(cu),Object(h.Ub)(v),Object(h.Ub)(Qi),Object(h.Ub)(iv))},token:e,providedIn:"root"}),e}(),vv=0,mv=function(){var e=function(){function e(t,n,i,r,o,s,c,u,l,h,f){Object(a.a)(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=s,this._ngZone=c,this._document=u,this._directionality=l,this._location=h,this._outsideClickDispatcher=f}return Object(o.a)(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new Zp(e);return r.direction=r.direction||this._directionality.value,new rv(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-".concat(vv++),t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(h.f)),new zr(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(Yp),h.Ub(iv),h.Ub(h.h),h.Ub(pv),h.Ub(ev),h.Ub(h.r),h.Ub(h.x),h.Ub(v),h.Ub(Kn),h.Ub(S),h.Ub(tv))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}(),bv=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],_v=new h.q("cdk-connected-overlay-scroll-strategy"),yv=function(){var e=function e(t){Object(a.a)(this,e),this.elementRef=t};return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.j))},e.\u0275dir=h.Fb({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e}(),gv=function(){var e=function(){function e(t,n,i,r,o){Object(a.a)(this,e),this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Vi.a.EMPTY,this._attachSubscription=Vi.a.EMPTY,this._detachSubscription=Vi.a.EMPTY,this._positionSubscription=Vi.a.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new h.m,this.positionChange=new h.m,this.attach=new h.m,this.detach=new h.m,this.overlayKeydown=new h.m,this.overlayOutsideClick=new h.m,this._templatePortal=new Br(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return Object(o.a)(e,[{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=Si(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=Si(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=Si(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=Si(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=Si(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var e=this;this.positions&&this.positions.length||(this.positions=bv);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(function(){return e.attach.emit()}),this._detachSubscription=t.detachments().subscribe(function(){return e.detach.emit()}),t.keydownEvents().subscribe(function(t){e.overlayKeydown.next(t),27!==t.keyCode||e.disableClose||zi(t)||(t.preventDefault(),e._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(t){e.overlayOutsideClick.next(t)})}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new Zp({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map(function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}});return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(t){e.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new Vp(e,t))}}(function(){return e.positionChange.observers.length>0})).subscribe(function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Kb(mv),h.Kb(h.J),h.Kb(h.N),h.Kb(_v),h.Kb(Kn,8))},e.\u0275dir=h.Fb({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[h.xb]}),e}(),kv={provide:_v,deps:[mv],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Ov=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({providers:[mv,kv],imports:[[Hn,Hr,lu],lu]}),e}(),wv=["trigger"],Cv=["panel"];function xv(e,t){if(1&e&&(h.Qb(0,"span",8),h.zc(1),h.Pb()),2&e){var n=h.cc();h.zb(1),h.Ac(n.placeholder)}}function jv(e,t){if(1&e&&(h.Qb(0,"span",12),h.zc(1),h.Pb()),2&e){var n=h.cc(2);h.zb(1),h.Ac(n.triggerValue)}}function Ev(e,t){1&e&&h.gc(0,0,["*ngSwitchCase","true"])}function Sv(e,t){if(1&e&&(h.Qb(0,"span",9),h.xc(1,jv,2,1,"span",10),h.xc(2,Ev,1,0,"ng-content",11),h.Pb()),2&e){var n=h.cc();h.ic("ngSwitch",!!n.customTrigger),h.zb(2),h.ic("ngSwitchCase",!0)}}function Av(e,t){if(1&e){var n=h.Rb();h.Qb(0,"div",13),h.Qb(1,"div",14,15),h.Yb("@transformPanel.done",function(e){return h.rc(n),h.cc()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return h.rc(n),h.cc()._handleKeydown(e)}),h.gc(3,1),h.Pb(),h.Pb()}if(2&e){var i=h.cc();h.ic("@transformPanelWrap",void 0),h.zb(1),h.Bb("mat-select-panel ",i._getPanelTheme(),""),h.uc("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),h.ic("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing"),h.Ab("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}}var Dv=[[["mat-select-trigger"]],"*"],Tv=["mat-select-trigger","*"],Pv={transformPanelWrap:ea("transformPanelWrap",[aa("* => void",sa("@transformPanel",[oa()],{optional:!0}))]),transformPanel:ea("transformPanel",[ra("void",ia({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),ra("showing",ia({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),ra("showing-multiple",ia({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),aa("void => *",ta("120ms cubic-bezier(0, 0, 0.2, 1)")),aa("* => void",ta("100ms 25ms linear",ia({opacity:0})))])},Iv=0,Rv=256,Mv=new h.q("mat-select-scroll-strategy"),Lv=new h.q("MAT_SELECT_CONFIG"),Fv={provide:Mv,deps:[mv],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Nv=function e(t,n){Object(a.a)(this,e),this.source=t,this.value=n},Bv=ic(rc(tc(ac(function e(t,n,i,r,o){Object(a.a)(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=o})))),Vv=new h.q("MatSelectTrigger"),Uv=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o,s,c,u,l,f,d,p,v,m,b){var _,y,g,k;return Object(a.a)(this,n),(_=t.call(this,s,o,u,l,d))._viewportRuler=e,_._changeDetectorRef=i,_._ngZone=r,_._dir=c,_._parentFormField=f,_.ngControl=d,_._liveAnnouncer=m,_._defaultOptions=b,_._panelOpen=!1,_._compareWith=function(e,t){return e===t},_._uid="mat-select-".concat(Iv++),_._triggerAriaLabelledBy=null,_._destroy=new Rt.a,_._onChange=function(){},_._onTouched=function(){},_._valueId="mat-select-value-".concat(Iv++),_._panelDoneAnimatingStream=new Rt.a,_._overlayPanelClass=(null===(y=_._defaultOptions)||void 0===y?void 0:y.overlayPanelClass)||"",_._focused=!1,_.controlType="mat-select",_._required=!1,_._multiple=!1,_._disableOptionCentering=null!==(k=null===(g=_._defaultOptions)||void 0===g?void 0:g.disableOptionCentering)&&void 0!==k&&k,_.ariaLabel="",_.optionSelectionChanges=Ol(function(){var e=_.options;return e?e.changes.pipe(Zr(e),Object(zt.a)(function(){return Lt.a.apply(void 0,Object(qe.a)(e.map(function(e){return e.onSelectionChange})))})):_._ngZone.onStable.pipe(Object(Ht.a)(1),Object(zt.a)(function(){return _.optionSelectionChanges}))}),_.openedChange=new h.m,_._openedStream=_.openedChange.pipe(Object(Ze.a)(function(e){return e}),Object(Xe.a)(function(){})),_._closedStream=_.openedChange.pipe(Object(Ze.a)(function(e){return!e}),Object(Xe.a)(function(){})),_.selectionChange=new h.m,_.valueChange=new h.m,_.ngControl&&(_.ngControl.valueAccessor=Object(It.a)(_)),null!=(null==b?void 0:b.typeaheadDebounceInterval)&&(_._typeaheadDebounceInterval=b.typeaheadDebounceInterval),_._scrollStrategyFactory=v,_._scrollStrategy=_._scrollStrategyFactory(),_.tabIndex=parseInt(p)||0,_.id=_.id,_}return Object(o.a)(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=Si(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=Si(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=Si(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=Ai(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new ru(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Object(Yc.a)(),Object(Kt.a)(this._destroy)).subscribe(function(){return e._panelDoneAnimating(e.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(Object(Kt.a)(this._destroy)).subscribe(function(e){e.added.forEach(function(e){return e.select()}),e.removed.forEach(function(e){return e.deselect()})}),this.options.changes.pipe(Zr(null),Object(Kt.a)(this._destroy)).subscribe(function(){e._resetOptions(),e._initializeSelection()})}},{key:"ngDoCheck",value:function(){var e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){var t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,n=40===t||38===t||37===t||39===t,i=t===Ui||32===t,r=this._keyManager;if(!r.isTyping()&&i&&!zi(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var a=this.selected;r.onKeydown(e);var o=this.selected;o&&a!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,n=e.keyCode,i=40===n||38===n,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||n!==Ui&&32!==n||!t.activeItem||zi(e))if(!r&&this._multiple&&65===n&&e.ctrlKey){e.preventDefault();var a=this.options.some(function(e){return!e.disabled&&!e.selected});this.options.forEach(function(e){e.disabled||(a?e.select():e.deselect())})}else{var o=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==o&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var e=this;this.overlayDir.positionChange.pipe(Object(Ht.a)(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this._selectionModel.selected.forEach(function(e){return e.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(function(e){return t._selectValue(e)}),this._sortValues();else{var n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,n=this.options.find(function(n){if(t._selectionModel.isSelected(n))return!1;try{return null!=n.value&&t._compareWith(n.value,e)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new vr(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Object(Kt.a)(this._destroy)).subscribe(function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())}),this._keyManager.change.pipe(Object(Kt.a)(this._destroy)).subscribe(function(){e._panelOpen&&e.panel?e._scrollOptionIntoView(e._keyManager.activeItemIndex||0):e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var e=this,t=Object(Lt.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Object(Kt.a)(t)).subscribe(function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),Lt.a.apply(void 0,Object(qe.a)(this.options.map(function(e){return e._stateChanges}))).pipe(Object(Kt.a)(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})}},{key:"_onSelect",value:function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort(function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId(),n=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(Bv);return e.\u0275fac=function(t){return new(t||e)(h.Kb(cu),h.Kb(h.g),h.Kb(h.x),h.Kb(yc),h.Kb(h.j),h.Kb(Kn,8),h.Kb(Pd,8),h.Kb(Ld,8),h.Kb(Sp,8),h.Kb(id,10),h.Vb("tabindex"),h.Kb(Mv),h.Kb(Cr),h.Kb(Lv,8))},e.\u0275dir=h.Fb({type:e,viewQuery:function(e,t){var n;1&e&&(h.Cc(wv,1),h.Cc(Cv,1),h.Cc(gv,1)),2&e&&(h.oc(n=h.Zb())&&(t.trigger=n.first),h.oc(n=h.Zb())&&(t.panel=n.first),h.oc(n=h.Zb())&&(t.overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[h.wb,h.xb]}),e}(),zv=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){var e;return Object(a.a)(this,n),(e=t.apply(this,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return Object(o.a)(n,[{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"ngOnInit",value:function(){var e=this;Object(i.a)(Object(r.a)(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(Object(Kt.a)(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;Object(i.a)(Object(r.a)(n.prototype),"_canOpen",this).call(this)&&(Object(i.a)(Object(r.a)(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Object(Ht.a)(1)).subscribe(function(){e._triggerFontSize&&e.overlayDir.overlayRef&&e.overlayDir.overlayRef.overlayElement&&(e.overlayDir.overlayRef.overlayElement.style.fontSize="".concat(e._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(e){var t,n,i,r=Kc(e,this.options,this.optionGroups),a=this._getItemHeight();this.panel.nativeElement.scrollTop=(n=a,Rv,(t=(e+r)*a)<(i=this.panel.nativeElement.scrollTop)?t:t+n>i+256?Math.max(0,t-256+n):i)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),Object(i.a)(Object(r.a)(n.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new Nv(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else if(this.disableOptionCentering)e=16;else{var a=this._selectionModel.selected[0]||this.options.first;e=a&&a.group?32:16}i||(e*=-1);var o=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);o>0?e+=o+8:s>0&&(e-=s+8),this.overlayDir.offsetX=Math.round(e),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),a=(r-this._triggerRect.height)/2,o=Math.floor(Rv/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-o))*r+(r-(this._getItemCount()*r-Rv)%r):t-r/2,Math.round(-1*i-a))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*t,Rv)-a-this._triggerRect.height;o>r?this._adjustPanelUp(o,r):a>i?this._adjustPanelDown(a,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,Rv),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=Kc(e,this.options,this.optionGroups);var a=i/2;this._scrollTop=this._calculateOverlayScroll(e,a,r),this._offsetY=this._calculateOverlayOffsetY(e,a,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2,n=Math.abs(this._offsetY)-t+e/2;return"50% ".concat(n,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(Uv);return e.\u0275fac=function(t){return Kv(t||e)},e.\u0275cmp=h.Eb({type:e,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;1&e&&(h.Db(n,Vv,1),h.Db(n,zc,1),h.Db(n,Nc,1)),2&e&&(h.oc(i=h.Zb())&&(t.customTrigger=i.first),h.oc(i=h.Zb())&&(t.options=i),h.oc(i=h.Zb())&&(t.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&h.Yb("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(h.Ab("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),h.Cb("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[h.yb([{provide:yp,useExisting:e},{provide:Rc,useExisting:e}]),h.wb],ngContentSelectors:Tv,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(h.hc(Dv),h.Qb(0,"div",0,1),h.Yb("click",function(){return t.toggle()}),h.Qb(3,"div",2),h.xc(4,xv,2,1,"span",3),h.xc(5,Sv,3,2,"span",4),h.Pb(),h.Qb(6,"div",5),h.Lb(7,"div",6),h.Pb(),h.Pb(),h.xc(8,Av,4,14,"ng-template",7),h.Yb("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=h.pc(1);h.Ab("aria-owns",t.panelOpen?t.id+"-panel":null),h.zb(3),h.ic("ngSwitch",t.empty),h.Ab("id",t._valueId),h.zb(1),h.ic("ngSwitchCase",!0),h.zb(1),h.ic("ngSwitchCase",!1),h.zb(3),h.ic("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[yv,te,ne,gv,ie,Q],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[Pv.transformPanelWrap,Pv.transformPanel]},changeDetection:0}),e}(),Kv=h.Sb(zv),Hv=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({providers:[Fv],imports:[[le,Ov,Hc,ec],uu,Dp,Hc,ec]}),e}();new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;var Wv=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[Jt]]}),e}(),qv=(new h.M("11.0.0-beta.33"),function(){var e=function(){function e(t,n){Object(a.a)(this,e),fe(n)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return Object(o.a)(e,null,[{key:"withConfig",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{ngModule:e,providers:t.serverLoaded?[{provide:nn,useValue:Object.assign(Object.assign({},tn),t)},{provide:an,useValue:n,multi:!0},{provide:rn,useValue:!0}]:[{provide:nn,useValue:Object.assign(Object.assign({},tn),t)},{provide:an,useValue:n,multi:!0}]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(rn),h.Ub(h.z))},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[Ei,Bi,Wv],Ei,Bi,Wv]}),e}());function Qv(e,t){1&e&&(h.Qb(0,"mat-error"),h.zc(1," Please enter a value. "),h.Pb())}var Gv=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Yv=function(){var e=function(){function e(){Object(a.a)(this,e),this.redirect=!0,this.searchParams=new h.m}return Object(o.a)(e,[{key:"searchFormInput",get:function(){return this.searchForm.get("search")}},{key:"ngOnInit",value:function(){this.searchForm=new Sd({search:new Ed(this.searchValue,Bf.required)}),this.searchType||(this.searchType="eq")}},{key:"search",value:function(){this.searchFormInput.value.trim().length&&this.searchType&&(this.redirect?window.location.href="/group-project-search?sType=".concat(this.searchType,"&search=").concat(this.searchFormInput.value):this.searchParams.emit({searchValue:this.searchFormInput.value,searchType:this.searchType}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=h.Eb({type:e,selectors:[["ftdna-project-search-bar"]],inputs:{redirect:"redirect",searchType:"searchType",searchValue:"searchValue"},outputs:{searchParams:"searchParams"},decls:22,vars:3,consts:[[1,"project-search-bar"],[1,"title"],["fxLayout","row",1,"search-inputs",3,"formGroup"],["fxFlex","30",1,"type-select"],[3,"value","valueChange"],["value","bw"],["value","eq"],["value","cn"],["value","ew"],["value","sx"],["fxFlex","70",1,"search-text"],["matInput","","placeholder","Search","formControlName","search","required","",3,"keyup.enter"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end",1,"search-info"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(h.Qb(0,"div",0),h.Qb(1,"div",1),h.zc(2,"Project Search"),h.Pb(),h.Qb(3,"div",2),h.Qb(4,"mat-form-field",3),h.Qb(5,"mat-select",4),h.Yb("valueChange",function(e){return t.searchType=e}),h.Qb(6,"mat-option",5),h.zc(7,"Begins with"),h.Pb(),h.Qb(8,"mat-option",6),h.zc(9,"Equals"),h.Pb(),h.Qb(10,"mat-option",7),h.zc(11,"Contains"),h.Pb(),h.Qb(12,"mat-option",8),h.zc(13,"Ends with"),h.Pb(),h.Qb(14,"mat-option",9),h.zc(15,"Sounds like"),h.Pb(),h.Pb(),h.Pb(),h.Qb(16,"mat-form-field",10),h.Qb(17,"input",11),h.Yb("keyup.enter",function(){return t.search()}),h.Pb(),h.xc(18,Qv,2,0,"mat-error",12),h.Pb(),h.Pb(),h.Qb(19,"div",13),h.Qb(20,"a",14),h.Yb("click",function(){return t.search()}),h.zc(21,"Search"),h.Pb(),h.Pb(),h.Pb()),2&e&&(h.zb(3),h.ic("formGroup",t.searchForm),h.zb(2),h.ic("value",t.searchType),h.zb(13),h.ic("ngIf",t.searchFormInput.errors&&t.searchFormInput.errors.required))},directives:[ei,od,Ld,Ap,si,zv,zc,Np,If,ad,Nd,Vd,X,bi,Zd,bp],styles:[".project-search-bar[_ngcontent-%COMP%]{width:100%;border:1px solid rgba(33,33,33,.17);margin:10px 0;padding:5px 10px;display:block}.project-search-bar[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:18px}.project-search-bar[_ngcontent-%COMP%]   .search-text[_ngcontent-%COMP%], .project-search-bar[_ngcontent-%COMP%]   .type-select[_ngcontent-%COMP%]{padding:0 15px}"]}),e=function(e,t,n,i){var r,a=arguments.length,o=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(o=(a<3?r(o):a>3?r(t,n,o):r(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}([Gv("design:paramtypes",[])],e)}(),Zv=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[le,zd,Kd,qv,Dp,Hv,Hc,Bp,Xd]]}),e}();function Xv(e,t){if(1&e&&(h.bc(),h.Lb(0,"circle",3)),2&e){var n=h.cc();h.uc("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),h.Ab("r",n._getCircleRadius())}}function Jv(e,t){if(1&e&&(h.bc(),h.Lb(0,"circle",3)),2&e){var n=h.cc();h.uc("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),h.Ab("r",n._getCircleRadius())}}function $v(e,t){if(1&e&&(h.bc(),h.Lb(0,"circle",3)),2&e){var n=h.cc();h.uc("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),h.Ab("r",n._getCircleRadius())}}function em(e,t){if(1&e&&(h.bc(),h.Lb(0,"circle",3)),2&e){var n=h.cc();h.uc("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),h.Ab("r",n._getCircleRadius())}}var tm=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n",nm=nc(function e(t){Object(a.a)(this,e),this._elementRef=t},"primary"),im=new h.q("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),rm=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o,s){var c;Object(a.a)(this,n),(c=t.call(this,e))._elementRef=e,c._document=r,c._diameter=100,c._value=0,c._fallbackAnimation=!1,c.mode="determinate";var u=n._diameters;return c._spinnerAnimationLabel=c._getSpinnerAnimationLabel(),u.has(r.head)||u.set(r.head,new Set([100])),c._fallbackAnimation=i.EDGE||i.TRIDENT,c._noopAnimations="NoopAnimations"===o&&!!s&&!s._forceAnimations,s&&(s.diameter&&(c.diameter=s.diameter),s.strokeWidth&&(c.strokeWidth=s.strokeWidth)),c}return Object(o.a)(n,[{key:"diameter",get:function(){return this._diameter},set:function(e){this._diameter=Ai(e),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(e){this._strokeWidth=Ai(e)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(e){this._value=Math.max(0,Math.min(100,Ai(e)))}},{key:"ngOnInit",value:function(){var e=this._elementRef.nativeElement;this._styleRoot=$i(e)||this._document.head,this._attachStyleNode();var t="mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation");e.classList.add(t)}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var e=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(e," ").concat(e)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var e=this._styleRoot,t=this._diameter,i=n._diameters,r=i.get(e);if(!r||!r.has(t)){var a=this._document.createElement("style");a.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),a.textContent=this._getAnimationText(),e.appendChild(a),r||(r=new Set,i.set(e,r)),r.add(t)}}},{key:"_getAnimationText",value:function(){var e=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n    0%      { stroke-dashoffset: START_VALUE;  transform: rotate(0); }\n    12.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(0); }\n    12.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(72.5deg); }\n    25%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(72.5deg); }\n\n    25.0001%   { stroke-dashoffset: START_VALUE;  transform: rotate(270deg); }\n    37.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(270deg); }\n    37.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(161.5deg); }\n    50%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(161.5deg); }\n\n    50.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(180deg); }\n    62.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(180deg); }\n    62.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(251.5deg); }\n    75%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(251.5deg); }\n\n    75.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(90deg); }\n    87.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(90deg); }\n    87.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(341.5deg); }\n    100%    { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(341.5deg); }\n  }\n".replace(/START_VALUE/g,"".concat(.95*e)).replace(/END_VALUE/g,"".concat(.2*e)).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}}]),n}(nm);return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.j),h.Kb(Qi),h.Kb(v,8),h.Kb(Ks,8),h.Kb(im))},e.\u0275cmp=h.Eb({type:e,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(e,t){2&e&&(h.Ab("aria-valuemin","determinate"===t.mode?0:null)("aria-valuemax","determinate"===t.mode?100:null)("aria-valuenow","determinate"===t.mode?t.value:null)("mode",t.mode),h.uc("width",t.diameter,"px")("height",t.diameter,"px"),h.Cb("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[h.wb],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(h.bc(),h.Qb(0,"svg",0),h.xc(1,Xv,1,9,"circle",1),h.xc(2,Jv,1,7,"circle",2),h.Pb()),2&e&&(h.uc("width",t.diameter,"px")("height",t.diameter,"px"),h.ic("ngSwitch","indeterminate"===t.mode),h.Ab("viewBox",t._getViewBox()),h.zb(1),h.ic("ngSwitchCase",!0),h.zb(1),h.ic("ngSwitchCase",!1))},directives:[te,ne],styles:[tm],encapsulation:2,changeDetection:0}),e._diameters=new WeakMap,e}(),am=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o,s){var c;return Object(a.a)(this,n),(c=t.call(this,e,i,r,o,s)).mode="indeterminate",c}return n}(rm);return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.j),h.Kb(Qi),h.Kb(v,8),h.Kb(Ks,8),h.Kb(im))},e.\u0275cmp=h.Eb({type:e,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(h.uc("width",t.diameter,"px")("height",t.diameter,"px"),h.Cb("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[h.wb],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(h.bc(),h.Qb(0,"svg",0),h.xc(1,$v,1,9,"circle",1),h.xc(2,em,1,7,"circle",2),h.Pb()),2&e&&(h.uc("width",t.diameter,"px")("height",t.diameter,"px"),h.ic("ngSwitch","indeterminate"===t.mode),h.Ab("viewBox",t._getViewBox()),h.zb(1),h.ic("ngSwitchCase",!0),h.zb(1),h.ic("ngSwitchCase",!1))},directives:[te,ne],styles:[tm],encapsulation:2,changeDetection:0}),e}(),om=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[ec,le],ec]}),e}(),sm=function(){var e=function(){function e(){Object(a.a)(this,e),this._vertical=!1,this._inset=!1}return Object(o.a)(e,[{key:"vertical",get:function(){return this._vertical},set:function(e){this._vertical=Si(e)}},{key:"inset",get:function(){return this._inset},set:function(e){this._inset=Si(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=h.Eb({type:e,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,t){2&e&&(h.Ab("aria-orientation",t.vertical?"vertical":"horizontal"),h.Cb("mat-divider-vertical",t.vertical)("mat-divider-horizontal",!t.vertical)("mat-divider-inset",t.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,t){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),e}(),cm=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[ec],ec]}),e}();function um(e,t){1&e&&h.Lb(0,"mat-spinner")}function lm(e,t){if(1&e&&(h.Qb(0,"mat-option",32),h.zc(1),h.Pb()),2&e){var n=t.$implicit;h.ic("value",n.projectTypeCD),h.zb(1),h.Bc(" ","Geographic"===n.projectTypeName?"Y-DNA Geographic":n.projectTypeName," ")}}function hm(e,t){1&e&&(h.Qb(0,"th",33),h.zc(1," Project "),h.Pb())}function fm(e,t){1&e&&h.Lb(0,"img",37)}function dm(e,t){if(1&e&&(h.Qb(0,"td",34),h.Qb(1,"a",35),h.zc(2),h.Pb(),h.xc(3,fm,1,0,"img",36),h.Pb()),2&e){var n=t.$implicit;h.zb(1),h.kc("href","/group-join.aspx?Group=",n.groupShortName,"",h.sc),h.zb(1),h.Ac(n.name),h.zb(1),h.ic("ngIf",n.isOneNameGuildMember)}}function pm(e,t){1&e&&(h.Qb(0,"th",33),h.zc(1," Members "),h.Pb())}function vm(e,t){if(1&e&&(h.Qb(0,"td",38),h.zc(1),h.Pb()),2&e){var n=t.$implicit;h.zb(1),h.Bc(" ",n.count," ")}}function mm(e,t){1&e&&(h.Qb(0,"th",39),h.zc(1," Description "),h.Pb())}function bm(e,t){if(1&e&&(h.Qb(0,"td",40),h.zc(1),h.Pb()),2&e){var n=t.$implicit;h.zb(1),h.Bc(" ",n.description," ")}}function _m(e,t){if(1&e&&(h.Qb(0,"td",41),h.Qb(1,"div",42),h.Qb(2,"div",43),h.Qb(3,"div",44),h.Qb(4,"div"),h.Qb(5,"strong"),h.zc(6,"Project:"),h.Pb(),h.zc(7),h.Pb(),h.Qb(8,"div"),h.Qb(9,"strong"),h.zc(10,"Members:"),h.Pb(),h.zc(11),h.Pb(),h.Pb(),h.Qb(12,"div",45),h.zc(13),h.Pb(),h.Pb(),h.Pb(),h.Pb()),2&e){var n=t.$implicit,i=h.cc(4);h.Ab("colspan",i.displayedColumns.length),h.zb(1),h.ic("@detailExpand",n==i.expandedRow?"expanded":"collapsed"),h.zb(6),h.Bc(" ",n.name,""),h.zb(4),h.Bc(" ",n.count,""),h.zb(2),h.Ac(n.description)}}function ym(e,t){1&e&&h.Lb(0,"tr",46)}function gm(e,t){if(1&e){var n=h.Rb();h.Qb(0,"tr",47),h.Yb("click",function(){h.rc(n);var e=t.$implicit,i=h.cc(4);return i.expandedRow=i.expandedRow===e?null:e}),h.Pb()}if(2&e){var i=t.$implicit,r=h.cc(4);h.Cb("project-expanded-row",r.expandedRow===i)}}function km(e,t){1&e&&h.Lb(0,"tr",48)}function Om(e,t){1&e&&(h.Qb(0,"div",49),h.zc(1," No projects! Please select another type. "),h.Pb())}var wm=function(){return["expandedDetail"]};function Cm(e,t){if(1&e){var n=h.Rb();h.Ob(0),h.Qb(1,"div",9),h.zc(2,"Search Results"),h.Pb(),h.Qb(3,"div",10),h.zc(4," Use the drop-down field below to filter the results of your search by the project type. "),h.Pb(),h.Qb(5,"mat-form-field",11),h.Qb(6,"mat-label"),h.zc(7,"Project Type"),h.Pb(),h.Qb(8,"mat-select",12),h.Yb("valueChange",function(e){return h.rc(n),h.cc(3).selectedFilter=e})("selectionChange",function(e){return h.rc(n),h.cc(3).filterProjects(e)}),h.Qb(9,"mat-option",13),h.zc(10," All "),h.Pb(),h.xc(11,lm,2,2,"mat-option",14),h.Pb(),h.Pb(),h.Qb(12,"div",15),h.Qb(13,"table",16,17),h.Ob(15,18),h.xc(16,hm,2,0,"th",19),h.xc(17,dm,4,3,"td",20),h.Nb(),h.Ob(18,21),h.xc(19,pm,2,0,"th",19),h.xc(20,vm,2,1,"td",22),h.Nb(),h.Ob(21,23),h.xc(22,mm,2,0,"th",24),h.xc(23,bm,2,1,"td",25),h.Nb(),h.Ob(24,26),h.xc(25,_m,14,5,"td",27),h.Nb(),h.xc(26,ym,1,0,"tr",28),h.xc(27,gm,1,2,"tr",29),h.xc(28,km,1,0,"tr",30),h.Pb(),h.xc(29,Om,2,0,"div",31),h.Pb(),h.Nb()}if(2&e){var i=h.cc(2).ngIf,r=h.cc();h.zb(8),h.ic("value",r.selectedFilter),h.zb(3),h.ic("ngForOf",i.results.projectTypes),h.zb(2),h.ic("dataSource",r.projectsDataSource),h.zb(13),h.ic("matHeaderRowDef",r.displayedColumns)("matHeaderRowDefSticky",!0),h.zb(1),h.ic("matRowDefColumns",r.displayedColumns),h.zb(1),h.ic("matRowDefColumns",h.lc(8,wm)),h.zb(1),h.ic("ngIf",!r.projectsDataSource.filteredData.length)}}function xm(e,t){1&e&&(h.Qb(0,"div",50),h.Qb(1,"div",9),h.zc(2,"Project Results"),h.Pb(),h.Lb(3,"mat-divider"),h.Qb(4,"div",51),h.zc(5," Create a project to start learning about your topic of interest today. "),h.Qb(6,"a",52),h.zc(7,"Learn More"),h.Pb(),h.Pb(),h.Qb(8,"a",53),h.zc(9,"Create a Project"),h.Pb(),h.Pb())}function jm(e,t){1&e&&(h.Qb(0,"th",33),h.zc(1," Name "),h.Pb())}function Em(e,t){if(1&e&&(h.Qb(0,"td",41),h.zc(1),h.Pb()),2&e){var n=t.$implicit;h.zb(1),h.Bc(" ",n.name," ")}}function Sm(e,t){1&e&&(h.Qb(0,"th",33),h.zc(1," Count "),h.Pb())}function Am(e,t){if(1&e&&(h.Qb(0,"td",41),h.zc(1),h.Pb()),2&e){var n=t.$implicit;h.zb(1),h.Bc(" ",n.count," ")}}function Dm(e,t){1&e&&h.Lb(0,"tr",46)}function Tm(e,t){1&e&&h.Lb(0,"tr",56)}var Pm=function(){return["name","count"]};function Im(e,t){if(1&e&&(h.Qb(0,"div"),h.Qb(1,"div",9),h.zc(2,"Surname Results"),h.Pb(),h.Qb(3,"div",10),h.zc(4," Results listed below represent all instances of the searched-for surname from FamilyTreeDNA database regardless of test type "),h.Pb(),h.Qb(5,"div",15),h.Qb(6,"table",54),h.Ob(7,18),h.xc(8,jm,2,0,"th",19),h.xc(9,Em,2,1,"td",27),h.Nb(),h.Ob(10,21),h.xc(11,Sm,2,0,"th",19),h.xc(12,Am,2,1,"td",27),h.Nb(),h.xc(13,Dm,1,0,"tr",28),h.xc(14,Tm,1,0,"tr",55),h.Pb(),h.Pb(),h.Pb()),2&e){var n=h.cc(2).ngIf;h.zb(6),h.ic("dataSource",n.results.surnames),h.zb(7),h.ic("matHeaderRowDef",h.lc(4,Pm))("matHeaderRowDefSticky",!0),h.zb(1),h.ic("matRowDefColumns",h.lc(5,Pm))}}function Rm(e,t){1&e&&(h.Qb(0,"div",50),h.Qb(1,"div",9),h.zc(2,"Surname Results"),h.Pb(),h.Lb(3,"mat-divider"),h.Qb(4,"div",51),h.zc(5,"Add your surname to the FamilyTreeDNA database by ordering a test today."),h.Pb(),h.Qb(6,"a",57),h.zc(7,"Browse tests"),h.Pb(),h.Pb())}var Mm=function(){return["lt-md"]};function Lm(e,t){if(1&e&&(h.Qb(0,"div",5),h.xc(1,Cm,30,9,"ng-container",6),h.xc(2,xm,10,0,"ng-template",null,7,h.yc),h.xc(4,Im,15,6,"div",6),h.xc(5,Rm,8,0,"ng-template",null,8,h.yc),h.Pb()),2&e){var n=h.pc(3),i=h.pc(6),r=h.cc().ngIf;h.ic("ngClass.lt-md",h.lc(5,Mm)),h.zb(1),h.ic("ngIf",r.results&&r.results.projects.length)("ngIfElse",n),h.zb(3),h.ic("ngIf",r.results&&r.results.surnames.length)("ngIfElse",i)}}function Fm(e,t){if(1&e){var n=h.Rb();h.Qb(0,"div",1),h.Qb(1,"ftdna-project-search-bar",2),h.Yb("searchParams",function(e){return h.rc(n),h.cc().search(e)}),h.Pb(),h.xc(2,um,1,0,"mat-spinner",3),h.xc(3,Lm,7,6,"div",4),h.Pb()}if(2&e){var i=t.ngIf,r=h.cc();h.zb(1),h.ic("searchValue",r.searchValue)("searchType",r.searchType)("redirect",!1),h.zb(1),h.ic("ngIf",i.loading),h.zb(1),h.ic("ngIf",!i.loading)}}var Nm=function(){function e(e){var t=this;this.store=e,this.searchValue="",this.searchType="",this.displayedColumns=["name","count","description"],this.selectedFilter="All",this.projectsDataSource=new jf,this.searchParamChanges=new h.m,this.combined$=tl(this.store.select(_l),this.store.select(bl),this.store.select(yl),function(e,n,i){return e&&(t.projectsDataSource.data=e.projects,t.projectsDataSource.filterPredicate=t.filterPredicate()),{results:e,search:n,loading:i}})}return e.prototype.ngOnInit=function(){this.search()},e.prototype.filterProjects=function(e){this.projectsDataSource.filter=e.value},e.prototype.filterPredicate=function(){return function(e,t){return"All"===t||e.projectTypeCD===t}},e.prototype.search=function(e){var t=this.searchValue,n=this.searchType;e&&(t=e.searchValue,n=e.searchType);var i={searchValue:t,searchType:n};i.searchType&&i.searchValue.trim().length&&(this.searchParamChanges.emit(i),this.store.dispatch(new al(i)))},e.\u0275fac=function(t){return new(t||e)(h.Kb(vl.h))},e.\u0275cmp=h.Eb({type:e,selectors:[["app-project-search-results"]],inputs:{searchValue:"searchValue",searchType:"searchType"},outputs:{searchParamChanges:"searchParamChanges"},decls:2,vars:3,consts:[["class","project-search-results","fxLayout","column",4,"ngIf"],["fxLayout","column",1,"project-search-results"],[3,"searchValue","searchType","redirect","searchParams"],[4,"ngIf"],["class","search-results-container",3,"ngClass.lt-md",4,"ngIf"],[1,"search-results-container",3,"ngClass.lt-md"],[4,"ngIf","ngIfElse"],["noProjects",""],["noSearchResults",""],[1,"title"],[1,"section-description"],["color","accent"],[3,"value","valueChange","selectionChange"],["value","All"],[3,"value",4,"ngFor","ngForOf"],[1,"table-container"],["mat-table","","multiTemplateDataRows","",3,"dataSource"],["projectsTable",""],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","project-name","mat-cell","",4,"matCellDef"],["matColumnDef","count"],["class","project-count","mat-cell","",4,"matCellDef"],["matColumnDef","description"],["class","project-description","mat-header-cell","",4,"matHeaderCellDef"],["class","project-description","mat-cell","",4,"matCellDef"],["matColumnDef","expandedDetail"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","","class","element-row",3,"project-expanded-row","click",4,"matRowDef","matRowDefColumns"],["mat-row","","class","detail-row",4,"matRowDef","matRowDefColumns"],["class","no-projects","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],[3,"value"],["mat-header-cell",""],["mat-cell","",1,"project-name"],[1,"name-text",3,"href"],["src","images/guild_small.gif",4,"ngIf"],["src","images/guild_small.gif"],["mat-cell","",1,"project-count"],["mat-header-cell","",1,"project-description"],["mat-cell","",1,"project-description"],["mat-cell",""],[1,"expanded-detail"],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","space-between start",1,"expanded-project-details"],[1,"expanded-project-description"],["mat-header-row",""],["mat-row","",1,"element-row",3,"click"],["mat-row","",1,"detail-row"],["fxLayout","row","fxLayoutAlign","center center",1,"no-projects"],[1,"no-results"],[1,"no-results-description"],["href","https://www.familytreedna.com/learn/project-administration/quick-start-guide/"],["mat-raised-button","","color","primary","href","/project-application.aspx",1,"action-btn"],["mat-table","",3,"dataSource"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row",""],["mat-raised-button","","color","primary","href","/products",1,"action-btn"]],template:function(e,t){1&e&&(h.xc(0,Fm,4,5,"div",0),h.dc(1,"async")),2&e&&h.ic("ngIf",h.ec(1,1,t.combined$))},directives:[X,ei,Yv,am,Li,Ap,kp,zv,zc,Y,rf,lf,cf,of,mf,_f,ff,pf,bi,gf,Of,sm,Zd],pipes:[ce],styles:[".popover-container[_ngcontent-%COMP%]{margin-top:30px}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){.group-project-search-container[_ngcontent-%COMP%]{flex-shrink:0}}.project-search-results[_ngcontent-%COMP%]{display:block;min-height:400px;margin:0 10px}.table-container[_ngcontent-%COMP%]{height:400px;overflow-y:auto;border-bottom:1px solid rgba(33,33,33,.17);border-right:1px solid rgba(33,33,33,.17);border-left:1px solid rgba(33,33,33,.17)}.title[_ngcontent-%COMP%]{margin:12px 0;font-weight:400;font-size:24px}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%]   .element-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{cursor:pointer;border-bottom-width:0;border-collapse:initial}table[_ngcontent-%COMP%]   tr.detail-row[_ngcontent-%COMP%]{height:0}table[_ngcontent-%COMP%]   .expanded-detail[_ngcontent-%COMP%]{overflow:hidden;display:flex}table[_ngcontent-%COMP%]   .expanded-project-details[_ngcontent-%COMP%]{padding:10px 0}table[_ngcontent-%COMP%]   .expanded-project-description[_ngcontent-%COMP%]{padding-bottom:10px}table[_ngcontent-%COMP%]   .mat-column-name[_ngcontent-%COMP%]{max-width:20px}table[_ngcontent-%COMP%]   .mat-column-count[_ngcontent-%COMP%]{max-width:5px}.no-projects[_ngcontent-%COMP%]{margin:20px 0;height:calc(100% - 81px)}.section-description[_ngcontent-%COMP%]{margin:10px 0}.project-count[_ngcontent-%COMP%]{text-align:center}.project-description[_ngcontent-%COMP%]{padding-left:5px;max-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.no-results[_ngcontent-%COMP%]{padding:20px 0;display:block}.no-results-description[_ngcontent-%COMP%]{padding:10px 0}.action-btn[_ngcontent-%COMP%]{margin-bottom:10px}mat-spinner[_ngcontent-%COMP%]{margin-top:20px;margin-left:auto;margin-right:auto}"],data:{animation:[ea("detailExpand",[ra("collapsed",ia({height:"0px",minHeight:"0"})),ra("expanded",ia({height:"*"})),aa("expanded <=> collapsed",ta("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),e}(),Bm=function(e){return e.GET_PROJECTS_INDEX_INIT="[projects] get projects index init",e.GET_PROJECTS_INDEX_RESPONSE="[projects] get projects index response",e.GET_PROJECTS_INIT="[projects] get projects init",e.GET_PROJECTS_RESPONSE="[projects] get projects response",e}({}),Vm=function(){return function(){this.type=Bm.GET_PROJECTS_INDEX_INIT}}(),Um=function(){return function(e){this.payload=e,this.type=Bm.GET_PROJECTS_INDEX_RESPONSE}}(),zm=function(){return function(e){this.payload=e,this.type=Bm.GET_PROJECTS_INIT}}(),Km=function(){return function(e){this.payload=e,this.type=Bm.GET_PROJECTS_RESPONSE}}(),Hm=function(e){return e.ERROR_ACTION="An Error occurred",e}({}),Wm=function(){return function(e){this.payload=e,this.type=Hm.ERROR_ACTION}}(),qm={indexView:null,indexViewloading:!1,projects:null,projectsLoading:!1};function Qm(e,t){switch(void 0===e&&(e=qm),t.type){case Bm.GET_PROJECTS_INDEX_INIT:return ul(ul({},e),{indexViewloading:!0});case Bm.GET_PROJECTS_INDEX_RESPONSE:var n=t;return ul(ul({},e),{indexViewloading:!1,indexView:n.payload});case Bm.GET_PROJECTS_INIT:return ul(ul({},e),{projectsLoading:!0,projects:null});case Bm.GET_PROJECTS_RESPONSE:var i=t;return ul(ul({},e),{projectsLoading:!1,projects:i.payload});default:return e}}var Gm=Object(vl.o)("project-browse"),Ym=Object(vl.p)(Gm,function(e){return e.indexView}),Zm=Object(vl.p)(Gm,function(e){return e.indexViewloading}),Xm=Object(vl.p)(Gm,function(e){return e.projects}),Jm=Object(vl.p)(Gm,function(e){return e.projectsLoading}),$m=function(){function e(e){this.httpClient=e,this.options={withCredentials:!0}}return e.prototype.init=function(){return this.httpClient.post("/group-project-search/projects-index/",null,this.options)},e.prototype.getProjects=function(e){return this.httpClient.post("/group-project-search/get-projects/",e,this.options)},e.\u0275fac=function(t){return new(t||e)(h.Ub(vt))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),eb=[$m],tb=[function(){function e(e,t){var n=this;this.actions$=e,this.service=t,this.init=this.actions$.pipe($l(Bm.GET_PROJECTS_INDEX_INIT),Object(Ml.a)(function(e){return n.service.init().pipe(Object(Xe.a)(function(e){return new Um(e)}),Object(Sl.a)(function(e){return Object(Qe.a)(new Wm(e))}))})),this.getProjects=this.actions$.pipe($l(Bm.GET_PROJECTS_INIT),Object(Ml.a)(function(e){return n.service.getProjects(e.payload).pipe(Object(Xe.a)(function(e){return new Km(e)}),Object(Sl.a)(function(e){return Object(Qe.a)(new Wm(e))}))}))}return e.\u0275fac=function(t){return new(t||e)(h.Ub(Jl),h.Ub($m))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),ll([ql(),hl("design:type",Ge.a)],e.prototype,"init",void 0),ll([ql(),hl("design:type",Ge.a)],e.prototype,"getProjects",void 0),e}()],nb=new h.q("CdkAccordion"),ib=0,rb=function(){var e=function(){function e(t,n,i){var r=this;Object(a.a)(this,e),this.accordion=t,this._changeDetectorRef=n,this._expansionDispatcher=i,this._openCloseAllSubscription=Vi.a.EMPTY,this.closed=new h.m,this.opened=new h.m,this.destroyed=new h.m,this.expandedChange=new h.m,this.id="cdk-accordion-child-".concat(ib++),this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=i.listen(function(e,t){r.accordion&&!r.accordion.multi&&r.accordion.id===t&&r.id!==e&&(r.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return Object(o.a)(e,[{key:"expanded",get:function(){return this._expanded},set:function(e){e=Si(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=Si(e)}},{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var e=this;return this.accordion._openCloseAllActions.subscribe(function(t){e.disabled||(e.expanded=t)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Kb(nb,12),h.Kb(h.g),h.Kb(au))},e.\u0275dir=h.Fb({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[h.yb([{provide:nb,useValue:void 0}])]}),e}(),ab=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({}),e}(),ob=["body"];function sb(e,t){}var cb=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],ub=["mat-expansion-panel-header","*","mat-action-row"];function lb(e,t){if(1&e&&h.Lb(0,"span",2),2&e){var n=h.cc();h.ic("@indicatorRotate",n._getExpandedState())}}var hb=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],fb=["mat-panel-title","mat-panel-description","*"],db=new h.q("MAT_ACCORDION"),pb="225ms cubic-bezier(0.4,0.0,0.2,1)",vb={indicatorRotate:ea("indicatorRotate",[ra("collapsed, void",ia({transform:"rotate(0deg)"})),ra("expanded",ia({transform:"rotate(180deg)"})),aa("expanded <=> collapsed, void => collapsed",ta(pb))]),bodyExpansion:ea("bodyExpansion",[ra("collapsed, void",ia({height:"0px",visibility:"hidden"})),ra("expanded",ia({height:"*",visibility:"visible"})),aa("expanded <=> collapsed, void => collapsed",ta(pb))])},mb=function(){var e=function e(t){Object(a.a)(this,e),this._template=t};return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.J))},e.\u0275dir=h.Fb({type:e,selectors:[["ng-template","matExpansionPanelContent",""]]}),e}(),bb=0,_b=new h.q("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),yb=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o,s,c,u){var l;return Object(a.a)(this,n),(l=t.call(this,e,i,r))._viewContainerRef=o,l._animationMode=c,l._hideToggle=!1,l.afterExpand=new h.m,l.afterCollapse=new h.m,l._inputChanges=new Rt.a,l._headerId="mat-expansion-panel-header-".concat(bb++),l._bodyAnimationDone=new Rt.a,l.accordion=e,l._document=s,l._bodyAnimationDone.pipe(Object(Yc.a)(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){"void"!==e.fromState&&("expanded"===e.toState?l.afterExpand.emit():"collapsed"===e.toState&&l.afterCollapse.emit())}),u&&(l.hideToggle=u.hideToggle),l}return Object(o.a)(n,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(e){this._hideToggle=Si(e)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(e){this._togglePosition=e}},{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var e=this;this._lazyContent&&this.opened.pipe(Zr(null),Object(Ze.a)(function(){return e.expanded&&!e._portal}),Object(Ht.a)(1)).subscribe(function(){e._portal=new Br(e._lazyContent._template,e._viewContainerRef)})}},{key:"ngOnChanges",value:function(e){this._inputChanges.next(e)}},{key:"ngOnDestroy",value:function(){Object(i.a)(Object(r.a)(n.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}]),n}(rb);return e.\u0275fac=function(t){return new(t||e)(h.Kb(db,12),h.Kb(h.g),h.Kb(au),h.Kb(h.N),h.Kb(v),h.Kb(Ks,8),h.Kb(_b,8))},e.\u0275cmp=h.Eb({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,n){var i;1&e&&h.Db(n,mb,1),2&e&&h.oc(i=h.Zb())&&(t._lazyContent=i.first)},viewQuery:function(e,t){var n;1&e&&h.Cc(ob,1),2&e&&h.oc(n=h.Zb())&&(t._body=n.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&h.Cb("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[h.yb([{provide:db,useValue:void 0}]),h.wb,h.xb],ngContentSelectors:ub,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(h.hc(cb),h.gc(0),h.Qb(1,"div",0,1),h.Yb("@bodyExpansion.done",function(e){return t._bodyAnimationDone.next(e)}),h.Qb(3,"div",2),h.gc(4,1),h.xc(5,sb,0,0,"ng-template",3),h.Pb(),h.gc(6,2),h.Pb()),2&e&&(h.zb(1),h.ic("@bodyExpansion",t._getExpandedState())("id",t.id),h.Ab("aria-labelledby",t._headerId),h.zb(4),h.ic("cdkPortalOutlet",t._portal))},directives:[Kr],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.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}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{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-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[vb.bodyExpansion]},changeDetection:0}),e}(),gb=function(){var e=function(){function e(t,n,i,r,o,s){var c=this;Object(a.a)(this,e),this.panel=t,this._element=n,this._focusMonitor=i,this._changeDetectorRef=r,this._animationMode=s,this._parentChangeSubscription=Vi.a.EMPTY;var u=t.accordion?t.accordion._stateChanges.pipe(Object(Ze.a)(function(e){return!(!e.hideToggle&&!e.togglePosition)})):kl.a;this._parentChangeSubscription=Object(Lt.a)(t.opened,t.closed,u,t._inputChanges.pipe(Object(Ze.a)(function(e){return!!(e.hideToggle||e.disabled||e.togglePosition)}))).subscribe(function(){return c._changeDetectorRef.markForCheck()}),t.closed.pipe(Object(Ze.a)(function(){return t._containsFocus()})).subscribe(function(){return i.focusVia(n,"program")}),o&&(this.expandedHeight=o.expandedHeight,this.collapsedHeight=o.collapsedHeight)}return Object(o.a)(e,[{key:"disabled",get:function(){return this.panel.disabled}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_getHeaderHeight",value:function(){var e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(e){switch(e.keyCode){case 32:case Ui:zi(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._element).subscribe(function(t){t&&e.panel.accordion&&e.panel.accordion._handleHeaderFocus(e)})}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Kb(yb,1),h.Kb(h.j),h.Kb(Ar),h.Kb(h.g),h.Kb(_b,8),h.Kb(Ks,8))},e.\u0275cmp=h.Eb({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&h.Yb("click",function(){return t._toggle()})("keydown",function(e){return t._keydown(e)}),2&e&&(h.Ab("id",t.panel._headerId)("tabindex",t.disabled?-1:0)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),h.uc("height",t._getHeaderHeight()),h.Cb("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:fb,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(h.hc(hb),h.Qb(0,"span",0),h.gc(1),h.gc(2,1),h.gc(3,2),h.Pb(),h.xc(4,lb,1,1,"span",1)),2&e&&(h.zb(4),h.ic("ngIf",t._showToggle()))},directives:[X],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.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-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{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}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[vb.indicatorRotate]},changeDetection:0}),e}(),kb=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=h.Fb({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),e}(),Ob=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[le,ec,ab,Hr]]}),e}(),wb=0,Cb=tc(function e(){Object(a.a)(this,e)}),xb=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o,s){var c;return Object(a.a)(this,n),(c=t.call(this))._ngZone=e,c._elementRef=i,c._ariaDescriber=r,c._renderer=o,c._animationMode=s,c._hasContent=!1,c._color="primary",c._overlap=!0,c.position="above after",c.size="medium",c._id=wb++,c}return Object(o.a)(n,[{key:"color",get:function(){return this._color},set:function(e){this._setColor(e),this._color=e}},{key:"overlap",get:function(){return this._overlap},set:function(e){this._overlap=Si(e)}},{key:"description",get:function(){return this._description},set:function(e){if(e!==this._description){var t=this._badgeElement;this._updateHostAriaDescription(e,this._description),this._description=e,t&&(e?t.setAttribute("aria-label",e):t.removeAttribute("aria-label"))}}},{key:"hidden",get:function(){return this._hidden},set:function(e){this._hidden=Si(e)}},{key:"isAbove",value:function(){return-1===this.position.indexOf("below")}},{key:"isAfter",value:function(){return-1===this.position.indexOf("before")}},{key:"ngOnChanges",value:function(e){var t=e.content;if(t){var n=t.currentValue;this._hasContent=null!=n&&"".concat(n).trim().length>0,this._updateTextContent()}}},{key:"ngOnDestroy",value:function(){var e=this._badgeElement;e&&(this.description&&this._ariaDescriber.removeDescription(e,this.description),this._renderer.destroyNode&&this._renderer.destroyNode(e))}},{key:"getBadgeElement",value:function(){return this._badgeElement}},{key:"_updateTextContent",value:function(){return this._badgeElement?this._badgeElement.textContent=this._stringifyContent():this._badgeElement=this._createBadgeElement(),this._badgeElement}},{key:"_createBadgeElement",value:function(){var e=this._renderer.createElement("span"),t="mat-badge-active",n="mat-badge-content";return this._clearExistingBadges(n),e.setAttribute("id","mat-badge-content-".concat(this._id)),e.classList.add(n),e.textContent=this._stringifyContent(),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this.description&&e.setAttribute("aria-label",this.description),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){e.classList.add(t)})}):e.classList.add(t),e}},{key:"_updateHostAriaDescription",value:function(e,t){var n=this._updateTextContent();t&&this._ariaDescriber.removeDescription(n,t),e&&this._ariaDescriber.describe(n,e)}},{key:"_setColor",value:function(e){if(e!==this._color){var t=this._elementRef.nativeElement.classList;this._color&&t.remove("mat-badge-".concat(this._color)),e&&t.add("mat-badge-".concat(e))}}},{key:"_clearExistingBadges",value:function(e){for(var t=this._elementRef.nativeElement,n=t.children.length;n--;){var i=t.children[n];i.classList.contains(e)&&t.removeChild(i)}}},{key:"_stringifyContent",value:function(){var e=this.content;return null==e?"":"".concat(e)}}]),n}(Cb);return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.x),h.Kb(h.j),h.Kb(hr),h.Kb(h.C),h.Kb(Ks,8))},e.\u0275dir=h.Fb({type:e,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,t){2&e&&h.Cb("mat-badge-overlap",t.overlap)("mat-badge-above",t.isAbove())("mat-badge-below",!t.isAbove())("mat-badge-before",!t.isAfter())("mat-badge-after",t.isAfter())("mat-badge-small","small"===t.size)("mat-badge-medium","medium"===t.size)("mat-badge-large","large"===t.size)("mat-badge-hidden",t.hidden||!t._hasContent)("mat-badge-disabled",t.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],position:["matBadgePosition","position"],size:["matBadgeSize","size"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],description:["matBadgeDescription","description"],hidden:["matBadgeHidden","hidden"],content:["matBadge","content"]},features:[h.wb,h.xb]}),e}(),jb=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[Lr,ec],ec]}),e}(),Eb=["projectResults"];function Sb(e,t){1&e&&h.Lb(0,"mat-spinner")}function Ab(e,t){if(1&e){var n=h.Rb();h.Qb(0,"a",32),h.Yb("click",function(){h.rc(n);var e=h.cc().$implicit;return h.cc(3).getProjectsList(e.letter,e.projectTypeCd)}),h.zc(1,"_"),h.Pb()}if(2&e){var i=h.cc().$implicit;h.jc("matBadge",i.counter)}}function Db(e,t){if(1&e){var n=h.Rb();h.Qb(0,"a",32),h.Yb("click",function(){h.rc(n);var e=h.cc().$implicit;return h.cc(3).getProjectsList(e.letter,e.projectTypeCd)}),h.zc(1),h.Pb()}if(2&e){var i=h.cc().$implicit;h.jc("matBadge",i.counter),h.zb(1),h.Ac(i.letter)}}function Tb(e,t){if(1&e&&(h.Ob(0),h.xc(1,Ab,2,1,"a",31),h.xc(2,Db,2,2,"a",31),h.Nb()),2&e){var n=t.$implicit;h.zb(1),h.ic("ngIf",!n.letter.trim()),h.zb(1),h.ic("ngIf",n.letter.trim())}}function Pb(e,t){if(1&e){var n=h.Rb();h.Qb(0,"a",32),h.Yb("click",function(){h.rc(n);var e=h.cc().$implicit;return h.cc(3).getProjectsList(e.letter,e.projectTypeCd)}),h.zc(1),h.Pb()}if(2&e){var i=h.cc().$implicit;h.jc("matBadge",i.counter),h.zb(1),h.Ac(i.letter)}}function Ib(e,t){if(1&e&&(h.Ob(0),h.xc(1,Pb,2,2,"a",31),h.Nb()),2&e){var n=t.$implicit;h.zb(1),h.ic("ngIf",n.letter.trim())}}function Rb(e,t){if(1&e){var n=h.Rb();h.Qb(0,"a",32),h.Yb("click",function(){h.rc(n);var e=h.cc().$implicit;return h.cc(3).getProjectsList(e.letter,e.projectTypeCd)}),h.zc(1),h.Pb()}if(2&e){var i=h.cc().$implicit;h.jc("matBadge",i.counter),h.zb(1),h.Ac(i.letter)}}function Mb(e,t){if(1&e&&(h.Ob(0),h.xc(1,Rb,2,2,"a",31),h.Nb()),2&e){var n=t.$implicit;h.zb(1),h.ic("ngIf",n.letter.trim())}}function Lb(e,t){if(1&e){var n=h.Rb();h.Qb(0,"a",32),h.Yb("click",function(){h.rc(n);var e=h.cc().$implicit;return h.cc(3).getProjectsList(e.letter,e.projectTypeCd)}),h.zc(1),h.Pb()}if(2&e){var i=h.cc().$implicit;h.jc("matBadge",i.counter),h.zb(1),h.Ac(i.letter)}}function Fb(e,t){if(1&e&&(h.Ob(0),h.xc(1,Lb,2,2,"a",31),h.Nb()),2&e){var n=t.$implicit;h.zb(1),h.ic("ngIf",n.letter.trim())}}function Nb(e,t){if(1&e){var n=h.Rb();h.Qb(0,"a",32),h.Yb("click",function(){h.rc(n);var e=h.cc().$implicit;return h.cc(3).getProjectsList(e.letter,e.projectTypeCd)}),h.zc(1),h.Pb()}if(2&e){var i=h.cc().$implicit;h.jc("matBadge",i.counter),h.zb(1),h.Ac(i.letter)}}function Bb(e,t){if(1&e&&(h.Ob(0),h.xc(1,Nb,2,2,"a",31),h.Nb()),2&e){var n=t.$implicit;h.zb(1),h.ic("ngIf",n.letter.trim())}}function Vb(e,t){1&e&&(h.Qb(0,"th",33),h.zc(1," Project "),h.Pb())}function Ub(e,t){1&e&&h.Lb(0,"img",37)}function zb(e,t){if(1&e&&(h.Qb(0,"td",34),h.Qb(1,"a",35),h.zc(2),h.Pb(),h.xc(3,Ub,1,0,"img",36),h.Pb()),2&e){var n=t.$implicit;h.zb(1),h.kc("href","/group-join.aspx?Group=",n.groupShortName,"",h.sc),h.zb(1),h.Ac(n.name),h.zb(1),h.ic("ngIf",n.isOneNameGuildMember)}}function Kb(e,t){1&e&&(h.Qb(0,"th",33),h.zc(1," Members "),h.Pb())}function Hb(e,t){if(1&e&&(h.Qb(0,"td",38),h.zc(1),h.Pb()),2&e){var n=t.$implicit;h.zb(1),h.Bc(" ",n.count," ")}}function Wb(e,t){1&e&&(h.Qb(0,"th",39),h.zc(1," Description "),h.Pb())}function qb(e,t){if(1&e&&(h.Qb(0,"td",40),h.zc(1),h.Pb()),2&e){var n=t.$implicit;h.zb(1),h.Bc(" ",n.description," ")}}function Qb(e,t){if(1&e&&(h.Qb(0,"td",41),h.Qb(1,"div",42),h.Qb(2,"div",43),h.Qb(3,"div",44),h.Qb(4,"div"),h.Qb(5,"strong"),h.zc(6,"Project:"),h.Pb(),h.zc(7),h.Pb(),h.Qb(8,"div"),h.Qb(9,"strong"),h.zc(10,"Members:"),h.Pb(),h.zc(11),h.Pb(),h.Pb(),h.Qb(12,"div",45),h.zc(13),h.Pb(),h.Pb(),h.Pb(),h.Pb()),2&e){var n=t.$implicit,i=h.cc(3);h.Ab("colspan",i.displayedColumns.length),h.zb(1),h.ic("@detailExpand",n==i.expandedRow?"expanded":"collapsed"),h.zb(6),h.Bc(" ",n.name,""),h.zb(4),h.Bc(" ",n.count,""),h.zb(2),h.Ac(n.description)}}function Gb(e,t){1&e&&h.Lb(0,"tr",46)}function Yb(e,t){if(1&e){var n=h.Rb();h.Qb(0,"tr",47),h.Yb("click",function(){h.rc(n);var e=t.$implicit,i=h.cc(3);return i.expandedRow=i.expandedRow===e?null:e}),h.Pb()}if(2&e){var i=t.$implicit,r=h.cc(3);h.Cb("project-expanded-row",r.expandedRow===i)}}function Zb(e,t){1&e&&h.Lb(0,"tr",48)}function Xb(e,t){1&e&&h.Lb(0,"mat-spinner")}function Jb(e,t){1&e&&(h.Qb(0,"div"),h.zc(1,"No projects! Please select an index to browse."),h.Pb())}function $b(e,t){if(1&e&&(h.Qb(0,"div",49),h.xc(1,Xb,1,0,"mat-spinner",2),h.xc(2,Jb,2,0,"div",2),h.Pb()),2&e){var n=h.cc(2).ngIf;h.zb(1),h.ic("ngIf",n.projectsLoading),h.zb(1),h.ic("ngIf",!n.projectsLoading)}}var e_=function(){return["lt-md"]},t_=function(){return["expandedDetail"]};function n_(e,t){if(1&e){var n=h.Rb();h.Qb(0,"div",4),h.Qb(1,"div",5),h.zc(2,"Surname & Geographical Projects"),h.Pb(),h.Qb(3,"button",6),h.Yb("click",function(){return h.rc(n),h.cc(2).toggleExpansionPanels()}),h.zc(4),h.Pb(),h.Qb(5,"mat-expansion-panel",7),h.Qb(6,"mat-expansion-panel-header"),h.Qb(7,"mat-panel-title"),h.zc(8,"Surname Projects"),h.Pb(),h.Pb(),h.xc(9,Tb,3,2,"ng-container",8),h.Pb(),h.Qb(10,"mat-expansion-panel",7),h.Qb(11,"mat-expansion-panel-header"),h.Qb(12,"mat-panel-title"),h.zc(13,"Y-DNA Geographical Projects"),h.Pb(),h.Pb(),h.xc(14,Ib,2,1,"ng-container",8),h.Pb(),h.Qb(15,"mat-expansion-panel",7),h.Qb(16,"mat-expansion-panel-header"),h.Qb(17,"mat-panel-title"),h.zc(18,"mtDNA Geographical Projects"),h.Pb(),h.Pb(),h.xc(19,Mb,2,1,"ng-container",8),h.Pb(),h.Qb(20,"mat-expansion-panel",7),h.Qb(21,"mat-expansion-panel-header"),h.Qb(22,"mat-panel-title"),h.zc(23,"Dual Geographical Projects"),h.Pb(),h.Pb(),h.xc(24,Fb,2,1,"ng-container",8),h.Pb(),h.Qb(25,"mat-expansion-panel",7),h.Qb(26,"mat-expansion-panel-header"),h.Qb(27,"mat-panel-title"),h.zc(28,"mtDNA Lineage Projects"),h.Pb(),h.Pb(),h.xc(29,Bb,2,1,"ng-container",8),h.Pb(),h.Qb(30,"div",9),h.Qb(31,"div",10,11),h.Qb(33,"table",12,13),h.Ob(35,14),h.xc(36,Vb,2,0,"th",15),h.xc(37,zb,4,3,"td",16),h.Nb(),h.Ob(38,17),h.xc(39,Kb,2,0,"th",15),h.xc(40,Hb,2,1,"td",18),h.Nb(),h.Ob(41,19),h.xc(42,Wb,2,0,"th",20),h.xc(43,qb,2,1,"td",21),h.Nb(),h.Ob(44,22),h.xc(45,Qb,14,5,"td",23),h.Nb(),h.xc(46,Gb,1,0,"tr",24),h.xc(47,Yb,1,2,"tr",25),h.xc(48,Zb,1,0,"tr",26),h.Pb(),h.xc(49,$b,3,2,"div",27),h.Pb(),h.Qb(50,"div",28),h.zc(51," If you are interested in starting a new project with FamilyTreeDNA, please click "),h.Qb(52,"a",29),h.zc(53,"here."),h.Pb(),h.zc(54," If you have more questions, please visit our Frequently Asked Questions section, "),h.Qb(55,"a",30),h.zc(56,"here."),h.Pb(),h.Pb(),h.Pb(),h.Pb()}if(2&e){var i=h.cc().ngIf,r=h.cc();h.ic("ngClass.lt-md",h.lc(18,e_)),h.zb(4),h.Ac(r.expanded?"Collaspe All":"Expand All"),h.zb(1),h.ic("expanded",r.expanded),h.zb(4),h.ic("ngForOf",i.view.yDnaSurnameProjects),h.zb(1),h.ic("expanded",r.expanded),h.zb(4),h.ic("ngForOf",i.view.yDnaGeographicalProjects),h.zb(1),h.ic("expanded",r.expanded),h.zb(4),h.ic("ngForOf",i.view.mtGeographicalProjects),h.zb(1),h.ic("expanded",r.expanded),h.zb(4),h.ic("ngForOf",i.view.dualGeographicalProjects),h.zb(1),h.ic("expanded",r.expanded),h.zb(4),h.ic("ngForOf",i.view.mtLineageProjects),h.zb(4),h.ic("dataSource",i.projects),h.zb(13),h.ic("matHeaderRowDef",r.displayedColumns)("matHeaderRowDefSticky",!0),h.zb(1),h.ic("matRowDefColumns",r.displayedColumns),h.zb(1),h.ic("matRowDefColumns",h.lc(19,t_)),h.zb(1),h.ic("ngIf",!i.projects)}}function i_(e,t){if(1&e&&(h.Qb(0,"div",1),h.xc(1,Sb,1,0,"mat-spinner",2),h.xc(2,n_,57,20,"div",3),h.Pb()),2&e){var n=t.ngIf;h.zb(1),h.ic("ngIf",n.indexViewLoading),h.zb(1),h.ic("ngIf",!n.indexViewLoading&&n.view)}}var r_=function(){function e(e){this.store=e,this.displayedColumns=["name","count","description"],this.expanded=!0,this.combined$=tl(this.store.select(Ym),this.store.select(Zm),this.store.select(Xm),this.store.select(Jm),function(e,t,n,i){return{view:e,indexViewLoading:t,projects:n,projectsLoading:i}})}return e.prototype.ngOnInit=function(){this.store.dispatch(new Vm)},e.prototype.getProjectsList=function(e,t){this.projectRef.nativeElement.scrollIntoView({behavior:"smooth"}),this.store.dispatch(new zm({letter:e,projectTypeCd:t}))},e.prototype.toggleExpansionPanels=function(){this.expanded=!this.expanded},e.\u0275fac=function(t){return new(t||e)(h.Kb(vl.h))},e.\u0275cmp=h.Eb({type:e,selectors:[["app-project-browse"]],viewQuery:function(e,t){var n;1&e&&h.Cc(Eb,1),2&e&&h.oc(n=h.Zb())&&(t.projectRef=n.first)},decls:2,vars:3,consts:[["class","project-browse","fxLayout","column",4,"ngIf"],["fxLayout","column",1,"project-browse"],[4,"ngIf"],["class","projects-index-container",3,"ngClass.lt-md",4,"ngIf"],[1,"projects-index-container",3,"ngClass.lt-md"],[1,"title"],["mat-stroked-button","","color","accent",1,"action-btn",3,"click"],[3,"expanded"],[4,"ngFor","ngForOf"],[1,"projects-container"],[1,"table-container"],["projectResults",""],["mat-table","","multiTemplateDataRows","",3,"dataSource"],["projectsTable",""],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","project-name","mat-cell","",4,"matCellDef"],["matColumnDef","count"],["class","project-count","mat-cell","",4,"matCellDef"],["matColumnDef","description"],["class","project-description","mat-header-cell","",4,"matHeaderCellDef"],["class","project-description","mat-cell","",4,"matCellDef"],["matColumnDef","expandedDetail"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","","class","element-row",3,"project-expanded-row","click",4,"matRowDef","matRowDefColumns"],["mat-row","","class","detail-row",4,"matRowDef","matRowDefColumns"],["class","no-projects","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],[1,"description"],["href","/project-application.aspx"],["href","/learn/group-administration/reference/"],["mat-stroked-button","","class","action-btn","color","accent","matBadgeColor","accent",3,"matBadge","click",4,"ngIf"],["mat-stroked-button","","color","accent","matBadgeColor","accent",1,"action-btn",3,"matBadge","click"],["mat-header-cell",""],["mat-cell","",1,"project-name"],[1,"name-text",3,"href"],["src","images/guild_small.gif",4,"ngIf"],["src","images/guild_small.gif"],["mat-cell","",1,"project-count"],["mat-header-cell","",1,"project-description"],["mat-cell","",1,"project-description"],["mat-cell",""],[1,"expanded-detail"],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","space-between start",1,"expanded-project-details"],[1,"expanded-project-description"],["mat-header-row",""],["mat-row","",1,"element-row",3,"click"],["mat-row","",1,"detail-row"],["fxLayout","row","fxLayoutAlign","center center",1,"no-projects"]],template:function(e,t){1&e&&(h.xc(0,i_,3,2,"div",0),h.dc(1,"async")),2&e&&h.ic("ngIf",h.ec(1,1,t.combined$))},directives:[X,ei,am,Li,Yd,yb,gb,kb,Y,rf,lf,cf,of,mf,_f,Zd,xb,ff,pf,bi,gf,Of],pipes:[ce],styles:[".popover-container[_ngcontent-%COMP%]{margin-top:30px}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){.group-project-search-container[_ngcontent-%COMP%]{flex-shrink:0}}.project-browse[_ngcontent-%COMP%]{display:block;min-height:450px}.table-container[_ngcontent-%COMP%]{height:400px;overflow-y:auto;border-bottom:1px solid rgba(33,33,33,.17);border-right:1px solid rgba(33,33,33,.17);border-left:1px solid rgba(33,33,33,.17)}.project-name[_ngcontent-%COMP%]{width:40%}.project-name[_ngcontent-%COMP%]   .name-text[_ngcontent-%COMP%]{padding-right:3px}.project-count[_ngcontent-%COMP%]{text-align:center;width:5%}.project-description[_ngcontent-%COMP%]{padding-left:5px;max-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%]   .element-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{cursor:pointer;border-bottom-width:0;border-collapse:initial}table[_ngcontent-%COMP%]   tr.detail-row[_ngcontent-%COMP%]{height:0}table[_ngcontent-%COMP%]   .expanded-detail[_ngcontent-%COMP%]{overflow:hidden;display:flex}table[_ngcontent-%COMP%]   .expanded-project-details[_ngcontent-%COMP%]{padding:10px 0}table[_ngcontent-%COMP%]   .expanded-project-description[_ngcontent-%COMP%]{padding-bottom:10px}table[_ngcontent-%COMP%]   .mat-column-name[_ngcontent-%COMP%]{max-width:20px}table[_ngcontent-%COMP%]   .mat-column-count[_ngcontent-%COMP%]{max-width:30px}.title[_ngcontent-%COMP%]{margin:12px 0;font-weight:400;font-size:24px}.description[_ngcontent-%COMP%]{margin:10px}mat-spinner[_ngcontent-%COMP%]{margin:auto}.action-btn[_ngcontent-%COMP%]{margin:10px}mat-expansion-panel[_ngcontent-%COMP%]{margin:20px 0}.project-total-count[_ngcontent-%COMP%]{font-weight:700}.mat-badge-content[_ngcontent-%COMP%]{background:#fff!important;color:#fa4616!important}.no-projects[_ngcontent-%COMP%]{margin:20px 0;height:calc(100% - 81px)}"],data:{animation:[ea("detailExpand",[ra("collapsed",ia({height:"0px",minHeight:"0"})),ra("expanded",ia({height:"*"})),aa("expanded <=> collapsed",ta("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),e}(),a_=function(){var e=function(){function e(){Object(a.a)(this,e);var t=window.location.search;this.authQs=this.constructAuthQueryString(t)}return Object(o.a)(e,[{key:"addAuthQsToUrl",value:function(e){if(!this.authQs.length)return e;var t=-1!==e.indexOf("?"),n=-1!==e.indexOf("#");if(t){var i=e.split("?");return"".concat(i[0]).concat(this.authQs,"&").concat(i[1])}if(n){var r=e.split("#");return"".concat(r[0]).concat(this.authQs,"#").concat(r[1])}return"".concat(e).concat(this.authQs)}},{key:"getAuthQs",value:function(){return this.authQs}},{key:"getEkitFromUrl",value:function(e){if(-1!==e.indexOf("ekit")){var t=e.split("ekit=");if(2===t.length){var n=t[1],i=n.indexOf("&");return-1!==i&&(n=n.substring(0,i)),-1!==n.indexOf("==")&&(n=encodeURIComponent(n)),n}}return null}},{key:"getGapImpersonateNameFromUrl",value:function(e){if(-1!==e.indexOf("impersonate")){var t=e.split("impersonate=");if(2===t.length)return t[1]}return null}},{key:"constructAuthQueryString",value:function(e){if(null===e||0===e.length)return"";var t=this.getGapImpersonateNameFromUrl(e),n=this.getEkitFromUrl(e);return null!==n?"?ekit=".concat(n):null!==t?"?impersonate=".concat(t):""}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(h.Gb)({factory:function(){return new e},token:e,providedIn:"root"}),e}(),o_=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({providers:[a_],imports:[[]]}),e}(),s_=function(){return["lt-md"]},c_=function(){var e=function(){function e(t){Object(a.a)(this,e),this.impersonateService=t}return Object(o.a)(e,[{key:"ngOnInit",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Kb(a_))},e.\u0275cmp=h.Eb({type:e,selectors:[["ftdna-main-sidebar"]],decls:22,vars:2,consts:[["fxLayout","column","fxLayout.lt-md","row","fxLayoutAlign.lt-md","space-between",1,"main-sidebar",3,"ngClass.lt-md"],[1,"sidebar-title"],["href","/learn/"],["href","/learn/glossary/"],["href","/forum"],["href","http://www.cafepress.com/familytreedna","target","_blank"]],template:function(e,t){1&e&&(h.Qb(0,"div",0),h.Qb(1,"div"),h.Qb(2,"span",1),h.zc(3,"Genetic Genealogy Tutorials"),h.Pb(),h.Qb(4,"ul"),h.Qb(5,"li"),h.Qb(6,"a",2),h.zc(7,"Learn To Use DNA For Your Genealogy"),h.Pb(),h.Pb(),h.Qb(8,"li"),h.Qb(9,"a",3),h.zc(10,"Glossary Of Terms"),h.Pb(),h.Pb(),h.Pb(),h.Pb(),h.Lb(11,"mat-divider"),h.Qb(12,"div"),h.Qb(13,"span",1),h.zc(14,"FTDNA Community"),h.Pb(),h.Qb(15,"ul"),h.Qb(16,"li"),h.Qb(17,"a",4),h.zc(18,"Join Our Question And Answer Forum"),h.Pb(),h.Pb(),h.Qb(19,"li"),h.Qb(20,"a",5),h.zc(21,"Purchase FTDNA Branded Merchandise"),h.Pb(),h.Pb(),h.Pb(),h.Pb(),h.Pb()),2&e&&h.ic("ngClass.lt-md",h.lc(1,s_))},directives:[ei,bi,Li,sm],styles:[".main-sidebar[_ngcontent-%COMP%]{width:98%;padding:0 2%}.main-sidebar.lt-md[_ngcontent-%COMP%]{width:100%}.main-sidebar[_ngcontent-%COMP%]   .sidebar-title[_ngcontent-%COMP%]{font-size:18px;margin:10px 0;display:block}"]}),e}(),u_=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[qv,cm,o_]]}),e}();function l_(e,t){if(1&e&&(h.Qb(0,"div",3),h.zc(1),h.dc(2,"number"),h.Pb()),2&e){var n=t.ngIf;h.zb(1),h.Bc("Search or browse our index of about ",h.fc(2,1,n,"2.")," projects related to a surname or geographical area of interest.")}}var h_=function(){return["lt-md"]},f_=function(){return["lt-lg"]},d_=function(){function e(e){this.service=e,this.tabIndex=0,this.searchValue="",this.searchType="",this.isBrowse=!1,this.projectCount$=this.service.getProjectCount()}return e.prototype.ngOnInit=function(){var e=new URLSearchParams(window.location.search);this.searchValue=e.get("search"),this.searchType=e.get("sType"),this.isBrowse="true"===e.get("browse"),this.isBrowse&&(this.tabIndex=1)},e.prototype.updateBrowseUrl=function(e){var t=window.location.href,n=1===e.index,i=new URLSearchParams(window.location.search).get("browse"),r="browse="+(n?"true":"false");if(i)t=t.replace("browse="+i,r);else{var a=t.indexOf("?")>0?"&":"?";t=""+t+a+r}this.updateUrl(t)},e.prototype.updateSearchUrl=function(e){var t=window.location.href,n=new URLSearchParams(window.location.search).get("search"),i=new URLSearchParams(window.location.search).get("sType"),r="search="+e.searchValue,a="sType="+e.searchType;if(n)t=t.replace("search="+n,r);else{var o=t.indexOf("?")>0?"&":"?";t=""+t+o+r}i?t=t.replace("sType="+i,a):(o=t.indexOf("?")>0?"&":"?",t=""+t+o+a),this.updateUrl(t)},e.prototype.updateUrl=function(e){var t=e.indexOf(".com");e=e.slice(t+4),window.history.pushState("","",e)},e.\u0275fac=function(t){return new(t||e)(h.Kb(Tt))},e.\u0275cmp=h.Eb({type:e,selectors:[["app-group-project-search"]],decls:28,vars:14,consts:[["fxLayout","row","fxLayout.lt-md","column",1,"group-project-search",3,"ngClass.lt-md","ngClass.lt-lg"],["fxLayout","column",1,"group-project-search-container",3,"ngClass.lt-md"],[1,"title"],[1,"description"],[1,"annotation"],["href","/legal/terms/group-project-administrator"],["href","/legal/terms-of-service"],["href","/legal/privacy-statement"],["class","description",4,"ngIf"],[3,"selectedIndex","selectedTabChange"],["label","Search"],[3,"searchValue","searchType","searchParamChanges"],["label","Browse"],[3,"ngClass.lt-md"]],template:function(e,t){1&e&&(h.Qb(0,"div",0),h.Qb(1,"div",1),h.Qb(2,"div"),h.Qb(3,"div",2),h.zc(4,"FamilyTreeDNA Group Projects"),h.Pb(),h.Qb(5,"div",3),h.zc(6," Group Projects provide communities for people who are interested in pursuing information about a specific topic related to their genealogy. "),h.Pb(),h.Qb(7,"div",3),h.zc(8," These Group Projects are run by volunteer administrators*, people like you, who are working on their own genealogy and facilitate their Group Project members\u2019 research using DNA test results. Please note that since projects base research on members\u2019 DNA testing results, to join a project you must test with, manage, or transfer results to FamilyTreeDNA. Other than the price of the test to join the FamilyTreeDNA database, there is no charge to become a member of a Group Project - it\u2019s free! "),h.Qb(9,"div",4),h.zc(10," *These volunteers agree to abide by "),h.Qb(11,"a",5),h.zc(12,"FamilyTreeDNA\u2019s Group Project Administrator Terms and Policies"),h.Pb(),h.zc(13," in addition to the site "),h.Qb(14,"a",6),h.zc(15,"Terms of Service"),h.Pb(),h.zc(16," and "),h.Qb(17,"a",7),h.zc(18,"Privacy Statement"),h.Pb(),h.zc(19," that apply to all customers. "),h.Pb(),h.Pb(),h.xc(20,l_,3,4,"div",8),h.dc(21,"async"),h.Pb(),h.Qb(22,"mat-tab-group",9),h.Yb("selectedTabChange",function(e){return t.updateBrowseUrl(e)}),h.Qb(23,"mat-tab",10),h.Qb(24,"app-project-search-results",11),h.Yb("searchParamChanges",function(e){return t.updateSearchUrl(e)}),h.Pb(),h.Pb(),h.Qb(25,"mat-tab",12),h.Lb(26,"app-project-browse"),h.Pb(),h.Pb(),h.Pb(),h.Lb(27,"ftdna-main-sidebar",13),h.Pb()),2&e&&(h.ic("ngClass.lt-md",h.lc(10,h_))("ngClass.lt-lg",h.lc(11,f_)),h.zb(1),h.ic("ngClass.lt-md",h.lc(12,h_)),h.zb(19),h.ic("ngIf",h.ec(21,8,t.projectCount$)),h.zb(2),h.ic("selectedIndex",t.tabIndex),h.zb(2),h.ic("searchValue",t.searchValue)("searchType",t.searchType),h.zb(3),h.ic("ngClass.lt-md",h.lc(13,h_)))},directives:[ei,Li,X,Ku,Iu,Nm,r_,c_],pipes:[ce,ue],styles:[".group-project-search[_ngcontent-%COMP%]{margin:0 auto;max-width:1140px}.group-project-search.lt-lg[_ngcontent-%COMP%], .group-project-search.lt-md[_ngcontent-%COMP%]{margin:40px 1%}.group-project-search-container[_ngcontent-%COMP%]{width:70%;padding:0 10px}.group-project-search-container.lt-md[_ngcontent-%COMP%]{width:100%}ftdna-main-sidebar[_ngcontent-%COMP%]{width:30%}ftdna-main-sidebar.lt-md[_ngcontent-%COMP%]{width:100%}.description[_ngcontent-%COMP%]{margin:20px 0}.title[_ngcontent-%COMP%]{margin:12px 0;font-weight:400;font-size:24px}.annotation[_ngcontent-%COMP%]{margin-top:5px;font-style:italic;font-size:12px}"]}),e}(),p_=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=h.Eb({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(e,t){1&e&&h.Lb(0,"app-group-project-search")},directives:[d_],styles:[""]}),e}(),v_=n("agSv"),m_=[_h],b_=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({}),e}();n("mlxB");var __={provide:new h.q("mat-autocomplete-scroll-strategy"),deps:[mv],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},y_=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({providers:[__],imports:[[Ov,Hc,ec,le],uu,Hc,ec]}),e}();n("zP0r"),"".concat(Xs.COMPLEX," ").concat(Zs.ACCELERATION_CURVE),"".concat(Xs.EXITING," ").concat(Zs.DECELERATION_CURVE);var g_=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[Ov,ec,Hr],ec]}),e}(),k_=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[ec,Tc],ec]}),e}(),O_=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[ec],ec]}),e}(),w_=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({}),e}(),C_=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[Tc,ec,ir,w_],ec,w_]}),e}(),x_=new h.q("mat-chips-default-options"),j_={separatorKeyCodes:[Ui]},E_=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({providers:[yc,{provide:x_,useValue:j_}],imports:[[ec]]}),e}();function S_(e,t){}var A_=function e(){Object(a.a)(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},D_={dialogContainer:ea("dialogContainer",[ra("void, exit",ia({opacity:0,transform:"scale(0.7)"})),ra("enter",ia({transform:"none"})),aa("* => enter",ta("150ms cubic-bezier(0, 0, 0.2, 1)",ia({transform:"none",opacity:1}))),aa("* => void, * => exit",ta("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",ia({opacity:0})))])},T_=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o,s,c){var u;return Object(a.a)(this,n),(u=t.call(this))._elementRef=e,u._focusTrapFactory=i,u._changeDetectorRef=r,u._config=s,u._focusMonitor=c,u._animationStateChanged=new h.m,u._elementFocusedBeforeDialogWasOpened=null,u._closeInteractionType=null,u.attachDomPortal=function(e){return u._portalOutlet.hasAttached(),u._portalOutlet.attachDomPortal(e)},u._ariaLabelledBy=s.ariaLabelledBy||null,u._document=o,u}return Object(o.a)(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=this._getActiveElement(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._getActiveElement())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=this._getActiveElement();return e===t||e.contains(t)}},{key:"_getActiveElement",value:function(){var e,t=this._document.activeElement;return(null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.activeElement)||t}}]),n}(Ur);return e.\u0275fac=function(t){return new(t||e)(h.Kb(h.j),h.Kb(kr),h.Kb(h.g),h.Kb(v,8),h.Kb(A_),h.Kb(Ar))},e.\u0275dir=h.Fb({type:e,viewQuery:function(e,t){var n;1&e&&h.Cc(Kr,3),2&e&&h.oc(n=h.Zb())&&(t._portalOutlet=n.first)},features:[h.wb]}),e}(),P_=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){var e;return Object(a.a)(this,n),(e=t.apply(this,arguments))._state="enter",e}return Object(o.a)(n,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(T_);return e.\u0275fac=function(t){return I_(t||e)},e.\u0275cmp=h.Eb({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&h.vc("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(h.Tb("id",t._id),h.Ab("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),h.wc("@dialogContainer",t._state))},features:[h.wb],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&h.xc(0,S_,0,0,"ng-template",0)},directives:[Kr],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[D_.dialogContainer]}}),e}(),I_=h.Sb(P_),R_=0,M_=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(R_++);Object(a.a)(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Rt.a,this._afterClosed=new Rt.a,this._beforeClosed=new Rt.a,this._state=0,n._id=r,n._animationStateChanged.pipe(Object(Ze.a)(function(e){return"opened"===e.state}),Object(Ht.a)(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe(Object(Ze.a)(function(e){return"closed"===e.state}),Object(Ht.a)(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),t.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),t.keydownEvents().pipe(Object(Ze.a)(function(e){return 27===e.keyCode&&!i.disableClose&&!zi(e)})).subscribe(function(e){e.preventDefault(),L_(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():L_(i,"mouse")})}return Object(o.a)(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(Object(Ze.a)(function(e){return"closing"===e.state}),Object(Ht.a)(1)).subscribe(function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout(function(){return t._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function L_(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var F_=new h.q("MatDialogData"),N_=new h.q("mat-dialog-default-options"),B_=new h.q("mat-dialog-scroll-strategy"),V_={provide:B_,deps:[mv],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},U_=function(){var e=function(){function e(t,n,i,r,o,s,c,u,l){var h=this;Object(a.a)(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=c,this._dialogContainerType=u,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Rt.a,this._afterOpenedAtThisLevel=new Rt.a,this._ariaHiddenElements=new Map,this.afterAllClosed=Ol(function(){return h.openDialogs.length?h._getAfterAllClosed():h._getAfterAllClosed().pipe(Zr(void 0))}),this._scrollStrategy=s}return Object(o.a)(e,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new A_)).id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),a=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.afterClosed().subscribe(function(){return n._removeOpenDialog(a)}),this.afterOpened.next(a),r._initializeWithAttachedContent(),a}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new Zp({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=h.r.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:A_,useValue:t}]}),i=new Nr(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var r=new this._dialogRefConstructor(n,t,i.id);if(e instanceof h.J)t.attachTemplatePortal(new Br(e,null,{$implicit:i.data,dialogRef:r}));else{var a=this._createInjector(i,r,t),o=t.attachComponentPortal(new Nr(e,i.viewContainerRef,a));r.componentInstance=o.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||i&&i.get(Kn,null)||r.push({provide:Kn,useValue:{value:e.direction,change:Object(Qe.a)()}}),h.r.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Kb(mv),h.Kb(h.r),h.Kb(void 0),h.Kb(void 0),h.Kb(iv),h.Kb(void 0),h.Kb(h.L),h.Kb(h.L),h.Kb(h.q))},e.\u0275dir=h.Fb({type:e}),e}(),z_=function(){var e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,r,o,s,c,u){return Object(a.a)(this,n),t.call(this,e,i,o,c,u,s,M_,P_,F_)}return n}(U_);return e.\u0275fac=function(t){return new(t||e)(h.Ub(mv),h.Ub(h.r),h.Ub(S,8),h.Ub(N_,8),h.Ub(B_),h.Ub(e,12),h.Ub(iv))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}(),K_=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({providers:[z_,V_],imports:[[Ov,Hr,ec],ec]}),e}(),H_=function(){var e=function(){function e(){Object(a.a)(this,e),this.changes=new Rt.a,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}return Object(o.a)(e,[{key:"formatYearRange",value:function(e,t){return"".concat(e," \u2013 ").concat(t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(h.Gb)({factory:function(){return new e},token:e,providedIn:"root"}),e}(),W_={provide:new h.q("mat-datepicker-scroll-strategy"),deps:[mv],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},q_=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({providers:[H_,W_],imports:[[le,Xd,K_,Ov,Lr,Hr,ec],uu]}),e}(),Q_=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[gc,ec],gc,ec]}),e}();n("z6cu"),n("w1tV");var G_=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[ec],ec]}),e}(),Y_=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[gc,Tc,ec,Ic,le],gc,ec,Ic,cm]}),e}(),Z_={provide:new h.q("mat-menu-scroll-strategy"),deps:[mv],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},X_=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({providers:[Z_],imports:[ec]}),e}(),J_=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({providers:[Z_],imports:[[le,ec,Tc,Ov,X_],uu,ec,X_]}),e}(),$_={provide:new h.q("mat-tooltip-scroll-strategy"),deps:[mv],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},ey=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({providers:[$_],imports:[[Lr,le,Ov,ec],ec,uu]}),e}(),ty=function(){var e=function e(){Object(a.a)(this,e),this.changes=new Rt.a,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(e,t,n){if(0==n||0==t)return"0 of ".concat(n);var i=e*t,r=i<(n=Math.max(n,0))?Math.min(i+t,n):i+t;return"".concat(i+1," \u2013 ").concat(r," of ").concat(n)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(h.Gb)({factory:function(){return new e},token:e,providedIn:"root"}),e}(),ny={provide:ty,deps:[[new h.y,new h.I,ty]],useFactory:function(e){return e||new ty}},iy=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({providers:[ny],imports:[[le,Xd,Hv,ey,ec]]}),e}(),ry=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[le,ec],ec]}),e}(),ay=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[Tc,ec],ec]}),e}(),oy=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[le,ec,Gi,uu],uu,ec]}),e}(),sy=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({}),e}(),cy=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[sy,Tc,ec,ir],sy,ec]}),e}(),uy=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[le,ec],ec]}),e}(),ly=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[Ov,Hr,le,Xd,ec],ec]}),e}(),hy=function(){var e=function e(){Object(a.a)(this,e),this.changes=new Rt.a,this.sortButtonLabel=function(e){return"Change sorting for ".concat(e)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(h.Gb)({factory:function(){return new e},token:e,providedIn:"root"}),e}(),fy={provide:hy,deps:[[new h.y,new h.I,hy]],useFactory:function(e){return e||new hy}},dy=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({providers:[fy],imports:[[le,ec]]}),e}(),py=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[Hn]]}),e}(),vy=function(){var e=function e(){Object(a.a)(this,e),this.changes=new Rt.a,this.optionalLabel="Optional"};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(h.Gb)({factory:function(){return new e},token:e,providedIn:"root"}),e}(),my={provide:vy,deps:[[new h.y,new h.I,vy]],useFactory:function(e){return e||new vy}},by=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({providers:[my,yc],imports:[[ec,le,Hr,Xd,py,G_,Tc],ec]}),e}(),_y=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[ec],ec]}),e}(),yy=function(){var e=function e(){Object(a.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[[b_,ec],ec]}),e}(),gy=[ef,b_,y_,jb,g_,Xd,k_,O_,C_,E_,by,q_,K_,cm,Ob,Q_,G_,Bp,Y_,J_,_c,iy,ry,om,ay,Tc,Hv,oy,uy,cy,ly,dy,Cf,Zu,_y,ey,yy],ky=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({imports:[fl(gy),ef,b_,y_,jb,g_,Xd,k_,O_,C_,E_,by,q_,K_,cm,Ob,Q_,G_,Bp,Y_,J_,_c,iy,ry,om,ay,Tc,Hv,oy,uy,cy,ly,dy,Cf,Zu,_y,ey,yy]}),e}(),Oy=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({providers:fl(m_),imports:[[le,zd,Dt,qv,vl.j.forFeature("project-search-results",pl),vh.forFeature(yh),ky,Zv]]}),e}(),wy=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({providers:fl(eb),imports:[[le,zd,Dt,qv,vl.j.forFeature("project-browse",Qm),vh.forFeature(tb),ky]]}),e}(),Cy=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({providers:[],imports:[[le,Oy,wy,ky,u_,qv]]}),e}(),xy=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=h.Ib({type:e,bootstrap:[p_]}),e.\u0275inj=h.Hb({providers:[],imports:[[We,qs,vl.j.forRoot({}),v_.a.instrument({maxAge:25,logOnly:!0}),vh.forRoot([]),Cy]]}),e}();Object(h.Q)(),Ke().bootstrapModule(xy).catch(function(e){return console.error(e)})},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"},zp1y:function(e,t,n){"use strict";n.d(t,"a",function(){return h});var i=n("KQm4"),r=n("JX7q"),a=n("Ji7U"),o=n("LK+K"),s=n("1OyB"),c=n("vuIU"),u=n("l7GE"),l=n("ZUHj");function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){var n;return"function"==typeof t[t.length-1]&&(n=t.pop()),e.lift(new f(t,n))}}var f=function(){function e(t,n){Object(s.a)(this,e),this.observables=t,this.project=n}return Object(c.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new d(e,this.observables,this.project))}}]),e}(),d=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,i,a){var o;Object(s.a)(this,n),(o=t.call(this,e)).observables=i,o.project=a,o.toRespond=[];var c=i.length;o.values=new Array(c);for(var u=0;u<c;u++)o.toRespond.push(u);for(var h=0;h<c;h++){var f=i[h];o.add(Object(l.a)(Object(r.a)(o),f,void 0,h))}return o}return Object(c.a)(n,[{key:"notifyNext",value:function(e,t,n){this.values[n]=t;var i=this.toRespond;if(i.length>0){var r=i.indexOf(n);-1!==r&&i.splice(r,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(e){if(0===this.toRespond.length){var t=[e].concat(Object(i.a)(this.values));this.project?this._tryProject(t):this.destination.next(t)}}},{key:"_tryProject",value:function(e){var t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(u.a)},zx2A:function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"b",function(){return h}),n.d(t,"c",function(){return f});var i=n("1OyB"),r=n("vuIU"),a=n("Ji7U"),o=n("LK+K"),s=n("7o/Q"),c=n("HDdC"),u=n("SeVD"),l=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var r;return Object(i.a)(this,n),(r=t.call(this)).parent=e,r}return Object(r.a)(n,[{key:"_next",value:function(e){this.parent.notifyNext(e)}},{key:"_error",value:function(e){this.parent.notifyError(e),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),n}(s.a),h=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return Object(r.a)(n,[{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),n}(s.a);function f(e,t){if(!t.closed){if(e instanceof c.a)return e.subscribe(t);var n;try{n=Object(u.a)(e)(t)}catch(i){t.error(i)}return n}}}},[[0,0]]]);
