(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"/uUt":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");function s(t,e){return n=>n.lift(new r(t,e))}class r{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new o(t,this.compare,this.keySelector))}}class o extends i.a{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}},0:function(t,e,n){t.exports=n("zUnb")},"1G5W":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("zx2A");function s(t){return e=>e.lift(new r(t))}class r{constructor(t){this.notifier=t}call(t,e){const n=new o(t),s=Object(i.c)(this.notifier,new i.a(n));return s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class o extends i.b{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},"2QA8":function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("XNiG"),s=n("9ppp");class r extends i.a{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.a;return this._value}next(t){super.next(this._value=t)}}},"2fFW":function(t,e,n){"use strict";n.d(e,"a",function(){return s});let i=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const 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=t},get useDeprecatedSynchronousErrorHandling(){return i}}},"3N8a":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("quSY");class s extends i.a{constructor(t,e){super()}schedule(t,e=0){return this}}class r extends s{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n,i=!1;try{this.work(t)}catch(s){i=!0,n=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},"4I5i":function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},"5+tZ":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("lJxs"),s=n("Cfvw"),r=n("zx2A");function o(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(o((n,r)=>Object(s.a)(t(n,r)).pipe(Object(i.a)((t,i)=>e(n,t,r,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new a(t,n)))}class a{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new l(t,this.project,this.concurrent))}}class l extends r.b{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(e)}_innerSub(t){const e=new r.a(this),n=this.destination;n.add(e);const i=Object(r.c)(t,e);i!==e&&n.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"7o/Q":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("n6bG"),s=n("gRHU"),r=n("quSY"),o=n("2QA8"),a=n("2fFW"),l=n("NJ4a");class c extends r.a{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.a;break;case 1:if(!t){this.destination=s.a;break}if("object"==typeof t){t instanceof c?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,n)}}[o.a](){return this}static create(t,e,n){const i=new c(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class u extends c{constructor(t,e,n,r){let o;super(),this._parentSubscriber=t;let a=this;Object(i.a)(e)?o=e:e&&(o=e.next,n=e.error,r=e.complete,e!==s.a&&(a=Object.create(e),Object(i.a)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=a.a;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(l.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(l.a)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(l.a)(n)}}__tryOrSetError(t,e,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return a.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(Object(l.a)(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},"9ppp":function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},Cfvw:function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i=n("HDdC"),s=n("SeVD"),r=n("quSY"),o=n("kJWO"),a=n("jZKg"),l=n("Lhse"),c=n("c2HN"),u=n("I55L");function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.a]}(t))return function(t,e){return new i.a(n=>{const i=new r.a;return i.add(e.schedule(()=>{const s=t[o.a]();i.add(s.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(Object(c.a)(t))return function(t,e){return new i.a(n=>{const i=new r.a;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(Object(u.a)(t))return Object(a.a)(t,e);if(function(t){return t&&"function"==typeof t[l.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new i.a(n=>{const i=new r.a;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(e.schedule(()=>{s=t[l.a](),i.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof i.a?t:new i.a(Object(s.a)(t))}},D0XW:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("3N8a");const s=new(n("IjjT").a)(i.a)},DH7j:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},EQ5u:function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return l});var i=n("XNiG"),s=n("HDdC"),r=(n("7o/Q"),n("quSY")),o=n("x+ZX");class a extends s.a{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new r.a,t.add(this.source.subscribe(new c(this.getSubject(),this))),t.closed&&(this._connection=null,t=r.a.EMPTY)),t}refCount(){return Object(o.a)()(this)}}const l=(()=>{const t=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class c extends i.b{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}},EY2u:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return r});var i=n("HDdC");const s=new i.a(t=>t.complete());function r(t){return t?function(t){return new i.a(e=>t.schedule(()=>e.complete()))}(t):s}},HDdC:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("7o/Q"),s=n("2QA8"),r=n("gRHU"),o=n("kJWO"),a=n("mCNh"),l=n("2fFW");let c=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:o}=this,a=function(t,e,n){if(t){if(t instanceof i.a)return t;if(t[s.a])return t[s.a]()}return t||e||n?new i.a(t,e,n):new i.a(r.a)}(t,e,n);if(a.add(o?o.call(a,this.source):this.source||l.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){l.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:s}=t;if(e||s)return!1;t=n&&n instanceof i.a?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=u(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(s){n(s),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[o.a](){return this}pipe(...t){return 0===t.length?this:Object(a.b)(t)(this)}toPromise(t){return new(t=u(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function u(t){if(t||(t=l.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},I55L:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=t=>t&&"number"==typeof t.length&&"function"!=typeof t},IjjT:function(t,e,n){"use strict";n.d(e,"a",function(){return s});let i=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class s extends i{constructor(t,e=i.now){super(t,()=>s.delegate&&s.delegate!==this?s.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return s.delegate&&s.delegate!==this?s.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}},IzEk:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("7o/Q"),s=n("4I5i"),r=n("EY2u");function o(t){return e=>0===t?Object(r.b)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new s.a}call(t,e){return e.subscribe(new l(t,this.total))}}class l extends i.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}},JIr8:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("zx2A");function s(t){return function(e){const n=new r(t),i=e.lift(n);return n.caught=i}}class r{constructor(t){this.selector=t}call(t,e){return e.subscribe(new o(t,this.selector,this.caught))}}class o extends i.b{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const s=new i.a(this);this.add(s);const r=Object(i.c)(n,s);r!==s&&this.add(r)}}}},Kj3r:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("7o/Q"),s=n("D0XW");function r(t,e=s.a){return n=>n.lift(new o(t,e))}class o{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends i.a{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(l,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function l(t){t.debouncedNext()}},Kqap:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");function s(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new r(t,e,n))}}class r{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new o(t,this.accumulator,this.seed,this.hasSeed))}}class o extends i.a{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}},LRne:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("z+Ro"),s=n("yCtX"),r=n("jZKg");function o(...t){let e=t[t.length-1];return Object(i.a)(e)?(t.pop(),Object(r.a)(t,e)):Object(s.a)(t)}},Lhse:function(t,e,n){"use strict";function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",function(){return s});const s=i()},NJ4a:function(t,e,n){"use strict";function i(t){setTimeout(()=>{throw t},0)}n.d(e,"a",function(){return i})},SeVD:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var i=n("ngJS"),s=n("NJ4a"),r=n("Lhse"),o=n("kJWO"),a=n("I55L"),l=n("c2HN"),c=n("XoHu");const u=t=>{if(t&&"function"==typeof t[o.a])return u=t,t=>{const e=u[o.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(a.a)(t))return Object(i.a)(t);if(Object(l.a)(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s.a),t);if(t&&"function"==typeof t[r.a])return e=t,t=>{const n=e[r.a]();for(;;){let e;try{e=n.next()}catch(i){return t.error(i),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=Object(c.a)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,u}},SpAZ:function(t,e,n){"use strict";function i(t){return t}n.d(e,"a",function(){return i})},VRyK:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("HDdC"),s=n("z+Ro"),r=n("bHdf"),o=n("yCtX");function a(...t){let e=Number.POSITIVE_INFINITY,n=null,a=t[t.length-1];return Object(s.a)(a)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof i.a?t[0]:Object(r.a)(e)(Object(o.a)(t,n))}},WMd4:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("EY2u"),s=n("LRne"),r=n("z6cu");let o=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Object(s.a)(this.value);case"E":return Object(r.a)(this.error);case"C":return Object(i.b)()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})()},XNiG:function(t,e,n){"use strict";n.d(e,"b",function(){return c}),n.d(e,"a",function(){return u});var i=n("HDdC"),s=n("7o/Q"),r=n("quSY"),o=n("9ppp"),a=n("Ylt2"),l=n("2QA8");class c extends s.a{constructor(t){super(t),this.destination=t}}let u=(()=>{class t extends i.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.a](){return new c(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new o.a;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;s<n;s++)i[s].next(t)}}error(t){if(this.closed)throw new o.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;s<n;s++)i[s].error(t);this.observers.length=0}complete(){if(this.closed)throw new o.a;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let i=0;i<e;i++)n[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new o.a;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new o.a;return this.hasError?(t.error(this.thrownError),r.a.EMPTY):this.isStopped?(t.complete(),r.a.EMPTY):(this.observers.push(t),new a.a(this,t))}asObservable(){const t=new i.a;return t.source=this,t}}return t.create=(t,e)=>new h(t,e),t})();class h extends u{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):r.a.EMPTY}}},XoHu:function(t,e,n){"use strict";function i(t){return null!==t&&"object"==typeof t}n.d(e,"a",function(){return i})},Ylt2:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("quSY");class s extends i.a{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},ZUHj:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("7o/Q");class s extends i.a{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var r=n("SeVD"),o=n("HDdC");function a(t,e,n,i,a=new s(t,n,i)){if(!a.closed)return e instanceof o.a?e.subscribe(a):Object(r.a)(e)(a)}},agSv:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return StoreDevtoolsModule});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("fXoL"),_ngrx_store__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("l7P3"),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("EY2u"),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("HDdC"),rxjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("LRne"),rxjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("VRyK"),rxjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("qgXg"),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("jtHE"),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("w1tV"),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("pLZG"),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("lJxs"),rxjs_operators__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("bOdf"),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("tS1D"),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("Kj3r"),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("JIr8"),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("IzEk"),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("1G5W"),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("eIep"),rxjs_operators__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("zP0r"),rxjs_operators__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("pxpQ"),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("zp1y"),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("Kqap");class StoreDevtoolsConfig{constructor(){this.maxAge=!1}}const STORE_DEVTOOLS_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.s("@ngrx/store-devtools Options"),INITIAL_OPTIONS=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.s("@ngrx/store-devtools Initial Config");function noMonitor(){return null}const DEFAULT_NAME="NgRx Store DevTools";function createConfig(t){const e={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}};let n="function"==typeof t?t():t;const i=Object.assign({},e,{features:n.features||!!n.logOnly&&{pause:!0,export:!0,test:!0}||e.features},n);if(i.maxAge&&i.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${i.maxAge}`);return i}const 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";class PerformAction{constructor(t,e){if(this.action=t,this.timestamp=e,this.type=PERFORM_ACTION,void 0===t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}}class Refresh{constructor(){this.type=REFRESH}}class Reset{constructor(t){this.timestamp=t,this.type=RESET}}class Rollback{constructor(t){this.timestamp=t,this.type=ROLLBACK}}class Commit{constructor(t){this.timestamp=t,this.type=COMMIT}}class Sweep{constructor(){this.type=SWEEP}}class ToggleAction{constructor(t){this.id=t,this.type=TOGGLE_ACTION}}class SetActionsActive{constructor(t,e,n=!0){this.start=t,this.end=e,this.active=n,this.type=SET_ACTIONS_ACTIVE}}class JumpToState{constructor(t){this.index=t,this.type=JUMP_TO_STATE}}class JumpToAction{constructor(t){this.actionId=t,this.type=JUMP_TO_ACTION}}class ImportState{constructor(t){this.nextLiftedState=t,this.type=IMPORT_STATE}}class LockChanges{constructor(t){this.status=t,this.type=LOCK_CHANGES}}class PauseRecording{constructor(t){this.status=t,this.type=PAUSE_RECORDING}}let DevtoolsDispatcher=(()=>{class t extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.b{}return t.\u0275fac=function(e){return \u0275DevtoolsDispatcher_BaseFactory(e||t)},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Kb({token:t,factory:t.\u0275fac}),t})();const \u0275DevtoolsDispatcher_BaseFactory=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Wb(DevtoolsDispatcher);function difference(t,e){return t.filter(t=>e.indexOf(t)<0)}function unliftState(t){const{computedStates:e,currentStateIndex:n}=t;if(n>=e.length){const{state:t}=e[e.length-1];return t}const{state:i}=e[n];return i}function unliftAction(t){return t.actionsById[t.nextActionId-1]}function liftAction(t){return new PerformAction(t,+Date.now())}function sanitizeActions(t,e){return Object.keys(e).reduce((n,i)=>{const s=Number(i);return n[s]=sanitizeAction(t,e[s],s),n},{})}function sanitizeAction(t,e,n){return Object.assign(Object.assign({},e),{action:t(e.action,n)})}function sanitizeStates(t,e){return e.map((e,n)=>({state:sanitizeState(t,e.state,n),error:e.error}))}function sanitizeState(t,e,n){return t(e,n)}function shouldFilterActions(t){return t.predicate||t.actionsSafelist||t.actionsBlocklist}function filterLiftedState(t,e,n,i){const s=[],r={},o=[];return t.stagedActionIds.forEach((a,l)=>{const c=t.actionsById[a];c&&(l&&isActionFiltered(t.computedStates[l],c,e,n,i)||(r[a]=c,s.push(a),o.push(t.computedStates[l])))}),Object.assign(Object.assign({},t),{stagedActionIds:s,actionsById:r,computedStates:o})}function isActionFiltered(t,e,n,i,s){const r=n&&!n(t,e.action),o=i&&!e.action.type.match(i.map(t=>escapeRegExp(t)).join("|")),a=s&&e.action.type.match(s.map(t=>escapeRegExp(t)).join("|"));return r||o||a}function escapeRegExp(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.s("@ngrx/store-devtools Redux Devtools Extension");let DevtoolsExtension=(()=>{class DevtoolsExtension{constructor(t,e,n){this.config=e,this.dispatcher=n,this.devtoolsExtension=t,this.createActionStreams()}notify(t,e){if(this.devtoolsExtension)if(t.type===PERFORM_ACTION){if(e.isLocked||e.isPaused)return;const n=unliftState(e);if(shouldFilterActions(this.config)&&isActionFiltered(n,t,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const i=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,n,e.currentStateIndex):n,s=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,t,e.nextActionId):t;this.sendToReduxDevtools(()=>this.extensionConnection.send(s,i))}else{const t=Object.assign(Object.assign({},e),{stagedActionIds:e.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,e.actionsById):e.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,e.computedStates):e.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,t,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_3__.a(t=>{const e=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=e,e.init(),e.subscribe(e=>t.next(e)),e.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.a}createActionStreams(){const t=this.createChangesObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.a)()),e=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(t=>t.type===ExtensionActionTypes.START)),n=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(t=>t.type===ExtensionActionTypes.STOP)),i=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(t=>t.type===ExtensionActionTypes.DISPATCH),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(t=>this.unwrapAction(t.payload)),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(t=>t.type===IMPORT_STATE?this.dispatcher.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(t=>t.type===_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.m),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.a)(1e3),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.a)(1e3),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(()=>t),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.a)(()=>Object(rxjs__WEBPACK_IMPORTED_MODULE_4__.a)(t)),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.a)(1)):Object(rxjs__WEBPACK_IMPORTED_MODULE_4__.a)(t))),s=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(t=>t.type===ExtensionActionTypes.ACTION),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(t=>this.unwrapAction(t.payload))).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(n)),r=i.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(n));this.start$=e.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(n)),this.actions$=this.start$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)(()=>s)),this.liftedActions$=this.start$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)(()=>r))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(t){const e={name:t.name,features:t.features,serialize:t.serialize};return!1!==t.maxAge&&(e.maxAge=t.maxAge),e}sendToReduxDevtools(t){try{t()}catch(e){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",e)}}}return DevtoolsExtension.\u0275fac=function(t){return new(t||DevtoolsExtension)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yb(REDUX_DEVTOOLS_EXTENSION),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yb(STORE_DEVTOOLS_CONFIG),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yb(DevtoolsDispatcher))},DevtoolsExtension.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Kb({token:DevtoolsExtension,factory:DevtoolsExtension.\u0275fac}),DevtoolsExtension})();const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.c},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(t,e,n,i,s){if(i)return{state:n,error:"Interrupted by an error up the chain"};let r,o=n;try{o=t(n,e)}catch(a){r=a.toString(),s.handleError(a)}return{state:o,error:r}}function recomputeStates(t,e,n,i,s,r,o,a,l){if(e>=t.length&&t.length===r.length)return t;const c=t.slice(0,e),u=r.length-(l?1:0);for(let h=e;h<u;h++){const t=r[h],e=s[t].action,l=c[h-1],u=l?l.state:i,d=l?l.error:void 0,p=o.indexOf(t)>-1?l:computeNextEntry(n,e,u,d,a);c.push(p)}return l&&c.push(t[t.length-1]),c}function liftInitialState(t,e){return{monitorState:e(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:t,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(t,e,n,i,s={}){return r=>(o,a)=>{let{monitorState:l,actionsById:c,nextActionId:u,stagedActionIds:h,skippedActionIds:d,committedState:p,currentStateIndex:f,computedStates:m,isLocked:g,isPaused:_}=o||e;function b(t){let e=t,n=h.slice(1,e+1);for(let i=0;i<n.length;i++){if(m[i+1].error){e=i,n=h.slice(1,e+1);break}delete c[n[i]]}d=d.filter(t=>-1===n.indexOf(t)),h=[0,...h.slice(e+1)],p=m[e].state,m=m.slice(e),f=f>e?f-e:0}function y(){c={0:liftAction(INIT_ACTION)},u=1,h=[0],d=[],p=m[f].state,f=0,m=[]}o||(c=Object.create(c));let v=0;switch(a.type){case LOCK_CHANGES:g=a.status,v=1/0;break;case PAUSE_RECORDING:_=a.status,_?(h=[...h,u],c[u]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),u++,v=h.length-1,m=m.concat(m[m.length-1]),f===h.length-2&&f++,v=1/0):y();break;case RESET:c={0:liftAction(INIT_ACTION)},u=1,h=[0],d=[],p=t,f=0,m=[];break;case COMMIT:y();break;case ROLLBACK:c={0:liftAction(INIT_ACTION)},u=1,h=[0],d=[],f=0,m=[];break;case TOGGLE_ACTION:{const{id:t}=a,e=d.indexOf(t);d=-1===e?[t,...d]:d.filter(e=>e!==t),v=h.indexOf(t);break}case SET_ACTIONS_ACTIVE:{const{start:t,end:e,active:n}=a,i=[];for(let s=t;s<e;s++)i.push(s);d=n?difference(d,i):[...d,...i],v=h.indexOf(t);break}case JUMP_TO_STATE:f=a.index,v=1/0;break;case JUMP_TO_ACTION:{const t=h.indexOf(a.actionId);-1!==t&&(f=t),v=1/0;break}case SWEEP:h=difference(h,d),d=[],f=Math.min(f,h.length-1);break;case PERFORM_ACTION:{if(g)return o||e;if(_||o&&isActionFiltered(o.computedStates[f],a,s.predicate,s.actionsSafelist,s.actionsBlocklist)){const t=m[m.length-1];m=[...m.slice(0,-1),computeNextEntry(r,a.action,t.state,t.error,n)],v=1/0;break}s.maxAge&&h.length===s.maxAge&&b(1),f===h.length-1&&f++;const t=u++;c[t]=a,h=[...h,t],v=h.length-1;break}case IMPORT_STATE:({monitorState:l,actionsById:c,nextActionId:u,stagedActionIds:h,skippedActionIds:d,committedState:p,currentStateIndex:f,computedStates:m,isLocked:g,isPaused:_}=a.nextLiftedState);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.c:v=0,s.maxAge&&h.length>s.maxAge&&(m=recomputeStates(m,v,r,p,c,h,d,n,_),b(h.length-s.maxAge),v=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.m:if(m.filter(t=>t.error).length>0)v=0,s.maxAge&&h.length>s.maxAge&&(m=recomputeStates(m,v,r,p,c,h,d,n,_),b(h.length-s.maxAge),v=1/0);else{if(!_&&!g){f===h.length-1&&f++;const t=u++;c[t]=new PerformAction(a,+Date.now()),h=[...h,t],v=h.length-1,m=recomputeStates(m,v,r,p,c,h,d,n,_)}m=m.map(t=>Object.assign(Object.assign({},t),{state:r(t.state,RECOMPUTE_ACTION)})),f=h.length-1,s.maxAge&&h.length>s.maxAge&&b(h.length-s.maxAge),v=1/0}break;default:v=1/0}return m=recomputeStates(m,v,r,p,c,h,d,n,_),l=i(l,a),{monitorState:l,actionsById:c,nextActionId:u,stagedActionIds:h,skippedActionIds:d,committedState:p,currentStateIndex:f,computedStates:m,isLocked:g,isPaused:_}}}let StoreDevtools=(()=>{class t{constructor(t,e,n,i,s,r,o,a){const l=liftInitialState(o,a.monitor),c=liftReducerWith(o,l,r,a.monitor,a),u=Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(e.asObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.a)(1)),i.actions$).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(liftAction)),t,i.liftedActions$).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.b)(rxjs__WEBPACK_IMPORTED_MODULE_6__.b)),h=n.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(c)),d=new rxjs__WEBPACK_IMPORTED_MODULE_7__.a(1),p=u.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.a)(h),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.a)(({state:t},[e,n])=>{let s=n(t,e);return e.type!==PERFORM_ACTION&&shouldFilterActions(a)&&(s=filterLiftedState(s,a.predicate,a.actionsSafelist,a.actionsBlocklist)),i.notify(e,s),{state:s,action:e}},{state:l,action:null})).subscribe(({state:t,action:e})=>{d.next(t),e.type===PERFORM_ACTION&&s.next(e.action)}),f=i.start$.subscribe(()=>{this.refresh()}),m=d.asObservable(),g=m.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(unliftState));this.extensionStartSubscription=f,this.stateSubscription=p,this.dispatcher=t,this.liftedState=m,this.state=g}dispatch(t){this.dispatcher.next(t)}next(t){this.dispatcher.next(t)}error(t){}complete(){}performAction(t){this.dispatch(new PerformAction(t,+Date.now()))}refresh(){this.dispatch(new Refresh)}reset(){this.dispatch(new Reset(+Date.now()))}rollback(){this.dispatch(new Rollback(+Date.now()))}commit(){this.dispatch(new Commit(+Date.now()))}sweep(){this.dispatch(new Sweep)}toggleAction(t){this.dispatch(new ToggleAction(t))}jumpToAction(t){this.dispatch(new JumpToAction(t))}jumpToState(t){this.dispatch(new JumpToState(t))}importState(t){this.dispatch(new ImportState(t))}lockChanges(t){this.dispatch(new LockChanges(t))}pauseRecording(t){this.dispatch(new PauseRecording(t))}}return t.\u0275fac=function(e){return new(e||t)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yb(DevtoolsDispatcher),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yb(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.b),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yb(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.f),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yb(DevtoolsExtension),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yb(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.g),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yb(_angular_core__WEBPACK_IMPORTED_MODULE_0__.n),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yb(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.d),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yb(STORE_DEVTOOLS_CONFIG))},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Kb({token:t,factory:t.\u0275fac}),t})();const IS_EXTENSION_OR_MONITOR_PRESENT=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.s("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(t,e){return Boolean(t)||e.monitor!==noMonitor}function createReduxDevtoolsExtension(){return"object"==typeof window&&void 0!==window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null}function createStateObservable(t){return t.state}let StoreDevtoolsModule=(()=>{class t{static instrument(e={}){return{ngModule:t,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:e},{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_1__.h,deps:[StoreDevtools],useFactory:createStateObservable},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.e,useExisting:DevtoolsDispatcher}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Mb({type:t}),t.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Lb({}),t})()},bHdf:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("5+tZ"),s=n("SpAZ");function r(t=Number.POSITIVE_INFINITY){return Object(i.a)(s.a,t)}},bOdf:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("5+tZ");function s(t,e){return Object(i.a)(t,e,1)}},c2HN:function(t,e,n){"use strict";function i(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",function(){return i})},eIep:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("lJxs"),s=n("Cfvw"),r=n("zx2A");function o(t,e){return"function"==typeof e?n=>n.pipe(o((n,r)=>Object(s.a)(t(n,r)).pipe(Object(i.a)((t,i)=>e(n,t,r,i))))):e=>e.lift(new a(t))}class a{constructor(t){this.project=t}call(t,e){return e.subscribe(new l(t,this.project))}}class l extends r.b{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new r.a(this),i=this.destination;i.add(n),this.innerSubscription=Object(r.c)(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}},fXoL:function(t,e,n){"use strict";n.d(e,"a",function(){return rn}),n.d(e,"b",function(){return ic}),n.d(e,"c",function(){return Zl}),n.d(e,"d",function(){return Ql}),n.d(e,"e",function(){return Xl}),n.d(e,"f",function(){return Zc}),n.d(e,"g",function(){return Bc}),n.d(e,"h",function(){return $a}),n.d(e,"i",function(){return fc}),n.d(e,"j",function(){return ma}),n.d(e,"k",function(){return oc}),n.d(e,"l",function(){return ya}),n.d(e,"m",function(){return qc}),n.d(e,"n",function(){return Oi}),n.d(e,"o",function(){return Rl}),n.d(e,"p",function(){return pr}),n.d(e,"q",function(){return Sn}),n.d(e,"r",function(){return A}),n.d(e,"s",function(){return sn}),n.d(e,"t",function(){return Ar}),n.d(e,"u",function(){return Na}),n.d(e,"v",function(){return Ba}),n.d(e,"w",function(){return rc}),n.d(e,"x",function(){return nl}),n.d(e,"y",function(){return Hc}),n.d(e,"z",function(){return el}),n.d(e,"A",function(){return Lc}),n.d(e,"B",function(){return _c}),n.d(e,"C",function(){return En}),n.d(e,"D",function(){return nc}),n.d(e,"E",function(){return ec}),n.d(e,"F",function(){return Il}),n.d(e,"G",function(){return Ca}),n.d(e,"H",function(){return wa}),n.d(e,"I",function(){return Ri}),n.d(e,"J",function(){return xa}),n.d(e,"K",function(){return gi}),n.d(e,"L",function(){return kn}),n.d(e,"M",function(){return Tn}),n.d(e,"N",function(){return $c}),n.d(e,"O",function(){return Xa}),n.d(e,"P",function(){return xc}),n.d(e,"Q",function(){return on}),n.d(e,"R",function(){return Sa}),n.d(e,"S",function(){return sl}),n.d(e,"T",function(){return L}),n.d(e,"U",function(){return jc}),n.d(e,"V",function(){return Pc}),n.d(e,"W",function(){return p}),n.d(e,"X",function(){return Cn}),n.d(e,"Y",function(){return Ic}),n.d(e,"Z",function(){return Qc}),n.d(e,"ab",function(){return kc}),n.d(e,"bb",function(){return sc}),n.d(e,"cb",function(){return mr}),n.d(e,"db",function(){return na}),n.d(e,"eb",function(){return fi}),n.d(e,"fb",function(){return Xn}),n.d(e,"gb",function(){return Bn}),n.d(e,"hb",function(){return Hn}),n.d(e,"ib",function(){return Wn}),n.d(e,"jb",function(){return Yn}),n.d(e,"kb",function(){return zn}),n.d(e,"lb",function(){return $n}),n.d(e,"mb",function(){return Zo}),n.d(e,"nb",function(){return Gc}),n.d(e,"ob",function(){return Jo}),n.d(e,"pb",function(){return ta}),n.d(e,"qb",function(){return Vn}),n.d(e,"rb",function(){return B}),n.d(e,"sb",function(){return Ur}),n.d(e,"tb",function(){return lo}),n.d(e,"ub",function(){return oo}),n.d(e,"vb",function(){return ao}),n.d(e,"wb",function(){return Xo}),n.d(e,"xb",function(){return Ot}),n.d(e,"yb",function(){return u}),n.d(e,"zb",function(){return Un}),n.d(e,"Ab",function(){return Dr}),n.d(e,"Bb",function(){return _t}),n.d(e,"Cb",function(){return da}),n.d(e,"Db",function(){return gs}),n.d(e,"Eb",function(){return Yr}),n.d(e,"Fb",function(){return $o}),n.d(e,"Gb",function(){return Ao}),n.d(e,"Hb",function(){return Yl}),n.d(e,"Ib",function(){return Z}),n.d(e,"Jb",function(){return rt}),n.d(e,"Kb",function(){return v}),n.d(e,"Lb",function(){return w}),n.d(e,"Mb",function(){return nt}),n.d(e,"Nb",function(){return ot}),n.d(e,"Ob",function(){return Gr}),n.d(e,"Pb",function(){return eo}),n.d(e,"Qb",function(){return so}),n.d(e,"Rb",function(){return io}),n.d(e,"Sb",function(){return no}),n.d(e,"Tb",function(){return to}),n.d(e,"Ub",function(){return Jr}),n.d(e,"Vb",function(){return ro}),n.d(e,"Wb",function(){return Je}),n.d(e,"Xb",function(){return Wo}),n.d(e,"Yb",function(){return wn}),n.d(e,"Zb",function(){return en}),n.d(e,"ac",function(){return Gl}),n.d(e,"bc",function(){return Qr}),n.d(e,"cc",function(){return co}),n.d(e,"dc",function(){return $l}),n.d(e,"ec",function(){return be}),n.d(e,"fc",function(){return _e}),n.d(e,"gc",function(){return mo}),n.d(e,"hc",function(){return xl}),n.d(e,"ic",function(){return Sl}),n.d(e,"jc",function(){return El}),n.d(e,"kc",function(){return bo}),n.d(e,"lc",function(){return _o}),n.d(e,"mc",function(){return Xr}),n.d(e,"nc",function(){return yo}),n.d(e,"oc",function(){return vo}),n.d(e,"pc",function(){return wo}),n.d(e,"qc",function(){return yl}),n.d(e,"rc",function(){return vl}),n.d(e,"sc",function(){return Hl}),n.d(e,"tc",function(){return qr}),n.d(e,"uc",function(){return Ti}),n.d(e,"vc",function(){return ki}),n.d(e,"wc",function(){return Ei}),n.d(e,"xc",function(){return zt}),n.d(e,"yc",function(){return _i}),n.d(e,"zc",function(){return bi}),n.d(e,"Ac",function(){return it}),n.d(e,"Bc",function(){return To}),n.d(e,"Cc",function(){return uo}),n.d(e,"Dc",function(){return Ko}),n.d(e,"Ec",function(){return Kr}),n.d(e,"Fc",function(){return Bo}),n.d(e,"Gc",function(){return Vo}),n.d(e,"Hc",function(){return Ho}),n.d(e,"Ic",function(){return zo}),n.d(e,"Jc",function(){return Yo}),n.d(e,"Kc",function(){return zl});var i=n("XNiG"),s=n("quSY"),r=n("HDdC"),o=n("VRyK"),a=n("w1tV");function l(t){for(let e in t)if(t[e]===l)return e;throw Error("Could not find renamed property on target object.")}function c(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function u(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(u).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function h(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const d=l({__forward_ref__:l});function p(t){return t.__forward_ref__=p,t.toString=function(){return u(this())},t}function f(t){return m(t)?t():t}function m(t){return"function"==typeof t&&t.hasOwnProperty(d)&&t.__forward_ref__===p}class g extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function _(t){return"string"==typeof t?t:null==t?"":String(t)}function b(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():_(t)}function y(t,e){const n=e?` in ${e}`:"";throw new g("201",`No provider for ${b(t)} found${n}`)}function v(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function w(t){return{providers:t.providers||[],imports:t.imports||[]}}function C(t){return O(t,S)||O(t,k)}function O(t,e){return t.hasOwnProperty(e)?t[e]:null}function x(t){return t&&(t.hasOwnProperty(E)||t.hasOwnProperty(T))?t[E]:null}const S=l({"\u0275prov":l}),E=l({"\u0275inj":l}),k=l({ngInjectableDef:l}),T=l({ngInjectorDef:l});var A=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let R;function D(t){const e=R;return R=t,e}function I(t,e,n){const i=C(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&A.Optional?null:void 0!==e?e:void y(u(t),"Injector")}function P(t){return{toString:t}.toString()}var M=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),L=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const j="undefined"!=typeof globalThis&&globalThis,F="undefined"!=typeof window&&window,N="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,U="undefined"!=typeof global&&global,B=j||U||F||N,V={},H=[],z=[],Y=l({"\u0275cmp":l}),$=l({"\u0275dir":l}),W=l({"\u0275pipe":l}),K=l({"\u0275mod":l}),q=l({"\u0275loc":l}),G=l({"\u0275fac":l}),Q=l({__NG_ELEMENT_ID__:l});let X=0;function Z(t){return P(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===M.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||z,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||L.Emulated,id:"c",styles:t.styles||z,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,s=t.features,r=t.pipes;return n.id+=X++,n.inputs=st(t.inputs,e),n.outputs=st(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(J):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(tt):null,n})}function J(t){return at(t)||function(t){return t[$]||null}(t)}function tt(t){return function(t){return t[W]||null}(t)}const et={};function nt(t){const e={type:t.type,bootstrap:t.bootstrap||z,declarations:t.declarations||z,imports:t.imports||z,exports:t.exports||z,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&P(()=>{et[t.id]=t.type}),e}function it(t,e){return P(()=>{const n=lt(t,!0);n.declarations=e.declarations||z,n.imports=e.imports||z,n.exports=e.exports||z})}function st(t,e){if(null==t)return V;const n={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),n[s]=i,e&&(e[s]=r)}return n}const rt=Z;function ot(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function at(t){return t[Y]||null}function lt(t,e){const n=t[K]||null;if(!n&&!0===e)throw new Error(`Type ${u(t)} does not have '\u0275mod' property.`);return n}function ct(t){return Array.isArray(t)&&"object"==typeof t[1]}function ut(t){return Array.isArray(t)&&!0===t[1]}function ht(t){return 0!=(8&t.flags)}function dt(t){return 2==(2&t.flags)}function pt(t){return 1==(1&t.flags)}function ft(t){return null!==t.template}function mt(t,e){return t.hasOwnProperty(G)?t[G]:null}class gt{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function _t(){return bt}function bt(t){return t.type.prototype.ngOnChanges&&(t.setInput=vt),yt}function yt(){const t=wt(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===V)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function vt(t,e,n,i){const s=wt(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:V,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];r[a]=new gt(l&&l.currentValue,e,o===V),t[i]=e}function wt(t){return t.__ngSimpleChanges__||null}let Ct;function Ot(t){Ct=t}function xt(){return void 0!==Ct?Ct:"undefined"!=typeof document?document:void 0}function St(t){return!!t.listen}_t.ngInherit=!0;const Et={createRenderer:(t,e)=>xt()};function kt(t){for(;Array.isArray(t);)t=t[0];return t}function Tt(t,e){return kt(e[t])}function At(t,e){return kt(e[t.index])}function Rt(t,e){return t.data[e]}function Dt(t,e){return t[e]}function It(t,e){const n=e[t];return ct(n)?n:n[0]}function Pt(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Mt(t){return 4==(4&t[2])}function Lt(t){return 128==(128&t[2])}function jt(t,e){return null==e?null:t[e]}function Ft(t){t[18]=0}function Nt(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const Ut={lFrame:ue(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Bt(){return Ut.bindingsEnabled}function Vt(){return Ut.lFrame.lView}function Ht(){return Ut.lFrame.tView}function zt(t){Ut.lFrame.contextLView=t}function Yt(){let t=$t();for(;null!==t&&64===t.type;)t=t.parent;return t}function $t(){return Ut.lFrame.currentTNode}function Wt(t,e){const n=Ut.lFrame;n.currentTNode=t,n.isParent=e}function Kt(){return Ut.lFrame.isParent}function qt(){Ut.lFrame.isParent=!1}function Gt(){return Ut.isInCheckNoChangesMode}function Qt(t){Ut.isInCheckNoChangesMode=t}function Xt(){const t=Ut.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Zt(){return Ut.lFrame.bindingIndex}function Jt(){return Ut.lFrame.bindingIndex++}function te(t){const e=Ut.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function ee(t,e){const n=Ut.lFrame;n.bindingIndex=n.bindingRootIndex=t,ne(e)}function ne(t){Ut.lFrame.currentDirectiveIndex=t}function ie(t){const e=Ut.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function se(){return Ut.lFrame.currentQueryIndex}function re(t){Ut.lFrame.currentQueryIndex=t}function oe(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function ae(t,e,n){if(n&A.SkipSelf){let i=e,s=t;for(;i=i.parent,!(null!==i||n&A.Host||(i=oe(s),null===i)||(s=s[15],10&i.type)););if(null===i)return!1;e=i,t=s}const i=Ut.lFrame=ce();return i.currentTNode=e,i.lView=t,!0}function le(t){const e=ce(),n=t[1];Ut.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function ce(){const t=Ut.lFrame,e=null===t?null:t.child;return null===e?ue(t):e}function ue(t){const e={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:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function he(){const t=Ut.lFrame;return Ut.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const de=he;function pe(){const t=he();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function fe(){return Ut.lFrame.selectedIndex}function me(t){Ut.lFrame.selectedIndex=t}function ge(){const t=Ut.lFrame;return Rt(t.tView,t.selectedIndex)}function _e(){Ut.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function be(){Ut.lFrame.currentNamespace=null}function ye(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n<i;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:i,ngAfterContentChecked:s,ngAfterViewInit:r,ngAfterViewChecked:o,ngOnDestroy:a}=e;i&&(t.contentHooks||(t.contentHooks=[])).push(-n,i),s&&((t.contentHooks||(t.contentHooks=[])).push(n,s),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,s)),r&&(t.viewHooks||(t.viewHooks=[])).push(-n,r),o&&((t.viewHooks||(t.viewHooks=[])).push(n,o),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,o)),null!=a&&(t.destroyHooks||(t.destroyHooks=[])).push(n,a)}}function ve(t,e,n){Oe(t,e,3,n)}function we(t,e,n,i){(3&t[2])===n&&Oe(t,e,n,i)}function Ce(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function Oe(t,e,n,i){const s=null!=i?i:-1,r=e.length-1;let o=0;for(let a=void 0!==i?65535&t[18]:0;a<r;a++)if("number"==typeof e[a+1]){if(o=e[a],null!=i&&o>=i)break}else e[a]<0&&(t[18]+=65536),(o<s||-1==s)&&(xe(t,n,e,a),t[18]=(4294901760&t[18])+a+2),a++}function xe(t,e,n,i){const s=n[i]<0,r=n[i+1],o=t[s?-n[i]:n[i]];if(s){if(t[2]>>11<t[18]>>16&&(3&t[2])===e){t[2]+=2048;try{r.call(o)}finally{}}}else try{r.call(o)}finally{}}class Se{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Ee(t,e,n){const i=St(t);let s=0;for(;s<n.length;){const r=n[s];if("number"==typeof r){if(0!==r)break;s++;const o=n[s++],a=n[s++],l=n[s++];i?t.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=r,a=n[++s];Te(o)?i&&t.setProperty(e,o,a):i?t.setAttribute(e,o,a):e.setAttribute(o,a),s++}}return s}function ke(t){return 3===t||4===t||6===t}function Te(t){return 64===t.charCodeAt(0)}function Ae(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let i=0;i<e.length;i++){const s=e[i];"number"==typeof s?n=s:0===n||Re(t,n,s,null,-1===n||2===n?e[++i]:null)}}return t}function Re(t,e,n,i,s){let r=0,o=t.length;if(-1===e)o=-1;else for(;r<t.length;){const n=t[r++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=r-1;break}}}for(;r<t.length;){const e=t[r];if("number"==typeof e)break;if(e===n){if(null===i)return void(null!==s&&(t[r+1]=s));if(i===t[r+1])return void(t[r+2]=s)}r++,null!==i&&r++,null!==s&&r++}-1!==o&&(t.splice(o,0,e),r=o+1),t.splice(r++,0,n),null!==i&&t.splice(r++,0,i),null!==s&&t.splice(r++,0,s)}function De(t){return-1!==t}function Ie(t){return 32767&t}function Pe(t,e){let n=t>>16,i=e;for(;n>0;)i=i[15],n--;return i}let Me=!0;function Le(t){const e=Me;return Me=t,e}let je=0;function Fe(t,e){const n=Ue(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Ne(i.data,t),Ne(e,null),Ne(i.blueprint,null));const s=Be(t,e),r=t.injectorIndex;if(De(s)){const t=Ie(s),n=Pe(s,e),i=n[1].data;for(let s=0;s<8;s++)e[r+s]=n[t+s]|i[t+s]}return e[r+8]=s,r}function Ne(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ue(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Be(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(i=2===e?t.declTNode:1===e?s[6]:null,null===i)return-1;if(n++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Ve(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Q)&&(i=n[Q]),null==i&&(i=n[Q]=je++);const s=255&i;e.data[t+(s>>5)]|=1<<s}(t,e,n)}function He(t,e,n){if(n&A.Optional)return t;y(e,"NodeInjector")}function ze(t,e,n,i){if(n&A.Optional&&void 0===i&&(i=null),0==(n&(A.Self|A.Host))){const s=t[9],r=D(void 0);try{return s?s.get(e,i,n&A.Optional):I(e,i,n&A.Optional)}finally{D(r)}}return He(i,e,n)}function Ye(t,e,n,i=A.Default,s){if(null!==t){const r=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(Q)?t[Q]:void 0;return"number"==typeof e?e>=0?255&e:We:e}(n);if("function"==typeof r){if(!ae(e,t,i))return i&A.Host?He(s,n,i):ze(e,n,i,s);try{const t=r();if(null!=t||i&A.Optional)return t;y(n)}finally{de()}}else if("number"==typeof r){let s=null,o=Ue(t,e),a=-1,l=i&A.Host?e[16][6]:null;for((-1===o||i&A.SkipSelf)&&(a=-1===o?Be(t,e):e[o+8],-1!==a&&Xe(i,!1)?(s=e[1],o=Ie(a),e=Pe(a,e)):o=-1);-1!==o;){const t=e[1];if(Qe(r,o,t.data)){const t=Ke(o,e,n,s,i,l);if(t!==$e)return t}a=e[o+8],-1!==a&&Xe(i,e[1].data[o+8]===l)&&Qe(r,o,e)?(s=t,o=Ie(a),e=Pe(a,e)):o=-1}}}return ze(e,n,i,s)}const $e={};function We(){return new Ze(Yt(),Vt())}function Ke(t,e,n,i,s,r){const o=e[1],a=o.data[t+8],l=qe(a,o,n,null==i?dt(a)&&Me:i!=o&&0!=(3&a.type),s&A.Host&&r===a);return null!==l?Ge(e,o,l,a):$e}function qe(t,e,n,i,s){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,u=s?a+c:t.directiveEnd;for(let h=i?a:a+c;h<u;h++){const t=o[h];if(h<l&&n===t||h>=l&&t.type===n)return h}if(s){const t=o[l];if(t&&ft(t)&&t.type===n)return l}return null}function Ge(t,e,n,i){let s=t[n];const r=e.data;if(s instanceof Se){const o=s;o.resolving&&function(t,e){throw new g("200",`Circular dependency in DI detected for ${t}`)}(b(r[n]));const a=Le(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?D(o.injectImpl):null;ae(t,i,A.Default);try{s=t[n]=o.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(i){const i=bt(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{null!==l&&D(l),Le(a),o.resolving=!1,de()}}return s}function Qe(t,e,n){return!!(n[e+(t>>5)]&1<<t)}function Xe(t,e){return!(t&A.Self||t&A.Host&&e)}class Ze{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return Ye(this._tNode,this._lView,t,void 0,e)}}function Je(t){return P(()=>{const e=t.prototype.constructor,n=e[G]||tn(e),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const t=s[G]||tn(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function tn(t){return m(t)?()=>{const e=tn(f(t));return e&&e()}:mt(t)}function en(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let i=0;for(;i<t;){const s=n[i];if(ke(s))break;if(0===s)i+=2;else if("number"==typeof s)for(i++;i<t&&"string"==typeof n[i];)i++;else{if(s===e)return n[i+1];i+=2}}}return null}(Yt(),t)}function nn(t,e,n){return P(()=>{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return i.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,i){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class sn{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=v({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const rn=new sn("AnalyzeForEntryComponents"),on=Function;function an(t,e){void 0===e&&(e=t);for(let n=0;n<t.length;n++){let i=t[n];Array.isArray(i)?(e===t&&(e=t.slice(0,n)),an(i,e)):e!==t&&e.push(i)}return e}function ln(t,e){t.forEach(t=>Array.isArray(t)?ln(t,e):e(t))}function cn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function un(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function hn(t,e){const n=[];for(let i=0;i<t;i++)n.push(e);return n}function dn(t,e,n){let i=fn(t,e);return i>=0?t[1|i]=n:(i=~i,function(t,e,n,i){let s=t.length;if(s==e)t.push(n,i);else if(1===s)t.push(i,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function pn(t,e){const n=fn(t,e);if(n>=0)return t[1|n]}function fn(t,e){return function(t,e,n){let i=0,s=t.length>>1;for(;s!==i;){const n=i+(s-i>>1),r=t[n<<1];if(e===r)return n<<1;r>e?s=n:i=n+1}return~(s<<1)}(t,e)}const mn={},gn=/\n/gm,_n=l({provide:String,useValue:l});let bn;function yn(t){const e=bn;return bn=t,e}function vn(t,e=A.Default){if(void 0===bn)throw new Error("inject() must be called from an injection context");return null===bn?I(t,void 0,e):bn.get(t,e&A.Optional?null:void 0,e)}function wn(t,e=A.Default){return(R||vn)(f(t),e)}const Cn=wn;function On(t){const e=[];for(let n=0;n<t.length;n++){const i=f(t[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let t,n=A.Default;for(let e=0;e<i.length;e++){const s=i[e],r=s.__NG_DI_FLAG__;"number"==typeof r?-1===r?t=s.token:n|=r:t=s}e.push(wn(t,n))}else e.push(wn(i))}return e}function xn(t,e){return t.__NG_DI_FLAG__=e,t.prototype.__NG_DI_FLAG__=e,t}const Sn=xn(nn("Inject",t=>({token:t})),-1),En=xn(nn("Optional"),8),kn=xn(nn("Self"),2),Tn=xn(nn("SkipSelf"),4);let An,Rn;function Dn(t){var e;return(null===(e=function(){if(void 0===An&&(An=null,B.trustedTypes))try{An=B.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return An}())||void 0===e?void 0:e.createHTML(t))||t}function In(t){var e;return(null===(e=function(){if(void 0===Rn&&(Rn=null,B.trustedTypes))try{Rn=B.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Rn}())||void 0===e?void 0:e.createHTML(t))||t}class Pn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Mn extends Pn{getTypeName(){return"HTML"}}class Ln extends Pn{getTypeName(){return"Style"}}class jn extends Pn{getTypeName(){return"Script"}}class Fn extends Pn{getTypeName(){return"URL"}}class Nn extends Pn{getTypeName(){return"ResourceURL"}}function Un(t){return t instanceof Pn?t.changingThisBreaksApplicationSecurity:t}function Bn(t,e){const n=Vn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function Vn(t){return t instanceof Pn&&t.getTypeName()||null}function Hn(t){return new Mn(t)}function zn(t){return new Ln(t)}function Yn(t){return new jn(t)}function $n(t){return new Fn(t)}function Wn(t){return new Nn(t)}class Kn{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(Dn(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class qn{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Dn(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Dn(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0<i;i--){const n=e.item(i).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const Gn=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Qn=/^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 Xn(t){return(t=String(t)).match(Gn)||t.match(Qn)?t:"unsafe:"+t}function Zn(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function Jn(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const ti=Zn("area,br,col,hr,img,wbr"),ei=Zn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ni=Zn("rp,rt"),ii=Jn(ni,ei),si=Jn(ti,Jn(ei,Zn("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")),Jn(ni,Zn("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")),ii),ri=Zn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),oi=Zn("srcset"),ai=Jn(ri,oi,Zn("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"),Zn("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")),li=Zn("script,style,template");class ci{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!si.hasOwnProperty(e))return this.sanitizedSomething=!0,!li.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let s=0;s<n.length;s++){const t=n.item(s),e=t.name,r=e.toLowerCase();if(!ai.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let o=t.value;ri[r]&&(o=Xn(o)),oi[r]&&(i=o,o=(i=String(i)).split(",").map(t=>Xn(t.trim())).join(", ")),this.buf.push(" ",e,'="',di(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();si.hasOwnProperty(e)&&!ti.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(di(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const ui=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,hi=/([^\#-~ |!])/g;function di(t){return t.replace(/&/g,"&amp;").replace(ui,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(hi,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let pi;function fi(t,e){let n=null;try{pi=pi||function(t){const e=new qn(t);return function(){try{return!!(new window.DOMParser).parseFromString(Dn(""),"text/html")}catch(t){return!1}}()?new Kn(e):e}(t);let i=e?String(e):"";n=pi.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=n.innerHTML,n=pi.getInertBodyElement(i)}while(i!==r);return Dn((new ci).sanitizeChildren(mi(n)||n))}finally{if(n){const t=mi(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function mi(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var gi=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function _i(t){const e=yi();return e?In(e.sanitize(gi.HTML,t)||""):Bn(t,"HTML")?In(Un(t)):fi(xt(),_(t))}function bi(t){const e=yi();return e?e.sanitize(gi.URL,t)||"":Bn(t,"URL")?Un(t):Xn(_(t))}function yi(){const t=Vt();return t&&t[12]}function vi(t){return t.ngDebugContext}function wi(t){return t.ngOriginalError}function Ci(t,...e){t.error(...e)}class Oi{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||Ci}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?vi(t)?vi(t):this._findContext(wi(t)):null}_findOriginalError(t){let e=wi(t);for(;e&&wi(e);)e=wi(e);return e}}function xi(t,e){t.__ngContext__=e}const Si=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(B))();function Ei(t){return{name:"window",target:t.ownerDocument.defaultView}}function ki(t){return{name:"document",target:t.ownerDocument}}function Ti(t){return{name:"body",target:t.ownerDocument.body}}function Ai(t){return t instanceof Function?t():t}var Ri=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function Di(t,e){return(void 0)(t,e)}function Ii(t){const e=t[3];return ut(e)?e[3]:e}function Pi(t){return Li(t[13])}function Mi(t){return Li(t[4])}function Li(t){for(;null!==t&&!ut(t);)t=t[4];return t}function ji(t,e,n,i,s){if(null!=i){let r,o=!1;ut(i)?r=i:ct(i)&&(o=!0,i=i[0]);const a=kt(i);0===t&&null!==n?null==s?Yi(e,n,a):zi(e,n,a,s||null,!0):1===t&&null!==n?zi(e,n,a,s||null,!0):2===t?function(t,e,n){const i=Wi(t,e);i&&function(t,e,n,i){St(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,i,s){const r=n[7];r!==kt(n)&&ji(e,t,i,r,s);for(let o=10;o<n.length;o++){const s=n[o];ts(s[1],s,t,e,i,r)}}(e,t,r,n,s)}}function Fi(t,e,n){return St(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function Ni(t,e){const n=t[9],i=n.indexOf(e),s=e[3];1024&e[2]&&(e[2]&=-1025,Nt(s,-1)),n.splice(i,1)}function Ui(t,e){if(t.length<=10)return;const n=10+e,i=t[n];if(i){const r=i[17];null!==r&&r!==t&&Ni(r,i),e>0&&(t[n-1][4]=i[4]);const o=un(t,10+e);ts(i[1],s=i,s[11],2,null,null),s[0]=null,s[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}var s;return i}function Bi(t,e){if(!(256&e[2])){const n=e[11];St(n)&&n.destroyNode&&ts(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Vi(t[1],t);for(;e;){let n=null;if(ct(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)ct(e)&&Vi(e[1],e),e=e[3];null===e&&(e=t),ct(e)&&Vi(e[1],e),n=e&&e[4]}e=n}}(e)}}function Vi(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i<n.length;i+=2){const t=e[n[i]];if(!(t instanceof Se)){const e=n[i+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2)e[n+1].call(t[e[n]]);else e.call(t)}}}(t,e),function(t,e){const n=t.cleanup,i=e[7];let s=-1;if(null!==n)for(let r=0;r<n.length-1;r+=2)if("string"==typeof n[r]){const t=n[r+1],o="function"==typeof t?t(e):kt(e[t]),a=i[s=n[r+2]],l=n[r+3];"boolean"==typeof l?o.removeEventListener(n[r],a,l):l>=0?i[s=l]():i[s=-l].unsubscribe(),r+=2}else{const t=i[s=n[r+1]];n[r].call(t)}if(null!==i){for(let t=s+1;t<i.length;t++)(0,i[t])();e[7]=null}}(t,e),1===e[1].type&&St(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&ut(e[3])){n!==e[3]&&Ni(n,e);const i=e[19];null!==i&&i.detachView(t)}}}function Hi(t,e,n){return function(t,e,n){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return n[0];if(2&i.flags){const e=t.data[i.directiveStart].encapsulation;if(e===L.None||e===L.Emulated)return null}return At(i,n)}(t,e.parent,n)}function zi(t,e,n,i,s){St(t)?t.insertBefore(e,n,i,s):e.insertBefore(n,i,s)}function Yi(t,e,n){St(t)?t.appendChild(e,n):e.appendChild(n)}function $i(t,e,n,i,s){null!==i?zi(t,e,n,i,s):Yi(t,e,n)}function Wi(t,e){return St(t)?t.parentNode(e):e.parentNode}function Ki(t,e,n){return qi(t,e,n)}let qi=function(t,e,n){return 40&t.type?At(t,n):null};function Gi(t,e,n,i){const s=Hi(t,i,e),r=e[11],o=Ki(i.parent||e[6],i,e);if(null!=s)if(Array.isArray(n))for(let a=0;a<n.length;a++)$i(r,s,n[a],o,!1);else $i(r,s,n,o,!1)}function Qi(t,e){if(null!==e){const n=e.type;if(3&n)return At(e,t);if(4&n)return Zi(-1,t[e.index]);if(8&n){const n=e.child;if(null!==n)return Qi(t,n);{const n=t[e.index];return ut(n)?Zi(-1,n):kt(n)}}if(32&n)return Di(e,t)()||kt(t[e.index]);{const n=Xi(t,e);return null!==n?Array.isArray(n)?n[0]:Qi(Ii(t[16]),n):Qi(t,e.next)}}return null}function Xi(t,e){return null!==e?t[16][6].projection[e.projection]:null}function Zi(t,e){const n=10+t+1;if(n<e.length){const t=e[n],i=t[1].firstChild;if(null!==i)return Qi(t,i)}return e[7]}function Ji(t,e,n,i,s,r,o){for(;null!=n;){const a=i[n.index],l=n.type;if(o&&0===e&&(a&&xi(kt(a),i),n.flags|=4),64!=(64&n.flags))if(8&l)Ji(t,e,n.child,i,s,r,!1),ji(e,t,s,a,r);else if(32&l){const o=Di(n,i);let l;for(;l=o();)ji(e,t,s,l,r);ji(e,t,s,a,r)}else 16&l?es(t,e,i,n,s,r):ji(e,t,s,a,r);n=o?n.projectionNext:n.next}}function ts(t,e,n,i,s,r){Ji(n,i,t.firstChild,e,s,r,!1)}function es(t,e,n,i,s,r){const o=n[16],a=o[6].projection[i.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)ji(e,t,s,a[l],r);else Ji(t,e,a,o[3],s,r,!0)}function ns(t,e,n){St(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function is(t,e,n){St(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function ss(t,e,n){let i=t.length;for(;;){const s=t.indexOf(e,n);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const n=e.length;if(s+n===i||t.charCodeAt(s+n)<=32)return s}n=s+1}}function rs(t,e,n){let i=0;for(;i<t.length;){let s=t[i++];if(n&&"class"===s){if(s=t[i],-1!==ss(s.toLowerCase(),e,0))return!0}else if(1===s){for(;i<t.length&&"string"==typeof(s=t[i++]);)if(s.toLowerCase()===e)return!0;return!1}}return!1}function os(t){return 4===t.type&&"ng-template"!==t.value}function as(t,e,n){return e===(4!==t.type||n?t.value:"ng-template")}function ls(t,e,n){let i=4;const s=t.attrs||[],r=function(t){for(let e=0;e<t.length;e++)if(ke(t[e]))return e;return t.length}(s);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!as(t,l,n)||""===l&&1===e.length){if(cs(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==t.attrs){if(!rs(t.attrs,c,n)){if(cs(i))return!1;o=!0}continue}const u=us(8&i?"class":l,s,os(t),n);if(-1===u){if(cs(i))return!1;o=!0;continue}if(""!==c){let t;t=u>r?"":s[u+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==ss(e,c,0)||2&i&&c!==t){if(cs(i))return!1;o=!0}}}}else{if(!o&&!cs(i)&&!cs(l))return!1;if(o&&cs(l))continue;o=!1,i=l|1&i}}return cs(i)||o}function cs(t){return 0==(1&t)}function us(t,e,n,i){if(null===e)return-1;let s=0;if(i||!n){let n=!1;for(;s<e.length;){const i=e[s];if(i===t)return s;if(3===i||6===i)n=!0;else{if(1===i||2===i){let t=e[++s];for(;"string"==typeof t;)t=e[++s];continue}if(4===i)break;if(0===i){s+=4;continue}}s+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const i=t[n];if("number"==typeof i)return-1;if(i===e)return n;n++}return-1}(e,t)}function hs(t,e,n=!1){for(let i=0;i<e.length;i++)if(ls(t,e[i],n))return!0;return!1}function ds(t,e){t:for(let n=0;n<e.length;n++){const i=e[n];if(t.length===i.length){for(let e=0;e<t.length;e++)if(t[e]!==i[e])continue t;return!0}}return!1}function ps(t,e){return t?":not("+e.trim()+")":e}function fs(t){let e=t[0],n=1,i=2,s="",r=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&i){const e=t[++n];s+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""===s||cs(o)||(e+=ps(r,s),s=""),i=o,r=r||!cs(i);n++}return""!==s&&(e+=ps(r,s)),e}const ms={};function gs(t){_s(Ht(),Vt(),fe()+t,Gt())}function _s(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&ve(e,i,n)}else{const i=t.preOrderHooks;null!==i&&we(e,i,0,n)}me(n)}function bs(t,e){return t<<17|e<<2}function ys(t){return t>>17&32767}function vs(t){return 2|t}function ws(t){return(131068&t)>>2}function Cs(t,e){return-131069&t|e<<2}function Os(t){return 1|t}function xs(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const s=n[i],r=n[i+1];if(-1!==r){const n=t.data[r];re(s),n.contentQueries(2,e[r],r)}}}function Ss(t,e,n,i,s,r,o,a,l,c){const u=e.blueprint.slice();return u[0]=s,u[2]=140|i,Ft(u),u[3]=u[15]=t,u[8]=n,u[10]=o||t&&t[10],u[11]=a||t&&t[11],u[12]=l||t&&t[12]||null,u[9]=c||t&&t[9]||null,u[6]=r,u[16]=2==e.type?t[16]:u,u}function Es(t,e,n,i,s){let r=t.data[e];if(null===r)r=function(t,e,n,i,s){const r=$t(),o=Kt(),a=t.data[e]=function(t,e,n,i,s,r){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:s,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?r:r&&r.parent,n,e,i,s);return null===t.firstChild&&(t.firstChild=a),null!==r&&(o?null==r.child&&null!==a.parent&&(r.child=a):null===r.next&&(r.next=a)),a}(t,e,n,i,s),Ut.lFrame.inI18n&&(r.flags|=64);else if(64&r.type){r.type=n,r.value=i,r.attrs=s;const t=function(){const t=Ut.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();r.injectorIndex=null===t?-1:t.injectorIndex}return Wt(r,!0),r}function ks(t,e,n,i){if(0===n)return-1;const s=e.length;for(let r=0;r<n;r++)e.push(i),t.blueprint.push(i),t.data.push(null);return s}function Ts(t,e,n){le(e);try{const i=t.viewQuery;null!==i&&sr(1,i,n);const s=t.template;null!==s&&Ds(t,e,s,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&xs(t,e),t.staticViewQueries&&sr(2,t.viewQuery,n);const r=t.components;null!==r&&function(t,e){for(let n=0;n<e.length;n++)Js(t,e[n])}(e,r)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),i}finally{e[2]&=-5,pe()}}function As(t,e,n,i){const s=e[2];if(256==(256&s))return;le(e);const r=Gt();try{Ft(e),Ut.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Ds(t,e,n,2,i);const o=3==(3&s);if(!r)if(o){const n=t.preOrderCheckHooks;null!==n&&ve(e,n,null)}else{const n=t.preOrderHooks;null!==n&&we(e,n,0,null),Ce(e,0)}if(function(t){for(let e=Pi(t);null!==e;e=Mi(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],i=n[3];0==(1024&n[2])&&Nt(i,1),n[2]|=1024}}}(e),function(t){for(let e=Pi(t);null!==e;e=Mi(e))for(let t=10;t<e.length;t++){const n=e[t],i=n[1];Lt(n)&&As(i,n,i.template,n[8])}}(e),null!==t.contentQueries&&xs(t,e),!r)if(o){const n=t.contentCheckHooks;null!==n&&ve(e,n)}else{const n=t.contentHooks;null!==n&&we(e,n,1),Ce(e,1)}!function(t,e){const n=t.hostBindingOpCodes;if(null!==n)try{for(let t=0;t<n.length;t++){const i=n[t];if(i<0)me(~i);else{const s=i,r=n[++t],o=n[++t];ee(r,s),o(2,e[s])}}}finally{me(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)Xs(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&sr(2,l,i),!r)if(o){const n=t.viewCheckHooks;null!==n&&ve(e,n)}else{const n=t.viewHooks;null!==n&&we(e,n,2),Ce(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),r||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,Nt(e[3],-1))}finally{pe()}}function Rs(t,e,n,i){const s=e[10],r=!Gt(),o=Mt(e);try{r&&!o&&s.begin&&s.begin(),o&&Ts(t,e,i),As(t,e,n,i)}finally{r&&!o&&s.end&&s.end()}}function Ds(t,e,n,i,s){const r=fe(),o=2&i;try{me(-1),o&&e.length>20&&_s(t,e,20,Gt()),n(i,s)}finally{me(r)}}function Is(t,e,n){if(ht(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s<i;s++){const e=t.data[s];e.contentQueries&&e.contentQueries(1,n[s],s)}}}function Ps(t,e,n){Bt()&&(function(t,e,n,i){const s=n.directiveStart,r=n.directiveEnd;t.firstCreatePass||Fe(n,e),xi(i,e);const o=n.initialInputs;for(let a=s;a<r;a++){const i=t.data[a],r=ft(i);r&&Ks(e,n,i);const l=Ge(e,t,a,n);xi(l,e),null!==o&&qs(0,a-s,l,i,0,o),r&&(It(n.index,e)[8]=l)}}(t,e,n,At(n,e)),128==(128&n.flags)&&function(t,e,n){const i=n.directiveStart,s=n.directiveEnd,r=n.index,o=Ut.lFrame.currentDirectiveIndex;try{me(r);for(let n=i;n<s;n++){const i=t.data[n],s=e[n];ne(n),null===i.hostBindings&&0===i.hostVars&&null===i.hostAttrs||Hs(i,s)}}finally{me(-1),ne(o)}}(t,e,n))}function Ms(t,e,n=At){const i=e.localNames;if(null!==i){let s=e.index+1;for(let r=0;r<i.length;r+=2){const o=i[r+1],a=-1===o?n(e,t):t[o];t[s++]=a}}}function Ls(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=js(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function js(t,e,n,i,s,r,o,a,l,c){const u=20+i,h=u+s,d=function(t,e){const n=[];for(let i=0;i<e;i++)n.push(i<t?null:ms);return n}(u,h),p="function"==typeof c?c():c;return d[1]={type:t,blueprint:d,template:n,queries:null,viewQuery:a,declTNode:e,data:d.slice().fill(null,u),bindingStartIndex:u,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 r?r():r,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1}}function Fs(t,e,n,i){const s=or(e);null===n?s.push(i):(s.push(n),t.firstCreatePass&&ar(t).push(i,s.length-1))}function Ns(t,e,n){for(let i in t)if(t.hasOwnProperty(i)){const s=t[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(e,s):n[i]=[e,s]}return n}function Us(t,e,n,i,s,r,o,a){const l=At(e,n);let c,u=e.inputs;var h;!a&&null!=u&&(c=u[i])?(ur(t,n,c,i,s),dt(e)&&function(t,e){const n=It(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3&e.type&&(i="class"===(h=i)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,s=null!=o?o(s,e.value||"",i):s,St(r)?r.setProperty(l,i,s):Te(i)||(l.setProperty?l.setProperty(i,s):l[i]=s))}function Bs(t,e,n,i){let s=!1;if(Bt()){const r=function(t,e,n){const i=t.directiveRegistry;let s=null;if(i)for(let r=0;r<i.length;r++){const o=i[r];hs(n,o.selectors,!1)&&(s||(s=[]),Ve(Fe(n,e),t,o.type),ft(o)?(zs(t,n),s.unshift(o)):s.push(o))}return s}(t,e,n),o=null===i?null:{"":-1};if(null!==r){s=!0,$s(n,t.data.length,r.length);for(let t=0;t<r.length;t++){const e=r[t];e.providersResolver&&e.providersResolver(e)}let i=!1,a=!1,l=ks(t,e,r.length,null);for(let s=0;s<r.length;s++){const c=r[s];n.mergedAttrs=Ae(n.mergedAttrs,c.hostAttrs),Ws(t,n,e,l,c),Ys(l,c,o),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const u=c.type.prototype;!i&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index),i=!0),a||!u.ngOnChanges&&!u.ngDoCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index),a=!0),l++}!function(t,e){const n=e.directiveEnd,i=t.data,s=e.attrs,r=[];let o=null,a=null;for(let l=e.directiveStart;l<n;l++){const t=i[l],n=t.inputs,c=null===s||os(e)?null:Gs(n,s);r.push(c),o=Ns(n,l,o),a=Ns(t.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=r,e.inputs=o,e.outputs=a}(t,n)}o&&function(t,e,n){if(e){const i=t.localNames=[];for(let t=0;t<e.length;t+=2){const s=n[e[t+1]];if(null==s)throw new g("301",`Export of name '${e[t+1]}' not found!`);i.push(e[t],s)}}}(n,i,o)}return n.mergedAttrs=Ae(n.mergedAttrs,n.attrs),s}function Vs(t,e,n,i,s,r){const o=r.hostBindings;if(o){let n=t.hostBindingOpCodes;null===n&&(n=t.hostBindingOpCodes=[]);const r=~e.index;(function(t){let e=t.length;for(;e>0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=r&&n.push(r),n.push(i,s,o)}}function Hs(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function zs(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Ys(t,e,n){if(n){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)n[e.exportAs[i]]=t;ft(e)&&(n[""]=t)}}function $s(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Ws(t,e,n,i,s){t.data[i]=s;const r=s.factory||(s.factory=mt(s.type)),o=new Se(r,ft(s),null);t.blueprint[i]=o,n[i]=o,Vs(t,e,0,i,ks(t,n,s.hostVars,ms),s)}function Ks(t,e,n){const i=At(e,t),s=Ls(n),r=t[10],o=tr(t,Ss(t,s,null,n.onPush?64:16,i,e,r,r.createRenderer(i,n),null,null));t[e.index]=o}function qs(t,e,n,i,s,r){const o=r[e];if(null!==o){const t=i.setInput;for(let e=0;e<o.length;){const s=o[e++],r=o[e++],a=o[e++];null!==t?i.setInput(n,a,s,r):n[r]=a}}}function Gs(t,e){let n=null,i=0;for(;i<e.length;){const s=e[i];if(0!==s)if(5!==s){if("number"==typeof s)break;t.hasOwnProperty(s)&&(null===n&&(n=[]),n.push(s,t[s],e[i+1])),i+=2}else i+=2;else i+=4}return n}function Qs(t,e,n,i){return new Array(t,!0,!1,e,null,0,i,n,null,null)}function Xs(t,e){const n=It(e,t);if(Lt(n)){const t=n[1];80&n[2]?As(t,n,t.template,n[8]):n[5]>0&&Zs(n)}}function Zs(t){for(let n=Pi(t);null!==n;n=Mi(n))for(let t=10;t<n.length;t++){const e=n[t];if(1024&e[2]){const t=e[1];As(t,e,t.template,e[8])}else e[5]>0&&Zs(e)}const e=t[1].components;if(null!==e)for(let n=0;n<e.length;n++){const i=It(e[n],t);Lt(i)&&i[5]>0&&Zs(i)}}function Js(t,e){const n=It(e,t),i=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(i,n),Ts(i,n,n[8])}function tr(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function er(t){for(;t;){t[2]|=64;const e=Ii(t);if(0!=(512&t[2])&&!e)return t;t=e}return null}function nr(t,e,n){const i=e[10];i.begin&&i.begin();try{As(t,e,t.template,n)}catch(s){throw cr(e,s),s}finally{i.end&&i.end()}}function ir(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],i=Pt(n),s=i[1];Rs(s,i,s.template,n)}}(t[8])}function sr(t,e,n){re(0),e(t,n)}const rr=(()=>Promise.resolve(null))();function or(t){return t[7]||(t[7]=[])}function ar(t){return t.cleanup||(t.cleanup=[])}function lr(t,e,n){return(null===t||ft(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function cr(t,e){const n=t[9],i=n?n.get(Oi,null):null;i&&i.handleError(e)}function ur(t,e,n,i,s){for(let r=0;r<n.length;){const o=n[r++],a=n[r++],l=e[o],c=t.data[o];null!==c.setInput?c.setInput(l,s,i,a):l[a]=s}}function hr(t,e,n){const i=Tt(e,t);!function(t,e,n){St(t)?t.setValue(e,n):e.textContent=n}(t[11],i,n)}function dr(t,e,n){let i=n?t.styles:null,s=n?t.classes:null,r=0;if(null!==e)for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?r=t:1==r?s=h(s,t):2==r&&(i=h(i,t+": "+e[++o]+";"))}n?t.styles=i:t.stylesWithoutHost=i,n?t.classes=s:t.classesWithoutHost=s}const pr=new sn("INJECTOR",-1);class fr{get(t,e=mn){if(e===mn){const e=new Error(`NullInjectorError: No provider for ${u(t)}!`);throw e.name="NullInjectorError",e}return e}}const mr=new sn("Set Injector scope."),gr={},_r={},br=[];let yr;function vr(){return void 0===yr&&(yr=new fr),yr}function wr(t,e=null,n=null,i){return new Cr(t,n,e||vr(),i)}class Cr{constructor(t,e,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&ln(e,n=>this.processProvider(n,t,e)),ln([t],t=>this.processInjectorType(t,[],s)),this.records.set(pr,Sr(void 0,this));const r=this.records.get(mr);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof t?null:u(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=mn,n=A.Default){this.assertNotDestroyed();const i=yn(this);try{if(!(n&A.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof sn)&&C(t);e=n&&this.injectableDefInScope(n)?Sr(Or(t),gr):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&A.Self?vr():this.parent).get(t,e=n&A.Optional&&e===mn?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(u(t)),i)throw r;return function(t,e,n,i){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=u(e);if(Array.isArray(e))s=e.map(u).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):u(i)))}s=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${t.replace(gn,"\n  ")}`}("\n"+t.message,s,n,i),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{yn(i)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(u(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=f(t)))return!1;let i=x(t);const s=null==i&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==n.indexOf(r);if(void 0!==s&&(i=x(s)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(r);try{ln(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:i}=t[e];ln(i,t=>this.processProvider(t,n,i||br))}}this.injectorDefTypes.add(r);const a=mt(r)||(()=>new r);this.records.set(r,Sr(a,gr));const l=i.providers;if(null!=l&&!o){const e=t;ln(l,t=>this.processProvider(t,e,l))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let i=kr(t=f(t))?t:f(t&&t.provide);const s=function(t,e,n){return Er(t)?Sr(void 0,t.useValue):Sr(xr(t),gr)}(t);if(kr(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=Sr(void 0,gr,!0),e.factory=()=>On(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,s)}hydrate(t,e){var n;return e.value===gr&&(e.value=_r,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Or(t){const e=C(t),n=null!==e?e.factory:mt(t);if(null!==n)return n;if(t instanceof sn)throw new Error(`Token ${u(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=hn(e,"?");throw new Error(`Can't resolve all parameters for ${u(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[S]||t[k]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function xr(t,e,n){let i;if(kr(t)){const e=f(t);return mt(e)||Or(e)}if(Er(t))i=()=>f(t.useValue);else if((s=t)&&s.useFactory)i=()=>t.useFactory(...On(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>wn(f(t.useExisting));else{const e=f(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return mt(e)||Or(e);i=()=>new e(...On(t.deps))}var s;return i}function Sr(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Er(t){return null!==t&&"object"==typeof t&&_n in t}function kr(t){return"function"==typeof t}const Tr=function(t,e,n){return function(t,e=null,n=null,i){const s=wr(t,e,n,i);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let Ar=(()=>{class t{static create(t,e){return Array.isArray(t)?Tr(t,e,""):Tr(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=mn,t.NULL=new fr,t.\u0275prov=v({token:t,providedIn:"any",factory:()=>wn(pr)}),t.__NG_ELEMENT_ID__=-1,t})();function Rr(t,e){ye(Pt(t)[1],Yt())}function Dr(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let s;if(ft(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){i.push(s);const e=t;e.inputs=Ir(t.inputs),e.declaredInputs=Ir(t.declaredInputs),e.outputs=Ir(t.outputs);const n=s.hostBindings;n&&Lr(t,n);const r=s.viewQuery,o=s.contentQueries;if(r&&Pr(t,r),o&&Mr(t,o),c(t.inputs,s.inputs),c(t.declaredInputs,s.declaredInputs),c(t.outputs,s.outputs),ft(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let i=0;i<e.length;i++){const s=e[i];s&&s.ngInherit&&s(t),s===Dr&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let i=t.length-1;i>=0;i--){const s=t[i];s.hostVars=e+=s.hostVars,s.hostAttrs=Ae(s.hostAttrs,n=Ae(n,s.hostAttrs))}}(i)}function Ir(t){return t===V?{}:t===z?[]:t}function Pr(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function Mr(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,s)=>{e(t,i,s),n(t,i,s)}:e}function Lr(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}let jr=null;function Fr(){if(!jr){const t=B.Symbol;if(t&&t.iterator)jr=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(jr=n)}}}return jr}class Nr{constructor(t){this.wrapped=t}static wrap(t){return new Nr(t)}static unwrap(t){return Nr.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof Nr}}function Ur(t){return!!Br(t)&&(Array.isArray(t)||!(t instanceof Map)&&Fr()in t)}function Br(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Vr(t,e,n){return t[e]=n}function Hr(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function zr(t,e,n,i){const s=Hr(t,e,n);return Hr(t,e+1,i)||s}function Yr(t,e,n,i){const s=Vt();return Hr(s,Jt(),e)&&(Ht(),function(t,e,n,i,s,r){const o=At(t,e);!function(t,e,n,i,s,r,o){if(null==r)St(t)?t.removeAttribute(e,s,n):e.removeAttribute(s);else{const a=null==o?_(r):o(r,i||"",s);St(t)?t.setAttribute(e,s,a,n):n?e.setAttributeNS(n,s,a):e.setAttribute(s,a)}}(e[11],o,r,t.value,n,i,s)}(ge(),s,t,e,n,i)),Yr}function $r(t,e,n,i){return Hr(t,Jt(),n)?e+_(n)+i:ms}function Wr(t,e,n,i,s,r,o,a){const l=function(t,e,n,i,s){const r=zr(t,e,n,i);return Hr(t,e+2,s)||r}(t,Zt(),n,s,o);return te(3),l?e+_(n)+i+_(s)+r+_(o)+a:ms}function Kr(t,e,n,i,s,r,o,a){const l=Vt(),c=Ht(),u=t+20,h=c.firstCreatePass?function(t,e,n,i,s,r,o,a,l){const c=e.consts,u=Es(e,t,4,o||null,jt(c,a));Bs(e,n,u,jt(c,l)),ye(e,u);const h=u.tViews=js(2,u,i,s,r,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,u),h.queries=e.queries.embeddedTView(u)),u}(u,c,l,e,n,i,s,r,o):c.data[u];Wt(h,!1);const d=l[11].createComment("");Gi(c,l,d,h),xi(d,l),tr(l,l[u]=Qs(d,l,d,h)),pt(h)&&Ps(c,l,h),null!=o&&Ms(l,h,a)}function qr(t){return Dt(Ut.lFrame.contextLView,20+t)}function Gr(t,e=A.Default){const n=Vt();return null===n?wn(t,e):Ye(Yt(),n,f(t),e)}function Qr(){throw new Error("invalid")}function Xr(t,e,n){const i=Vt();return Hr(i,Jt(),e)&&Us(Ht(),ge(),i,t,e,i[11],n,!1),Xr}function Zr(t,e,n,i,s){const r=s?"class":"style";ur(t,n,e.inputs[r],r,i)}function Jr(t,e,n,i){const s=Vt(),r=Ht(),o=20+t,a=s[11],l=s[o]=Fi(a,e,Ut.lFrame.currentNamespace),c=r.firstCreatePass?function(t,e,n,i,s,r,o){const a=e.consts,l=Es(e,t,2,s,jt(a,r));return Bs(e,n,l,jt(a,o)),null!==l.attrs&&dr(l,l.attrs,!1),null!==l.mergedAttrs&&dr(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(o,r,s,0,e,n,i):r.data[o];Wt(c,!0);const u=c.mergedAttrs;null!==u&&Ee(a,l,u);const h=c.classes;null!==h&&is(a,l,h);const d=c.styles;null!==d&&ns(a,l,d),64!=(64&c.flags)&&Gi(r,s,l,c),0===Ut.lFrame.elementDepthCount&&xi(l,s),Ut.lFrame.elementDepthCount++,pt(c)&&(Ps(r,s,c),Is(r,c,s)),null!==i&&Ms(s,c)}function to(){let t=Yt();Kt()?qt():(t=t.parent,Wt(t,!1));const e=t;Ut.lFrame.elementDepthCount--;const n=Ht();n.firstCreatePass&&(ye(n,t),ht(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&Zr(n,e,Vt(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&Zr(n,e,Vt(),e.stylesWithoutHost,!1)}function eo(t,e,n,i){Jr(t,e,n,i),to()}function no(t,e,n){const i=Vt(),s=Ht(),r=t+20,o=s.firstCreatePass?function(t,e,n,i,s){const r=e.consts,o=jt(r,i),a=Es(e,t,8,"ng-container",o);return null!==o&&dr(a,o,!0),Bs(e,n,a,jt(r,s)),null!==e.queries&&e.queries.elementStart(e,a),a}(r,s,i,e,n):s.data[r];Wt(o,!0);const a=i[r]=i[11].createComment("");Gi(s,i,a,o),xi(a,i),pt(o)&&(Ps(s,i,o),Is(s,o,i)),null!=n&&Ms(i,o)}function io(){let t=Yt();const e=Ht();Kt()?qt():(t=t.parent,Wt(t,!1)),e.firstCreatePass&&(ye(e,t),ht(t)&&e.queries.elementEnd(t))}function so(t,e,n){no(t,e,n),io()}function ro(){return Vt()}function oo(t){return!!t&&"function"==typeof t.then}function ao(t){return!!t&&"function"==typeof t.subscribe}const lo=ao;function co(t,e,n=!1,i){const s=Vt(),r=Ht(),o=Yt();return ho(r,s,s[11],o,t,e,n,i),co}function uo(t,e,n=!1,i){const s=Yt(),r=Vt(),o=Ht();return ho(o,r,lr(ie(o.data),s,r),s,t,e,n,i),uo}function ho(t,e,n,i,s,r,o=!1,a){const l=pt(i),c=t.firstCreatePass&&ar(t),u=or(e);let h=!0;if(3&i.type){const d=At(i,e),p=a?a(d):V,f=p.target||d,m=u.length,g=a?t=>a(kt(t[i.index])).target:i.index;if(St(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const s=t.cleanup;if(null!=s)for(let r=0;r<s.length-1;r+=2){const t=s[r];if(t===n&&s[r+1]===i){const t=e[7],n=s[r+2];return t.length>n?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,h=!1;else{r=fo(i,e,0,r,!1);const t=n.listen(p.name||f,s,r);u.push(r,t),c&&c.push(s,g,m,m+1)}}else r=fo(i,e,0,r,!0),f.addEventListener(s,r,o),u.push(r),c&&c.push(s,g,m,o)}else r=fo(i,e,0,r,!1);const d=i.outputs;let p;if(h&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let n=0;n<t;n+=2){const t=e[p[n]][p[n+1]].subscribe(r),o=u.length;u.push(r,t),c&&c.push(s,i.index,o,-(o+1))}}}function po(t,e,n,i){try{return!1!==n(i)}catch(s){return cr(t,s),!1}}function fo(t,e,n,i,s){return function n(r){if(r===Function)return i;const o=2&t.flags?It(t.index,e):e;0==(32&e[2])&&er(o);let a=po(e,0,i,r),l=n.__ngNextListenerFn__;for(;l;)a=po(e,0,l,r)&&a,l=l.__ngNextListenerFn__;return s&&!1===a&&(r.preventDefault(),r.returnValue=!1),a}}function mo(t=1){return function(t){return(Ut.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Ut.lFrame.contextLView))[8]}(t)}function go(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s<e.length;s++){const r=e[s];if("*"!==r){if(null===i?hs(t,r,!0):ds(i,r))return s}else n=s}return n}function _o(t){const e=Vt()[16][6];if(!e.projection){const n=e.projection=hn(t?t.length:1,null),i=n.slice();let s=e.child;for(;null!==s;){const e=t?go(s,t):0;null!==e&&(i[e]?i[e].projectionNext=s:n[e]=s,i[e]=s),s=s.next}}}function bo(t,e=0,n){const i=Vt(),s=Ht(),r=Es(s,20+t,16,null,n||null);null===r.projection&&(r.projection=e),qt(),64!=(64&r.flags)&&function(t,e,n){es(e[11],0,e,n,Hi(t,n,e),Ki(n.parent||e[6],n,e))}(s,i,r)}function yo(t,e,n){return vo(t,"",e,"",n),yo}function vo(t,e,n,i,s){const r=Vt(),o=$r(r,e,n,i);return o!==ms&&Us(Ht(),ge(),r,t,o,r[11],s,!1),vo}function wo(t,e,n,i,s,r,o,a,l){const c=Vt(),u=Wr(c,e,n,i,s,r,o,a);return u!==ms&&Us(Ht(),ge(),c,t,u,c[11],l,!1),wo}function Co(t,e,n,i,s){const r=t[n+1],o=null===e;let a=i?ys(r):ws(r),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];Oo(t[a],e)&&(l=!0,t[a+1]=i?Os(n):vs(n)),a=i?ys(n):ws(n)}l&&(t[n+1]=i?vs(r):Os(r))}function Oo(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&fn(t,e)>=0}const xo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function So(t){return t.substring(xo.key,xo.keyEnd)}function Eo(t,e){const n=xo.textEnd;return n===e?-1:(e=xo.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,xo.key=e,n),ko(t,e,n))}function ko(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function To(t,e,n){return Do(t,e,n,!1),To}function Ao(t,e){return Do(t,e,null,!0),Ao}function Ro(t,e){for(let n=function(t){return function(t){xo.key=0,xo.keyEnd=0,xo.value=0,xo.valueEnd=0,xo.textEnd=t.length}(t),Eo(t,ko(t,0,xo.textEnd))}(e);n>=0;n=Eo(e,n))dn(t,So(e),!0)}function Do(t,e,n,i){const s=Vt(),r=Ht(),o=te(2);r.firstUpdatePass&&Po(r,t,o,i),e!==ms&&Hr(s,o,e)&&jo(r,r.data[fe()],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=u(Un(t)))),t}(e,n),i,o)}function Io(t,e){return e>=t.expandoStartIndex}function Po(t,e,n,i){const s=t.data;if(null===s[n+1]){const r=s[fe()],o=Io(t,n);Uo(r,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const s=ie(t);let r=i?e.residualClasses:e.residualStyles;if(null===s)0===(i?e.classBindings:e.styleBindings)&&(n=Lo(n=Mo(null,t,e,n,i),e.attrs,i),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=Mo(s,t,e,n,i),null===r){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==ws(i))return t[ys(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=Mo(null,t,e,n[1],i),n=Lo(n,e.attrs,i),function(t,e,n,i){t[ys(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else r=function(t,e,n){let i;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r<s;r++)i=Lo(i,t[r].hostAttrs,n);return Lo(i,e.attrs,n)}(t,e,i)}return void 0!==r&&(i?e.residualClasses=r:e.residualStyles=r),n}(s,r,e,i),function(t,e,n,i,s,r){let o=r?e.classBindings:e.styleBindings,a=ys(o),l=ws(o);t[i]=n;let c,u=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||fn(t,c)>0)&&(u=!0)}else c=n;if(s)if(0!==l){const e=ys(t[a+1]);t[i+1]=bs(e,a),0!==e&&(t[e+1]=Cs(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=bs(a,0),0!==a&&(t[a+1]=Cs(t[a+1],i)),a=i;else t[i+1]=bs(l,0),0===a?a=i:t[l+1]=Cs(t[l+1],i),l=i;u&&(t[i+1]=vs(t[i+1])),Co(t,c,i,!0),Co(t,c,i,!1),function(t,e,n,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&fn(r,e)>=0&&(n[i+1]=Os(n[i+1]))}(e,c,t,i,r),o=bs(a,l),r?e.classBindings=o:e.styleBindings=o}(s,r,e,n,o,i)}}function Mo(t,e,n,i,s){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(r=e[a],i=Lo(i,r.hostAttrs,s),r!==t);)a++;return null!==t&&(n.directiveStylingLast=a),i}function Lo(t,e,n){const i=n?1:2;let s=-1;if(null!==e)for(let r=0;r<e.length;r++){const o=e[r];"number"==typeof o?s=o:s===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),dn(t,o,!!n||e[++r]))}return void 0===t?null:t}function jo(t,e,n,i,s,r,o,a){if(!(3&e.type))return;const l=t.data,c=l[a+1];No(1==(1&c)?Fo(l,e,n,s,ws(c),o):void 0)||(No(r)||2==(2&c)&&(r=Fo(l,null,n,s,a,o)),function(t,e,n,i,s){const r=St(t);if(e)s?r?t.addClass(n,i):n.classList.add(i):r?t.removeClass(n,i):n.classList.remove(i);else{let e=-1===i.indexOf("-")?void 0:Ri.DashCase;if(null==s)r?t.removeStyle(n,i,e):n.style.removeProperty(i);else{const o="string"==typeof s&&s.endsWith("!important");o&&(s=s.slice(0,-10),e|=Ri.Important),r?t.setStyle(n,i,s,e):n.style.setProperty(i,s,o?"important":"")}}}(i,o,Tt(fe(),n),s,r))}function Fo(t,e,n,i,s,r){const o=null===e;let a;for(;s>0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let u=n[s+1];u===ms&&(u=c?H:void 0);let h=c?pn(u,i):l===i?u:void 0;if(r&&!No(h)&&(h=pn(e,i)),No(h)&&(a=h,o))return a;const d=t[s+1];s=o?ys(d):ws(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=pn(t,i))}return a}function No(t){return void 0!==t}function Uo(t,e){return 0!=(t.flags&(e?16:32))}function Bo(t,e=""){const n=Vt(),i=Ht(),s=t+20,r=i.firstCreatePass?Es(i,s,1,e,null):i.data[s],o=n[s]=function(t,e){return St(t)?t.createText(e):t.createTextNode(e)}(n[11],e);Gi(i,n,o,r),Wt(r,!1)}function Vo(t){return Ho("",t,""),Vo}function Ho(t,e,n){const i=Vt(),s=$r(i,t,e,n);return s!==ms&&hr(i,fe(),s),Ho}function zo(t,e,n,i,s){const r=Vt(),o=function(t,e,n,i,s,r){const o=zr(t,Zt(),n,s);return te(2),o?e+_(n)+i+_(s)+r:ms}(r,t,e,n,i,s);return o!==ms&&hr(r,fe(),o),zo}function Yo(t,e,n,i,s,r,o){const a=Vt(),l=Wr(a,t,e,n,i,s,r,o);return l!==ms&&hr(a,fe(),l),Yo}function $o(t,e,n){!function(t,e,n,i){const s=Ht(),r=te(2);s.firstUpdatePass&&Po(s,null,r,true);const o=Vt();if(n!==ms&&Hr(o,r,n)){const i=s.data[fe()];if(Uo(i,true)&&!Io(s,r)){let t=i.classesWithoutHost;null!==t&&(n=h(t,n||"")),Zr(s,i,o,n,true)}else!function(t,e,n,i,s,r,o,a){s===ms&&(s=H);let l=0,c=0,u=0<s.length?s[0]:null,h=0<r.length?r[0]:null;for(;null!==u||null!==h;){const o=l<s.length?s[l+1]:void 0,d=c<r.length?r[c+1]:void 0;let p,f=null;u===h?(l+=2,c+=2,o!==d&&(f=h,p=d)):null===h||null!==u&&u<h?(l+=2,f=u):(c+=2,f=h,p=d),null!==f&&jo(t,e,n,i,f,p,true,a),u=l<s.length?s[l]:null,h=c<r.length?r[c]:null}}(s,i,o,o[11],o[r+1],o[r+1]=function(t,e,n){if(null==n||""===n)return H;const i=[],s=Un(n);if(Array.isArray(s))for(let r=0;r<s.length;r++)t(i,s[r],!0);else if("object"==typeof s)for(const r in s)s.hasOwnProperty(r)&&t(i,r,s[r]);else"string"==typeof s&&e(i,s);return i}(t,e,n),0,r)}}(dn,Ro,$r(Vt(),t,e,n))}function Wo(t,e,n){const i=Vt();return Hr(i,Jt(),e)&&Us(Ht(),ge(),i,t,e,i[11],n,!0),Wo}function Ko(t,e,n){const i=Vt();if(Hr(i,Jt(),e)){const s=Ht(),r=ge();Us(s,r,i,t,e,lr(ie(s.data),r,i),n,!0)}return Ko}const qo=void 0;var Go=["en",[["a","p"],["AM","PM"],qo],[["AM","PM"],qo,qo],[["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"]],qo,[["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"]],qo,[["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}",qo,"{1} 'at' {0}",qo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Qo={};function Xo(t,e,n){"string"!=typeof e&&(n=e,e=t[na.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),Qo[e]=t,n&&(Qo[e][na.ExtraData]=n)}function Zo(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=ea(e);if(n)return n;const i=e.split("-")[0];if(n=ea(i),n)return n;if("en"===i)return Go;throw new Error(`Missing locale data for the locale "${t}".`)}function Jo(t){return Zo(t)[na.CurrencyCode]||null}function ta(t){return Zo(t)[na.PluralCase]}function ea(t){return t in Qo||(Qo[t]=B.ng&&B.ng.common&&B.ng.common.locales&&B.ng.common.locales[t]),Qo[t]}var na=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});let ia="en-US";function sa(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error(`ASSERTION ERROR: ${t} [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(ia=t.toLowerCase().replace(/_/g,"-"))}function ra(t,e,n,i,s){if(t=f(t),Array.isArray(t))for(let r=0;r<t.length;r++)ra(t[r],e,n,i,s);else{const r=Ht(),o=Vt();let a=kr(t)?t:f(t.provide),l=xr(t);const c=Yt(),u=1048575&c.providerIndexes,h=c.directiveStart,d=c.providerIndexes>>20;if(kr(t)||!t.multi){const i=new Se(l,s,Gr),p=la(a,e,s?u:u+d,h);-1===p?(Ve(Fe(c,o),r,a),oa(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=la(a,e,u+d,h),f=la(a,e,u,u+d),m=p>=0&&n[p],g=f>=0&&n[f];if(s&&!g||!s&&!m){Ve(Fe(c,o),r,a);const u=function(t,e,n,i,s){const r=new Se(t,n,Gr);return r.multi=[],r.index=e,r.componentProviders=0,aa(r,s,i&&!n),r}(s?ua:ca,n.length,s,i,l);!s&&g&&(n[f].providerFactory=u),oa(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else oa(r,t,p>-1?p:f,aa(n[s?f:p],l,!s&&i));!s&&i&&g&&n[f].componentProviders++}}}function oa(t,e,n,i){const s=kr(e);if(s||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,r]):o[t+1].push(i,r)}else o.push(n,r)}}}function aa(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function la(t,e,n,i){for(let s=n;s<i;s++)if(e[s]===t)return s;return-1}function ca(t,e,n,i){return ha(this.multi,[])}function ua(t,e,n,i){const s=this.multi;let r;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=Ge(n,n[1],this.providerFactory.index,i);r=e.slice(0,t),ha(s,r);for(let n=t;n<e.length;n++)r.push(e[n])}else r=[],ha(s,r);return r}function ha(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function da(t,e=[]){return n=>{n.providersResolver=(n,i)=>function(t,e,n){const i=Ht();if(i.firstCreatePass){const s=ft(t);ra(n,i.data,i.blueprint,s,!0),ra(e,i.data,i.blueprint,s,!1)}}(n,i?i(t):t,e)}}class pa{}class fa{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${u(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let ma=(()=>{class t{}return t.NULL=new fa,t})();function ga(...t){}function _a(t,e){return new ya(At(t,e))}const ba=function(){return _a(Yt(),Vt())};let ya=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=ba,t})();function va(t){return t instanceof ya?t.nativeElement:t}class wa{}let Ca=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Oa(),t})();const Oa=function(){const t=Vt(),e=It(Yt().index,t);return function(t){return t[11]}(ct(e)?e:t)};let xa=(()=>{class t{}return t.\u0275prov=v({token:t,providedIn:"root",factory:()=>null}),t})();class Sa{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ea=new Sa("11.2.13");class ka{constructor(){}supports(t){return Ur(t)}create(t){return new Aa(t)}}const Ta=(t,e)=>e;class Aa{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Ta}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex<Pa(n,i,s)?e:n,o=Pa(r,i,s),a=r.currentIndex;if(r===n)i--,n=n._nextRemoved;else if(e=e._next,null==r.previousIndex)i++;else{s||(s=[]);const t=o-i,e=a-i;if(t!=e){for(let n=0;n<t;n++){const i=n<s.length?s[n]:s[n]=0,r=i+n;e<=r&&r<t&&(s[n]=i+1)}s[r.previousIndex]=e-t}}o!==a&&t(r,o,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!Ur(t))throw new Error(`Error trying to diff '${u(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,i,s=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],i=this._trackByFn(e,n),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,n,i,e)),Object.is(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,i,e),r=!0),s=s._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[Fr()]();let i;for(;!(i=n.next()).done;)e(i.value)}}(t,t=>{i=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,t,i,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,i,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):t=this._addAfter(new Ra(e,n),s,i),t}_verifyReinsertion(t,e,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ia),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ia),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Ra{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Da{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Ia{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Da,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Pa(t,e,n){const i=t.previousIndex;if(null===i)return i;let s=0;return n&&i<n.length&&(s=n[i]),i+e+s}class Ma{constructor(){}supports(t){return t instanceof Map||Br(t)}create(){return new La}}class La{constructor(){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}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Br(t)))throw new Error(`Error trying to diff '${u(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new ja(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class ja{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Fa(){return new Na([new ka])}let Na=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Fa()),deps:[[t,new Tn,new En]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=v({token:t,providedIn:"root",factory:Fa}),t})();function Ua(){return new Ba([new Ma])}let Ba=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Ua()),deps:[[t,new Tn,new En]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=v({token:t,providedIn:"root",factory:Ua}),t})();function Va(t,e,n,i,s=!1){for(;null!==n;){const r=e[n.index];if(null!==r&&i.push(kt(r)),ut(r))for(let t=10;t<r.length;t++){const e=r[t],n=e[1].firstChild;null!==n&&Va(e[1],e,n,i)}const o=n.type;if(8&o)Va(t,e,n.child,i);else if(32&o){const t=Di(n,e);let s;for(;s=t();)i.push(s)}else if(16&o){const t=Xi(e,n);if(Array.isArray(t))i.push(...t);else{const n=Ii(e[16]);Va(n[1],n,t,i,!0)}}n=s?n.projectionNext:n.next}return i}class Ha{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return Va(e,t,e.firstChild,[])}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(ut(t)){const e=t[8],n=e?e.indexOf(this):-1;n>-1&&(Ui(t,n),un(e,n))}this._attachedToViewContainer=!1}Bi(this._lView[1],this._lView)}onDestroy(t){Fs(this._lView[1],this._lView,null,t)}markForCheck(){er(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){nr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Qt(!0);try{nr(t,e,n)}finally{Qt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,ts(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class za extends Ha{constructor(t){super(t),this._view=t}detectChanges(){ir(this._view)}checkNoChanges(){!function(t){Qt(!0);try{ir(t)}finally{Qt(!1)}}(this._view)}get context(){return null}}const Ya=Wa;let $a=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ya,t.__ChangeDetectorRef__=!0,t})();function Wa(t=!1){return function(t,e,n){if(!n&&dt(t)){const n=It(t.index,e);return new Ha(n,n)}return 47&t.type?new Ha(e[16],e):null}(Yt(),Vt(),t)}const Ka=[new Ma],qa=new Na([new ka]),Ga=new Ba(Ka),Qa=function(){return tl(Yt(),Vt())};let Xa=(()=>{class t{}return t.__NG_ELEMENT_ID__=Qa,t})();const Za=Xa,Ja=class extends Za{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Ss(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),Ts(e,n,t),new Ha(n)}};function tl(t,e){return 4&t.type?new Ja(e,t,_a(t,e)):null}class el{}class nl{}const il=function(){return cl(Yt(),Vt())};let sl=(()=>{class t{}return t.__NG_ELEMENT_ID__=il,t})();const rl=sl,ol=class extends rl{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return _a(this._hostTNode,this._hostLView)}get injector(){return new Ze(this._hostTNode,this._hostLView)}get parentInjector(){const t=Be(this._hostTNode,this._hostLView);if(De(t)){const e=Pe(t,this._hostLView),n=Ie(t);return new Ze(e[1].data[n+8],e)}return new Ze(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=al(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,s){const r=n||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(el,null);t&&(s=t)}const o=t.create(r,i,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(ut(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new ol(e,e[6],e[3]);i.detach(i.indexOf(t))}}const s=this._adjustIndex(e),r=this._lContainer;!function(t,e,n,i){const s=10+i,r=n.length;i>0&&(n[s-1][4]=e),i<r-10?(e[4]=n[s],cn(n,10+i,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(i,n,r,s);const o=Zi(s,r),a=n[11],l=Wi(a,r[7]);return null!==l&&function(t,e,n,i,s,r){i[0]=s,i[6]=e,ts(t,i,n,1,s,r)}(i,r[6],a,n,l,o),t.attachToViewContainerRef(),cn(ll(r),s,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=al(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),n=Ui(this._lContainer,e);n&&(un(ll(this._lContainer),e),Bi(n[1],n))}detach(t){const e=this._adjustIndex(t,-1),n=Ui(this._lContainer,e);return n&&null!=un(ll(this._lContainer),e)?new Ha(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function al(t){return t[8]}function ll(t){return t[8]||(t[8]=[])}function cl(t,e){let n;const i=e[t.index];if(ut(i))n=i;else{let s;if(8&t.type)s=kt(i);else{const n=e[11];s=n.createComment("");const i=At(t,e);zi(n,Wi(n,i),s,function(t,e){return St(t)?t.nextSibling(e):e.nextSibling}(n,i),!1)}e[t.index]=n=Qs(i,e,s,t),tr(e,n)}return new ol(n,t,e)}const ul={};class hl extends ma{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=at(t);return new fl(e,this.ngModule)}}function dl(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const pl=new sn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Si});class fl extends pa{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(fs).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return dl(this.componentDef.inputs)}get outputs(){return dl(this.componentDef.outputs)}create(t,e,n,i){const s=(i=i||this.ngModule)?function(t,e){return{get:(n,i,s)=>{const r=t.get(n,ul,s);return r!==ul||i===ul?r:e.get(n,i,s)}}}(t,i.injector):t,r=s.get(wa,Et),o=s.get(xa,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(St(t))return t.selectRootElement(e,n===L.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Fi(r.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:Si,clean:rr,playerHandler:null,flags:0},d=js(0,null,null,1,0,null,null,null,null,null),p=Ss(null,d,h,u,null,null,r,a,o,s);let f,m;le(p);try{const t=function(t,e,n,i,s,r){const o=n[1];n[20]=t;const a=Es(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(dr(a,l,!0),null!==t&&(Ee(s,t,l),null!==a.classes&&is(s,t,a.classes),null!==a.styles&&ns(s,t,a.styles)));const c=i.createRenderer(t,e),u=Ss(n,Ls(e),null,e.onPush?64:16,n[20],a,i,c,null,null);return o.firstCreatePass&&(Ve(Fe(a,n),o,e.type),zs(o,a),$s(a,n.length,1)),tr(n,u),n[20]=u}(c,this.componentDef,p,r,a);if(c)if(n)Ee(a,c,["ng-version",Ea.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,s=2;for(;i<t.length;){let r=t[i];if("string"==typeof r)2===s?""!==r&&e.push(r,t[++i]):8===s&&n.push(r);else{if(!cs(s))break;s=r}i++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&Ee(a,c,t),e&&e.length>0&&is(a,c,e.join(" "))}if(m=Rt(d,20),void 0!==e){const t=m.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const i=e[n];t.push(null!=i?Array.from(i):null)}}f=function(t,e,n,i,s){const r=n[1],o=function(t,e,n){const i=Yt();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Ws(t,i,e,ks(t,e,1,null),n));const s=Ge(e,t,i.directiveStart,i);xi(s,e);const r=At(i,e);return r&&xi(r,e),s}(r,n,e);if(i.components.push(o),t[8]=o,s&&s.forEach(t=>t(o,e)),e.contentQueries){const t=Yt();e.contentQueries(1,o,t.directiveStart)}const a=Yt();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(me(a.index),Vs(n[1],a,0,a.directiveStart,a.directiveEnd,e),Hs(e,o)),o}(t,this.componentDef,p,h,[Rr]),Ts(d,p,null)}finally{pe()}return new ml(this.componentType,f,_a(m,p),p,m)}}class ml extends class{}{constructor(t,e,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new za(i),this.componentType=t}get injector(){return new Ze(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const gl=new Map;class _l extends el{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new hl(this);const n=lt(t),i=t[q]||null;i&&sa(i),this._bootstrapComponents=Ai(n.bootstrap),this._r3Injector=wr(t,e,[{provide:el,useValue:this},{provide:ma,useValue:this.componentFactoryResolver}],u(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Ar.THROW_IF_NOT_FOUND,n=A.Default){return t===Ar||t===el||t===pr?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class bl extends nl{constructor(t){super(),this.moduleType=t,null!==lt(t)&&function(t){const e=new Set;!function t(n){const i=lt(n,!0),s=i.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${u(e)} vs ${u(e.name)}`)}(s,gl.get(s),n),gl.set(s,n));const r=Ai(i.imports);for(const o of r)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new _l(this.moduleType,t)}}function yl(t,e,n,i){return Cl(Vt(),Xt(),t,e,n,i)}function vl(t,e,n,i,s){return Ol(Vt(),Xt(),t,e,n,i,s)}function wl(t,e){const n=t[e];return n===ms?void 0:n}function Cl(t,e,n,i,s,r){const o=e+n;return Hr(t,o,s)?Vr(t,o+1,r?i.call(r,s):i(s)):wl(t,o+1)}function Ol(t,e,n,i,s,r,o){const a=e+n;return zr(t,a,s,r)?Vr(t,a+2,o?i.call(o,s,r):i(s,r)):wl(t,a+2)}function xl(t,e){const n=Ht();let i;const s=t+20;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new g("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,i.onDestroy)):i=n.data[s];const r=i.factory||(i.factory=mt(i.type)),o=D(Gr);try{const t=Le(!1),e=r();return Le(t),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(n,Vt(),s,e),e}finally{D(o)}}function Sl(t,e,n){const i=t+20,s=Vt(),r=Dt(s,i);return Tl(s,kl(s,i)?Cl(s,Xt(),e,r.transform,n,r):r.transform(n))}function El(t,e,n,i){const s=t+20,r=Vt(),o=Dt(r,s);return Tl(r,kl(r,s)?Ol(r,Xt(),e,o.transform,n,i,o):o.transform(n,i))}function kl(t,e){return t[1].data[e].pure}function Tl(t,e){return Nr.isWrapped(e)&&(e=Nr.unwrap(e),t[Zt()]=ms),e}function Al(t){return e=>{setTimeout(t,void 0,e)}}const Rl=class extends i.a{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var i,r,o;let a=t,l=e||(()=>null),c=n;if(t&&"object"==typeof t){const e=t;a=null===(i=e.next)||void 0===i?void 0:i.bind(e),l=null===(r=e.error)||void 0===r?void 0:r.bind(e),c=null===(o=e.complete)||void 0===o?void 0:o.bind(e)}this.__isAsync&&(l=Al(l),a&&(a=Al(a)),c&&(c=Al(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof s.a&&t.add(u),u}};function Dl(){return this._results[Fr()]()}class Il{constructor(t=!1){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;const e=Fr(),n=Il.prototype;n[e]||(n[e]=Dl)}get changes(){return this._changes||(this._changes=new Rl)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){this.dirty=!1;const n=an(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++){let s=t[i],r=e[i];if(n&&(s=n(s),r=n(r)),r!==s)return!1}return!0}(this._results,n,e))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Pl{constructor(t){this.queryList=t,this.matches=null}clone(){return new Pl(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ml{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);i.push(this.queries[n.indexInDeclarationView].clone())}return new Ml(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==ql(t,e).matches&&this.queries[e].setDirty()}}class Ll{constructor(t,e,n=null){this.predicate=t,this.flags=e,this.read=n}}class jl{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const i=null!==e?e.length:0,s=this.getByIndex(n).embeddedTView(t,i);s&&(s.indexInDeclarationView=n,null!==e?e.push(s):e=[s])}return null!==e?new jl(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Fl{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new Fl(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const n=this.metadata.predicate;if(Array.isArray(n))for(let i=0;i<n.length;i++){const s=n[i];this.matchTNodeWithReadOption(t,e,Nl(e,s)),this.matchTNodeWithReadOption(t,e,qe(e,t,s,!1,!1))}else n===Xa?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,qe(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===ya||i===sl||i===Xa&&4&e.type)this.addMatch(e.index,-2);else{const n=qe(e,t,i,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function Nl(t,e){const n=t.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===e)return n[i+1];return null}function Ul(t,e,n,i){return-1===n?function(t,e){return 11&t.type?_a(t,e):4&t.type?tl(t,e):null}(e,t):-2===n?function(t,e,n){return n===ya?_a(e,t):n===Xa?tl(e,t):n===sl?cl(e,t):void 0}(t,e,i):Ge(t,t[1],n,e)}function Bl(t,e,n,i){const s=e[19].queries[i];if(null===s.matches){const i=t.data,r=n.matches,o=[];for(let t=0;t<r.length;t+=2){const s=r[t];o.push(s<0?null:Ul(e,i[s],r[t+1],n.metadata.read))}s.matches=o}return s.matches}function Vl(t,e,n,i){const s=t.queries.getByIndex(n),r=s.matches;if(null!==r){const o=Bl(t,e,s,n);for(let t=0;t<r.length;t+=2){const n=r[t];if(n>0)i.push(o[t/2]);else{const s=r[t+1],o=e[-n];for(let t=10;t<o.length;t++){const e=o[t];e[17]===e[3]&&Vl(e[1],e,s,i)}if(null!==o[9]){const t=o[9];for(let e=0;e<t.length;e++){const n=t[e];Vl(n[1],n,s,i)}}}}}return i}function Hl(t){const e=Vt(),n=Ht(),i=se();re(i+1);const s=ql(n,i);if(t.dirty&&Mt(e)===(2==(2&s.metadata.flags))){if(null===s.matches)t.reset([]);else{const r=s.crossesNgTemplate?Vl(n,e,i,[]):Bl(n,e,s,i);t.reset(r,va),t.notifyOnChanges()}return!0}return!1}function zl(t,e,n){const i=Ht();i.firstCreatePass&&(Kl(i,new Ll(t,e,n),-1),2==(2&e)&&(i.staticViewQueries=!0)),Wl(i,Vt(),e)}function Yl(t,e,n,i){const s=Ht();if(s.firstCreatePass){const r=Yt();Kl(s,new Ll(e,n,i),r.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(n.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(s,t),2==(2&n)&&(s.staticContentQueries=!0)}Wl(s,Vt(),n)}function $l(){return t=Vt(),e=se(),t[19].queries[e].queryList;var t,e}function Wl(t,e,n){const i=new Il(4==(4&n));Fs(t,e,i,i.destroy),null===e[19]&&(e[19]=new Ml),e[19].queries.push(new Pl(i))}function Kl(t,e,n){null===t.queries&&(t.queries=new jl),t.queries.track(new Fl(e,n))}function ql(t,e){return t.queries.getByIndex(e)}function Gl(t=A.Default){const e=Wa(!0);if(null!=e||t&A.Optional)return e;y("ChangeDetectorRef")}const Ql=new sn("Application Initializer");let Xl=(()=>{class t{constructor(t){this.appInits=t,this.resolve=ga,this.reject=ga,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();oo(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(wn(Ql,8))},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();const Zl=new sn("AppId"),Jl={provide:Zl,useFactory:function(){return`${tc()}${tc()}${tc()}`},deps:[]};function tc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ec=new sn("Platform Initializer"),nc=new sn("Platform ID"),ic=new sn("appBootstrapListener");let sc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();const rc=new sn("LocaleId"),oc=new sn("DefaultCurrencyCode");class ac{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const lc=function(t){return new bl(t)},cc=lc,uc=function(t){return Promise.resolve(lc(t))},hc=function(t){const e=lc(t),n=Ai(lt(t).declarations).reduce((t,e)=>{const n=at(e);return n&&t.push(new fl(n)),t},[]);return new ac(e,n)},dc=hc,pc=function(t){return Promise.resolve(hc(t))};let fc=(()=>{class t{constructor(){this.compileModuleSync=cc,this.compileModuleAsync=uc,this.compileModuleAndAllComponentsSync=dc,this.compileModuleAndAllComponentsAsync=pc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();const mc=(()=>Promise.resolve(0))();function gc(t){"undefined"==typeof Zone?mc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class _c{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Rl(!1),this.onMicrotaskEmpty=new Rl(!1),this.onStable=new Rl(!1),this.onError=new Rl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!n&&e,this.shouldCoalesceRunChangeDetection=n,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=B.requestAnimationFrame,e=B.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(B,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,vc(t),yc(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),vc(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,s,r,o,a)=>{try{return wc(t),n.invokeTask(s,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&e(),Cc(t)}},onInvoke:(n,i,s,r,o,a,l)=>{try{return wc(t),n.invoke(s,r,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),Cc(t)}},onHasTask:(e,n,i,s)=>{e.hasTask(i,s),n===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,vc(t),yc(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,i,s)=>(e.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!_c.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(_c.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+i,t,bc,ga,ga);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const bc={};function yc(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function vc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function wc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Cc(t){t._nesting--,yc(t)}class Oc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Rl,this.onMicrotaskEmpty=new Rl,this.onStable=new Rl,this.onError=new Rl}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let xc=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{_c.assertNotInAngularZone(),gc(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())gc(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(wn(_c))},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})(),Sc=(()=>{class t{constructor(){this._applications=new Map,Ac.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Ac.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();class Ec{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function kc(t){Ac=t}let Tc,Ac=new Ec,Rc=!0,Dc=!1;function Ic(){return Dc=!0,Rc}function Pc(){if(Dc)throw new Error("Cannot enable prod mode after platform setup.");Rc=!1}const Mc=new sn("AllowMultipleToken");class Lc{constructor(t,e){this.name=t,this.token=e}}function jc(t,e,n=[]){const i=`Platform: ${e}`,s=new sn(i);return(e=[])=>{let r=Fc();if(!r||r.injector.get(Mc,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:mr,useValue:"platform"});!function(t){if(Tc&&!Tc.destroyed&&!Tc.injector.get(Mc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Tc=t.get(Nc);const e=t.get(ec,null);e&&e.forEach(t=>t())}(Ar.create({providers:t,name:i}))}return function(t){const e=Fc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function Fc(){return Tc&&!Tc.destroyed?Tc:null}let Nc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Oc:("zone.js"===t?void 0:t)||new _c({enableLongStackTrace:Ic(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),i=[{provide:_c,useValue:n}];return n.run(()=>{const e=Ar.create({providers:i,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(Oi,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{r.handleError(t)}});s.onDestroy(()=>{Vc(this._modules,s),t.unsubscribe()})}),function(t,e,n){try{const i=n();return oo(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(r,n,()=>{const t=s.injector.get(Xl);return t.runInitializers(),t.donePromise.then(()=>(sa(s.injector.get(rc,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=Uc({},e);return function(t,e,n){const i=new bl(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Bc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${u(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(wn(Ar))},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();function Uc(t,e){return Array.isArray(e)?e.reduce(Uc,t):Object.assign(Object.assign({},t),e)}let Bc=(()=>{class t{constructor(t,e,n,i,s){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new r.a(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),c=new r.a(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{_c.assertNotInAngularZone(),gc(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{_c.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(l,c.pipe(Object(a.a)()))}bootstrap(t,e){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.");let n;n=t instanceof pa?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(el),s=n.create(Ar.NULL,[],e||n.selector,i),r=s.location.nativeElement,o=s.injector.get(xc,null),a=o&&s.injector.get(Sc);return o&&a&&a.registerApplication(r,o),s.onDestroy(()=>{this.detachView(s.hostView),Vc(this.components,s),a&&a.unregisterApplication(r)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Vc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(ic,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(wn(_c),wn(Ar),wn(Oi),wn(ma),wn(Xl))},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();function Vc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Hc{}class zc{}const Yc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let $c=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Yc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n("zn8P")(e).then(t=>t[i]).then(t=>Wc(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),s="NgFactory";return void 0===i&&(i="default",s=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+s]).then(t=>Wc(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(wn(fc),wn(zc,8))},t.\u0275prov=v({token:t,factory:t.\u0275fac}),t})();function Wc(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}class Kc extends $a{}class qc extends Kc{}const Gc=function(t){return null},Qc=jc(null,"core",[{provide:nc,useValue:"unknown"},{provide:Nc,deps:[Ar]},{provide:Sc,deps:[]},{provide:sc,deps:[]}]),Xc=[{provide:Bc,useClass:Bc,deps:[_c,Ar,Oi,ma,Xl]},{provide:pl,deps:[_c],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Xl,useClass:Xl,deps:[[new En,Ql]]},{provide:fc,useClass:fc,deps:[]},Jl,{provide:Na,useFactory:function(){return qa},deps:[]},{provide:Ba,useFactory:function(){return Ga},deps:[]},{provide:rc,useFactory:function(t){return sa(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new Sn(rc),new En,new Tn]]},{provide:oc,useValue:"USD"}];let Zc=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(wn(Bc))},t.\u0275mod=nt({type:t}),t.\u0275inj=w({providers:Xc}),t})()},gRHU:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("2fFW"),s=n("NJ4a");const r={closed:!0,next(t){},error(t){if(i.a.useDeprecatedSynchronousErrorHandling)throw t;Object(s.a)(t)},complete(){}}},jZKg:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("HDdC"),s=n("quSY");function r(t,e){return new i.a(n=>{const i=new s.a;let r=0;return i.add(e.schedule(function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}},jtHE:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("XNiG"),s=n("qgXg"),r=n("quSY"),o=n("pxpQ"),a=n("9ppp"),l=n("Ylt2");class c extends i.a{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new u(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=n.length;let c;if(this.closed)throw new a.a;if(this.isStopped||this.hasError?c=r.a.EMPTY:(this.observers.push(t),c=new l.a(this,t)),i&&t.add(t=new o.a(t,i)),e)for(let r=0;r<s&&!t.closed;r++)t.next(n[r]);else for(let r=0;r<s&&!t.closed;r++)t.next(n[r].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),c}_getNow(){return(this.scheduler||s.a).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,i=this._events,s=i.length;let r=0;for(;r<s&&!(t-i[r].time<n);)r++;return s>e&&(r=Math.max(r,s-e)),r>0&&i.splice(0,r),i}}class u{constructor(t,e){this.time=t,this.value=e}}},kJWO:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},l7GE:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");class s extends i.a{notifyNext(t,e,n,i,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},l7P3:function(t,e,n){"use strict";n.d(e,"a",function(){return U}),n.d(e,"b",function(){return b}),n.d(e,"c",function(){return _}),n.d(e,"d",function(){return C}),n.d(e,"e",function(){return $}),n.d(e,"f",function(){return Y}),n.d(e,"g",function(){return G}),n.d(e,"h",function(){return Z}),n.d(e,"i",function(){return nt}),n.d(e,"j",function(){return Rt}),n.d(e,"k",function(){return Dt}),n.d(e,"l",function(){return At}),n.d(e,"m",function(){return W}),n.d(e,"n",function(){return H}),n.d(e,"o",function(){return f}),n.d(e,"p",function(){return ht}),n.d(e,"q",function(){return ct}),n.d(e,"r",function(){return rt}),n.d(e,"s",function(){return m}),n.d(e,"t",function(){return st});var i=n("fXoL"),s=n("2Vo4"),r=n("HDdC"),o=n("XNiG"),a=n("qgXg"),l=n("pxpQ"),c=n("zp1y"),u=n("Kqap"),h=n("lJxs"),d=n("/uUt");const p={};function f(t,e){if(p[t]=(p[t]||0)+1,"function"==typeof e)return g(t,(...n)=>Object.assign(Object.assign({},e(...n)),{type:t}));switch(e?e._as:"empty"){case"empty":return g(t,()=>({type:t}));case"props":return g(t,e=>Object.assign(Object.assign({},e),{type:t}));default:throw new Error("Unexpected config.")}}function m(){return{_as:"props",_p:void 0}}function g(t,e){return Object.defineProperty(e,"type",{value:t,writable:!1})}const _="@ngrx/store/init";let b=(()=>{class t extends s.a{constructor(){super({type:_})}next(t){if("function"==typeof t)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===t)throw new TypeError("Actions must be objects");if(void 0===t.type)throw new TypeError("Actions must have a type property");super.next(t)}complete(){}ngOnDestroy(){super.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const y=[b],v=new i.s("@ngrx/store Internal Root Guard"),w=new i.s("@ngrx/store Internal Initial State"),C=new i.s("@ngrx/store Initial State"),O=new i.s("@ngrx/store Reducer Factory"),x=new i.s("@ngrx/store Internal Reducer Factory Provider"),S=new i.s("@ngrx/store Initial Reducers"),E=new i.s("@ngrx/store Internal Initial Reducers"),k=new i.s("@ngrx/store Store Features"),T=new i.s("@ngrx/store Internal Store Reducers"),A=new i.s("@ngrx/store Internal Feature Reducers"),R=new i.s("@ngrx/store Internal Feature Configs"),D=new i.s("@ngrx/store Internal Store Features"),I=new i.s("@ngrx/store Internal Feature Reducers Token"),P=new i.s("@ngrx/store Feature Reducers"),M=new i.s("@ngrx/store User Provided Meta Reducers"),L=new i.s("@ngrx/store Meta Reducers"),j=new i.s("@ngrx/store Internal Resolved Meta Reducers"),F=new i.s("@ngrx/store User Runtime Checks Config"),N=new i.s("@ngrx/store Internal User Runtime Checks Config"),U=new i.s("@ngrx/store Internal Runtime Checks"),B=new i.s("@ngrx/store Check if Action types are unique");function V(t,e={}){const n=Object.keys(t),i={};for(let r=0;r<n.length;r++){const e=n[r];"function"==typeof t[e]&&(i[e]=t[e])}const s=Object.keys(i);return function(t,n){t=void 0===t?e:t;let r=!1;const o={};for(let e=0;e<s.length;e++){const a=s[e],l=t[a],c=(0,i[a])(l,n);o[a]=c,r=r||c!==l}return r?o:t}}function H(...t){return function(e){if(0===t.length)return e;const n=t[t.length-1];return t.slice(0,-1).reduceRight((t,e)=>e(t),n(e))}}function z(t,e){return Array.isArray(e)&&e.length>0&&(t=H.apply(null,[...e,t])),(e,n)=>{const i=t(e);return(t,e)=>i(t=void 0===t?n:t,e)}}class Y extends r.a{}class $ extends b{}const W="@ngrx/store/update-reducers";let K=(()=>{class t extends s.a{constructor(t,e,n,i){super(i(n,e)),this.dispatcher=t,this.initialState=e,this.reducers=n,this.reducerFactory=i}addFeature(t){this.addFeatures([t])}addFeatures(t){const e=t.reduce((t,{reducers:e,reducerFactory:n,metaReducers:i,initialState:s,key:r})=>{const o="function"==typeof e?function(t){const e=Array.isArray(t)&&t.length>0?H(...t):t=>t;return(t,n)=>(t=e(t),(e,i)=>t(e=void 0===e?n:e,i))}(i)(e,s):z(n,i)(e,s);return t[r]=o,t},{});this.addReducers(e)}removeFeature(t){this.removeFeatures([t])}removeFeatures(t){this.removeReducers(t.map(t=>t.key))}addReducer(t,e){this.addReducers({[t]:e})}addReducers(t){this.reducers=Object.assign(Object.assign({},this.reducers),t),this.updateReducers(Object.keys(t))}removeReducer(t){this.removeReducers([t])}removeReducers(t){t.forEach(t=>{var e,n;this.reducers=(e=this.reducers,n=t,Object.keys(e).filter(t=>t!==n).reduce((t,n)=>Object.assign(t,{[n]:e[n]}),{}))}),this.updateReducers(t)}updateReducers(t){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:W,features:t})}ngOnDestroy(){this.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.Yb($),i.Yb(C),i.Yb(S),i.Yb(O))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const q=[K,{provide:Y,useExisting:K},{provide:$,useExisting:b}];let G=(()=>{class t extends o.a{ngOnDestroy(){this.complete()}}return t.\u0275fac=function(e){return Q(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const Q=i.Wb(G),X=[G];class Z extends r.a{}let J=(()=>{class t extends s.a{constructor(t,e,n,i){super(i);const s={state:i},r=t.pipe(Object(l.b)(a.b)).pipe(Object(c.a)(e)).pipe(Object(u.a)(tt,s));this.stateSubscription=r.subscribe(({state:t,action:e})=>{this.next(t),n.next(e)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(b),i.Yb(Y),i.Yb(G),i.Yb(C))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t.INIT=_,t})();function tt(t={state:void 0},[e,n]){const{state:i}=t;return{state:n(i,e),action:e}}const et=[J,{provide:Z,useExisting:J}];let nt=(()=>{class t extends r.a{constructor(t,e,n){super(),this.actionsObserver=e,this.reducerManager=n,this.source=t}select(t,...e){return st.call(null,t,...e)(this)}lift(e){const n=new t(this,this.actionsObserver,this.reducerManager);return n.operator=e,n}dispatch(t){this.actionsObserver.next(t)}next(t){this.actionsObserver.next(t)}error(t){this.actionsObserver.error(t)}complete(){this.actionsObserver.complete()}addReducer(t,e){this.reducerManager.addReducer(t,e)}removeReducer(t){this.reducerManager.removeReducer(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Z),i.Yb(b),i.Yb(K))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const it=[nt];function st(t,e,...n){return function(i){let s;if("string"==typeof t){const r=[e,...n].filter(Boolean);s=i.pipe(function(...t){const e=t.length;if(0===e)throw new Error("list of properties cannot be empty.");return n=>Object(h.a)(function(t,e){return n=>{let i=n;for(let s=0;s<e;s++){const e=null!=i?i[t[s]]:void 0;if(void 0===e)return;i=e}return i}}(t,e))(n)}(t,...r))}else{if("function"!=typeof t)throw new TypeError(`Unexpected type '${typeof t}' in select operator, expected 'string' or 'function'`);s=i.pipe(Object(h.a)(n=>t(n,e)))}return s.pipe(Object(d.a)())}}function rt(){return!1}function ot(t,e){return t===e}function at(t,e,n){for(let i=0;i<t.length;i++)if(!n(t[i],e[i]))return!0;return!1}function lt(t,e=ot,n=ot){let i,s=null,r=null;return{memoized:function(){if(void 0!==i)return i.result;if(!s)return r=t.apply(null,arguments),s=arguments,r;if(!at(arguments,s,e))return r;const o=t.apply(null,arguments);return s=arguments,n(r,o)?r:(r=o,o)},reset:function(){s=null,r=null},setResult:function(t){i={result:t}},clearResult:function(){i=void 0}}}function ct(...t){return function(t,e={stateFn:ut}){return function(...n){let i=n;if(Array.isArray(i[0])){const[t,...e]=i;i=[...t,...e]}const s=i.slice(0,i.length-1),r=i[i.length-1],o=s.filter(t=>t.release&&"function"==typeof t.release),a=t(function(...t){return r.apply(null,t)}),l=lt(function(t,n){return e.stateFn.apply(null,[t,s,n,a])});return Object.assign(l.memoized,{release:function(){l.reset(),a.reset(),o.forEach(t=>t.release())},projector:a.memoized,setResult:l.setResult,clearResult:l.clearResult})}}(lt)(...t)}function ut(t,e,n,i){if(void 0===n){const n=e.map(e=>e(t));return i.memoized.apply(null,n)}const s=e.map(e=>e(t,n));return i.memoized.apply(null,[...s,n])}function ht(t){return ct(e=>{const n=e[t];return!Object(i.Y)()||t in e||console.warn(`@ngrx/store: The feature name "${t}" does not exist in the state, therefore createFeatureSelector cannot access it.  Be sure it is imported in a loaded module using StoreModule.forRoot('${t}', ...) or StoreModule.forFeature('${t}', ...).  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},t=>t)}const dt="https://ngrx.io/guide/store/configuration/runtime-checks";function pt(t){return void 0===t}function ft(t){return null===t}function mt(t){return Array.isArray(t)}function gt(t){return"object"==typeof t&&null!==t}function _t(t){return"function"==typeof t}function bt(t){Object.freeze(t);const e=_t(t);return Object.getOwnPropertyNames(t).forEach(n=>{if(!n.startsWith("\u0275")&&function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(t,n)&&(!e||"caller"!==n&&"callee"!==n&&"arguments"!==n)){const e=t[n];!gt(e)&&!_t(e)||Object.isFrozen(e)||bt(e)}}),t}function yt(t,e=[]){return(pt(t)||ft(t))&&0===e.length?{path:["root"],value:t}:Object.keys(t).reduce((n,i)=>{if(n)return n;const s=t[i];return function(t){return _t(t)&&t.hasOwnProperty("\u0275cmp")}(s)?n:!(pt(s)||ft(s)||function(t){return"number"==typeof t}(s)||function(t){return"boolean"==typeof t}(s)||function(t){return"string"==typeof t}(s)||mt(s))&&(function(t){if(!function(t){return gt(t)&&!mt(t)}(t))return!1;const e=Object.getPrototypeOf(t);return e===Object.prototype||null===e}(s)?yt(s,[...e,i]):{path:[...e,i],value:s})},!1)}function vt(t,e){if(!1===t)return;const n=t.path.join("."),i=new Error(`Detected unserializable ${e} at "${n}". ${dt}#strict${e}serializability`);throw i.value=t.value,i.unserializablePath=n,i}function wt(t){return Object(i.Y)()?Object.assign({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},t):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function Ct({strictActionSerializability:t,strictStateSerializability:e}){return n=>t||e?function(t,e){return function(n,i){e.action(i)&&vt(yt(i),"action");const s=t(n,i);return e.state()&&vt(yt(s),"state"),s}}(n,{action:e=>t&&!xt(e),state:()=>e}):n}function Ot({strictActionImmutability:t,strictStateImmutability:e}){return n=>t||e?function(t,e){return function(n,i){const s=e.action(i)?bt(i):i,r=t(n,s);return e.state()?bt(r):r}}(n,{action:e=>t&&!xt(e),state:()=>e}):n}function xt(t){return t.type.startsWith("@ngrx")}function St({strictActionWithinNgZone:t}){return e=>t?function(t,e){return function(n,s){if(e.action(s)&&!i.B.isInAngularZone())throw new Error(`Action '${s.type}' running outside NgZone. ${dt}#strictactionwithinngzone`);return t(n,s)}}(e,{action:e=>t&&!xt(e)}):e}function Et(){return[{provide:B,multi:!0,deps:[U],useFactory:Tt}]}function kt(t){return t}function Tt(t){if(!t.strictActionTypeUniqueness)return;const e=Object.entries(p).filter(([,t])=>t>1).map(([t])=>t);if(e.length)throw new Error(`Action types are registered more than once, ${e.map(t=>`"${t}"`).join(", ")}. ${dt}#strictactiontypeuniqueness`)}let At=(()=>{class t{constructor(t,e,n,i,s,r){}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(b),i.Yb(Y),i.Yb(G),i.Yb(nt),i.Yb(v,8),i.Yb(B,8))},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({}),t})(),Rt=(()=>{class t{constructor(t,e,n,i,s){this.features=t,this.featureReducers=e,this.reducerManager=n;const r=t.map((t,n)=>{const i=e.shift()[n];return Object.assign(Object.assign({},t),{reducers:i,initialState:Lt(t.initialState)})});n.addFeatures(r)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(D),i.Yb(P),i.Yb(K),i.Yb(At),i.Yb(B,8))},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({}),t})(),Dt=(()=>{class t{static forRoot(t,e={}){return{ngModule:At,providers:[{provide:v,useFactory:Ft,deps:[[nt,new i.C,new i.M]]},{provide:w,useValue:e.initialState},{provide:C,useFactory:Lt,deps:[w]},{provide:E,useValue:t},{provide:T,useExisting:t instanceof i.s?t:E},{provide:S,deps:[i.t,E,[new i.q(T)]],useFactory:It},{provide:M,useValue:e.metaReducers?e.metaReducers:[]},{provide:j,deps:[L,M],useFactory:jt},{provide:x,useValue:e.reducerFactory?e.reducerFactory:V},{provide:O,deps:[x,j],useFactory:z},y,q,X,et,it,(n=e.runtimeChecks,[{provide:N,useValue:n},{provide:F,useFactory:kt,deps:[N]},{provide:U,deps:[F],useFactory:wt},{provide:L,multi:!0,deps:[U],useFactory:Ot},{provide:L,multi:!0,deps:[U],useFactory:Ct},{provide:L,multi:!0,deps:[U],useFactory:St}]),Et()]};var n}static forFeature(t,e,n={}){return{ngModule:Rt,providers:[{provide:R,multi:!0,useValue:t instanceof Object?{}:n},{provide:k,multi:!0,useValue:{key:t instanceof Object?t.name:t,reducerFactory:n instanceof i.s||!n.reducerFactory?V:n.reducerFactory,metaReducers:n instanceof i.s||!n.metaReducers?[]:n.metaReducers,initialState:n instanceof i.s||!n.initialState?void 0:n.initialState}},{provide:D,deps:[i.t,R,k],useFactory:Pt},{provide:A,multi:!0,useValue:t instanceof Object?t.reducer:e},{provide:I,multi:!0,useExisting:e instanceof i.s?e:A},{provide:P,multi:!0,deps:[i.t,A,[new i.q(I)]],useFactory:Mt},Et()]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({}),t})();function It(t,e){return e instanceof i.s?t.get(e):e}function Pt(t,e,n){return n.map((n,s)=>{if(e[s]instanceof i.s){const i=t.get(e[s]);return{key:n.key,reducerFactory:i.reducerFactory?i.reducerFactory:V,metaReducers:i.metaReducers?i.metaReducers:[],initialState:i.initialState}}return n})}function Mt(t,e){return e.map(e=>e instanceof i.s?t.get(e):e)}function Lt(t){return"function"==typeof t?t():t}function jt(t,e){return t.concat(e)}function Ft(t){if(t)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature() instead.");return"guarded"}},lJxs:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");function s(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new r(t,e))}}class r{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.project,this.thisArg))}}class o extends i.a{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},mCNh:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return r});var i=n("SpAZ");function s(...t){return r(t)}function r(t){return 0===t.length?i.a:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}},mlxB:function(t,e,n){"use strict";function i(t){return t instanceof Date&&!isNaN(+t)}n.d(e,"a",function(){return i})},n6bG:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.d(e,"a",function(){return i})},ngJS:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=t=>e=>{for(let n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.complete()}},pLZG:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");function s(t,e){return function(n){return n.lift(new r(t,e))}}class r{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.predicate,this.thisArg))}}class o extends i.a{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}},pxpQ:function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return a});var i=n("7o/Q"),s=n("WMd4");function r(t,e=0){return function(n){return n.lift(new o(t,e))}}class o{constructor(t,e=0){this.scheduler=t,this.delay=e}call(t,e){return e.subscribe(new a(t,this.scheduler,this.delay))}}class a extends i.a{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(a.dispatch,this.delay,new l(t,this.destination)))}_next(t){this.scheduleMessage(s.a.createNext(t))}_error(t){this.scheduleMessage(s.a.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(s.a.createComplete()),this.unsubscribe()}}class l{constructor(t,e){this.notification=t,this.destination=e}}},qgXg:function(t,e,n){"use strict";n.d(e,"b",function(){return a}),n.d(e,"a",function(){return l});var i=n("3N8a");class s extends i.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}var r=n("IjjT");class o extends r.a{}const a=new o(s),l=a},quSY:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("DH7j"),s=n("XoHu"),r=n("n6bG");const o=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let a=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:a,_unsubscribe:c,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(Object(r.a)(c)){a&&(this._unsubscribe=void 0);try{c.call(this)}catch(h){e=h instanceof o?l(h.errors):[h]}}if(Object(i.a)(u)){let t=-1,n=u.length;for(;++t<n;){const n=u[t];if(Object(s.a)(n))try{n.unsubscribe()}catch(h){e=e||[],h instanceof o?e=e.concat(l(h.errors)):e.push(h)}}}if(e)throw new o(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=n;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[n]:s.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}var e;return t.EMPTY=((e=new t).closed=!0,e),t})();function l(t){return t.reduce((t,e)=>t.concat(e instanceof o?e.errors:e),[])}},tS1D:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var i=n("D0XW");const s=(()=>{function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t})();var r=n("mlxB"),o=n("zx2A");class a{constructor(t,e,n,i){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=i}call(t,e){return e.subscribe(new l(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class l extends o.b{constructor(t,e,n,i,s){super(t),this.absoluteTimeout=e,this.waitFor=n,this.withObservable=i,this.scheduler=s,this.scheduleTimeout()}static dispatchTimeout(t){const{withObservable:e}=t;t._unsubscribeAndRecycle(),t.add(Object(o.c)(e,new o.a(t)))}scheduleTimeout(){const{action:t}=this;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(l.dispatchTimeout,this.waitFor,this))}_next(t){this.absoluteTimeout||this.scheduleTimeout(),super._next(t)}_unsubscribe(){this.action=void 0,this.scheduler=null,this.withObservable=null}}var c=n("z6cu");function u(t,e=i.a){return function(t,e,n=i.a){return i=>{let s=Object(r.a)(t),o=s?+t-n.now():Math.abs(t);return i.lift(new a(o,s,e,n))}}(t,Object(c.a)(new s),e)}},w1tV:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("EQ5u"),s=n("x+ZX"),r=n("XNiG");function o(){return new r.a}function a(){return t=>{return Object(s.a)()((e=o,function(t){let n;n="function"==typeof e?e:function(){return e};const s=Object.create(t,i.b);return s.source=t,s.subjectFactory=n,s})(t));var e}}},"x+ZX":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");function s(){return function(t){return t.lift(new r(t))}}class r{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new o(t,n),s=e.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class o extends i.a{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}},yCtX:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("HDdC"),s=n("ngJS"),r=n("jZKg");function o(t,e){return e?Object(r.a)(t,e):new i.a(Object(s.a)(t))}},"z+Ro":function(t,e,n){"use strict";function i(t){return t&&"function"==typeof t.schedule}n.d(e,"a",function(){return i})},z6cu:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("HDdC");function s(t,e){return new i.a(e?n=>e.schedule(r,0,{error:t,subscriber:n}):e=>e.error(t))}function r({error:t,subscriber:e}){e.error(t)}},zP0r:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");function s(t){return e=>e.lift(new r(t))}class r{constructor(t){this.total=t}call(t,e){return e.subscribe(new o(t,this.total))}}class o extends i.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}},zUnb:function(t,e,n){"use strict";n.r(e);var i=n("fXoL");let s=null;function r(){return s}const o=new i.s("DocumentToken");let a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Kb)({factory:l,token:t,providedIn:"platform"}),t})();function l(){return Object(i.Yb)(u)}const c=new i.s("Location Initialized");let u=(()=>{class t extends a{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=r().getLocation(),this._history=r().getHistory()}getBaseHrefFromDOM(){return r().getBaseHref(this._doc)}onPopState(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){h()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){h()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(o))},t.\u0275prov=Object(i.Kb)({factory:d,token:t,providedIn:"platform"}),t})();function h(){return!!window.history.pushState}function d(){return new u(Object(i.Yb)(o))}function p(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function f(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function m(t){return t&&"?"!==t[0]?"?"+t:t}let g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Kb)({factory:_,token:t,providedIn:"root"}),t})();function _(t){const e=Object(i.Yb)(o).location;return new y(Object(i.Yb)(a),e&&e.origin||"")}const b=new i.s("appBaseHref");let y=(()=>{class t extends g{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)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.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return p(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+m(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const s=this.prepareExternalUrl(n+m(i));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){const s=this.prepareExternalUrl(n+m(i));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(a),i.Yb(b,8))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),v=(()=>{class t extends g{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=p(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let s=this.prepareExternalUrl(n+m(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){let s=this.prepareExternalUrl(n+m(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(a),i.Yb(b,8))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),w=(()=>{class t{constructor(t,e){this._subject=new i.o,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=f(O(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+m(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,O(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+m(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+m(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(g),i.Yb(a))},t.normalizeQueryParams=m,t.joinWithSlash=p,t.stripTrailingSlash=f,t.\u0275prov=Object(i.Kb)({factory:C,token:t,providedIn:"root"}),t})();function C(){return new w(Object(i.Yb)(g),Object(i.Yb)(a))}function O(t){return t.replace(/\/index.html$/,"")}var x=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),S=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),E=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function k(t,e){const n=Object(i.mb)(t),s=n[i.db.NumberSymbols][e];if(void 0===s){if(e===E.CurrencyDecimal)return n[i.db.NumberSymbols][E.Decimal];if(e===E.CurrencyGroup)return n[i.db.NumberSymbols][E.Group]}return s}function T(t,e){return Object(i.mb)(t)[i.db.NumberFormats][e]}const A=i.pb,R=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function D(t,e,n,i,s,r,o=!1){let a="",l=!1;if(isFinite(t)){let c=function(t){let e,n,i,s,r,o=Math.abs(t)+"",a=0;for((n=o.indexOf("."))>-1&&(o=o.replace(".","")),(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;"0"===o.charAt(i);i++);if(i===(r=o.length))e=[0],n=1;else{for(r--;"0"===o.charAt(r);)r--;for(n-=i,e=[],s=0;i<=r;i++,s++)e[s]=Number(o.charAt(i))}return n>22&&(e=e.splice(0,21),a=n-1,n=1),{digits:e,exponent:a,integerLen:n}}(t);o&&(c=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(c));let u=e.minInt,h=e.minFrac,d=e.maxFrac;if(r){const t=r.match(R);if(null===t)throw new Error(`${r} is not a valid digit info`);const e=t[1],n=t[3],i=t[5];null!=e&&(u=P(e)),null!=n&&(h=P(n)),null!=i?d=P(i):null!=n&&h>d&&(d=h)}!function(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let i=t.digits,s=i.length-t.integerLen;const r=Math.min(Math.max(e,s),n);let o=r+t.integerLen,a=i[o];if(o>0){i.splice(Math.max(t.integerLen,o));for(let t=o;t<i.length;t++)i[t]=0}else{s=Math.max(0,s),t.integerLen=1,i.length=Math.max(1,o=r+1),i[0]=0;for(let t=1;t<o;t++)i[t]=0}if(a>=5)if(o-1<0){for(let e=0;e>o;e--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[o-1]++;for(;s<Math.max(0,r);s++)i.push(0);let l=0!==r;const c=e+t.integerLen,u=i.reduceRight(function(t,e,n,i){return i[n]=(e+=t)<10?e:e-10,l&&(0===i[n]&&n>=c?i.pop():l=!1),e>=10?1:0},0);u&&(i.unshift(u),t.integerLen++)}(c,h,d);let p=c.digits,f=c.integerLen;const m=c.exponent;let g=[];for(l=p.every(t=>!t);f<u;f++)p.unshift(0);for(;f<0;f++)p.unshift(0);f>0?g=p.splice(f,p.length):(g=p,p=[0]);const _=[];for(p.length>=e.lgSize&&_.unshift(p.splice(-e.lgSize,p.length).join(""));p.length>e.gSize;)_.unshift(p.splice(-e.gSize,p.length).join(""));p.length&&_.unshift(p.join("")),a=_.join(k(n,i)),g.length&&(a+=k(n,s)+g.join("")),m&&(a+=k(n,E.Exponential)+"+"+m)}else a=k(n,E.Infinity);return a=t<0&&!l?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}function I(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),s=i[0],r=i[1],o=-1!==s.indexOf(".")?s.split("."):[s.substring(0,s.lastIndexOf("0")+1),s.substring(s.lastIndexOf("0")+1)],a=o[0],l=o[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let u=0;u<l.length;u++){const t=l.charAt(u);"0"===t?n.minFrac=n.maxFrac=u+1:"#"===t?n.maxFrac=u+1:n.posSuf+=t}const c=a.split(",");if(n.gSize=c[1]?c[1].length:0,n.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,r){const t=s.length-n.posPre.length-n.posSuf.length,e=r.indexOf("#");n.negPre=r.substr(0,e).replace(/'/g,""),n.negSuf=r.substr(e+t).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}function P(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class M{}let L=(()=>{class t extends M{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(A(e||this.locale)(t)){case S.Zero:return"zero";case S.One:return"one";case S.Two:return"two";case S.Few:return"few";case S.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(i.w))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();function j(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}let F=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Object(i.sb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Object(i.yb)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.u),i.Ob(i.v),i.Ob(i.l),i.Ob(i.G))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class N{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let U=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new N(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new B(t,n);e.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const r=new B(t,s);e.push(r)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,i=this._viewContainer.length;n<i;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=i,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.S),i.Ob(i.O),i.Ob(i.u))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class B{constructor(t,e){this.record=t,this.view=e}}let V=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new H,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){z("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){z("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){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)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.S),i.Ob(i.O))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class H{constructor(){this.$implicit=null,this.ngIf=null}}function z(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Object(i.yb)(e)}'.`)}class Y{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let $=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),W=(()=>{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new Y(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.S),i.Ob(i.O),i.Ob($,1))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),K=(()=>{class t{constructor(t,e,n){n._addDefault(new Y(t,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.S),i.Ob(i.O),i.Ob($,1))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),q=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,i]=t.split(".");null!=(e=null!=e&&i?`${e}${i}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.v),i.Ob(i.G))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})();function G(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${Object(i.yb)(t)}'`)}class Q{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class X{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Z=new X,J=new Q;let tt=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(Object(i.ub)(e))return Z;if(Object(i.vb)(e))return J;throw G(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(i.ac())},t.\u0275pipe=i.Nb({name:"async",type:t,pure:!1}),t})(),et=(()=>{class t{constructor(t){this._locale=t}transform(e,n,i){if(!it(e))return null;i=i||this._locale;try{return function(t,e,n){return D(t,I(T(e,x.Decimal),k(e,E.MinusSign)),e,E.Group,E.Decimal,n)}(st(e),i,n)}catch(s){throw G(t,s.message)}}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.w))},t.\u0275pipe=i.Nb({name:"number",type:t,pure:!0}),t})(),nt=(()=>{class t{constructor(t){this._locale=t}transform(e,n,i){if(!it(e))return null;i=i||this._locale;try{return function(t,e,n){return D(t,I(T(e,x.Percent),k(e,E.MinusSign)),e,E.Group,E.Decimal,n,!0).replace(new RegExp("%","g"),k(e,E.PercentSign))}(st(e),i,n)}catch(s){throw G(t,s.message)}}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.w))},t.\u0275pipe=i.Nb({name:"percent",type:t,pure:!0}),t})();function it(t){return!(null==t||""===t||t!=t)}function st(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(`${t} is not a number`);return t}let rt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({providers:[{provide:M,useClass:L}]}),t})();function ot(t){return"browser"===t}function at(t){return"server"===t}let lt=(()=>{class t{}return t.\u0275prov=Object(i.Kb)({token:t,providedIn:"root",factory:()=>new ct(Object(i.Yb)(o),window)}),t})();class ct{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let i=n.currentNode;for(;i;){const t=i.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}i=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],i-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=ut(this.window.history)||ut(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function ut(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class ht extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new ht,s||(s=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=pt||(pt=document.querySelector("base"),pt)?pt.getAttribute("href"):null;return null==e?null:(n=e,dt||(dt=document.createElement("a")),dt.setAttribute("href",n),"/"===dt.pathname.charAt(0)?dt.pathname:"/"+dt.pathname);var n}resetBaseElement(){pt=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return j(document.cookie,t)}}let dt,pt=null;const ft=new i.s("TRANSITION_ID"),mt=[{provide:i.d,useFactory:function(t,e,n){return()=>{n.get(i.e).donePromise.then(()=>{const n=r();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[ft,o,i.t],multi:!0}];class gt{static init(){Object(i.ab)(new gt)}addToWindow(t){i.rb.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},i.rb.getAllAngularTestabilities=()=>t.getAllTestabilities(),i.rb.getAllAngularRootElements=()=>t.getAllRootElements(),i.rb.frameworkStabilizers||(i.rb.frameworkStabilizers=[]),i.rb.frameworkStabilizers.push(t=>{const e=i.rb.getAllAngularTestabilities();let n=e.length,s=!1;const r=function(e){s=s||e,n--,0==n&&t(s)};e.forEach(function(t){t.whenStable(r)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:n?r().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const _t=new i.s("EventManagerPlugins");let bt=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i<n.length;i++){const e=n[i];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error(`No event manager plugin found for event ${t}`)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(_t),i.Yb(i.B))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();class yt{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const i=r().getGlobalEventTarget(this._doc,t);if(!i)throw new Error(`Unsupported event target ${i} for event ${e}`);return this.addEventListener(i,e,n)}}let vt=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),wt=(()=>{class t extends vt{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>r().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(o))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const Ct={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Ot=/%COMP%/g;function xt(t,e,n){for(let i=0;i<e.length;i++){let s=e[i];Array.isArray(s)?xt(t,s,n):(s=s.replace(Ot,t),n.push(s))}return n}function St(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Et=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new kt(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case i.T.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new Tt(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case i.T.ShadowDom:return new At(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=xt(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(bt),i.Yb(wt),i.Yb(i.c))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();class kt{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(Ct[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const s=Ct[i];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=Ct[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,s){s&(i.I.DashCase|i.I.Important)?t.style.setProperty(e,n,s&i.I.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&i.I.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,St(n)):this.eventManager.addEventListener(t,e,St(n))}}class Tt extends kt{constructor(t,e,n,i){super(t),this.component=n;const s=xt(i+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(Ot,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(Ot,i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class At extends kt{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=xt(i.id,i.styles,[]);for(let r=0;r<s.length;r++){const t=document.createElement("style");t.textContent=s[r],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let Rt=(()=>{class t extends yt{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(o))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const Dt=["alt","control","meta","shift"],It={"\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"},Pt={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"},Mt={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Lt=(()=>{class t extends yt{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const s=t.parseEventName(n),o=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>r().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=t._normalizeKey(n.pop());let r="";if(Dt.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=i,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Pt.hasOwnProperty(e)&&(e=Pt[e]))}return It[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Dt.forEach(i=>{i!=n&&(0,Mt[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return s=>{t.getEventFullKey(s)===e&&i.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(o))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),jt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return Object(i.Yb)(Ft)},token:t,providedIn:"root"}),t})(),Ft=(()=>{class t extends jt{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case i.K.NONE:return e;case i.K.HTML:return Object(i.gb)(e,"HTML")?Object(i.zb)(e):Object(i.eb)(this._doc,String(e)).toString();case i.K.STYLE:return Object(i.gb)(e,"Style")?Object(i.zb)(e):e;case i.K.SCRIPT:if(Object(i.gb)(e,"Script"))return Object(i.zb)(e);throw new Error("unsafe value used in a script context");case i.K.URL:return Object(i.qb)(e),Object(i.gb)(e,"URL")?Object(i.zb)(e):Object(i.fb)(String(e));case i.K.RESOURCE_URL:if(Object(i.gb)(e,"ResourceURL"))return Object(i.zb)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return Object(i.hb)(t)}bypassSecurityTrustStyle(t){return Object(i.kb)(t)}bypassSecurityTrustScript(t){return Object(i.jb)(t)}bypassSecurityTrustUrl(t){return Object(i.lb)(t)}bypassSecurityTrustResourceUrl(t){return Object(i.ib)(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(o))},t.\u0275prov=Object(i.Kb)({factory:function(){return t=Object(i.Yb)(i.p),new Ft(t.get(o));var t},token:t,providedIn:"root"}),t})();const Nt=[{provide:i.D,useValue:"browser"},{provide:i.E,useValue:function(){ht.makeCurrent(),gt.init()},multi:!0},{provide:o,useFactory:function(){return Object(i.xb)(document),document},deps:[]}],Ut=Object(i.U)(i.Z,"browser",Nt),Bt=[[],{provide:i.cb,useValue:"root"},{provide:i.n,useFactory:function(){return new i.n},deps:[]},{provide:_t,useClass:Rt,multi:!0,deps:[o,i.B,i.D]},{provide:_t,useClass:Lt,multi:!0,deps:[o]},[],{provide:Et,useClass:Et,deps:[bt,wt,i.c]},{provide:i.H,useExisting:Et},{provide:vt,useExisting:wt},{provide:wt,useClass:wt,deps:[o]},{provide:i.P,useClass:i.P,deps:[i.B]},{provide:bt,useClass:bt,deps:[_t,i.B]},[]];let Vt=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:i.c,useValue:e.appId},{provide:ft,useExisting:i.c},mt]}}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(t,12))},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({providers:Bt,imports:[rt,i.f]}),t})();"undefined"!=typeof window&&window;class Ht{}function zt(t,e){return{type:7,name:t,definitions:e,options:{}}}function Yt(t,e=null){return{type:4,styles:e,timings:t}}function $t(t,e=null){return{type:2,steps:t,options:e}}function Wt(t){return{type:6,styles:t,offset:null}}function Kt(t,e,n){return{type:0,name:t,styles:e,options:n}}function qt(t){return{type:5,steps:t}}function Gt(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function Qt(t=null){return{type:9,options:t}}function Xt(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function Zt(t){Promise.resolve(null).then(t)}class Jt{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Zt(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class te{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const s=this.players.length;0==s?Zt(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function ee(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ne(t){switch(t.length){case 0:return new Jt;case 1:return t[0];default:return new te(t)}}function ie(t,e,n,i,s={},r={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(t=>{const n=t.offset,i=n==l,u=i&&c||{};Object.keys(t).forEach(n=>{let i=n,a=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,o),a){case"!":a=s[n];break;case"*":a=r[n];break;default:a=e.normalizeStyleValue(n,i,a,o)}u[i]=a}),i||a.push(u),c=u,l=n}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function se(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&re(n,"start",t)));break;case"done":t.onDone(()=>i(n&&re(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&re(n,"destroy",t)))}}function re(t,e,n){const i=n.totalTime,s=oe(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),r=t._data;return null!=r&&(s._data=r),s}function oe(t,e,n,i,s="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function ae(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function le(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let ce=(t,e)=>!1,ue=(t,e)=>!1,he=(t,e,n)=>[];const de=ee();(de||"undefined"!=typeof Element)&&(ce=(t,e)=>t.contains(e),ue=(()=>{if(de||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):ue}})(),he=(t,e,n)=>{let i=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t<n.length;t++)i.push(n[t])}else{const n=t.querySelector(e);n&&i.push(n)}return i});let pe=null,fe=!1;function me(t){pe||(pe=("undefined"!=typeof document?document.body:null)||{},fe=!!pe.style&&"WebkitAppearance"in pe.style);let e=!0;return pe.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in pe.style,!e&&fe)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in pe.style),e}const ge=ue,_e=ce,be=he;function ye(t){const e={};return Object.keys(t).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let ve=(()=>{class t{validateStyleProperty(t){return me(t)}matchesElement(t,e){return ge(t,e)}containsElement(t,e){return _e(t,e)}query(t,e,n){return be(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,s,r=[],o){return new Jt(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),we=(()=>{class t{}return t.NOOP=new ve,t})();function Ce(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Oe(parseFloat(e[1]),e[2])}function Oe(t,e){switch(e){case"s":return 1e3*t;default:return t}}function xe(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,s=0,r="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=Oe(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=Oe(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else i=t;if(!n){let n=!1,r=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:s,easing:r}}(t,e,n)}function Se(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function Ee(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else Se(t,n);return n}function ke(t,e,n){return n?e+":"+n+";":""}function Te(t){let e="";for(let n=0;n<t.style.length;n++){const i=t.style.item(n);e+=ke(0,i,t.style.getPropertyValue(i))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=ke(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function Ae(t,e,n){t.style&&(Object.keys(e).forEach(i=>{const s=Fe(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[s]),t.style[s]=e[i]}),ee()&&Te(t))}function Re(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=Fe(e);t.style[n]=""}),ee()&&Te(t))}function De(t){return Array.isArray(t)?1==t.length?t[0]:$t(t):t}const Ie=new RegExp("{{\\s*(.+?)\\s*}}","g");function Pe(t){let e=[];if("string"==typeof t){let n;for(;n=Ie.exec(t);)e.push(n[1]);Ie.lastIndex=0}return e}function Me(t,e,n){const i=t.toString(),s=i.replace(Ie,(t,i)=>{let s=e[i];return e.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),s=""),s.toString()});return s==i?t:s}function Le(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const je=/-+([a-z0-9])/g;function Fe(t){return t.replace(je,(...t)=>t[1].toUpperCase())}function Ne(t,e){return 0===t||0===e}function Ue(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let r=e[0],o=[];if(i.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var s=1;s<e.length;s++){let n=e[s];o.forEach(function(e){n[e]=Ve(t,e)})}}return e}function Be(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error(`Unable to resolve animation metadata node #${e.type}`)}}function Ve(t,e){return window.getComputedStyle(t)[e]}function He(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=i[1],r=i[2],o=i[3];e.push($e(s,o)),"<"!=r[0]||"*"==s&&"*"==o||e.push($e(o,s))}(t,n,e)):n.push(t),n}const ze=new Set(["true","1"]),Ye=new Set(["false","0"]);function $e(t,e){const n=ze.has(t)||Ye.has(t),i=ze.has(e)||Ye.has(e);return(s,r)=>{let o="*"==t||t==s,a="*"==e||e==r;return!o&&n&&"boolean"==typeof s&&(o=s?ze.has(t):Ye.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?ze.has(e):Ye.has(e)),o&&a}}const We=new RegExp("s*:selfs*,?","g");function Ke(t,e,n){return new qe(t).build(e,n)}class qe{constructor(t){this._driver=t}build(t,e){const n=new Ge(e);return this._resetContextStyleTimingState(n),Be(this,De(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const s=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,i+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};if(n.styles.forEach(t=>{if(Qe(t)){const e=t;Object.keys(e).forEach(t=>{Pe(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=Le(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=Be(this,De(t.animation),e);return{type:1,matchers:He(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Xe(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Be(this,t,e)),options:Xe(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const s=t.steps.map(t=>{e.currentTime=n;const s=Be(this,t,e);return i=Math.max(i,e.currentTime),s});return e.currentTime=i,{type:3,steps:s,options:Xe(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return Ze(xe(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=Ze(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||xe(i,e),Ze(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let s=t.styles?t.styles:Wt({});if(5==s.type)i=this.visitKeyframes(s,e);else{let s=t.styles,r=!1;if(!s){r=!0;const t={};n.easing&&(t.easing=n.easing),s=Wt(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(s,e);o.isEmptyStep=r,i=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?"*"==t?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,s=null;return n.forEach(t=>{if(Qe(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(s!=i&&s>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),a=!1),s=o.startTime),a&&(r[n]={startTime:s,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},s=Pe(t);s.length&&s.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const s=[];let r=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(Qe(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(Qe(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,r=r||c<a,a=c,s.push(c),n});o&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),r&&e.errors.push("Please ensure that all keyframe offsets are in order");const c=t.steps.length;let u=0;i>0&&i<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(u=1/(c-1));const h=c-1,d=e.currentTime,p=e.currentAnimateTimings,f=p.duration;return l.forEach((t,i)=>{const r=u>0?i==h?1:u*i:s[i],o=r*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:Be(this,De(t.animation),e),options:Xe(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Xe(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Xe(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(We,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,ae(e.collectedStyles,e.currentQuerySelector,{});const o=Be(this,De(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:Xe(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:xe(t.timings,e.errors,!0);return{type:12,animation:Be(this,De(t.animation),e),timings:n,options:null}}}class Ge{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Qe(t){return!Array.isArray(t)&&"object"==typeof t}function Xe(t){var e;return t?(t=Se(t)).params&&(t.params=(e=t.params)?Se(e):null):t={},t}function Ze(t,e,n){return{duration:t,delay:e,easing:n}}function Je(t,e,n,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class tn{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const en=new RegExp(":enter","g"),nn=new RegExp(":leave","g");function sn(t,e,n,i,s,r={},o={},a,l,c=[]){return(new rn).buildKeyframes(t,e,n,i,s,r,o,a,l,c)}class rn{buildKeyframes(t,e,n,i,s,r,o,a,l,c=[]){l=l||new tn;const u=new an(t,e,l,i,s,c,[]);u.options=a,u.currentTimeline.setStyles([r],null,u.errors,a),Be(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[Je(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const s=null!=n.duration?Ce(n.duration):null,r=null!=n.delay?Ce(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),Be(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=on);const t=Ce(s.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Be(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?Ce(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),Be(this,r,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return xe(e.params?Me(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,s=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?Ce(i.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=on);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),Be(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;Be(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const on={};class an{constructor(t,e,n,i,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=on,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new ln(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=Ce(n.duration)),null!=n.delay&&(i.delay=Ce(n.delay));const s=n.params;if(s){let t=i.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=Me(s[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,s=new an(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=on,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new cn(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,s,r){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(en,"."+this._enterClassName)).replace(nn,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return s||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class ln{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new ln(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){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))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||"*",this._currentKeyframe[t]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},r=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]="*"})):Ee(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=Me(r[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:"*"),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,r)=>{const o=Ee(s,!0);Object.keys(o).forEach(n=>{const i=o[n];"!"==i?t.add(n):"*"==i&&e.add(n)}),n||(o.offset=r/this.duration),i.push(o)});const s=t.size?Le(t.values()):[],r=e.size?Le(e.values()):[];if(n){const t=i[0],e=Se(t);t.offset=0,e.offset=1,i=[t,e]}return Je(this.element,i,s,r,this.duration,this.startTime,this.easing,!1)}}class cn extends ln{constructor(t,e,n,i,s,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,o=e/r,a=Ee(t[0],!1);a.offset=0,s.push(a);const l=Ee(t[0],!1);l.offset=un(o),s.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=Ee(t[i],!1);o.offset=un((e+o.offset*n)/r),s.push(o)}n=r,e=0,i="",t=s}return Je(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function un(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class hn{}class dn extends hn{normalizePropertyName(t,e){return Fe(t)}normalizeStyleValue(t,e,n,i){let s="";const r=n.toString().trim();if(pn[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+s}}const pn=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),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(",")))();function fn(t,e,n,i,s,r,o,a,l,c,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const mn={};class gn{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,s){return t.some(t=>t(e,n,i,s))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],s=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return s?s.buildStyles(e,n):r}build(t,e,n,i,s,r,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||mn,d=this.buildStyles(n,o&&o.params||mn,u),p=a&&a.params||mn,f=this.buildStyles(i,p,u),m=new Set,g=new Map,_=new Map,b="void"===i,y={params:Object.assign(Object.assign({},h),p)},v=c?[]:sn(t,e,this.ast.animation,s,r,d,f,y,l,u);let w=0;if(v.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),u.length)return fn(e,this._triggerName,n,i,b,d,f,[],[],g,_,w,u);v.forEach(t=>{const n=t.element,i=ae(g,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const s=ae(_,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&m.add(n)});const C=Le(m.values());return fn(e,this._triggerName,n,i,b,d,f,v,C,g,_,w)}}class _n{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=Se(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=Me(r,i,e)),n[t]=r})}}),n}}class bn{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new _n(t.style,t.options&&t.options.params||{})}),yn(this.states,"true","1"),yn(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new gn(t,e,this.states))}),this.fallbackTransition=new gn(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(s=>s.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function yn(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const vn=new tn;class wn{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=Ke(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,s=ie(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],s=this._animations[t];let r;const o=new Map;if(s?(r=sn(this._driver,e,s,"ng-enter","ng-leave",{},{},n,vn,i),r.forEach(t=>{const e=ae(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),r=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,"*")})});const a=ne(r.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,i){const s=oe(e,"","","");return se(this._getPlayer(t),n,s,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const Cn=[],On={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},xn={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Sn{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=Se(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const En=new Sn("void");class kn{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Mn(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const r=ae(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};r.push(o);const a=ae(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Mn(t,"ng-trigger"),Mn(t,"ng-trigger-"+e),a[e]=En),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const s=this._getTrigger(e),r=new An(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Mn(t,"ng-trigger"),Mn(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new Sn(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=En),"void"!==l.value&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let s=0;s<n.length;s++){const i=n[s];if(!e.hasOwnProperty(i)||t[i]!==e[i])return!1}return!0}(a.params,l.params)){const e=[],n=s.matchStyles(a.value,a.params,e),i=s.matchStyles(l.value,l.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{Re(t,n),Ae(t,i)})}return}const c=ae(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=s.matchTransition(a.value,l.value,t,l.params),h=!1;if(!u){if(!i)return;u=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:r,isFallbackTransition:h}),h||(Mn(t,"ng-animate-queued"),r.onStart(()=>{Ln(t,"ng-animate-queued")})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,".ng-trigger",!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,"void",i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&ne(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const i=new Set;e.forEach(e=>{const s=e.name;if(i.has(s))return;i.add(s);const r=this._triggers[s].fallbackTransition,o=n[s]||En,a=new Sn("void"),l=new An(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:r,fromState:o,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t.__ng_removed;i&&i!==On||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Mn(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==n.triggerName){const i=oe(s,n.triggerName,n.fromState.value,n.toState.value);i._data=t,se(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class Tn{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new kn(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i<t.length;i++){const s=n[t[i]].namespaceId;if(s){const t=this._fetchNamespace(s);t&&e.add(t)}}}return e}trigger(t,e,n,i){if(Rn(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,n,i),!0}return!1}insertNode(t,e,n,i){if(!Rn(e))return;const s=e.__ng_removed;if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Mn(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Ln(t,"ng-animate-disabled"))}removeNode(t,e,n,i){if(Rn(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,s){return Rn(e)?this._fetchNamespace(t).listen(e,n,i,s):()=>{}}_buildInstruction(t,e,n,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return ne(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=On,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Mn(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?ne(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new tn,i=[],s=new Map,r=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)c.add(e[n])});const u=this.bodyNode,h=Array.from(this.statesByElement.keys()),d=Pn(h,this.collectedEnterElements),p=new Map;let f=0;d.forEach((t,e)=>{const n="ng-enter"+f++;p.set(e,n),t.forEach(t=>Mn(t,n))});const m=[],g=new Set,_=new Set;for(let R=0;R<this.collectedLeaveElements.length;R++){const t=this.collectedLeaveElements[R],e=t.__ng_removed;e&&e.setForRemoval&&(m.push(t),g.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>g.add(t)):_.add(t))}const b=new Map,y=Pn(h,Array.from(g));y.forEach((t,e)=>{const n="ng-leave"+f++;b.set(e,n),t.forEach(t=>Mn(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>Ln(t,n))}),y.forEach((t,e)=>{const n=b.get(e);t.forEach(t=>Ln(t,n))}),m.forEach(t=>{this.processLeaveNode(t)})});const v=[],w=[];for(let R=this._namespaceList.length-1;R>=0;R--)this._namespaceList[R].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(v.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!u||!this.driver.containsElement(u,s),h=b.get(s),d=p.get(s),f=this._buildInstruction(t,n,d,h,c);if(f.errors&&f.errors.length)w.push(f);else{if(c)return e.onStart(()=>Re(s,f.fromStyles)),e.onDestroy(()=>Ae(s,f.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>Re(s,f.fromStyles)),e.onDestroy(()=>Ae(s,f.toStyles)),void i.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,f.timelines),r.push({instruction:f,player:e,element:s}),f.queriedElements.forEach(t=>ae(o,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=l.get(e);i||l.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(w.length){const t=[];w.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),v.forEach(t=>t.destroy()),this.reportError(t)}const C=new Map,O=new Map;r.forEach(t=>{const e=t.element;n.has(e)&&(O.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,C))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{ae(C,e,[]).push(t),t.destroy()})});const x=m.filter(t=>Nn(t,a,l)),S=new Map;In(S,this.driver,_,l,"*").forEach(t=>{Nn(t,a,l)&&x.push(t)});const E=new Map;d.forEach((t,e)=>{In(E,this.driver,new Set(t),a,"!")}),x.forEach(t=>{const e=S.get(t),n=E.get(t);S.set(t,Object.assign(Object.assign({},e),n))});const k=[],T=[],A={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(c.has(e))return r.onDestroy(()=>Ae(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);let t=A;if(O.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=O.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>O.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,C,s,E,S);if(r.setRealPlayer(n),t===A)k.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=ne(e)),i.push(r)}}else Re(e,o.fromStyles),r.onDestroy(()=>Ae(e,o.toStyles)),T.push(r),c.has(e)&&i.push(r)}),T.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=ne(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let R=0;R<m.length;R++){const t=m[R],e=t.__ng_removed;if(Ln(t,"ng-leave"),e&&e.hasAnimation)continue;let n=[];if(o.size){let e=o.get(t);e&&e.length&&n.push(...e);let i=this.driver.query(t,".ng-animating",!0);for(let t=0;t<i.length;t++){let e=o.get(i[t]);e&&e.length&&n.push(...e)}}const i=n.filter(t=>!t.destroyed);i.length?jn(this,t,i):this.processLeaveNode(t)}return m.length=0,k.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),k}elementContainsData(t,e){let n=!1;const i=e.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&r.push(e)})}}return(n||i)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const i=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,l=ae(n,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}Re(i,e.fromStyles)}_buildAnimation(t,e,n,i,s,r){const o=e.triggerName,a=e.element,l=[],c=new Set,u=new Set,h=e.timelines.map(e=>{const h=e.element;c.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new Jt(e.duration,e.delay);const p=h!==a,f=function(t){const e=[];return Fn(t,e),e}((n.get(h)||Cn).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===h),m=s.get(h),g=r.get(h),_=ie(0,this._normalizer,0,e.keyframes,m,g),b=this._buildPlayer(e,_,f);if(e.subTimeline&&i&&u.add(h),p){const e=new An(t,o,h);e.setRealPlayer(b),l.push(e)}return b});l.forEach(t=>{ae(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>Mn(t,"ng-animating"));const d=ne(h);return d.onDestroy(()=>{c.forEach(t=>Ln(t,"ng-animating")),Ae(a,e.toStyles)}),u.forEach(t=>{ae(i,t,[]).push(d)}),d}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Jt(t.duration,t.delay)}}class An{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Jt,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>se(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){ae(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Rn(t){return t&&1===t.nodeType}function Dn(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function In(t,e,n,i,s){const r=[];n.forEach(t=>r.push(Dn(t)));const o=[];i.forEach((n,i)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(i,t,s);n&&0!=n.length||(i.__ng_removed=xn,o.push(i))}),t.set(i,r)});let a=0;return n.forEach(t=>Dn(t,r[a++])),o}function Pn(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),s=new Map;function r(t){if(!t)return 1;let e=s.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:i.has(o)?1:r(o),s.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&n.get(e).push(t)}),n}function Mn(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Ln(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function jn(t,e,n){ne(n).onDone(()=>t.processLeaveNode(e))}function Fn(t,e){for(let n=0;n<t.length;n++){const i=t[n];i instanceof te?Fn(i.players,e):e.push(i)}}function Nn(t,e,n){const i=n.get(t);if(!i)return!1;let s=e.get(t);return s?i.forEach(t=>s.add(t)):e.set(t,i),n.delete(t),!0}class Un{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Tn(t,e,n),this._timelineEngine=new wn(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,s){const r=t+"-"+i;let o=this._triggerCache[r];if(!o){const t=[],e=Ke(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new bn(t,e)}(i,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,s]=le(n);this._timelineEngine.command(t,e,s,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,s){if("@"==n.charAt(0)){const[t,i]=le(n);return this._timelineEngine.listen(t,e,i,s)}return this._transitionEngine.listen(t,e,n,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Bn(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=Hn(e[0]),e.length>1&&(i=Hn(e[e.length-1]))):e&&(n=Hn(e)),n||i?new Vn(t,n,i):null}let Vn=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Ae(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ae(this._element,this._initialStyles),this._endStyles&&(Ae(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Re(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Re(this._element,this._endStyles),this._endStyles=null),Ae(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Hn(t){let e=null;const n=Object.keys(t);for(let i=0;i<n.length;i++){const s=n[i];zn(s)&&(e=e||{},e[s]=t[s])}return e}function zn(t){return"display"===t||"position"===t}class Yn{constructor(t,e,n,i,s,r,o){this._element=t,this._name=e,this._duration=n,this._delay=i,this._easing=s,this._fillMode=r,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=Qn(t,"").trim();n.length&&(function(t,e){let n=0;for(let i=0;i<t.length;i++)","===t.charAt(i)&&n++}(n),e=`${n}, ${e}`),Gn(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),qn(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){$n(this._element,this._name,"paused")}resume(){$n(this._element,this._name,"running")}setPosition(t){const e=Wn(this._element,this._name);this._position=t*this._duration,Gn(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),qn(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=Qn(t,"").split(","),i=Kn(n,e);i>=0&&(n.splice(i,1),Gn(t,"",n.join(",")))}(this._element,this._name))}}function $n(t,e,n){Gn(t,"PlayState",n,Wn(t,e))}function Wn(t,e){const n=Qn(t,"");return n.indexOf(",")>0?Kn(n.split(","),e):Kn([n],e)}function Kn(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function qn(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function Gn(t,e,n,i){const s="animation"+e;if(null!=i){const e=t.style[s];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[s]=n}function Qn(t,e){return t.style["animation"+e]||""}class Xn{constructor(t,e,n,i,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=i+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Yn(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:Ve(this.element,n))})}this.currentSnapshot=t}}class Zn extends Jt{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=ye(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class Jn{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(t){return me(t)}matchesElement(t,e){return ge(t,e)}containsElement(t,e){return _e(t,e)}query(t,e,n){return be(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>ye(t));let i=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);i+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${e}: ${n};\n`)}}),i+=`${s}}\n`}),i+="}\n";const r=document.createElement("style");return r.textContent=i,r}animate(t,e,n,i,s,r=[],o){const a=r.filter(t=>t instanceof Xn),l={};Ne(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=Ue(t,e,l));if(0==n)return new Zn(t,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(h);const d=Bn(t,e),p=new Xn(t,e,u,n,i,s,c,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}}class ti{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:Ve(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class ei{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ni().toString()),this._cssKeyframesDriver=new Jn}validateStyleProperty(t){return me(t)}matchesElement(t,e){return ge(t,e)}containsElement(t,e){return _e(t,e)}query(t,e,n){return be(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,s,r);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(a.easing=s);const l={},c=r.filter(t=>t instanceof ti);Ne(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const u=Bn(t,e=Ue(t,e=e.map(t=>Ee(t,!1)),l));return new ti(t,e,a,u)}}function ni(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let ii=(()=>{class t extends Ht{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:i.T.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?$t(t):t;return oi(this._renderer,null,e,"register",[n]),new si(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(i.H),i.Yb(o))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();class si extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new ri(this._id,t,e||{},this._renderer)}}class ri{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return oi(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function oi(t,e,n,i,s){return t.setProperty(e,`@@${n}:${i}`,s)}let ai=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new li("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(i,s,t,e.name,e)};return e.data.animation.forEach(r),new ci(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run(()=>e(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(i.H),i.Yb(Un),i.Yb(i.B))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();class li{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class ci extends li{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return"@"!=s.charAt(0)&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let ui=(()=>{class t extends Un{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(o),i.Yb(we),i.Yb(hn))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const hi=new i.s("AnimationModuleType"),di=[{provide:we,useFactory:function(){return"function"==typeof ni()?new ei:new Jn}},{provide:hi,useValue:"BrowserAnimations"},{provide:Ht,useClass:ii},{provide:hn,useFactory:function(){return new dn}},{provide:Un,useClass:ui},{provide:i.H,useFactory:function(t,e,n){return new ai(t,e,n)},deps:[Et,Un,i.B]}];let pi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({providers:di,imports:[Vt]}),t})();var fi=n("l7P3"),mi=n("VRyK"),gi=n("HDdC"),_i=n("XNiG"),bi=n("Cfvw"),yi=n("EY2u");function vi(t){return new gi.a(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?Object(bi.a)(n):Object(yi.b)()).subscribe(e)})}var wi=n("WMd4"),Ci=(n("mCNh"),n("LRne")),Oi=n("7o/Q");class xi{call(t,e){return e.subscribe(new Si(t))}}class Si extends Oi.a{_next(t){}}class Ei{call(t,e){return e.subscribe(new ki(t))}}class ki extends Oi.a{constructor(t){super(t)}_next(t){this.destination.next(wi.a.createNext(t))}_error(t){const e=this.destination;e.next(wi.a.createError(t)),e.complete()}_complete(){const t=this.destination;t.next(wi.a.createComplete()),t.complete()}}var Ti=n("lJxs"),Ai=n("JIr8"),Ri=n("pLZG"),Di=n("quSY");function Ii(t,e,n,i){return s=>s.lift(new Pi(t,e,n,i))}class Pi{constructor(t,e,n,i){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=i}call(t,e){return e.subscribe(new Mi(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}class Mi extends Oi.a{constructor(t,e,n,i,s){super(t),this.keySelector=e,this.elementSelector=n,this.durationSelector=i,this.subjectSelector=s,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}_next(t){let e;try{e=this.keySelector(t)}catch(n){return void this.error(n)}this._group(t,e)}_group(t,e){let n=this.groups;n||(n=this.groups=new Map);let i,s=n.get(e);if(this.elementSelector)try{i=this.elementSelector(t)}catch(r){this.error(r)}else i=t;if(!s){s=this.subjectSelector?this.subjectSelector():new _i.a,n.set(e,s);const t=new ji(e,s,this);if(this.destination.next(t),this.durationSelector){let t;try{t=this.durationSelector(new ji(e,s))}catch(r){return void this.error(r)}this.add(t.subscribe(new Li(e,s,this)))}}s.closed||s.next(i)}_error(t){const e=this.groups;e&&(e.forEach((e,n)=>{e.error(t)}),e.clear()),this.destination.error(t)}_complete(){const t=this.groups;t&&(t.forEach((t,e)=>{t.complete()}),t.clear()),this.destination.complete()}removeGroup(t){this.groups.delete(t)}unsubscribe(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&super.unsubscribe())}}class Li extends Oi.a{constructor(t,e,n){super(e),this.key=t,this.group=e,this.parent=n}_next(t){this.complete()}_unsubscribe(){const{parent:t,key:e}=this;this.key=this.parent=null,t&&t.removeGroup(e)}}class ji extends gi.a{constructor(t,e,n){super(),this.key=t,this.groupSubject=e,this.refCountSubscription=n}_subscribe(t){const e=new Di.a,{refCountSubscription:n,groupSubject:i}=this;return n&&!n.closed&&e.add(new Fi(n)),e.add(i.subscribe(t)),e}}class Fi extends Di.a{constructor(t){super(),this.parent=t,t.count++}unsubscribe(){const t=this.parent;t.closed||this.closed||(super.unsubscribe(),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())}}var Ni=n("5+tZ"),Ui=n("zx2A");function Bi(t,e){return e?n=>n.pipe(Bi((n,i)=>Object(bi.a)(t(n,i)).pipe(Object(Ti.a)((t,s)=>e(n,t,i,s))))):e=>e.lift(new Vi(t))}class Vi{constructor(t){this.project=t}call(t,e){return e.subscribe(new Hi(t,this.project))}}class Hi extends Ui.b{constructor(t,e){super(t),this.project=e,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(t){this.hasSubscription||this.tryNext(t)}tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(e)}_innerSub(t){const e=new Ui.a(this),n=this.destination;n.add(e);const i=Object(Ui.c)(t,e);i!==e&&n.add(i)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}class zi{call(t,e){return e.subscribe(new Yi(t))}}class Yi extends Oi.a{constructor(t){super(t)}_next(t){t.observe(this.destination)}}var $i=n("IzEk"),Wi=n("bOdf");function Ki(t){return e=>e.lift(new qi(t))}class qi{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Gi(t,this.callback))}}class Gi extends Oi.a{constructor(t,e){super(t),this.add(new Di.a(e))}}var Qi=n("zp1y");const Xi={dispatch:!0,useEffectsErrorHandler:!0};function Zi(t){return Object.getOwnPropertyNames(t).filter(e=>!(!t[e]||!t[e].hasOwnProperty("__@ngrx/effects_create__"))&&t[e]["__@ngrx/effects_create__"].hasOwnProperty("dispatch")).map(e=>Object.assign({propertyName:e},t[e]["__@ngrx/effects_create__"]))}function Ji(t){return Object.getPrototypeOf(t)}function ts(t={}){return function(e,n){var i,s;i=e,s=Object.assign(Object.assign(Object.assign({},Xi),t),{propertyName:n}),ns(i)?i.constructor["__@ngrx/effects__"].push(s):Object.defineProperty(i.constructor,"__@ngrx/effects__",{value:[s]})}}function es(t){return Object(fi.n)(is,Ji)(t)}function ns(t){return t.constructor.hasOwnProperty("__@ngrx/effects__")}function is(t){return ns(t)?t.constructor["__@ngrx/effects__"]:[]}function ss(t,e,n=10){return t.pipe(Object(Ai.a)(i=>(e&&e.handleError(i),n<=1?t:ss(t,e,n-1))))}let rs=(()=>{class t extends gi.a{constructor(t){super(),t&&(this.source=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(fi.g))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();function os(...t){return Object(Ri.a)(e=>t.some(t=>"string"==typeof t?t===e.type:t.type===e.type))}function as(t){return ls(t,"ngrxOnInitEffects")}function ls(t,e){return t&&e in t&&"function"==typeof t[e]}const cs=new i.s("@ngrx/effects Internal Root Guard"),us=new i.s("@ngrx/effects User Provided Effects"),hs=new i.s("@ngrx/effects Internal Root Effects"),ds=new i.s("@ngrx/effects Root Effects"),ps=new i.s("@ngrx/effects Internal Feature Effects"),fs=new i.s("@ngrx/effects Feature Effects"),ms=new i.s("@ngrx/effects Effects Error Handler");let gs=(()=>{class t extends _i.a{constructor(t,e){super(),this.errorHandler=t,this.effectsErrorHandler=e}addEffects(t){this.next(t)}toActions(){return this.pipe(Ii(Ji),Object(Ni.a)(t=>t.pipe(Ii(_s))),Object(Ni.a)(t=>{const e=t.pipe(Bi(t=>{return(e=this.errorHandler,n=this.effectsErrorHandler,t=>{const i=function(t,e,n){const i=Ji(t).constructor.name,s=(r=t,[es,Zi].reduce((t,e)=>t.concat(e(r)),[])).map(({propertyName:s,dispatch:r,useEffectsErrorHandler:o})=>{const a="function"==typeof t[s]?t[s]():t[s],l=o?n(a,e):a;return!1===r?l.pipe(function(t){return t.lift(new xi)}):l.pipe(function(t){return t.lift(new Ei)}).pipe(Object(Ti.a)(e=>({effect:t[s],notification:e,propertyName:s,sourceName:i,sourceInstance:t})))});var r;return Object(mi.a)(...s)}(t,e,n);return ls(t,"ngrxOnRunEffects")?t.ngrxOnRunEffects(i):i})(t);var e,n}),Object(Ti.a)(t=>(function(t,e){if("N"===t.notification.kind){const n=t.notification.value;!function(t){return"function"!=typeof t&&t&&t.type&&"string"==typeof t.type}(n)&&e.handleError(new Error(`Effect ${function({propertyName:t,sourceInstance:e,sourceName:n}){const i="function"==typeof e[t];return`"${n}.${String(t)}${i?"()":""}"`}(t)} dispatched an invalid action: ${function(t){try{return JSON.stringify(t)}catch(e){return t}}(n)}`))}}(t,this.errorHandler),t.notification)),Object(Ri.a)(t=>"N"===t.kind&&null!=t.value),function(t){return t.lift(new zi)}),n=t.pipe(Object($i.a)(1),Object(Ri.a)(as),Object(Ti.a)(t=>t.ngrxOnInitEffects()));return Object(mi.a)(e,n)}))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(i.n),i.Yb(ms))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();function _s(t){return ls(t,"ngrxOnIdentifyEffects")?t.ngrxOnIdentifyEffects():""}let bs=(()=>{class t{constructor(t,e){this.effectSources=t,this.store=e,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(gs),i.Yb(fi.i))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();Object(fi.o)("@ngrx/effects/init");let ys=(()=>{class t{constructor(t,e,n,i,s,r,o){this.sources=t,e.start(),i.forEach(e=>t.addEffects(e)),n.dispatch({type:"@ngrx/effects/init"})}addEffects(t){this.sources.addEffects(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(gs),i.Yb(bs),i.Yb(fi.i),i.Yb(ds),i.Yb(fi.l,8),i.Yb(fi.j,8),i.Yb(cs,8))},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({}),t})(),vs=(()=>{class t{constructor(t,e,n,i){e.forEach(e=>e.forEach(e=>t.addEffects(e)))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(ys),i.Yb(fs),i.Yb(fi.l,8),i.Yb(fi.j,8))},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({}),t})(),ws=(()=>{class t{static forFeature(t=[]){return{ngModule:vs,providers:[t,{provide:ps,multi:!0,useValue:t},{provide:us,multi:!0,useValue:[]},{provide:fs,multi:!0,useFactory:Cs,deps:[i.t,ps,us]}]}}static forRoot(t=[]){return{ngModule:ys,providers:[{provide:ms,useValue:ss},bs,gs,rs,t,{provide:hs,useValue:[t]},{provide:cs,useFactory:Os,deps:[[bs,new i.C,new i.M],[hs,new i.L]]},{provide:us,multi:!0,useValue:[]},{provide:ds,useFactory:Cs,deps:[i.t,hs,us]}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({}),t})();function Cs(t,e,n){const i=[];for(let s of e)i.push(...s);for(let s of n)i.push(...s);return function(t,e){return e.map(e=>t.get(e))}(t,i)}function Os(t,e){if((1!==e.length||0!==e[0].length)&&t)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}var xs=n("agSv"),Ss=n("2Vo4"),Es=n("z+Ro"),ks=n("DH7j"),Ts=n("l7GE"),As=n("ZUHj"),Rs=n("yCtX");const Ds={};function Is(...t){let e,n;return Object(Es.a)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(ks.a)(t[0])&&(t=t[0]),Object(Rs.a)(t,n).lift(new Ps(e))}class Ps{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Ms(t,this.resultSelector))}}class Ms extends Ts.a{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Ds),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++){const e=t[n];this.add(Object(As.a)(this,e,void 0,n))}}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n){const i=this.values,s=this.toRespond?i[n]===Ds?--this.toRespond:this.toRespond:0;i[n]=e,0===s&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const Ls=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();var js=n("bHdf");function Fs(...t){return Object(js.a)(1)(Object(Ci.a)(...t))}var Ns=n("EQ5u"),Us=n("eIep");function Bs(...t){const e=t[t.length-1];return Object(Es.a)(e)?(t.pop(),n=>Fs(t,n,e)):e=>Fs(t,e)}var Vs=n("Kqap"),Hs=n("4I5i");function zs(t){return function(e){return 0===t?Object(yi.b)():e.lift(new Ys(t))}}class Ys{constructor(t){if(this.total=t,this.total<0)throw new Hs.a}call(t,e){return e.subscribe(new $s(t,this.total))}}class $s extends Oi.a{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length<n?e.push(t):e[i%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let s=0;s<n;s++){const s=e++%n;t.next(i[s])}}t.complete()}}function Ws(t=Gs){return e=>e.lift(new Ks(t))}class Ks{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new qs(t,this.errorFactory))}}class qs extends Oi.a{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function Gs(){return new Ls}function Qs(t=null){return e=>e.lift(new Xs(t))}class Xs{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Zs(t,this.defaultValue))}}class Zs extends Oi.a{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var Js=n("SpAZ");function tr(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Object(Ri.a)((e,n)=>t(e,n,i)):Js.a,Object($i.a)(1),n?Qs(e):Ws(()=>new Ls))}function er(){}var nr=n("n6bG");function ir(t,e,n){return function(i){return i.lift(new sr(t,e,n))}}class sr{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new rr(t,this.nextOrObserver,this.error,this.complete))}}class rr extends Oi.a{constructor(t,e,n,i){super(t),this._tapNext=er,this._tapError=er,this._tapComplete=er,this._tapError=n||er,this._tapComplete=i||er,Object(nr.a)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||er,this._tapError=e.error||er,this._tapComplete=e.complete||er)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}var or=n("x+ZX");class ar{constructor(t,e){this.id=t,this.url=e}}class lr extends ar{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class cr extends ar{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ur extends ar{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class hr extends ar{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class dr extends ar{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pr extends ar{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fr extends ar{constructor(t,e,n,i,s){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class mr extends ar{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class gr extends ar{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _r{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class br{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class yr{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vr{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wr{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Cr{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Or{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class xr{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Sr(t){return new xr(t)}function Er(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function kr(t,e,n){const i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.length<t.length))return null;const s={};for(let r=0;r<i.length;r++){const e=i[r],n=t[r];if(e.startsWith(":"))s[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,i.length),posParams:s}}function Tr(t,e){const n=t?Object.keys(t):void 0,i=e?Object.keys(e):void 0;if(!n||!i||n.length!=i.length)return!1;let s;for(let r=0;r<n.length;r++)if(s=n[r],!Ar(t[s],e[s]))return!1;return!0}function Ar(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;const n=[...t].sort(),i=[...e].sort();return n.every((t,e)=>i[e]===t)}return t===e}function Rr(t){return Array.prototype.concat.apply([],t)}function Dr(t){return t.length>0?t[t.length-1]:null}function Ir(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Pr(t){return Object(i.tb)(t)?t:Object(i.ub)(t)?Object(bi.a)(Promise.resolve(t)):Object(Ci.a)(t)}function Mr(t,e,n){return n?function(t,e){return Tr(t,e)}(t.queryParams,e.queryParams)&&Lr(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>Ar(t[n],e[n]))}(t.queryParams,e.queryParams)&&jr(t.root,e.root)}function Lr(t,e){if(!Vr(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(const n in e.children){if(!t.children[n])return!1;if(!Lr(t.children[n],e.children[n]))return!1}return!0}function jr(t,e){return Fr(t,e,e.segments)}function Fr(t,e,n){if(t.segments.length>n.length)return!!Vr(t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!Vr(t.segments,n))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!jr(t.children[n],e.children[n]))return!1}return!0}{const i=n.slice(0,t.segments.length),s=n.slice(t.segments.length);return!!Vr(t.segments,i)&&!!t.children.primary&&Fr(t.children.primary,e,s)}}class Nr{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Sr(this.queryParams)),this._queryParamMap}toString(){return Yr.serialize(this)}}class Ur{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Ir(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return $r(this)}}class Br{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Sr(this.parameters)),this._parameterMap}toString(){return Zr(this)}}function Vr(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class Hr{}class zr{parse(t){const e=new io(t);return new Nr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`/${Wr(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${qr(e)}=${qr(t)}`).join("&"):`${qr(e)}=${qr(n)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Yr=new zr;function $r(t){return t.segments.map(t=>Zr(t)).join("/")}function Wr(t,e){if(!t.hasChildren())return $r(t);if(e){const e=t.children.primary?Wr(t.children.primary,!1):"",n=[];return Ir(t.children,(t,e)=>{"primary"!==e&&n.push(`${e}:${Wr(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return Ir(t.children,(t,i)=>{"primary"===i&&(n=n.concat(e(t,i)))}),Ir(t.children,(t,i)=>{"primary"!==i&&(n=n.concat(e(t,i)))}),n}(t,(e,n)=>"primary"===n?[Wr(t.children.primary,!1)]:[`${n}:${Wr(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${$r(t)}/${e[0]}`:`${$r(t)}/(${e.join("//")})`}}function Kr(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qr(t){return Kr(t).replace(/%3B/gi,";")}function Gr(t){return Kr(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Qr(t){return decodeURIComponent(t)}function Xr(t){return Qr(t.replace(/\+/g,"%20"))}function Zr(t){return`${Gr(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Gr(t)}=${Gr(e[t])}`).join("")}`;var e}const Jr=/^[^\/()?;=#]+/;function to(t){const e=t.match(Jr);return e?e[0]:""}const eo=/^[^=?&#]+/,no=/^[^?&#]+/;class io{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ur([],{}):new Ur([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Ur(t,e)),n}parseSegment(){const t=to(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Br(Qr(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=to(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=to(this.remaining);t&&(n=t,this.capture(n))}t[Qr(e)]=Qr(n)}parseQueryParam(t){const e=function(t){const e=t.match(eo);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(no);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=Xr(e),s=Xr(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(s)}else t[i]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=to(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const r=this.parseChildren();e[s]=1===Object.keys(r).length?r.primary:new Ur([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class so{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=ro(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=ro(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=oo(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return oo(t,this._root).map(t=>t.value)}}function ro(t,e){if(t===e.value)return e;for(const n of e.children){const e=ro(t,n);if(e)return e}return null}function oo(t,e){if(t===e.value)return[e];for(const n of e.children){const i=oo(t,n);if(i.length)return i.unshift(e),i}return[]}class ao{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function lo(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class co extends so{constructor(t,e){super(t),this.snapshot=e,go(this,t)}toString(){return this.snapshot.toString()}}function uo(t,e){const n=function(t,e){const n=new fo([],{},{},"",{},"primary",e,null,t.root,-1,{});return new mo("",new ao(n,[]))}(t,e),i=new Ss.a([new Br("",{})]),s=new Ss.a({}),r=new Ss.a({}),o=new Ss.a({}),a=new Ss.a(""),l=new ho(i,s,o,a,r,"primary",e,n.root);return l.snapshot=n.root,new co(new ao(l,[]),n)}class ho{constructor(t,e,n,i,s,r,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Object(Ti.a)(t=>Sr(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(Ti.a)(t=>Sr(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function po(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class fo{constructor(t,e,n,i,s,r,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Sr(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Sr(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class mo extends so{constructor(t,e){super(e),this.url=t,go(this,e)}toString(){return _o(this._root)}}function go(t,e){e.value._routerState=t,e.children.forEach(e=>go(t,e))}function _o(t){const e=t.children.length>0?` { ${t.children.map(_o).join(", ")} } `:"";return`${t.value}${e}`}function bo(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Tr(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Tr(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!Tr(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),Tr(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function yo(t,e){var n,i;return Tr(t.params,e.params)&&Vr(n=t.url,i=e.url)&&n.every((t,e)=>Tr(t.parameters,i[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||yo(t.parent,e.parent))}function vo(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const s=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return vo(t,e,i);return vo(t,e)})}(t,e,n);return new ao(i,s)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return wo(e,t),t}}const n=new ho(new Ss.a((i=e.value).url),new Ss.a(i.params),new Ss.a(i.queryParams),new Ss.a(i.fragment),new Ss.a(i.data),i.outlet,i.component,i),s=e.children.map(e=>vo(t,e));return new ao(n,s)}var i}function wo(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n<t.children.length;++n)wo(t.children[n],e.children[n])}function Co(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Oo(t){return"object"==typeof t&&null!=t&&t.outlets}function xo(t,e,n,i,s){let r={};return i&&Ir(i,(t,e)=>{r[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new Nr(n.root===t?e:So(n.root,t,e),r,s)}function So(t,e,n){const i={};return Ir(t.children,(t,s)=>{i[s]=t===e?n:So(t,e,n)}),new Ur(t.segments,i)}class Eo{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Co(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(Oo);if(i&&i!==Dr(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ko{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function To(t,e,n){if(t||(t=new Ur([],{})),0===t.segments.length&&t.hasChildren())return Ao(t,e,n);const i=function(t,e,n){let i=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s<t.segments.length;){if(i>=n.length)return r;const e=t.segments[s],o=n[i];if(Oo(o))break;const a=`${o}`,l=i<n.length-1?n[i+1]:null;if(s>0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!Po(a,l,e))return r;i+=2}else{if(!Po(a,{},e))return r;i++}s++}return{match:!0,pathIndex:s,commandIndex:i}}(t,e,n),s=n.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const e=new Ur(t.segments.slice(0,i.pathIndex),{});return e.children.primary=new Ur(t.segments.slice(i.pathIndex),t.children),Ao(e,0,s)}return i.match&&0===s.length?new Ur(t.segments,{}):i.match&&!t.hasChildren()?Ro(t,e,n):i.match?Ao(t,0,s):Ro(t,e,n)}function Ao(t,e,n){if(0===n.length)return new Ur(t.segments,{});{const i=function(t){return Oo(t[0])?t[0].outlets:{primary:t}}(n),s={};return Ir(i,(n,i)=>{"string"==typeof n&&(n=[n]),null!==n&&(s[i]=To(t.children[i],e,n))}),Ir(t.children,(t,e)=>{void 0===i[e]&&(s[e]=t)}),new Ur(t.segments,s)}}function Ro(t,e,n){const i=t.segments.slice(0,e);let s=0;for(;s<n.length;){const r=n[s];if(Oo(r)){const t=Do(r.outlets);return new Ur(i,t)}if(0===s&&Co(n[0])){i.push(new Br(t.segments[e].path,Io(n[0]))),s++;continue}const o=Oo(r)?r.outlets.primary:`${r}`,a=s<n.length-1?n[s+1]:null;o&&a&&Co(a)?(i.push(new Br(o,Io(a))),s+=2):(i.push(new Br(o,{})),s++)}return new Ur(i,{})}function Do(t){const e={};return Ir(t,(t,n)=>{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=Ro(new Ur([],{}),0,t))}),e}function Io(t){const e={};return Ir(t,(t,n)=>e[n]=`${t}`),e}function Po(t,e,n){return t==n.path&&Tr(e,n.parameters)}class Mo{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),bo(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=lo(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),Ir(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(i===s)if(i.component){const s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),i=n&&t.value.component?n.children:e,s=lo(t);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const i=lo(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new Cr(t.value.snapshot))}),t.children.length&&this.forwardEvent(new vr(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(bo(i),i===s)if(i.component){const s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Lo(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=s,e.outlet&&e.outlet.activateWith(i,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function Lo(t){bo(t.value),t.children.forEach(Lo)}class jo{constructor(t,e){this.routes=t,this.module=e}}function Fo(t){return"function"==typeof t}function No(t){return t instanceof Nr}const Uo=Symbol("INITIAL_VALUE");function Bo(){return Object(Us.a)(t=>Is(t.map(t=>t.pipe(Object($i.a)(1),Bs(Uo)))).pipe(Object(Vs.a)((t,e)=>{let n=!1;return e.reduce((t,i,s)=>{if(t!==Uo)return t;if(i===Uo&&(n=!0),!n){if(!1===i)return i;if(s===e.length-1||No(i))return i}return t},t)},Uo),Object(Ri.a)(t=>t!==Uo),Object(Ti.a)(t=>No(t)?t:!0===t),Object($i.a)(1)))}let Vo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&i.Pb(0,"router-outlet")},directives:function(){return[Fa]},encapsulation:2}),t})();function Ho(t,e=""){for(let n=0;n<t.length;n++){const i=t[n];zo(i,Yo(e,i))}}function zo(t,e){t.children&&Ho(t.children,e)}function Yo(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function $o(t){const e=t.children&&t.children.map($o),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=Vo),n}function Wo(t){return t.outlet||"primary"}function Ko(t,e){const n=t.filter(t=>Wo(t)===e);return n.push(...t.filter(t=>Wo(t)!==e)),n}const qo={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Go(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},qo):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||kr)(n,t,e);if(!s)return Object.assign({},qo);const r={};Ir(s.posParams,(t,e)=>{r[e]=t.path});const o=s.consumed.length>0?Object.assign(Object.assign({},r),s.consumed[s.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:o,positionalParamSegments:null!==(i=s.posParams)&&void 0!==i?i:{}}}function Qo(t,e,n,i,s="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>Xo(t,e,n)&&"primary"!==Wo(n))}(t,n,i)){const s=new Ur(e,function(t,e,n,i){const s={};s.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const r of n)if(""===r.path&&"primary"!==Wo(r)){const n=new Ur([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[Wo(r)]=n}return s}(t,e,i,new Ur(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Xo(t,e,n))}(t,n,i)){const r=new Ur(t.segments,function(t,e,n,i,s,r){const o={};for(const a of i)if(Xo(t,n,a)&&!s[Wo(a)]){const n=new Ur([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[Wo(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,i,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}const r=new Ur(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}function Xo(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function Zo(t,e,n,i){return!!(Wo(t)===i||"primary"!==i&&Xo(e,n,t))&&("**"===t.path||Go(e,t,n).matched)}function Jo(t,e,n){return 0===e.length&&!t.children[n]}class ta{constructor(t){this.segmentGroup=t||null}}class ea{constructor(t){this.urlTree=t}}function na(t){return new gi.a(e=>e.error(new ta(t)))}function ia(t){return new gi.a(e=>e.error(new ea(t)))}function sa(t){return new gi.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class ra{constructor(t,e,n,s,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=s,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(i.z)}apply(){const t=Qo(this.urlTree.root,[],[],this.config).segmentGroup,e=new Ur(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,"primary").pipe(Object(Ti.a)(t=>this.createUrlTree(oa(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(Ai.a)(t=>{if(t instanceof ea)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof ta)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(Object(Ti.a)(e=>this.createUrlTree(oa(e),t.queryParams,t.fragment))).pipe(Object(Ai.a)(t=>{if(t instanceof ta)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new Ur([],{primary:t}):t;return new Nr(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(Ti.a)(t=>new Ur([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){const i=[];for(const s of Object.keys(n.children))"primary"===s?i.unshift(s):i.push(s);return Object(bi.a)(i).pipe(Object(Wi.a)(i=>{const s=n.children[i],r=Ko(e,i);return this.expandSegmentGroup(t,r,s,i).pipe(Object(Ti.a)(t=>({segment:t,outlet:i})))}),Object(Vs.a)((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Object(Ri.a)((e,n)=>t(e,n,i)):Js.a,zs(1),n?Qs(e):Ws(()=>new Ls))}())}expandSegment(t,e,n,i,s,r){return Object(bi.a)(n).pipe(Object(Wi.a)(o=>this.expandSegmentAgainstRoute(t,e,n,o,i,s,r).pipe(Object(Ai.a)(t=>{if(t instanceof ta)return Object(Ci.a)(null);throw t}))),tr(t=>!!t),Object(Ai.a)((t,n)=>{if(t instanceof Ls||"EmptyError"===t.name){if(Jo(e,i,s))return Object(Ci.a)(new Ur([],{}));throw new ta(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,i,s,r,o){return Zo(i,e,s,r)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,s,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r):na(e):na(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?ia(s):this.lineralizeSegments(n,s).pipe(Object(Ni.a)(n=>{const s=new Ur(n,{});return this.expandSegment(t,s,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Go(e,i,s);if(!o)return na(e);const u=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?ia(u):this.lineralizeSegments(i,u).pipe(Object(Ni.a)(i=>this.expandSegment(t,e,n,i.concat(s.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,n,i,s){if("**"===n.path)return n.loadChildren?(n._loadedConfig?Object(Ci.a)(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(Object(Ti.a)(t=>(n._loadedConfig=t,new Ur(i,{})))):Object(Ci.a)(new Ur(i,{}));const{matched:r,consumedSegments:o,lastChild:a}=Go(e,n,i);if(!r)return na(e);const l=i.slice(a);return this.getChildConfig(t,n,i).pipe(Object(Ni.a)(t=>{const i=t.module,r=t.routes,{segmentGroup:a,slicedSegments:c}=Qo(e,o,l,r),u=new Ur(a.segments,a.children);if(0===c.length&&u.hasChildren())return this.expandChildren(i,r,u).pipe(Object(Ti.a)(t=>new Ur(o,t)));if(0===r.length&&0===c.length)return Object(Ci.a)(new Ur(o,{}));const h=Wo(n)===s;return this.expandSegment(i,u,r,c,h?"primary":s,!0).pipe(Object(Ti.a)(t=>new Ur(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Object(Ci.a)(new jo(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(Ci.a)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(Object(Ni.a)(n=>n?this.configLoader.load(t.injector,e).pipe(Object(Ti.a)(t=>(e._loadedConfig=t,t))):function(t){return new gi.a(e=>e.error(Er(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Object(Ci.a)(new jo([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;if(!i||0===i.length)return Object(Ci.a)(!0);const s=i.map(i=>{const s=t.get(i);let r;if(function(t){return t&&Fo(t.canLoad)}(s))r=s.canLoad(e,n);else{if(!Fo(s))throw new Error("Invalid CanLoad guard");r=s(e,n)}return Pr(r)});return Object(Ci.a)(s).pipe(Bo(),ir(t=>{if(!No(t))return;const e=Er(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),Object(Ti.a)(t=>!0===t))}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Object(Ci.a)(n);if(i.numberOfChildren>1||!i.children.primary)return sa(t.redirectTo);i=i.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const s=this.createSegmentGroup(t,e.root,n,i);return new Nr(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Ir(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[i]=e[s]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const s=this.createSegments(t,e.segments,n,i);let r={};return Ir(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,n,i)}),new Ur(s,r)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function oa(t){const e={};for(const n of Object.keys(t.children)){const i=oa(t.children[n]);(i.segments.length>0||i.hasChildren())&&(e[n]=i)}return function(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Ur(t.segments.concat(e.segments),e.children)}return t}(new Ur(t.segments,e))}class aa{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class la{constructor(t,e){this.component=t,this.route=e}}function ca(t,e,n){const i=t._root;return ha(i,e?e._root:null,n,[i.value])}function ua(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function ha(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=lo(e);return t.children.forEach(t=>{!function(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Vr(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Vr(t.url,e.url)||!Tr(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!yo(t,e)||!Tr(t.queryParams,e.queryParams);case"paramsChange":default:return!yo(t,e)}}(o,r,r.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new aa(i)):(r.data=o.data,r._resolvedData=o._resolvedData),ha(t,e,r.component?a?a.children:null:n,i,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new la(a.outlet.component,o))}else o&&da(e,a,s),s.canActivateChecks.push(new aa(i)),ha(t,null,r.component?a?a.children:null:n,i,s)}(t,r[t.value.outlet],n,i.concat([t.value]),s),delete r[t.value.outlet]}),Ir(r,(t,e)=>da(t,n.getContext(e),s)),s}function da(t,e,n){const i=lo(t),s=t.value;Ir(i,(t,i)=>{da(t,s.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new la(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class pa{}function fa(t){return new gi.a(e=>e.error(t))}class ma{constructor(t,e,n,i,s,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){const t=Qo(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary");if(null===e)return null;const n=new fo([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new ao(n,e),s=new mo(this.url,i);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,n=po(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const s of Object.keys(e.children)){const i=e.children[s],r=Ko(t,s),o=this.processSegmentGroup(r,i,s);if(null===o)return null;n.push(...o)}const i=_a(n);return i.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,n,i){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,n,i);if(null!==t)return t}return Jo(e,n,i)?[]:null}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo||!Zo(t,e,n,i))return null;let s,r=[],o=[];if("**"===t.path){const i=n.length>0?Dr(n).parameters:{};s=new fo(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,va(t),Wo(t),t.component,t,ba(e),ya(e)+n.length,wa(t))}else{const i=Go(e,t,n);if(!i.matched)return null;r=i.consumedSegments,o=n.slice(i.lastChild),s=new fo(r,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,va(t),Wo(t),t.component,t,ba(e),ya(e)+r.length,wa(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=Qo(e,r,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new ao(s,t)]}if(0===a.length&&0===c.length)return[new ao(s,[])];const u=Wo(t)===i,h=this.processSegment(a,l,c,u?"primary":i);return null===h?null:[new ao(s,h)]}}function ga(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function _a(t){const e=[],n=new Set;for(const i of t){if(!ga(i)){e.push(i);continue}const t=e.find(t=>i.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...i.children),n.add(t)):e.push(i)}for(const i of n){const t=_a(i.children);e.push(new ao(i.value,t))}return e.filter(t=>!n.has(t))}function ba(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function ya(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function va(t){return t.data||{}}function wa(t){return t.resolve||{}}function Ca(t){return Object(Us.a)(e=>{const n=t(e);return n?Object(bi.a)(n).pipe(Object(Ti.a)(()=>e)):Object(Ci.a)(e)})}class Oa extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const xa=new i.s("ROUTES");class Sa{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe(Object(Ti.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const s=n.create(t);return new jo(Rr(s.injector.get(xa,void 0,i.r.Self|i.r.Optional)).map($o),s)}),Object(Ai.a)(t=>{throw e._loader$=void 0,t}));return e._loader$=new Ns.a(n,()=>new _i.a).pipe(Object(or.a)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?Object(bi.a)(this.loader.load(t)):Pr(t()).pipe(Object(Ni.a)(t=>t instanceof i.x?Object(Ci.a)(t):Object(bi.a)(this.compiler.compileModuleAsync(t))))}}class Ea{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new ka,this.attachRef=null}}class ka{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Ea,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class Ta{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Aa(t){throw t}function Ra(t,e,n){return e.parse("/")}function Da(t,e){return Object(Ci.a)(null)}let Ia=(()=>{class t{constructor(t,e,n,s,r,o,a,l){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=s,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new _i.a,this.errorHandler=Aa,this.malformedUriErrorHandler=Ra,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Da,afterPreactivation:Da},this.urlHandlingStrategy=new Ta,this.routeReuseStrategy=new Oa,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=r.get(i.z),this.console=r.get(i.bb);const c=r.get(i.B);this.isNgZoneEnabled=c instanceof i.B&&i.B.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new Nr(new Ur([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Sa(o,a,t=>this.triggerEvent(new _r(t)),t=>this.triggerEvent(new br(t))),this.routerState=uo(this.currentUrlTree,this.rootComponentType),this.transitions=new Ss.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Object(Ri.a)(t=>0!==t.id),Object(Ti.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Object(Us.a)(t=>{let n=!1,i=!1;return Object(Ci.a)(t).pipe(ir(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(Us.a)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(Ci.a)(t).pipe(Object(Us.a)(t=>{const n=this.transitions.getValue();return e.next(new lr(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?yi.a:Promise.resolve(t)}),(i=this.ngModule.injector,s=this.configLoader,r=this.urlSerializer,o=this.config,Object(Us.a)(t=>function(t,e,n,i,s){return new ra(t,e,n,i,s).apply()}(i,s,r,t.extractedUrl,o).pipe(Object(Ti.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e}))))),ir(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,s){return Object(Ni.a)(r=>function(t,e,n,i,s="emptyOnly",r="legacy"){try{const o=new ma(t,e,n,i,s,r).recognize();return null===o?fa(new pa):Object(Ci.a)(o)}catch(o){return fa(o)}}(t,e,r.urlAfterRedirects,n(r.urlAfterRedirects),i,s).pipe(Object(Ti.a)(t=>Object.assign(Object.assign({},r),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),ir(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects);const n=new dr(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var i,s,r,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:s,restoredState:r,extras:o}=t,a=new lr(n,this.serializeUrl(i),s,r);e.next(a);const l=uo(i,this.rootComponentType).snapshot;return Object(Ci.a)(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),yi.a}),Ca(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),ir(t=>{const e=new pr(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(Ti.a)(t=>Object.assign(Object.assign({},t),{guards:ca(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return Object(Ni.a)(n=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:o}}=n;return 0===o.length&&0===r.length?Object(Ci.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return Object(bi.a)(t).pipe(Object(Ni.a)(t=>function(t,e,n,i,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!r||0===r.length)return Object(Ci.a)(!0);const o=r.map(r=>{const o=ua(r,e,s);let a;if(function(t){return t&&Fo(t.canDeactivate)}(o))a=Pr(o.canDeactivate(t,e,n,i));else{if(!Fo(o))throw new Error("Invalid CanDeactivate guard");a=Pr(o(t,e,n,i))}return a.pipe(tr())});return Object(Ci.a)(o).pipe(Bo())}(t.component,t.route,n,e,i)),tr(t=>!0!==t,!0))}(o,i,s,t).pipe(Object(Ni.a)(n=>n&&"boolean"==typeof n?function(t,e,n,i){return Object(bi.a)(e).pipe(Object(Wi.a)(e=>Fs(function(t,e){return null!==t&&e&&e(new yr(t)),Object(Ci.a)(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new wr(t)),Object(Ci.a)(!0)}(e.route,i),function(t,e,n){const i=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>vi(()=>{const s=e.guards.map(s=>{const r=ua(s,e.node,n);let o;if(function(t){return t&&Fo(t.canActivateChild)}(r))o=Pr(r.canActivateChild(i,t));else{if(!Fo(r))throw new Error("Invalid CanActivateChild guard");o=Pr(r(i,t))}return o.pipe(tr())});return Object(Ci.a)(s).pipe(Bo())}));return Object(Ci.a)(s).pipe(Bo())}(t,e.path,n),function(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return Object(Ci.a)(!0);const s=i.map(i=>vi(()=>{const s=ua(i,e,n);let r;if(function(t){return t&&Fo(t.canActivate)}(s))r=Pr(s.canActivate(e,t));else{if(!Fo(s))throw new Error("Invalid CanActivate guard");r=Pr(s(e,t))}return r.pipe(tr())}));return Object(Ci.a)(s).pipe(Bo())}(t,e.route,n))),tr(t=>!0!==t,!0))}(i,r,t,e):Object(Ci.a)(n)),Object(Ti.a)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),ir(t=>{if(No(t.guardsResult)){const e=Er(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new fr(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Object(Ri.a)(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new ur(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),Ca(t=>{if(t.guards.canActivateChecks.length)return Object(Ci.a)(t).pipe(ir(t=>{const e=new mr(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(Us.a)(t=>{let n=!1;return Object(Ci.a)(t).pipe((i=this.paramsInheritanceStrategy,s=this.ngModule.injector,Object(Ni.a)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return Object(Ci.a)(t);let r=0;return Object(bi.a)(n).pipe(Object(Wi.a)(t=>function(t,e,n,i){return function(t,e,n,i){const s=Object.keys(t);if(0===s.length)return Object(Ci.a)({});const r={};return Object(bi.a)(s).pipe(Object(Ni.a)(s=>function(t,e,n,i){const s=ua(t,e,i);return Pr(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,i).pipe(ir(t=>{r[s]=t}))),zs(1),Object(Ni.a)(()=>Object.keys(r).length===s.length?Object(Ci.a)(r):yi.a))}(t._resolve,t,e,i).pipe(Object(Ti.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),po(t,n).resolve),null)))}(t.route,e,i,s)),ir(()=>r++),zs(1),Object(Ni.a)(e=>r===n.length?Object(Ci.a)(t):yi.a))})),ir({next:()=>n=!0,complete:()=>{if(!n){const n=new ur(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var i,s}),ir(t=>{const e=new gr(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Ca(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),Object(Ti.a)(t=>{const e=function(t,e,n){const i=vo(t,e._root,n?n._root:void 0);return new co(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),ir(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,r=this.routeReuseStrategy,o=t=>this.triggerEvent(t),Object(Ti.a)(t=>(new Mo(r,t.targetRouterState,t.currentRouterState,o).activate(s),t))),ir({next(){n=!0},complete(){n=!0}}),Ki(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new ur(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null}),Object(Ai.a)(n=>{if(i=!0,(s=n)&&s.ngNavigationCancelingError){const i=No(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new ur(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const i=new hr(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(r){t.reject(r)}}var s;return yi.a}));var s,r,o}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:i}=e,s={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(i,t,n,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Ho(t),this.config=t.map($o),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:s,queryParamsHandling:r,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:s;let c=null;switch(r){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,i,s){if(0===n.length)return xo(e.root,e.root,e,i,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Eo(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return Ir(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===s?(i.split("/").forEach((i,s)=>{0==s&&"."===i||(0==s&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new Eo(n,e,i)}(n);if(r.toRoot())return xo(e.root,new Ur([],{}),e,i,s);const o=function(t,e,n){if(t.isAbsolute)return new ko(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new ko(t,t===e.root,0)}const i=Co(t.commands[0])?0:1;return function(t,e,n){let i=t,s=e,r=n;for(;r>s;){if(r-=s,i=i.parent,!i)throw new Error("Invalid number of '../'");s=i.segments.length}return new ko(i,!1,s-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?Ao(o.segmentGroup,o.index,r.commands):To(o.segmentGroup,o.index,r.commands);return xo(o.segmentGroup,a,e,i,s)}(a,this.currentUrlTree,t,c,l)}navigateByUrl(t,e={skipLocationChange:!1}){const n=No(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}isActive(t,e){if(No(t))return Mr(this.currentUrlTree,t,e);const n=this.parseUrl(t);return Mr(this.currentUrlTree,n,e)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new cr(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,s){if(this.disposed)return Promise.resolve(!1);const r=this.getTransition(),o="imperative"!==e&&"imperative"===(null==r?void 0:r.source),a=(this.lastSuccessfulId===r.id||this.currentNavigation?r.rawUrl:r.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let l,c,u;s?(l=s.resolve,c=s.reject,u=s.promise):u=new Promise((t,e)=>{l=t,c=e});const h=++this.navigationId;return this.setTransition({id:h,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,i){const s=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(s,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(i.Q),i.Yb(Hr),i.Yb(ka),i.Yb(w),i.Yb(i.t),i.Yb(i.y),i.Yb(i.i),i.Yb(void 0))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),Pa=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new _i.a,null==n&&i.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:La(this.skipLocationChange),replaceUrl:La(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:La(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Ia),i.Ob(ho),i.Zb("tabindex"),i.Ob(i.G),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&i.cc("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[i.Bb]}),t})(),Ma=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new _i.a,this.subscription=t.events.subscribe(t=>{t instanceof cr&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i,s){if(0!==t||e||n||i||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:La(this.skipLocationChange),replaceUrl:La(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:La(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Ia),i.Ob(ho),i.Ob(g))},t.\u0275dir=i.Jb({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&i.cc("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(i.Xb("href",e.href,i.zc),i.Eb("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[i.Bb]}),t})();function La(t){return""===t||!!t}let ja=(()=>{class t{constructor(t,e,n,i,s,r){this.router=t,this.element=e,this.renderer=n,this.cdr=i,this.link=s,this.linkWithHref=r,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof cr&&this.update()})}ngAfterContentInit(){Object(Ci.a)(this.links.changes,this.linksWithHrefs.changes,Object(Ci.a)(null)).pipe(Object(js.a)()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=Object(bi.a)(e).pipe(Object(js.a)()).subscribe(t=>{this.isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Ia),i.Ob(i.l),i.Ob(i.G),i.Ob(i.h),i.Ob(Pa,8),i.Ob(Ma,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){if(1&t&&(i.Hb(n,Pa,1),i.Hb(n,Ma,1)),2&t){let t;i.sc(t=i.dc())&&(e.links=t),i.sc(t=i.dc())&&(e.linksWithHrefs=t)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[i.Bb]}),t})(),Fa=(()=>{class t{constructor(t,e,n,s,r){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.o,this.deactivateEvents=new i.o,this.name=s||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,s=new Na(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(ka),i.Ob(i.S),i.Ob(i.j),i.Zb("name"),i.Ob(i.h))},t.\u0275dir=i.Jb({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Na{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===ho?this.route:t===ka?this.childContexts:this.parent.get(t,e)}}class Ua{}class Ba{preload(t,e){return Object(Ci.a)(null)}}let Va=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.injector=i,this.preloadingStrategy=s,this.loader=new Sa(e,n,e=>t.triggerEvent(new _r(e)),e=>t.triggerEvent(new br(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(Ri.a)(t=>t instanceof cr),Object(Wi.a)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(i.z);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return Object(bi.a)(n).pipe(Object(js.a)(),Object(Ti.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?Object(Ci.a)(e._loadedConfig):this.loader.load(t.injector,e)).pipe(Object(Ni.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Ia),i.Yb(i.y),i.Yb(i.i),i.Yb(i.t),i.Yb(Ua))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),Ha=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof lr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof cr&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Or&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new Or(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Ia),i.Yb(lt),i.Yb(void 0))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const za=new i.s("ROUTER_CONFIGURATION"),Ya=new i.s("ROUTER_FORROOT_GUARD"),$a=[w,{provide:Hr,useClass:zr},{provide:Ia,useFactory:function(t,e,n,i,s,o,a,l={},c,u){const h=new Ia(null,t,e,n,i,s,o,Rr(a));if(c&&(h.urlHandlingStrategy=c),u&&(h.routeReuseStrategy=u),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(l,h),l.enableTracing){const t=r();h.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return h},deps:[Hr,ka,w,i.t,i.y,i.i,xa,za,[class{},new i.C],[class{},new i.C]]},ka,{provide:ho,useFactory:function(t){return t.routerState.root},deps:[Ia]},{provide:i.y,useClass:i.N},Va,Ba,class{preload(t,e){return e().pipe(Object(Ai.a)(()=>Object(Ci.a)(null)))}},{provide:za,useValue:{enableTracing:!1}}];function Wa(){return new i.A("Router",Ia)}let Ka=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[$a,Xa(e),{provide:Ya,useFactory:Qa,deps:[[Ia,new i.C,new i.M]]},{provide:za,useValue:n||{}},{provide:g,useFactory:Ga,deps:[a,[new i.q(b),new i.C],za]},{provide:Ha,useFactory:qa,deps:[Ia,lt,za]},{provide:Ua,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Ba},{provide:i.A,multi:!0,useFactory:Wa},[Za,{provide:i.d,multi:!0,useFactory:Ja,deps:[Za]},{provide:el,useFactory:tl,deps:[Za]},{provide:i.b,multi:!0,useExisting:el}]]}}static forChild(e){return{ngModule:t,providers:[Xa(e)]}}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Ya,8),i.Yb(Ia,8))},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({}),t})();function qa(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Ha(t,e,n)}function Ga(t,e,n={}){return n.useHash?new v(t,e):new y(t,e)}function Qa(t){return"guarded"}function Xa(t){return[{provide:i.a,multi:!0,useValue:t},{provide:xa,multi:!0,useValue:t}]}let Za=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new _i.a}appInitializer(){return this.injector.get(c,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(Ia),i=this.injector.get(za);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?Object(Ci.a)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(za),n=this.injector.get(Va),s=this.injector.get(Ha),r=this.injector.get(Ia),o=this.injector.get(i.g);t===o.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||r.initialNavigation(),n.setUpPreloading(),s.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(i.t))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();function Ja(t){return t.appInitializer.bind(t)}function tl(t){return t.bootstrapListener.bind(t)}const el=new i.s("Router Initializer");Object(fi.o)("@ngrx/router-store/request",Object(fi.s)()),Object(fi.o)("@ngrx/router-store/navigation",Object(fi.s)()),Object(fi.o)("@ngrx/router-store/cancel",Object(fi.s)());const nl="@ngrx/router-store/error";Object(fi.o)(nl,Object(fi.s)()),Object(fi.o)("@ngrx/router-store/navigated",Object(fi.s)());class il{}class sl{serialize(t){return{root:this.serializeRoute(t.root),url:t.url}}serializeRoute(t){const e=t.children.map(t=>this.serializeRoute(t));return{params:t.params,paramMap:t.paramMap,data:t.data,url:t.url,outlet:t.outlet,routeConfig:t.routeConfig?{component:t.routeConfig.component,path:t.routeConfig.path,pathMatch:t.routeConfig.pathMatch,redirectTo:t.routeConfig.redirectTo,outlet:t.routeConfig.outlet}:null,queryParams:t.queryParams,queryParamMap:t.queryParamMap,fragment:t.fragment,component:t.routeConfig?t.routeConfig.component:void 0,root:void 0,parent:void 0,firstChild:e[0],pathFromRoot:void 0,children:e}}}class rl{serialize(t){return{root:this.serializeRoute(t.root),url:t.url}}serializeRoute(t){const e=t.children.map(t=>this.serializeRoute(t));return{params:t.params,data:t.data,url:t.url,outlet:t.outlet,routeConfig:t.routeConfig?{path:t.routeConfig.path,pathMatch:t.routeConfig.pathMatch,redirectTo:t.routeConfig.redirectTo,outlet:t.routeConfig.outlet}:null,queryParams:t.queryParams,fragment:t.fragment,firstChild:e[0],children:e}}}var ol=function(t){return t[t.PreActivation=1]="PreActivation",t[t.PostActivation=2]="PostActivation",t}({});const al=new i.s("@ngrx/router-store Internal Configuration"),ll=new i.s("@ngrx/router-store Configuration");function cl(t){return Object.assign({stateKey:"router",serializer:rl,navigationActionTiming:ol.PreActivation},t)}var ul=function(t){return t[t.NONE=1]="NONE",t[t.ROUTER=2]="ROUTER",t[t.STORE=3]="STORE",t}({});let hl=(()=>{class t{constructor(t,e,n,s,r,o){this.store=t,this.router=e,this.serializer=n,this.errorHandler=s,this.config=r,this.activeRuntimeChecks=o,this.lastEvent=null,this.routerState=null,this.trigger=ul.NONE,this.stateKey=this.config.stateKey,!Object(fi.r)()&&Object(i.Y)()&&((null==o?void 0:o.strictActionSerializability)||(null==o?void 0:o.strictStateSerializability))&&this.serializer instanceof sl&&console.warn("@ngrx/router-store: The serializability runtime checks cannot be enabled with the DefaultRouterStateSerializer. The default serializer has an unserializable router state and actions that are not serializable. To use the serializability runtime checks either use the MinimalRouterStateSerializer or implement a custom router state serializer. This also applies to Ivy with immutability runtime checks."),this.setUpStoreStateListener(),this.setUpRouterEventsListener()}static forRoot(e={}){return{ngModule:t,providers:[{provide:al,useValue:e},{provide:ll,useFactory:cl,deps:[al]},{provide:il,useClass:e.serializer?e.serializer:0===e.routerState?sl:rl}]}}setUpStoreStateListener(){this.store.pipe(Object(fi.t)(this.stateKey),Object(Qi.a)(this.store)).subscribe(([t,e])=>{this.navigateIfNeeded(t,e)})}navigateIfNeeded(t,e){if(!t||!t.state)return;if(this.trigger===ul.ROUTER)return;if(this.lastEvent instanceof lr)return;const n=t.state.url;var i;i=n,dl(this.router.url)!==dl(i)&&(this.storeState=e,this.trigger=ul.STORE,this.router.navigateByUrl(n).catch(t=>{this.errorHandler.handleError(t)}))}setUpRouterEventsListener(){const t=this.config.navigationActionTiming===ol.PostActivation;let e;this.router.events.pipe(Object(Qi.a)(this.store)).subscribe(([n,i])=>{this.lastEvent=n,n instanceof lr?(this.routerState=this.serializer.serialize(this.router.routerState.snapshot),this.trigger!==ul.STORE&&(this.storeState=i,this.dispatchRouterRequest(n))):n instanceof dr?(e=n,t||this.trigger===ul.STORE||this.dispatchRouterNavigation(n)):n instanceof ur?(this.dispatchRouterCancel(n),this.reset()):n instanceof hr?(this.dispatchRouterError(n),this.reset()):n instanceof cr&&(this.trigger!==ul.STORE&&(t&&this.dispatchRouterNavigation(e),this.dispatchRouterNavigated(n)),this.reset())})}dispatchRouterRequest(t){this.dispatchRouterAction("@ngrx/router-store/request",{event:t})}dispatchRouterNavigation(t){const e=this.serializer.serialize(t.state);this.dispatchRouterAction("@ngrx/router-store/navigation",{routerState:e,event:new dr(t.id,t.url,t.urlAfterRedirects,e)})}dispatchRouterCancel(t){this.dispatchRouterAction("@ngrx/router-store/cancel",{storeState:this.storeState,event:t})}dispatchRouterError(t){this.dispatchRouterAction(nl,{storeState:this.storeState,event:new hr(t.id,t.url,`${t}`)})}dispatchRouterNavigated(t){const e=this.serializer.serialize(this.router.routerState.snapshot);this.dispatchRouterAction("@ngrx/router-store/navigated",{event:t,routerState:e})}dispatchRouterAction(t,e){this.trigger=ul.ROUTER;try{this.store.dispatch({type:t,payload:Object.assign(Object.assign({routerState:this.routerState},e),{event:0===this.config.routerState?e.event:{id:e.event.id,url:e.event.url,urlAfterRedirects:e.event.urlAfterRedirects}})})}finally{this.trigger=ul.NONE}}reset(){this.trigger=ul.NONE,this.storeState=null,this.routerState=null}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(fi.i),i.Yb(Ia),i.Yb(il),i.Yb(i.n),i.Yb(ll),i.Yb(fi.a))},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({}),t})();function dl(t){return t.length>0&&"/"===t[t.length-1]?t.substring(0,t.length-1):t}let pl=1;const fl=(()=>Promise.resolve())(),ml={};function gl(t){return t in ml&&(delete ml[t],!0)}const _l={setImmediate(t){const e=pl++;return ml[e]=!0,fl.then(()=>gl(e)&&t()),e},clearImmediate(t){gl(t)}};var bl=n("3N8a");class yl extends bl.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=_l.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(_l.clearImmediate(e),t.scheduled=void 0)}}var vl=n("IjjT");class wl extends vl.a{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i<s&&(t=e.shift()));if(this.active=!1,n){for(;++i<s&&(t=e.shift());)t.unsubscribe();throw n}}}const Cl=new wl(yl);function Ol(t,e,n,i){return Object(nr.a)(n)&&(i=n,n=void 0),i?Ol(t,e,n).pipe(Object(Ti.a)(t=>Object(ks.a)(t)?i(...t):i(t))):new gi.a(i=>{xl(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function xl(t,e,n,i,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,s),r=()=>i.removeEventListener(e,n,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),r=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),r=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,o=t.length;r<o;r++)xl(t[r],e,n,i,s)}i.add(r)}var Sl=n("Kj3r"),El=n("1G5W");const kl={provide:i.b,useFactory:function(t,e){return()=>{if(ot(e)){const e=Array.from(t.querySelectorAll(`[class*=${Tl}]`)),n=/\bflex-layout-.+?\b/g;e.forEach(t=>{t.classList.contains(`${Tl}ssr`)&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(n,"")})}}},deps:[o,i.D],multi:!0},Tl="flex-layout-";let Al=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({providers:[kl]}),t})();class Rl{constructor(t=!1,e="all",n="",i="",s=0){this.matches=t,this.mediaQuery=e,this.mqAlias=n,this.suffix=i,this.priority=s,this.property=""}clone(){return new Rl(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let Dl=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(t,e,n){const i=this.stylesheet.get(t);i?i.set(e,n):this.stylesheet.set(t,new Map([[e,n]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(t,e){const n=this.stylesheet.get(t);let i="";if(n){const t=n.get(e);"number"!=typeof t&&"string"!=typeof t||(i=t+"")}return i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Il={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},Pl=new i.s("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>Il}),Ml=new i.s("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),Ll=new i.s("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function jl(t,e){return t=t?t.clone():new Rl,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}const Fl=["row","column","row-reverse","column-reverse"];function Nl(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let Ul=(()=>{class t{constructor(t,e,n,i){this.elementRef=t,this.styleBuilder=e,this.styler=n,this.marshal=i,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new _i.a,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)}ngOnChanges(t){Object.keys(t).forEach(e=>{if(-1!==this.inputs.indexOf(e)){const n=e.split(".").slice(1).join(".");this.setValue(t[e].currentValue,n)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(t=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)}addStyles(t,e){const n=this.styleBuilder,i=n.shouldCache;let s=this.styleCache.get(t);s&&i||(s=n.buildStyles(t,e),i&&this.styleCache.set(t,s)),this.mru=Object.assign({},s),this.applyStyleToElement(s),n.sideEffect(t,s,e)}clearStyles(){Object.keys(this.mru).forEach(t=>{this.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(t,e=!1){if(t){const[n,i]=this.styler.getFlowDirection(t);if(!i&&e){const e=function(t){let[e,n,i]=function(t){t=t?t.toLowerCase():"";let[e,n,i]=t.split(" ");return Fl.find(t=>t===e)||(e=Fl[0]),"inline"===n&&(n="inline"!==i?i:"",i="inline"),[e,Nl(n),!!i]}(t);return function(t,e=null,n=!1){return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,n,i)}(n);this.styler.applyStyleToElements(e,[t])}return n.trim()}return"row"}hasWrap(t){return this.styler.hasWrap(t)}applyStyleToElement(t,e,n=this.nativeElement){this.styler.applyStyleToElement(n,t,e)}setValue(t,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,e)}updateWithValue(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)}}return t.\u0275fac=function(t){i.bc()},t.\u0275dir=i.Jb({type:t,features:[i.Bb]}),t})();const Bl=[{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}],Vl="(orientation: portrait) and (max-width: 599.98px)",Hl="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",zl="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",Yl="(orientation: portrait) and (min-width: 840px)",$l="(orientation: landscape) and (min-width: 1280px)",Wl={HANDSET:`${Vl}, (orientation: landscape) and (max-width: 959.98px)`,TABLET:`${Hl} , ${zl}`,WEB:`${Yl}, ${$l} `,HANDSET_PORTRAIT:`${Vl}`,TABLET_PORTRAIT:`${Hl} `,WEB_PORTRAIT:`${Yl}`,HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959.98px)",TABLET_LANDSCAPE:`${zl}`,WEB_LANDSCAPE:`${$l}`},Kl=[{alias:"handset",priority:2e3,mediaQuery:Wl.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Wl.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Wl.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Wl.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Wl.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Wl.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Wl.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Wl.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Wl.WEB_PORTRAIT,overlapping:!0}],ql=/(\.|-|_)/g;function Gl(t){let e=t.length>0?t.charAt(0):"",n=t.length>1?t.slice(1):"";return e.toUpperCase()+n}const Ql=new i.s("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=Object(i.X)(Ll),e=Object(i.X)(Pl),n=[].concat.apply([],(t||[]).map(t=>Array.isArray(t)?t:[t]));return function(t,e=[]){const n={};return t.forEach(t=>{n[t.alias]=t}),e.forEach(t=>{n[t.alias]?function(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let n of e)if(null!=n)for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e])}(n[t.alias],t):n[t.alias]=t}),(i=Object.keys(n).map(t=>n[t])).forEach(t=>{t.suffix||(t.suffix=t.alias.replace(ql,"|").split("|").map(Gl).join(""),t.overlapping=!!t.overlapping)}),i;var i}((e.disableDefaultBps?[]:Bl).concat(e.addOrientationBps?Kl:[]),n)}});function Xl(t,e){return(e&&e.priority||0)-(t&&t.priority||0)}function Zl(t,e){return(t.priority||0)-(e.priority||0)}let Jl=(()=>{class t{constructor(t){this.findByMap=new Map,this.items=[...t].sort(Zl)}findByAlias(t){return t?this.findWithPredicate(t,e=>e.alias==t):null}findByQuery(t){return this.findWithPredicate(t,e=>e.mediaQuery==t)}get overlappings(){return this.items.filter(t=>1==t.overlapping)}get aliases(){return this.items.map(t=>t.alias)}get suffixes(){return this.items.map(t=>t.suffix?t.suffix:"")}findWithPredicate(t,e){let n=this.findByMap.get(t);return n||(n=this.items.find(e)||null,this.findByMap.set(t,n)),n||null}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Ql))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(Ql))},token:t,providedIn:"root"}),t})(),tc=(()=>{class t{constructor(t,e,n){this._zone=t,this._platformId=e,this._document=n,this.source=new Ss.a(new Rl(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const t=[];return this.registry.forEach((e,n)=>{e.matches&&t.push(n)}),t}isActive(t){const e=this.registry.get(t);return e?e.matches:this.registerQuery(t).some(t=>t.matches)}observe(t,e=!1){if(t&&t.length){const n=this._observable$.pipe(Object(Ri.a)(n=>!e||t.indexOf(n.mediaQuery)>-1)),i=new gi.a(e=>{const n=this.registerQuery(t);if(n.length){const t=n.pop();n.forEach(t=>{e.next(t)}),this.source.next(t)}e.complete()});return Object(mi.a)(i,n)}return this._observable$}registerQuery(t){const e=Array.isArray(t)?t:[t],n=[];return function(t,e){const n=t.filter(t=>!ec[t]);if(n.length>0){const t=n.join(", ");try{const i=e.createElement("style");i.setAttribute("type","text/css"),i.styleSheet||i.appendChild(e.createTextNode(`\n/*\n  @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n  see http://bit.ly/2sd4HMP\n*/\n@media ${t} {.fx-query-test{ }}\n`)),e.head.appendChild(i),n.forEach(t=>ec[t]=i)}catch(i){console.error(i)}}}(e,this._document),e.forEach(t=>{const e=e=>{this._zone.run(()=>this.source.next(new Rl(e.matches,t)))};let i=this.registry.get(t);i||(i=this.buildMQL(t),i.addListener(e),this.pendingRemoveListenerFns.push(()=>i.removeListener(e)),this.registry.set(t,i)),i.matches&&n.push(new Rl(!0,t))}),n}ngOnDestroy(){let t;for(;t=this.pendingRemoveListenerFns.pop();)t()}buildMQL(t){return function(t,e){return e&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(t,ot(this._platformId))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(i.B),i.Yb(i.D),i.Yb(o))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(i.B),Object(i.Yb)(i.D),Object(i.Yb)(o))},token:t,providedIn:"root"}),t})();const ec={},nc={alias:"print",mediaQuery:"print",priority:1e3};let ic=(()=>{class t{constructor(t,e,n){this.breakpoints=t,this.layoutConfig=e,this._document=n,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new sc,this.deactivations=[]}withPrintQuery(t){return[...t,"print"]}isPrintEvent(t){return t.mediaQuery.startsWith("print")}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(t=>this.breakpoints.findByAlias(t)).filter(t=>null!==t)}getEventBreakpoints({mediaQuery:t}){const e=this.breakpoints.findByQuery(t);return(e?[...this.printBreakPoints,e]:this.printBreakPoints).sort(Xl)}updateEvent(t){let e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),jl(t,e)}registerBeforeAfterPrintHooks(t){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const e=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(t,this.getEventBreakpoints(new Rl(!0,"print"))),t.updateStyles())},n=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",e),this._document.defaultView.addEventListener("afterprint",n),this.beforePrintEventListeners.push(e),this.afterPrintEventListeners.push(n)}interceptEvents(t){return this.registerBeforeAfterPrintHooks(t),e=>{this.isPrintEvent(e)?e.matches&&!this.isPrinting?(this.startPrinting(t,this.getEventBreakpoints(e)),t.updateStyles()):e.matches||!this.isPrinting||this.isPrintingBeforeAfterEvent||(this.stopPrinting(t),t.updateStyles()):this.collectActivations(e)}}blockPropagation(){return t=>!(this.isPrinting||this.isPrintEvent(t))}startPrinting(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)}stopPrinting(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(t.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort(Xl))}}ngOnDestroy(){this.beforePrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("beforeprint",t)),this.afterPrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("afterprint",t))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Jl),i.Yb(Pl),i.Yb(o))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(Jl),Object(i.Yb)(Pl),Object(i.Yb)(o))},token:t,providedIn:"root"}),t})();class sc{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(nc),t.sort(Xl),t.forEach(t=>this.addBreakpoint(t)),this.printBreakpoints}addBreakpoint(t){t&&void 0===this.printBreakpoints.find(e=>e.mediaQuery===t.mediaQuery)&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith("print")}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}function rc(t){for(let e in t){let n=t[e]||"";switch(e){case"display":t.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":t["-webkit-"+e]=n;break;case"flex-direction":n=n||"row",t["-webkit-flex-direction"]=n,t["flex-direction"]=n;break;case"order":t.order=t["-webkit-"+e]=isNaN(+n)?"0":n}}return t}let oc=(()=>{class t{constructor(t,e,n,i){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=n,this.layoutConfig=i}applyStyleToElement(t,e,n=null){let i={};"string"==typeof e&&(i[e]=n,e=i),i=this.layoutConfig.disableVendorPrefixes?e:rc(e),this._applyMultiValueStyleToElement(i,t)}applyStyleToElements(t,e=[]){const n=this.layoutConfig.disableVendorPrefixes?t:rc(t);e.forEach(t=>{this._applyMultiValueStyleToElement(n,t)})}getFlowDirection(t){let e=this.lookupStyle(t,"flex-direction");return[e||"row",this.lookupInlineStyle(t,"flex-direction")||at(this._platformId)&&this._serverModuleLoaded?e:""]}hasWrap(t){return"wrap"===this.lookupStyle(t,"flex-wrap")}lookupAttributeValue(t,e){return t.getAttribute(e)||""}lookupInlineStyle(t,e){return ot(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)}lookupStyle(t,e,n=!1){let i="";return t&&((i=this.lookupInlineStyle(t,e))||(ot(this._platformId)?n||(i=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(i=this._serverStylesheet.getStyleForElement(t,e)))),i?i.trim():""}_applyMultiValueStyleToElement(t,e){Object.keys(t).sort().forEach(n=>{const i=t[n],s=Array.isArray(i)?i:[i];s.sort();for(let t of s)t=t?t+"":"",ot(this._platformId)||!this._serverModuleLoaded?ot(this._platformId)?e.style.setProperty(n,t):this._setServerStyle(e,n,t):this._serverStylesheet.addStyleToElement(e,n,t)})}_setServerStyle(t,e,n){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const i=this._readStyleAttribute(t);i[e]=n||"",this._writeStyleAttribute(t,i)}_getServerStyle(t,e){return this._readStyleAttribute(t)[e]||""}_readStyleAttribute(t){const e={},n=t.getAttribute("style");if(n){const t=n.split(/;+/g);for(let n=0;n<t.length;n++){const i=t[n].trim();if(i.length>0){const t=i.indexOf(":");if(-1===t)throw new Error(`Invalid CSS style: ${i}`);e[i.substr(0,t).trim()]=i.substr(t+1).trim()}}}return e}_writeStyleAttribute(t,e){let n="";for(const i in e)e[i]&&(n+=i+":"+e[i]+";");t.setAttribute("style",n)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Dl),i.Yb(Ml),i.Yb(i.D),i.Yb(Pl))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(Dl),Object(i.Yb)(Ml),Object(i.Yb)(i.D),Object(i.Yb)(Pl))},token:t,providedIn:"root"}),t})();class ac{constructor(){this.shouldCache=!0}sideEffect(t,e,n){}}let lc=(()=>{class t{constructor(t,e,n){this.matchMedia=t,this.breakpoints=e,this.hook=n,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 _i.a,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(t){const e=this.findByQuery(t.mediaQuery);e&&((t=jl(t,e)).matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort(Xl),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort(Xl),this.updateStyles()))}init(t,e,n,i,s=[]){cc(this.updateMap,t,e,n),cc(this.clearMap,t,e,i),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,s)}getValue(t,e,n){const i=this.elementMap.get(t);if(i){const t=void 0!==n?i.get(n):this.getActivatedValues(i,e);if(t)return t.get(e)}}hasValue(t,e){const n=this.elementMap.get(t);if(n){const t=this.getActivatedValues(n,e);if(t)return void 0!==t.get(e)||!1}return!1}setValue(t,e,n,i){let s=this.elementMap.get(t);if(s){const r=(s.get(i)||new Map).set(e,n);s.set(i,r),this.elementMap.set(t,s)}else s=(new Map).set(i,(new Map).set(e,n)),this.elementMap.set(t,s);const r=this.getValue(t,e);void 0!==r&&this.updateElement(t,e,r)}trackValue(t,e){return this.subject.asObservable().pipe(Object(Ri.a)(n=>n.element===t&&n.key===e))}updateStyles(){this.elementMap.forEach((t,e)=>{const n=new Set(this.elementKeyMap.get(e));let i=this.getActivatedValues(t);i&&i.forEach((t,i)=>{this.updateElement(e,i,t),n.delete(i)}),n.forEach(n=>{if(i=this.getActivatedValues(t,n),i){const t=i.get(n);this.updateElement(e,n,t)}else this.clearElement(e,n)})})}clearElement(t,e){const n=this.clearMap.get(t);if(n){const i=n.get(e);i&&(i(),this.subject.next({element:t,key:e,value:""}))}}updateElement(t,e,n){const i=this.updateMap.get(t);if(i){const s=i.get(e);s&&(s(n),this.subject.next({element:t,key:e,value:n}))}}releaseElement(t){const e=this.watcherMap.get(t);e&&(e.forEach(t=>t.unsubscribe()),this.watcherMap.delete(t));const n=this.elementMap.get(t);n&&(n.forEach((t,e)=>n.delete(e)),this.elementMap.delete(t))}triggerUpdate(t,e){const n=this.elementMap.get(t);if(n){const i=this.getActivatedValues(n,e);i&&(e?this.updateElement(t,e,i.get(e)):i.forEach((e,n)=>this.updateElement(t,n,e)))}}buildElementKeyMap(t,e){let n=this.elementKeyMap.get(t);n||(n=new Set,this.elementKeyMap.set(t,n)),n.add(e)}watchExtraTriggers(t,e,n){if(n&&n.length){let i=this.watcherMap.get(t);if(i||(i=new Map,this.watcherMap.set(t,i)),!i.get(e)){const s=Object(mi.a)(...n).subscribe(()=>{const n=this.getValue(t,e);this.updateElement(t,e,n)});i.set(e,s)}}}findByQuery(t){return this.breakpoints.findByQuery(t)}getActivatedValues(t,e){for(let i=0;i<this.activatedBreakpoints.length;i++){const n=t.get(this.activatedBreakpoints[i].alias);if(n&&(void 0===e||n.has(e)&&null!=n.get(e)))return n}const n=t.get("");return void 0===e||n&&n.has(e)?n:void 0}observeActivations(){const t=this.breakpoints.items.map(t=>t.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe(ir(this.hook.interceptEvents(this)),Object(Ri.a)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(tc),i.Yb(Jl),i.Yb(ic))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(tc),Object(i.Yb)(Jl),Object(i.Yb)(ic))},token:t,providedIn:"root"}),t})();function cc(t,e,n,i){if(void 0!==i){let s=t.get(e);s||(s=new Map,t.set(e,s)),s.set(n,i)}}function uc(t){return null!=t&&"false"!=`${t}`}function hc(t,e=0){return dc(t)?Number(t):e}function dc(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function pc(t){return Array.isArray(t)?t:[t]}function fc(t){return null==t?"":"string"==typeof t?t:`${t}px`}function mc(t){return t instanceof i.l?t.nativeElement:t}new Map;let gc=(()=>{class t extends Ul{constructor(t,e,n,i,s,r,o){super(t,null,e,n),this.ngClassInstance=o,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new F(i,s,t,r)),this.init(),this.setValue("","")}set klass(t){this.ngClassInstance.klass=t,this.setValue(t,"")}updateWithValue(t){this.ngClassInstance.ngClass=t,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(oc),i.Ob(lc),i.Ob(i.u),i.Ob(i.v),i.Ob(i.G),i.Ob(F,10))},t.\u0275dir=i.Jb({type:t,inputs:{klass:["class","klass"]},features:[i.Ab]}),t})();const _c=["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"];let bc=(()=>{class t extends gc{constructor(){super(...arguments),this.inputs=_c}}return t.\u0275fac=function(e){return yc(e||t)},t.\u0275dir=i.Jb({type:t,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:[i.Ab]}),t})();const yc=i.Wb(bc);let vc=(()=>{class t extends ac{buildStyles(t,e){return{display:"true"===t?e.display||(e.isServer?"initial":""):"none"}}}return t.\u0275fac=function(e){return wc(e||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const wc=i.Wb(vc);let Cc=(()=>{class t extends Ul{constructor(t,e,n,i,s,r,o){super(t,e,n,i),this.layoutConfig=s,this.platformId=r,this.serverModuleLoaded=o,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();const t=Array.from(this.nativeElement.children);for(let n=0;n<t.length;n++)if(this.marshal.hasValue(t[n],"flex")){this.hasFlexChild=!0;break}Oc.has(this.nativeElement)?this.display=Oc.get(this.nativeElement):(this.display=this.getDisplayStyle(),Oc.set(this.nativeElement,this.display)),this.init();const e=this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY,"");void 0===e||""===e?this.setValue(!0,""):this.triggerUpdate()}ngOnChanges(t){Object.keys(t).forEach(e=>{if(-1!==this.inputs.indexOf(e)){const n=e.split("."),i=n.slice(1).join("."),s=t[e].currentValue;let r=""===s||0!==s&&uc(s);"fxHide"===n[0]&&(r=!r),this.setValue(r,i)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(t=>{this.marshal.trackValue(this.nativeElement,t).pipe(Object(El.a)(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))})}getDisplayStyle(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)}updateWithValue(t=!0){if(""===t)return;const e=at(this.platformId);this.addStyles(t?"true":"false",{display:this.display,isServer:e}),e&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(vc),i.Ob(oc),i.Ob(lc),i.Ob(Pl),i.Ob(i.D),i.Ob(Ml))},t.\u0275dir=i.Jb({type:t,features:[i.Ab,i.Bb]}),t})();const Oc=new WeakMap,xc=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"];let Sc=(()=>{class t extends Cc{constructor(){super(...arguments),this.inputs=xc}}return t.\u0275fac=function(e){return Ec(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[i.Ab]}),t})();const Ec=i.Wb(Sc);class kc{constructor(t,e,n=!0){this.key=t,this.value=e,this.key=n?t.replace(/['"]/g,"").trim():t.trim(),this.value=n?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function Tc(t){let e=typeof t;return"object"===e?t.constructor===Array?"array":t.constructor===Set?"set":"object":e}function Ac(t){const[e,...n]=t.split(":");return new kc(e,n.join(":"))}function Rc(t,e){return e.key&&(t[e.key]=e.value),t}let Dc=(()=>{class t extends Ul{constructor(t,e,n,i,s,r,o,a,l){super(t,null,e,n),this.sanitizer=i,this.ngStyleInstance=o,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new q(t,s,r)),this.init();const c=this.nativeElement.getAttribute("style")||"";this.fallbackStyles=this.buildStyleMap(c),this.isServer=a&&at(l)}updateWithValue(t){const e=this.buildStyleMap(t);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),e),this.isServer&&this.applyStyleToElement(e),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(t){const e=t=>this.sanitizer.sanitize(i.K.STYLE,t)||"";if(t)switch(Tc(t)){case"string":return Lc(function(t,e=";"){return String(t).trim().split(e).map(t=>t.trim()).filter(t=>""!==t)}(t),e);case"array":return Lc(t,e);case"set":default:return function(t,e){let n=[];return"set"===Tc(t)?t.forEach(t=>n.push(t)):Object.keys(t).forEach(e=>{n.push(`${e}:${t[e]}`)}),function(t,e){return t.map(Ac).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(Rc,{})}(n,e)}(t,e)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(oc),i.Ob(lc),i.Ob(jt),i.Ob(i.v),i.Ob(i.G),i.Ob(q,10),i.Ob(Ml),i.Ob(i.D))},t.\u0275dir=i.Jb({type:t,features:[i.Ab]}),t})();const Ic=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let Pc=(()=>{class t extends Dc{constructor(){super(...arguments),this.inputs=Ic}}return t.\u0275fac=function(e){return Mc(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[i.Ab]}),t})();const Mc=i.Wb(Pc);function Lc(t,e){return t.map(Ac).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(Rc,{})}let jc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({imports:[[Al]]}),t})();const Fc=new i.s("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(i.X)(o)}});let Nc=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new i.o,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Fc,8))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(Fc,8))},token:t,providedIn:"root"}),t})(),Uc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({}),t})();const Bc=["row","column","row-reverse","column-reverse"];function Vc(t){t=t?t.toLowerCase():"";let[e,n,i]=t.split(" ");return Bc.find(t=>t===e)||(e=Bc[0]),"inline"===n&&(n="inline"!==i?i:"",i="inline"),[e,zc(n),!!i]}function Hc(t){let[e]=Vc(t);return e.indexOf("row")>-1}function zc(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let Yc=(()=>{class t extends ac{buildStyles(t){return function(t){let[e,n,i]=Vc(t);return function(t,e=null,n=!1){return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,n,i)}(t)}}return t.\u0275fac=function(e){return $c(e||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const $c=i.Wb(Yc),Wc=["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"];let Kc=(()=>{class t extends Ul{constructor(t,e,n,i){super(t,n,e,i),this.DIRECTIVE_KEY="layout",this.styleCache=Qc,this.init()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(oc),i.Ob(Yc),i.Ob(lc))},t.\u0275dir=i.Jb({type:t,features:[i.Ab]}),t})(),qc=(()=>{class t extends Kc{constructor(){super(...arguments),this.inputs=Wc}}return t.\u0275fac=function(e){return Gc(e||t)},t.\u0275dir=i.Jb({type:t,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:[i.Ab]}),t})();const Gc=i.Wb(qc),Qc=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;let Xc=(()=>{class t extends ac{buildStyles(t,e){const n={},[i,s]=t.split(" ");switch(i){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(s){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 function(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let n of e)if(null!=n)for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}(n,{display:e.inline?"inline-flex":"flex","flex-direction":e.layout,"box-sizing":"border-box","max-width":"stretch"===s?Hc(e.layout)?null:"100%":null,"max-height":"stretch"===s&&Hc(e.layout)?"100%":null})}}return t.\u0275fac=function(e){return Zc(e||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Zc=i.Wb(Xc),Jc=["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"];let tu=(()=>{class t extends Ul{constructor(t,e,n,i){super(t,n,e,i),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(Object(El.a)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(t){const e=this.layout||"row",n=this.inline;"row"===e&&n?this.styleCache=au:"row"!==e||n?"row-reverse"===e&&n?this.styleCache=cu:"row-reverse"!==e||n?"column"===e&&n?this.styleCache=lu:"column"!==e||n?"column-reverse"===e&&n?this.styleCache=uu:"column-reverse"!==e||n||(this.styleCache=ou):this.styleCache=su:this.styleCache=ru:this.styleCache=iu,this.addStyles(t,{layout:e,inline:n})}onLayoutChange(t){const e=t.value.split(" ");this.layout=e[0],this.inline=t.value.includes("inline"),Bc.find(t=>t===this.layout)||(this.layout="row"),this.triggerUpdate()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(oc),i.Ob(Xc),i.Ob(lc))},t.\u0275dir=i.Jb({type:t,features:[i.Ab]}),t})(),eu=(()=>{class t extends tu{constructor(){super(...arguments),this.inputs=Jc}}return t.\u0275fac=function(e){return nu(e||t)},t.\u0275dir=i.Jb({type:t,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:[i.Ab]}),t})();const nu=i.Wb(eu),iu=new Map,su=new Map,ru=new Map,ou=new Map,au=new Map,lu=new Map,cu=new Map,uu=new Map;let hu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({imports:[[Al,Uc]]}),t})();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;let du=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({imports:[[Al]]}),t})();new i.R("11.0.0-beta.33");let pu=(()=>{class t{constructor(t,e){at(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,n=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:Pl,useValue:Object.assign(Object.assign({},Il),e)},{provide:Ll,useValue:n,multi:!0},{provide:Ml,useValue:!0}]:[{provide:Pl,useValue:Object.assign(Object.assign({},Il),e)},{provide:Ll,useValue:n,multi:!0}]}}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Ml),i.Yb(i.D))},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({imports:[[hu,jc,du],hu,jc,du]}),t})();const fu=["ngClass.gt-600.ftdna"];let mu=(()=>{class t extends gc{constructor(){super(...arguments),this.inputs=fu}}return t.\u0275fac=function(e){return gu(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","ngClass.gt-600.ftdna",""]],inputs:{"ngClass.gt-600.ftdna":"ngClass.gt-600.ftdna"},features:[i.Ab]}),t})();const gu=i.Wb(mu),_u=["ngClass.gt-1024.ftdna"];let bu=(()=>{class t extends gc{constructor(){super(...arguments),this.inputs=_u}}return t.\u0275fac=function(e){return yu(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","ngClass.gt-1024.ftdna",""]],inputs:{"ngClass.gt-1024.ftdna":"ngClass.gt-1024.ftdna"},features:[i.Ab]}),t})();const yu=i.Wb(bu),vu=["fxHide.gt-1024.ftdna"];let wu=(()=>{class t extends Cc{constructor(){super(...arguments),this.inputs=vu}}return t.\u0275fac=function(e){return Cu(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","fxHide.gt-1024.ftdna",""]],inputs:{"fxHide.gt-1024.ftdna":"fxHide.gt-1024.ftdna"},features:[i.Ab]}),t})();const Cu=i.Wb(wu),Ou=["ngClass.gt-1440.ftdna"];let xu=(()=>{class t extends gc{constructor(){super(...arguments),this.inputs=Ou}}return t.\u0275fac=function(e){return Su(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","ngClass.gt-1440.ftdna",""]],inputs:{"ngClass.gt-1440.ftdna":"ngClass.gt-1440.ftdna"},features:[i.Ab]}),t})();const Su=i.Wb(xu);var Eu=function(t){return t.GT_360="gt-360.ftdna",t.GT_600="gt-600.ftdna",t.GT_720="gt-720.ftdna",t.GT_1024="gt-1024.ftdna",t.GT_1280="gt-1280.ftdna",t.GT_1440="gt-1440.ftdna",t.LT_360="lt-360.ftdna",t.LT_600="lt-600.ftdna",t.LT_720="lt-720.ftdna",t.LT_1024="lt-1024.ftdna",t.LT_1280="lt-1280.ftdna",t.LT_1440="lt-1440.ftdna",t}({}),ku=function(t){return t.GT_360="screen and (min-width: 360px)",t.GT_600="screen and  (min-width: 600px)",t.GT_720="screen and  (min-width: 720px)",t.GT_1024="screen and  (min-width: 1024px)",t.GT_1280="screen and  (min-width: 1280px)",t.GT_1440="screen and  (min-width: 1440px)",t.LT_360="screen and (max-width: 359px)",t.LT_600="screen and  (max-width: 599px)",t.LT_720="screen and  (max-width: 719px)",t.LT_1024="screen and  (max-width: 1023px)",t.LT_1280="screen and  (max-width: 1279px)",t.LT_1440="screen and  (max-width: 1439px)",t}({});const Tu=[{alias:Eu.GT_360,suffix:"ftdna360",overlapping:!0,mediaQuery:ku.GT_360,priority:-1050},{alias:Eu.GT_600,suffix:"ftdna600",overlapping:!0,mediaQuery:ku.GT_600,priority:-950},{alias:Eu.GT_720,suffix:"ftdna720",overlapping:!0,mediaQuery:ku.GT_720,priority:-850},{alias:Eu.GT_1024,suffix:"ftdna1024",overlapping:!0,mediaQuery:ku.GT_1024,priority:-750},{alias:Eu.GT_1280,suffix:"ftdna1280",overlapping:!0,mediaQuery:ku.GT_1280,priority:-650},{alias:Eu.GT_1440,suffix:"ftdna1440",overlapping:!0,mediaQuery:ku.GT_1440,priority:-550},{alias:Eu.LT_360,suffix:"ftdna360",overlapping:!0,mediaQuery:ku.LT_360,priority:-1050},{alias:Eu.LT_600,suffix:"ftdna600",overlapping:!0,mediaQuery:ku.LT_600,priority:-950},{alias:Eu.LT_720,suffix:"ftdna720",overlapping:!0,mediaQuery:ku.LT_720,priority:-850},{alias:Eu.LT_1024,suffix:"ftdna1024",overlapping:!0,mediaQuery:ku.LT_1024,priority:-750},{alias:Eu.LT_1280,suffix:"ftdna1280",overlapping:!0,mediaQuery:ku.LT_1280,priority:-650},{alias:Eu.LT_1440,suffix:"ftdna1440",overlapping:!0,mediaQuery:ku.LT_1440,priority:-550}];let Au=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({imports:[[]]}),t})();const Ru="y-dna-haplotree",Du="mt-dna-haplotree";var Iu=function(t){return t.GET_HAPLO_TREE_ROOTS="[PublicHaploTree] GET_HAPLO_TREE_ROOTS",t.GET_HAPLO_TREE_ROOTS_SUCCESS="[PublicHaploTree] GET_HAPLO_TREE_ROOTS_SUCCESS",t.GET_HAPLO_TREE_ROOTS_FAIL="[PublicHaploTree] GET_HAPLO_TREE_ROOTS_FAIL",t.CHANGE_ACIVE_VIEW="[PublicHaploTree] CHANGE_ACIVE_VIEW",t.SEARCH_BY_NAME_FOUND="[PublicHaploTree] SEARCH_BY_NAME_FOUND",t.SEARCH_BY_NAME_NOT_FOUND="[PublicHaploTree] SEARCH_BY_NAME_NOT_FOUND",t.SEARCH_BY_COUNTRY_FOUND="[PublicHaploTree] SEARCH_BY_COUNTRY_FOUND",t.SEARCH_BY_COUNTRY_NOT_FOUND="[PublicHaploTree] SEARCH_BY_COUNTRY_NOT_FOUND",t.SEARCH_BY_SURNAME_FOUND="[PublicHaploTree] SEARCH_BY_SURNAME_FOUND",t.SEARCH_BY_SURNAME_NOT_FOUND="[PublicHaploTree] SEARCH_BY_SURNAME_NOT_FOUND",t.SEARCH_BY_VARIANT_FOUND="[PublicHaploTree] SEARCH_BY_VARIANT_FOUND",t.SEARCH_BY_VARIANT_NOT_FOUND="[PublicHaploTree] SEARCH_BY_VARIANT_NOT_FOUND",t.CLEAR_SEARCH="[PublicHaploTree] CLEAR_SEARCH",t.SEARCH_FOUND_ON_BRANCH="[PublicHaploTree] SEARCH_FOUND_ON_BRANCH",t.START_SEARCH="[PublicHaploTree] START_SEARCH",t.STOP_SEARCH="[PublicHaploTree] STOP_SEARCH",t.GET_HAPLO_TREE_METADATA="[PublicHaploTree] GET_HAPLO_TREE_METADATA",t.GET_HAPLO_TREE_METADATA_SUCCESS="[PublicHaploTree] GET_HAPLO_TREE_METADATA_SUCCESS",t}({});class Pu{constructor(){this.type=Iu.GET_HAPLO_TREE_METADATA}}class Mu{constructor(t){this.payload=t,this.type=Iu.GET_HAPLO_TREE_METADATA_SUCCESS}}class Lu{constructor(t){this.payload=t,this.type=Iu.GET_HAPLO_TREE_ROOTS}}class ju{constructor(t){this.payload=t,this.type=Iu.GET_HAPLO_TREE_ROOTS_SUCCESS}}class Fu{constructor(t){this.payload=t,this.type=Iu.GET_HAPLO_TREE_ROOTS_FAIL}}class Nu{constructor(t){this.payload=t,this.type=Iu.CHANGE_ACIVE_VIEW}}class Uu{constructor(t){this.payload=t,this.type=Iu.SEARCH_BY_NAME_FOUND}}class Bu{constructor(){this.type=Iu.SEARCH_BY_NAME_NOT_FOUND}}class Vu{constructor(t){this.payload=t,this.type=Iu.SEARCH_BY_COUNTRY_FOUND}}class Hu{constructor(){this.type=Iu.SEARCH_BY_COUNTRY_NOT_FOUND}}class zu{constructor(t){this.payload=t,this.type=Iu.SEARCH_BY_SURNAME_FOUND}}class Yu{constructor(){this.type=Iu.SEARCH_BY_SURNAME_NOT_FOUND}}class $u{constructor(t){this.payload=t,this.type=Iu.SEARCH_BY_VARIANT_FOUND}}class Wu{constructor(){this.type=Iu.SEARCH_BY_VARIANT_NOT_FOUND}}class Ku{constructor(){this.type=Iu.CLEAR_SEARCH}}class qu{constructor(t){this.payload=t,this.type=Iu.SEARCH_FOUND_ON_BRANCH}}class Gu{constructor(){this.type=Iu.START_SEARCH}}class Qu{constructor(){this.type=Iu.STOP_SEARCH}}const Xu={isLoading:!1,nameNotFound:!1,countryNotFound:!1,surnameNotFound:!1,variantNotFound:!1,countryItems:null,surnameItems:null,variantItems:null,searchFoundOnBranch:0,searchFoundRoots:[],publicHaploTreeNodes:{},publicHaploTreeRoots:{},publicHaploTreeRootNames:[],allCountries:[],error:null,view:"Countries",runSearch:!1,metadata:null};function Zu(t=Xu,e){switch(e.type){case Iu.GET_HAPLO_TREE_ROOTS:return Object.assign(Object.assign({},t),{isLoading:!0});case Iu.GET_HAPLO_TREE_ROOTS_SUCCESS:const n=e.payload.roots.reduce((t,e)=>Object.assign(Object.assign({},t),{[e.root]:e}),{});return Object.assign(Object.assign({},t),{publicHaploTreeNodes:e.payload.allNodes,publicHaploTreeRoots:n,publicHaploTreeRootNames:Object.keys(n),allCountries:e.payload.allCountries,isLoading:!1,error:null});case Iu.GET_HAPLO_TREE_ROOTS_FAIL:return Object.assign(Object.assign({},t),{isLoading:!1,error:e.payload});case Iu.CHANGE_ACIVE_VIEW:return Object.assign(Object.assign({},t),{countryItems:null,surnameItems:null,variantItems:null,searchFoundRoots:[],searchFoundOnBranch:0,view:e.payload});case Iu.SEARCH_BY_NAME_FOUND:return Object.assign(Object.assign({},t),{countryItems:null,surnameItems:null,variantItems:null,nameNotFound:!1});case Iu.SEARCH_BY_NAME_NOT_FOUND:return Object.assign(Object.assign({},t),{nameNotFound:!0});case Iu.SEARCH_BY_COUNTRY_FOUND:const i=e.payload.reduce((t,e)=>Object.assign(Object.assign({},t),{[e.name]:e}),{}),s=Object.keys(i).map(t=>i[t].artificialRoot||i[t].root),r=Object.keys(s.reduce((t,e)=>Object.assign(Object.assign({},t),{[e]:e}),{})).filter(e=>t.publicHaploTreeRootNames.includes(e)).sort();return Object.assign(Object.assign({},t),{countryItems:i,searchFoundRoots:r,countryNotFound:!1});case Iu.SEARCH_BY_COUNTRY_NOT_FOUND:return Object.assign(Object.assign({},t),{countryItems:null,searchFoundRoots:[],searchFoundOnBranch:0,countryNotFound:!0});case Iu.SEARCH_BY_SURNAME_FOUND:t.surnameItems={};const o=e.payload.reduce((t,e)=>Object.assign(Object.assign({},t),{[e.name]:e}),{}),a=Object.keys(o).map(t=>o[t].artificialRoot||o[t].root),l=Object.keys(a.reduce((t,e)=>Object.assign(Object.assign({},t),{[e]:e}),{})).filter(e=>t.publicHaploTreeRootNames.includes(e)).sort();return Object.assign(Object.assign({},t),{surnameItems:o,searchFoundRoots:l,surnameNotFound:!1});case Iu.SEARCH_BY_SURNAME_NOT_FOUND:return Object.assign(Object.assign({},t),{surnameItems:null,searchFoundRoots:[],searchFoundOnBranch:0,surnameNotFound:!0});case Iu.SEARCH_BY_VARIANT_FOUND:t.variantItems={};const c=e.payload.reduce((t,e)=>Object.assign(Object.assign({},t),{[e.name]:e}),{}),u=Object.keys(c).map(t=>c[t].artificialRoot||c[t].root),h=Object.keys(u.reduce((t,e)=>Object.assign(Object.assign({},t),{[e]:e}),{})).filter(e=>t.publicHaploTreeRootNames.includes(e)).sort();return Object.assign(Object.assign({},t),{variantItems:c,searchFoundRoots:h,variantNotFound:!1});case Iu.SEARCH_BY_VARIANT_NOT_FOUND:return Object.assign(Object.assign({},t),{variantItems:null,searchFoundRoots:[],searchFoundOnBranch:0,variantNotFound:!0});case Iu.CLEAR_SEARCH:return Object.assign(Object.assign({},t),{countryItems:null,surnameItems:null,variantItems:null,searchFoundRoots:[],searchFoundOnBranch:0,nameNotFound:!1});case Iu.SEARCH_FOUND_ON_BRANCH:return Object.assign(Object.assign({},t),{searchFoundOnBranch:e.payload});case Iu.START_SEARCH:return Object.assign(Object.assign({},t),{runSearch:!0});case Iu.STOP_SEARCH:return Object.assign(Object.assign({},t),{runSearch:!1});case Iu.GET_HAPLO_TREE_METADATA_SUCCESS:return Object.assign(Object.assign({},t),{metadata:e.payload});default:return Object.assign({},t)}}const Ju=Object(fi.p)("public-haplo-tree"),th={routerReducer:function(t,e){const n=e;switch(n.type){case"@ngrx/router-store/navigation":case nl:case"@ngrx/router-store/cancel":return{state:n.payload.routerState,navigationId:n.payload.event.id};default:return t}}},eh=Object(fi.p)("routerReducer");let nh=(()=>{class t{serialize(t){const{url:e}=t,{queryParams:n}=t.root;let i=t.root;for(;i.firstChild;)i=i.firstChild;const{params:s}=i,{data:r}=i;return{url:e,queryParams:n,params:s,data:r}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const ih="[Router] Go";class sh{constructor(t){this.payload=t,this.type=ih}}var rh=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};const oh=[(()=>{class t{constructor(t,e,n){this.actions$=t,this.router=e,this.location=n,this.navigate$=this.actions$.pipe(os(ih),Object(Ti.a)(t=>t.payload),ir(({path:t,query:e,extras:n})=>{this.router.navigate(t,Object.assign({queryParams:e},n))}))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(rs),i.Yb(Ia),i.Yb(w))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),function(t,e,n,i){var s,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);r>3&&o&&Object.defineProperty(e,n,o)}([ts({dispatch:!1}),rh("design:type",Object)],t.prototype,"navigate$",void 0),t})()],ah=Object(fi.q)(Ju,t=>t.isLoading),lh=Object(fi.q)(Ju,t=>t.searchFoundOnBranch),ch=Object(fi.q)(Ju,t=>t.searchFoundRoots),uh=Object(fi.q)(Ju,t=>t.nameNotFound),hh=Object(fi.q)(Ju,t=>t.countryNotFound),dh=Object(fi.q)(Ju,t=>t.surnameNotFound),ph=Object(fi.q)(Ju,t=>t.variantNotFound),fh=Object(fi.q)(Ju,t=>t.publicHaploTreeNodes),mh=Object(fi.q)(Ju,t=>t.publicHaploTreeRoots),gh=Object(fi.q)(Ju,t=>t.allCountries),_h=Object(fi.q)(Ju,t=>t.publicHaploTreeRootNames),bh=(Object(fi.q)(Ju,t=>t.error),Object(fi.q)(Ju,t=>t.view)),yh=Object(fi.q)(Ju,t=>t.runSearch),vh=Object(fi.q)(Ju,t=>"Countries"===t.view?t.countryItems:"Surnames"===t.view?t.surnameItems:"Variants"===t.view?t.variantItems:{}),wh=Object(fi.q)(Ju,t=>t.metadata),Ch=Object(fi.q)(Ju,eh,(t,e)=>e.state&&t.publicHaploTreeRoots[e.state.params.root]),Oh=Object(fi.q)(eh,t=>t.state&&t.state.params.name),xh=Object(fi.q)(eh,t=>t&&t.state&&t.state.data.tree);class Sh{}class Eh{}class kh{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof kh?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new kh;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof kh?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class Th{encodeKey(t){return Ah(t)}encodeValue(t){return Ah(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Ah(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class Rh{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Th,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const i=t.indexOf("="),[s,r]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(s)||[];o.push(r),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const i=t[n];Array.isArray(i)?i.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Rh({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function Dh(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Ih(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Ph(t){return"undefined"!=typeof FormData&&t instanceof FormData}class Mh{constructor(t,e,n,i){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new kh),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new Rh,this.urlWithParams=e}serializeBody(){return null===this.body?null:Dh(this.body)||Ih(this.body)||Ph(this.body)||"string"==typeof this.body?this.body:this.body instanceof Rh?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Ph(this.body)?null:Ih(this.body)?this.body.type||null:Dh(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Rh?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){const e=t.method||this.method,n=t.url||this.url,i=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,r=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,o=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(a=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new Mh(e,n,s,{params:l,headers:a,reportProgress:o,responseType:i,withCredentials:r})}}var Lh=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class jh{constructor(t,e=200,n="OK"){this.headers=t.headers||new kh,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Fh extends jh{constructor(t={}){super(t),this.type=Lh.ResponseHeader}clone(t={}){return new Fh({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Nh extends jh{constructor(t={}){super(t),this.type=Lh.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Nh({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Uh extends jh{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Bh(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Vh=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof Mh)i=t;else{let s,r;s=n.headers instanceof kh?n.headers:new kh(n.headers),n.params&&(r=n.params instanceof Rh?n.params:new Rh({fromObject:n.params})),i=new Mh(t,e,void 0!==n.body?n.body:null,{headers:s,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=Object(Ci.a)(i).pipe(Object(Wi.a)(t=>this.handler.handle(t)));if(t instanceof Mh||"events"===n.observe)return s;const r=s.pipe(Object(Ri.a)(t=>t instanceof Nh));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return r.pipe(Object(Ti.a)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe(Object(Ti.a)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe(Object(Ti.a)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe(Object(Ti.a)(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new Rh).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,Bh(n,e))}post(t,e,n={}){return this.request("POST",t,Bh(n,e))}put(t,e,n={}){return this.request("PUT",t,Bh(n,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Sh))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();class Hh{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const zh=new i.s("HTTP_INTERCEPTORS");let Yh=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const $h=/^\)\]\}',?\n/;class Wh{}let Kh=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),qh=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new gi.a(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new kh(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new Fh({headers:r,status:e,statusText:i,url:o}),s},o=()=>{let{headers:i,status:s,statusText:o,url:a}=r(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace($h,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new Nh({body:l,headers:i,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new Uh({error:l,headers:i,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=r(),s=new Uh({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(s)};let l=!1;const c=i=>{l||(e.next(r()),l=!0);let s={type:Lh.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(s.total=i.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},u=t=>{let n={type:Lh.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),e.next({type:Lh.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Wh))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const Gh=new i.s("XSRF_COOKIE_NAME"),Qh=new i.s("XSRF_HEADER_NAME");class Xh{}let Zh=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=j(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(o),i.Yb(i.D),i.Yb(Gh))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),Jh=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Xh),i.Yb(Qh))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),td=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(zh,[]);this.chain=t.reduceRight((t,e)=>new Hh(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Eh),i.Yb(i.t))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),ed=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Jh,useClass:Yh}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Gh,useValue:e.cookieName}:[],e.headerName?{provide:Qh,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({providers:[Jh,{provide:zh,useExisting:Jh,multi:!0},{provide:Xh,useClass:Zh},{provide:Gh,useValue:"XSRF-TOKEN"},{provide:Qh,useValue:"X-XSRF-TOKEN"}]}),t})(),nd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({providers:[Vh,{provide:Sh,useClass:td},qh,{provide:Eh,useExisting:qh},Kh,{provide:Wh,useExisting:Kh}],imports:[[ed.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})(),id=(()=>{class t{constructor(t){this.http=t}getPublicHaploTreeRoots(t){return this.http.get(`/public/${t}/get`)}getPublicHaploTreeMetadata(){return this.http.post("/public/metadata",{})}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Vh))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const sd=[id];var rd=function(t,e,n,i){var s,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(e,n,o):s(e,n))||o);return r>3&&o&&Object.defineProperty(e,n,o),o},od=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};const ad=[(()=>{class t{constructor(t,e){this.actions$=t,this.service=e,this.getHaploTreeRoots$=this.actions$.pipe(os(Iu.GET_HAPLO_TREE_ROOTS),Object(Ni.a)(t=>this.service.getPublicHaploTreeRoots(t.payload).pipe(Object(Ti.a)(t=>new ju(t)),Object(Ai.a)(t=>Object(Ci.a)(new Fu(t)))))),this.searchNameFound$=this.actions$.pipe(os(Iu.SEARCH_BY_NAME_FOUND),Object(Ti.a)(t=>t.payload),Object(Ti.a)(t=>new sh({path:["/",t.tree,t.root,{name:t.name}]}))),this.clearOnRoute$=this.actions$.pipe(os(ih),Object(Ti.a)(t=>new Ku)),this.getHaploTreeMetadata$=this.actions$.pipe(os(Iu.GET_HAPLO_TREE_METADATA),Object(Ni.a)(t=>this.service.getPublicHaploTreeMetadata().pipe(Object(Ti.a)(t=>new Mu(t)))))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(rs),i.Yb(id))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),rd([ts(),od("design:type",gi.a)],t.prototype,"getHaploTreeRoots$",void 0),rd([ts(),od("design:type",gi.a)],t.prototype,"searchNameFound$",void 0),rd([ts(),od("design:type",gi.a)],t.prototype,"clearOnRoute$",void 0),rd([ts(),od("design:type",gi.a)],t.prototype,"getHaploTreeMetadata$",void 0),t})()];function ld(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}let cd;try{cd="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(dx){cd=!1}let ud,hd=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?ot(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&&!cd)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(i.D))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(i.D))},token:t,providedIn:"root"}),t})(),dd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({}),t})();const pd=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function fd(){if(ud)return ud;if("object"!=typeof document||!document)return ud=new Set(pd),ud;let t=document.createElement("input");return ud=new Set(pd.filter(e=>(t.setAttribute("type",e),t.type===e))),ud}let md,gd,_d;function bd(t){return function(){if(null==md&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>md=!0}))}finally{md=md||!1}return md}()?t:!!t.capture}function yd(){if(null==gd){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return gd=!1,gd;if("scrollBehavior"in document.documentElement.style)gd=!0;else{const t=Element.prototype.scrollTo;gd=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return gd}function vd(t){if(function(){if(null==_d){const t="undefined"!=typeof document?document.head:null;_d=!(!t||!t.createShadowRoot&&!t.attachShadow)}return _d}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}let wd=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Cd=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=mc(t);return new gi.a(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new _i.a,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(wd))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(wd))},token:t,providedIn:"root"}),t})(),Od=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new i.o,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=uc(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=hc(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Object(Sl.a)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Cd),i.Ob(i.l),i.Ob(i.B))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),xd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({providers:[wd]}),t})();function Sd(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let Ed=0;const kd=new Map;let Td=null,Ad=(()=>{class t{constructor(t){this._document=t}describe(t,e,n){if(!this._canBeDescribed(t,e))return;const i=Rd(e,n);"string"!=typeof e?(Dd(e),kd.set(i,{messageElement:e,referenceCount:0})):kd.has(i)||this._createMessageElement(e,n),this._isElementDescribedByMessage(t,i)||this._addMessageReference(t,i)}removeDescription(t,e,n){if(!e||!this._isElementNode(t))return;const i=Rd(e,n);if(this._isElementDescribedByMessage(t,i)&&this._removeMessageReference(t,i),"string"==typeof e){const t=kd.get(i);t&&0===t.referenceCount&&this._deleteMessageElement(i)}Td&&0===Td.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e<t.length;e++)this._removeCdkDescribedByReferenceIds(t[e]),t[e].removeAttribute("cdk-describedby-host");Td&&this._deleteMessagesContainer(),kd.clear()}_createMessageElement(t,e){const n=this._document.createElement("div");Dd(n),n.textContent=t,e&&n.setAttribute("role",e),this._createMessagesContainer(),Td.appendChild(n),kd.set(Rd(t,e),{messageElement:n,referenceCount:0})}_deleteMessageElement(t){const e=kd.get(t),n=e&&e.messageElement;Td&&n&&Td.removeChild(n),kd.delete(t)}_createMessagesContainer(){if(!Td){const t=this._document.getElementById("cdk-describedby-message-container");t&&t.parentNode&&t.parentNode.removeChild(t),Td=this._document.createElement("div"),Td.id="cdk-describedby-message-container",Td.style.visibility="hidden",Td.classList.add("cdk-visually-hidden"),this._document.body.appendChild(Td)}}_deleteMessagesContainer(){Td&&Td.parentNode&&(Td.parentNode.removeChild(Td),Td=null)}_removeCdkDescribedByReferenceIds(t){const e=Sd(t,"aria-describedby").filter(t=>0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=kd.get(e);!function(t,e,n){const i=Sd(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))}(t,"aria-describedby",n.messageElement.id),t.setAttribute("cdk-describedby-host",""),n.referenceCount++}_removeMessageReference(t,e){const n=kd.get(e);n.referenceCount--,function(t,e,n){const i=Sd(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const n=Sd(t,"aria-describedby"),i=kd.get(e),s=i&&i.messageElement.id;return!!s&&-1!=n.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":`${e}`.trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(o))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(o))},token:t,providedIn:"root"}),t})();function Rd(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function Dd(t){t.id||(t.id="cdk-describedby-message-"+Ed++)}class Id{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new _i.a,this._typeaheadSubscription=Di.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new _i.a,this.change=new _i.a,t instanceof i.F&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(ir(t=>this._pressedLetters.push(t)),Object(Sl.a)(t),Object(Ri.a)(()=>this._pressedLetters.length>0),Object(Ti.a)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n<e.length+1;n++){const i=(this._activeItemIndex+n)%e.length,s=e[i];if(!this._skipPredicateFn(s)&&0===s.getLabel().toUpperCase().trim().indexOf(t)){this.setActiveItem(i);break}}this._pressedLetters=[]}),this}withHomeAndEnd(t=!0){return this._homeAndEnd=t,this}setActiveItem(t){const e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(t){const e=t.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(e=>!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&n){this.setNextItemActive();break}return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||ld(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof i.F?this._items.toArray():this._items}}class Pd extends Id{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class Md extends Id{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let Ld=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(dx){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e){if(-1===Fd(e))return!1;if(!this.isVisible(e))return!1}let i=t.nodeName.toLowerCase(),s=Fd(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===i?!!t.hasAttribute("controls")&&-1!==s:"video"===i?-1!==s&&(null!==s||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||jd(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(hd))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(hd))},token:t,providedIn:"root"}),t})();function jd(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function Fd(t){if(!jd(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class Nd{constructor(t,e,n,i,s=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.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)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n<e.length;n++)e[n].hasAttribute(`cdk-focus-${t}`)?console.warn(`Found use of deprecated attribute 'cdk-focus-${t}', use 'cdkFocusRegion${t}' instead. The deprecated attribute will be removed in 8.0.0.`,e[n]):e[n].hasAttribute(`cdk-focus-region-${t}`)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${t}', use 'cdkFocusRegion${t}' instead. The deprecated attribute will be removed in 8.0.0.`,e[n]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(){const t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(t.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",t),!this._checker.isFocusable(t)){const e=this._getFirstTabbableElement(t);return null==e||e.focus(),!!e}return t.focus(),!0}return this.focusFirstTabbableElement()}focusFirstTabbableElement(){const t=this._getRegionBoundary("start");return t&&t.focus(),!!t}focusLastTabbableElement(){const t=this._getRegionBoundary("end");return t&&t.focus(),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let n=0;n<e.length;n++){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[n]):null;if(t)return t}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let n=e.length-1;n>=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Object($i.a)(1)).subscribe(t)}}let Ud=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new Nd(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Ld),i.Yb(i.B),i.Yb(o))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(Ld),Object(i.Yb)(i.B),Object(i.Yb)(o))},token:t,providedIn:"root"}),t})();"undefined"!=typeof Element&&Element;const Bd=new i.s("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Vd=new i.s("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Hd=(()=>{class t{constructor(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let i,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[i,s]=e,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==s&&n&&(s=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n]);return e.classList.add("cdk-live-announcer-element"),e.classList.add("cdk-visually-hidden"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),e}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Bd,8),i.Yb(i.B),i.Yb(o),i.Yb(Vd,8))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(Bd,8),Object(i.Yb)(i.B),Object(i.Yb)(o),Object(i.Yb)(Vd,8))},token:t,providedIn:"root"}),t})();function zd(t){return 0===t.buttons}function Yd(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const $d=new i.s("cdk-focus-monitor-default-options"),Wd=bd({passive:!0,capture:!0});let Kd=(()=>{class t{constructor(t,e,n,i){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=zd(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{Yd(t)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=qd(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=qd(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(t,e=!1){const n=mc(t);if(!this._platform.isBrowser||1!==n.nodeType)return Object(Ci.a)(null);const i=vd(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return e&&(s.checkChildren=!0),s.subject;const r={checkChildren:e,subject:new _i.a,rootNode:i};return this._elementInfo.set(n,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=mc(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const i=mc(t);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(([t,n])=>this._originChanged(t,e,n)):(this._setOriginForCurrentEventQueue(e),"function"==typeof i.focus&&i.focus(n))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=qd(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);n&&(n.checkChildren||e===qd(t))&&this._originChanged(e,this._getFocusOrigin(t),n)}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,Wd),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,Wd)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,Wd),t.addEventListener("mousedown",this._documentMousedownListener,Wd),t.addEventListener("touchstart",this._documentTouchstartListener,Wd),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Wd),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Wd),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,Wd),t.removeEventListener("mousedown",this._documentMousedownListener,Wd),t.removeEventListener("touchstart",this._documentTouchstartListener,Wd),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((n,i)=>{(i===t||n.checkChildren&&i.contains(t))&&e.push([i,n])}),e}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(i.B),i.Yb(hd),i.Yb(o,8),i.Yb($d,8))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(i.B),Object(i.Yb)(hd),Object(i.Yb)(o,8),Object(i.Yb)($d,8))},token:t,providedIn:"root"}),t})();function qd(t){return t.composedPath?t.composedPath()[0]:t.target}let Gd=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(hd),i.Yb(o))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(hd),Object(i.Yb)(o))},token:t,providedIn:"root"}),t})(),Qd=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Gd))},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({imports:[[dd,xd]]}),t})();const Xd=new i.R("11.2.12");function Zd(t,e){if(1&t&&i.Pb(0,"mat-pseudo-checkbox",4),2&t){const t=i.gc();i.mc("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function Jd(t,e){if(1&t&&(i.Ub(0,"span",5),i.Fc(1),i.Tb()),2&t){const t=i.gc();i.Db(1),i.Hc("(",t.group.label,")")}}const tp=["*"];let ep=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),np=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const ip=new i.R("11.2.12"),sp=new i.s("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let rp,op=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return Object(i.Y)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){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.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&ip.full!==Xd.full&&console.warn("The Angular Material version ("+ip.full+") does not match the Angular CDK version ("+Xd.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Gd),i.Yb(sp,8),i.Yb(o))},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({imports:[[Uc],Uc]}),t})();function ap(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=uc(t)}}}function lp(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function cp(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=uc(t)}}}function up(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?hc(t):this.defaultTabIndex}}}function hp(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new _i.a}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function dp(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new gi.a(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}try{rp="undefined"!=typeof Intl}catch(dx){rp=!1}let pp=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();class fp{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const mp={enterDuration:450,exitDuration:400},gp=bd({passive:!0}),_p=["mousedown","touchstart"],bp=["mouseup","mouseleave","touchend","touchcancel"];class yp{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=mc(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},mp),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const r=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),s=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+s*s)}(t,e,i),o=t-i.left,a=e-i.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-r+"px",c.style.top=a-r+"px",c.style.height=2*r+"px",c.style.width=2*r+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const u=new fp(this,c,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=1,n.persistent||t&&this._isPointerDown||u.fadeOut()},l),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,i=Object.assign(Object.assign({},mp),t.config.animation);n.style.transitionDuration=`${i.exitDuration}ms`,n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=mc(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(_p))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(bp),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=zd(t),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||e||n||(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled&&!Yd(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let t=0;t<e.length;t++)this.fadeInRipple(e[t].clientX,e[t].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,gp)})})}_removeTriggerEvents(){this._triggerElement&&(_p.forEach(t=>{this._triggerElement.removeEventListener(t,this,gp)}),this._pointerUpEventsRegistered&&bp.forEach(t=>{this._triggerElement.removeEventListener(t,this,gp)}))}}const vp=new i.s("mat-ripple-global-options");let wp=(()=>{class t{constructor(t,e,n,i,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new yp(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){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}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.B),i.Ob(hd),i.Ob(vp,8),i.Ob(hi,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&i.Gb("mat-ripple-unbounded",e.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"]}),t})(),Cp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({imports:[[op,dd],op]}),t})(),Op=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(hi,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&i.Gb("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},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}),t})(),xp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({imports:[[op]]}),t})();const Sp=new i.s("MAT_OPTION_PARENT_COMPONENT");class Ep{}const kp=ap(Ep);let Tp=0,Ap=(()=>{class t extends kp{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+Tp++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Sp,8))},t.\u0275dir=i.Jb({type:t,inputs:{label:"label"},features:[i.Ab]}),t})();const Rp=new i.s("MatOptgroup");let Dp=0;class Ip{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let Pp=(()=>{class t{constructor(t,e,n,s){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Dp++,this.onSelectionChange=new i.o,this._stateChanges=new _i.a}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=uc(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){13!==t.keyCode&&32!==t.keyCode||ld(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new Ip(this,t))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.h),i.Ob(void 0),i.Ob(Ap))},t.\u0275dir=i.Jb({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),Mp=(()=>{class t extends Pp{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.h),i.Ob(Sp,8),i.Ob(Rp,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&i.cc("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(i.Xb("id",e.id),i.Eb("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),i.Gb("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[i.Ab],ngContentSelectors:tp,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(t,e){1&t&&(i.lc(),i.Ec(0,Zd,1,2,"mat-pseudo-checkbox",0),i.Ub(1,"span",1),i.kc(2),i.Tb(),i.Ec(3,Jd,2,1,"span",2),i.Pb(4,"div",3)),2&t&&(i.mc("ngIf",e.multiple),i.Db(3),i.mc("ngIf",e.group&&e.group._inert),i.Db(1),i.mc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[V,wp,Op],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}),t})();function Lp(t,e,n){if(n.length){let i=e.toArray(),s=n.toArray(),r=0;for(let e=0;e<t+1;e++)i[e].group&&i[e].group===s[r]&&r++;return r}return 0}function jp(t,e,n,i){return t<n?t:t+e>n+i?Math.max(0,t-i+e):n}let Fp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({imports:[[Cp,rt,op,xp]]}),t})();const Np=["mat-button",""],Up=["*"],Bp=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class Vp{constructor(t){this._elementRef=t}}const Hp=lp(ap(cp(Vp)));let zp=(()=>{class t extends Hp{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of Bp)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(Kd),i.Ob(hi,8))},t.\u0275cmp=i.Ib({type:t,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(t,e){if(1&t&&i.Kc(wp,1),2&t){let t;i.sc(t=i.dc())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(i.Eb("disabled",e.disabled||null),i.Gb("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.Ab],attrs:Np,ngContentSelectors:Up,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(t,e){1&t&&(i.lc(),i.Ub(0,"span",0),i.kc(1),i.Tb(),i.Pb(2,"span",1),i.Pb(3,"span",2)),2&t&&(i.Db(2),i.Gb("mat-button-ripple-round",e.isRoundButton||e.isIconButton),i.mc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[wp],styles:[".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"],encapsulation:2,changeDetection:0}),t})(),Yp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({imports:[[Cp,op],op]}),t})();var $p=n("D0XW"),Wp=n("mlxB");function Kp(t,e=$p.a){const n=Object(Wp.a)(t)?+t-e.now():Math.abs(t);return t=>t.lift(new qp(n,e))}class qp{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new Gp(t,this.delay,this.scheduler))}}class Gp extends Oi.a{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,i=t.scheduler,s=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(Gp.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new Qp(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(wi.a.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(wi.a.createComplete()),this.unsubscribe()}}class Qp{constructor(t,e){this.time=t,this.notification=e}}class Xp{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Zp extends Xp{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class Jp extends Xp{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class tf extends Xp{constructor(t){super(),this.element=t instanceof i.l?t.nativeElement:t}}class ef{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Zp?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Jp?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof tf?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class nf extends ef{constructor(t,e,n,i,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=t,n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),this._attachedPortal=t,n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let sf=(()=>{class t extends ef{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new i.o,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.j),i.Ob(i.S),i.Ob(o))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.Ab]}),t})(),rf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({}),t})();function of(t){return!!t&&(t instanceof gi.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var af=n("/uUt");class lf{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new cf(t,this.durationSelector))}}class cf extends Ui.b{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const i=Object(Ui.c)(n,new Ui.a(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function uf(t){return!Object(ks.a)(t)&&t-parseFloat(t)+1>=0}function hf(t=0,e,n){let i=-1;return uf(e)?i=Number(e)<1?1:Number(e):Object(Es.a)(e)&&(n=e),Object(Es.a)(n)||(n=$p.a),new gi.a(e=>{const s=uf(t)?t:+t-n.now();return n.schedule(df,s,{index:0,period:i,subscriber:e})})}function df(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function pf(t,e=$p.a){return n=()=>hf(t,e),function(t){return t.lift(new lf(n))};var n}n("jtHE");class ff{}function mf(t){return t&&"function"==typeof t.connect}class gf{applyChanges(t,e,n,i,s){t.forEachOperation((t,i,r)=>{let o,a;if(null==t.previousIndex){const s=n(t,i,r);o=e.createEmbeddedView(s.templateRef,s.context,s.index),a=1}else null==r?(e.remove(i),a=3):(o=e.get(i),e.move(o,r),a=2);s&&s({context:null==o?void 0:o.context,operation:a,record:t})})}detach(){}}class _f{constructor(t=!1,e,n=!0){this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new _i.a,e&&e.length&&(t?e.forEach(t=>this._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}const bf=new i.s("_ViewRepeater");let yf=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new _i.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new gi.a(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(pf(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Object(Ci.a)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Object(Ri.a)(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=mc(e),i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Ol(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(i.B),i.Yb(hd),i.Yb(o,8))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(i.B),Object(i.Yb)(hd),Object(i.Yb)(o,8))},token:t,providedIn:"root"}),t})(),vf=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new _i.a,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(pf(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(hd),i.Yb(i.B),i.Yb(o,8))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(hd),Object(i.Yb)(i.B),Object(i.Yb)(o,8))},token:t,providedIn:"root"}),t})(),wf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({}),t})(),Cf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({imports:[[Uc,dd,wf],Uc,wf]}),t})();class Of{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new xf(t,this.predicate,this.inclusive))}}class xf extends Oi.a{constructor(t,e,n){super(t),this.predicate=e,this.inclusive=n,this.index=0}_next(t){const e=this.destination;let n;try{n=this.predicate(t,this.index++)}catch(i){return void e.error(i)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}const Sf=yd();class Ef{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=fc(-this._previousScrollPosition.left),t.style.top=fc(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),Sf&&(e.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Sf&&(e.scrollBehavior=i,n.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class kf{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Tf{enable(){}disable(){}attach(){}}function Af(t,e){return e.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function Rf(t,e){return e.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class Df{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();Af(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let If=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new Tf,this.close=t=>new kf(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new Ef(this._viewportRuler,this._document),this.reposition=t=>new Df(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(yf),i.Yb(vf),i.Yb(i.B),i.Yb(o))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(yf),Object(i.Yb)(vf),Object(i.Yb)(i.B),Object(i.Yb)(o))},token:t,providedIn:"root"}),t})();class Pf{constructor(t){if(this.scrollStrategy=new Tf,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class Mf{constructor(t,e,n,i,s){this.offsetX=n,this.offsetY=i,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class Lf{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let jf=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(o))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(o))},token:t,providedIn:"root"}),t})(),Ff=(()=>{class t extends jf{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(o))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(o))},token:t,providedIn:"root"}),t})(),Nf=(()=>{class t extends jf{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const s=n[i];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(o),i.Yb(hd))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(o),Object(i.Yb)(hd))},token:t,providedIn:"root"}),t})();const Uf=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let Bf=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){if(this._platform.isBrowser||Uf){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;e<t.length;e++)t[e].parentNode.removeChild(t[e])}const t=this._document.createElement("div");t.classList.add("cdk-overlay-container"),Uf?t.setAttribute("platform","test"):this._platform.isBrowser||t.setAttribute("platform","server"),this._document.body.appendChild(t),this._containerElement=t}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(o),i.Yb(hd))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(o),Object(i.Yb)(hd))},token:t,providedIn:"root"}),t})();class Vf{constructor(t,e,n,i,s,r,o,a,l){this._portalOutlet=t,this._host=e,this._pane=n,this._config=i,this._ngZone=s,this._keyboardDispatcher=r,this._document=o,this._location=a,this._outsideClickDispatcher=l,this._backdropElement=null,this._backdropClick=new _i.a,this._attachments=new _i.a,this._detachments=new _i.a,this._locationChanges=Di.a.EMPTY,this._backdropClickHandler=t=>this._backdropClick.next(t),this._keydownEvents=new _i.a,this._outsidePointerEvents=new _i.a,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);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($i.a)(1)).subscribe(()=>{this.hasAttached()&&this.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(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=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,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=fc(this._config.width),t.height=fc(this._config.height),t.minWidth=fc(this._config.minWidth),t.minHeight=fc(this._config.minHeight),t.maxWidth=fc(this._config.maxWidth),t.maxHeight=fc(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){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(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;pc(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Object(El.a)(Object(mi.a)(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const Hf=/([A-Za-z%]+)$/;class zf{constructor(t,e,n,i,s){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=s,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 _i.a,this._resizeSubscription=Di.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,i=[];let s;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,n,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,n)?i.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleArea<l.visibleArea)&&(s={overlayFit:l,overlayPoint:a,originPoint:o,position:r,overlayRect:e})}if(i.length){let t=null,e=-1;for(const n of i){const i=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);i>e&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Yf(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;n="start"==e.originX?i:s}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,s;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+s}}_getOverlayFit(t,e,n,i){const s=Wf(e);let{x:r,y:o}=t,a=this._getOffset(i,"x"),l=this._getOffset(i,"y");a&&(r+=a),l&&(o+=l);let c=0-o,u=o+s.height-n.height,h=this._subtractOverflows(s.width,0-r,r+s.width-n.width),d=this._subtractOverflows(s.height,c,u),p=h*d;return{visibleArea:p,isCompletelyWithinViewport:s.width*s.height===p,fitsInViewportVertically:d===s.height,fitsInViewportHorizontally:h==s.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,s=n.right-e.x,r=$f(this._overlayRef.getConfig().minHeight),o=$f(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=i)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=Wf(e),s=this._viewportRect,r=Math.max(t.x+i.width-s.width,0),o=Math.max(t.y+i.height-s.height,0),a=Math.max(s.top-n.top-t.y,0),l=Math.max(s.left-n.left-t.x,0);let c=0,u=0;return c=i.width<=s.width?l||-r:t.x<this._viewportMargin?s.left-n.left-t.x:0,u=i.height<=s.height?a||-o:t.y<this._viewportMargin?s.top-n.top-t.y:0,this._previousPushAmount={x:c,y:u},{x:t.x+c,y:t.y+u}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const e=this._getScrollVisibility(),n=new Lf(t,e);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,i=t.overlayY;n="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let s=0;s<e.length;s++)e[s].style.transformOrigin=`${n} ${i}`}_calculateBoundingBoxRect(t,e){const n=this._viewportRect,i=this._isRtl();let s,r,o,a,l,c;if("top"===e.overlayY)r=t.y,s=n.height-r+this._viewportMargin;else if("bottom"===e.overlayY)o=n.height-t.y+2*this._viewportMargin,s=n.height-o+this._viewportMargin;else{const e=Math.min(n.bottom-t.y+n.top,t.y),i=this._lastBoundingBoxSize.height;s=2*e,r=t.y-e,s>i&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-i/2)}return{top:r,left:l,bottom:o,right:c,width:a,height:s}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=fc(n.height),i.top=fc(n.top),i.bottom=fc(n.bottom),i.width=fc(n.width),i.left=fc(n.left),i.right=fc(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=fc(t)),s&&(i.maxWidth=fc(s))}this._lastBoundingBoxSize=n,Yf(this._boundingBox.style,i)}_resetBoundingBoxStyles(){Yf(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Yf(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();Yf(n,this._getExactOverlayY(e,t,i)),Yf(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),l&&(o+=`translateY(${l}px)`),n.transform=o.trim(),r.maxHeight&&(i?n.maxHeight=fc(r.maxHeight):s&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=fc(r.maxWidth):s&&(n.maxWidth="")),Yf(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":i.top=fc(s.y),i}_getExactOverlayX(t,e,n){let i,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=fc(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Rf(t,n),isOriginOutsideView:Af(t,n),isOverlayClipped:Rf(e,n),isOverlayOutsideView:Af(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&pc(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof i.l)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function Yf(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function $f(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(Hf);return n&&"px"!==n?null:parseFloat(e)}return t||null}function Wf(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class Kf{constructor(t,e,n,i,s,r,o){this._preferredPositions=[],this._positionStrategy=new zf(n,i,s,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,i){const s=new Mf(t,e,n,i);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}class qf{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:s,maxWidth:r,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Gf=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new qf}connectedTo(t,e,n){return new Kf(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new zf(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(vf),i.Yb(o),i.Yb(hd),i.Yb(Bf))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(vf),Object(i.Yb)(o),Object(i.Yb)(hd),Object(i.Yb)(Bf))},token:t,providedIn:"root"}),t})(),Qf=0,Xf=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,u){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=u}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),s=new Pf(t);return s.direction=s.direction||this._directionality.value,new Vf(i,e,n,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+Qf++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(i.g)),new nf(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(If),i.Yb(Bf),i.Yb(i.j),i.Yb(Gf),i.Yb(Ff),i.Yb(i.t),i.Yb(i.B),i.Yb(o),i.Yb(Nc),i.Yb(w),i.Yb(Nf))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const Zf=[{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"}],Jf=new i.s("cdk-connected-overlay-scroll-strategy");let tm=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),em=(()=>{class t{constructor(t,e,n,s,r){this._overlay=t,this._dir=r,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Di.a.EMPTY,this._attachSubscription=Di.a.EMPTY,this._detachSubscription=Di.a.EMPTY,this._positionSubscription=Di.a.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new i.o,this.positionChange=new i.o,this.attach=new i.o,this.detach=new i.o,this.overlayKeydown=new i.o,this.overlayOutsideClick=new i.o,this._templatePortal=new Jp(e,n),this._scrollStrategyFactory=s,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=uc(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=uc(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=uc(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=uc(t)}get push(){return this._push}set push(t){this._push=uc(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=Zf);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27!==t.keyCode||this.disableClose||ld(t)||(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new Pf({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_attachOverlay(){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(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return n=>n.lift(new Of(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Xf),i.Ob(i.O),i.Ob(i.S),i.Ob(Jf),i.Ob(Nc,8))},t.\u0275dir=i.Jb({type:t,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:[i.Bb]}),t})();const nm={provide:Jf,deps:[Xf],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let im=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({providers:[Xf,nm],imports:[[Uc,rf,Cf],Cf]}),t})();const sm=["mat-menu-item",""],rm=["*"];function om(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",0),i.cc("keydown",function(e){return i.xc(t),i.gc()._handleKeydown(e)})("click",function(){return i.xc(t),i.gc().closed.emit("click")})("@transformMenu.start",function(e){return i.xc(t),i.gc()._onAnimationStart(e)})("@transformMenu.done",function(e){return i.xc(t),i.gc()._onAnimationDone(e)}),i.Ub(1,"div",1),i.kc(2),i.Tb(),i.Tb()}if(2&t){const t=i.gc();i.mc("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),i.Eb("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const am={transformMenu:zt("transformMenu",[Kt("void",Wt({opacity:0,transform:"scale(0.8)"})),Gt("void => enter",Yt("120ms cubic-bezier(0, 0, 0.2, 1)",Wt({opacity:1,transform:"scale(1)"}))),Gt("* => void",Yt("100ms 25ms linear",Wt({opacity:0})))]),fadeInItems:zt("fadeInItems",[Kt("showing",Wt({opacity:1})),Gt("void => *",[Wt({opacity:0}),Yt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},lm=new i.s("MatMenuContent"),cm=new i.s("MAT_MENU_PANEL");class um{}const hm=cp(ap(um));let dm=(()=>{class t extends hm{constructor(t,e,n,i){super(),this._elementRef=t,this._focusMonitor=n,this._parentMenu=i,this.role="menuitem",this._hovered=new _i.a,this._focused=new _i.a,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.addItem&&i.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons");for(let s=0;s<i.length;s++){const e=i[s];null===(t=e.parentNode)||void 0===t||t.removeChild(e)}return(null===(e=n.textContent)||void 0===e?void 0:e.trim())||""}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(o),i.Ob(Kd),i.Ob(cm,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(t,e){1&t&&i.cc("click",function(t){return e._checkDisabled(t)})("mouseenter",function(){return e._handleMouseEnter()}),2&t&&(i.Eb("role",e.role)("tabindex",e._getTabIndex())("aria-disabled",e.disabled.toString())("disabled",e.disabled||null),i.Gb("mat-menu-item",!0)("mat-menu-item-highlighted",e._highlighted)("mat-menu-item-submenu-trigger",e._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[i.Ab],attrs:sm,ngContentSelectors:rm,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(t,e){1&t&&(i.lc(),i.kc(0),i.Pb(1,"div",0)),2&t&&(i.Db(1),i.mc("matRippleDisabled",e.disableRipple||e.disabled)("matRippleTrigger",e._getHostElement()))},directives:[wp],encapsulation:2,changeDetection:0}),t})();const pm=new i.s("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let fm=0,mm=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._ngZone=e,this._defaultOptions=n,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new i.F,this._tabSubscription=Di.a.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new _i.a,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new i.o,this.close=this.closed,this.panelId="mat-menu-panel-"+fm++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=uc(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=uc(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Md(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Bs(this._directDescendantItems),Object(Us.a)(t=>Object(mi.a)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Bs(this._directDescendantItems),Object(Us.a)(t=>Object(mi.a)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,n=this._keyManager;switch(e){case 27:ld(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:38!==e&&40!==e||n.setFocusOrigin("keyboard"),n.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe(Object($i.a)(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=`mat-elevation-z${Math.min(4+t,24)}`,n=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Bs(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.B),i.Ob(pm))},t.\u0275dir=i.Jb({type:t,contentQueries:function(t,e,n){if(1&t&&(i.Hb(n,lm,1),i.Hb(n,dm,1),i.Hb(n,dm,0)),2&t){let t;i.sc(t=i.dc())&&(e.lazyContent=t.first),i.sc(t=i.dc())&&(e._allItems=t),i.sc(t=i.dc())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&i.Kc(i.O,1),2&t){let t;i.sc(t=i.dc())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),gm=(()=>{class t extends mm{constructor(t,e,n){super(t,e,n)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.B),i.Ob(pm))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&i.Eb("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[i.Cb([{provide:cm,useExisting:t}]),i.Ab],ngContentSelectors:rm,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(i.lc(),i.Ec(0,om,3,6,"ng-template"))},directives:[F],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-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;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}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[am.transformMenu,am.fadeInItems]},changeDetection:0}),t})();const _m=new i.s("mat-menu-scroll-strategy"),bm={provide:_m,deps:[Xf],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},ym=bd({passive:!0});let vm=(()=>{class t{constructor(t,e,n,s,r,o,a,l){this._overlay=t,this._element=e,this._viewContainerRef=n,this._menuItemInstance=o,this._dir=a,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Di.a.EMPTY,this._hoverSubscription=Di.a.EMPTY,this._menuCloseSubscription=Di.a.EMPTY,this._handleTouchStart=t=>{Yd(t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new i.o,this.onMenuOpen=this.menuOpened,this.menuClosed=new i.o,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=r instanceof mm?r:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,ym),o&&(o._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(t),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,ym),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof mm&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,e instanceof mm?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(Object(Ri.a)(t=>"void"===t.toState),Object($i.a)(1),Object(El.a)(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Pf({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,n]="before"===this.menu.xPosition?["end","start"]:["start","end"],[i,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[r,o]=[i,s],[a,l]=[e,n],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",n=a="end"===e?"start":"end",c="bottom"===i?8:-8):this.menu.overlapTrigger||(r="top"===i?"bottom":"top",o="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:r,overlayX:a,overlayY:i,offsetY:c},{originX:n,originY:r,overlayX:l,overlayY:i,offsetY:c},{originX:e,originY:o,overlayX:a,overlayY:s,offsetY:-c},{originX:n,originY:o,overlayX:l,overlayY:s,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),n=this._parentMaterialMenu?this._parentMaterialMenu.closed:Object(Ci.a)(),i=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Object(Ri.a)(t=>t!==this._menuItemInstance),Object(Ri.a)(()=>this._menuOpen)):Object(Ci.a)();return Object(mi.a)(t,n,i,e)}_handleMousedown(t){zd(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;13!==e&&32!==e||(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Object(Ri.a)(t=>t===this._menuItemInstance&&!t.disabled),Kp(0,Cl)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof mm&&this.menu._isAnimating?this.menu._animationDone.pipe(Object($i.a)(1),Kp(0,Cl),Object(El.a)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new Jp(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Xf),i.Ob(i.l),i.Ob(i.S),i.Ob(_m),i.Ob(cm,8),i.Ob(dm,10),i.Ob(Nc,8),i.Ob(Kd))},t.\u0275dir=i.Jb({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&i.cc("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&i.Eb("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),wm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({providers:[bm],imports:[op]}),t})(),Cm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({providers:[bm],imports:[[rt,op,Cp,im,wm],wf,op,wm]}),t})();var Om=n("z6cu"),xm=n("XoHu");function Sm(...t){if(1===t.length){const e=t[0];if(Object(ks.a)(e))return Em(e,null);if(Object(xm.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Em(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Em(t=1===t.length&&Object(ks.a)(t[0])?t[0]:t,null).pipe(Object(Ti.a)(t=>e(...t)))}return Em(t,null)}function Em(t,e){return new gi.a(n=>{const i=t.length;if(0===i)return void n.complete();const s=new Array(i);let r=0,o=0;for(let a=0;a<i;a++){const l=Object(bi.a)(t[a]);let c=!1;n.add(l.subscribe({next:t=>{c||(c=!0,o++),s[a]=t},error:t=>n.error(t),complete:()=>{r++,r!==i&&c||(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}var km=n("w1tV");const Tm=["*"];function Am(t){return Error(`Unable to find icon with the name "${t}"`)}function Rm(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function Dm(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class Im{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let Pm=(()=>{class t{constructor(t,e,n,i){this._httpClient=t,this._sanitizer=e,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=n}addSvgIcon(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}addSvgIconLiteral(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}addSvgIconInNamespace(t,e,n,i){return this._addSvgIconConfig(t,e,new Im(n,null,i))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,n,s){const r=this._sanitizer.sanitize(i.K.HTML,n);if(!r)throw Dm(n);return this._addSvgIconConfig(t,e,new Im("",r,s))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,n){return this._addSvgIconSetConfig(t,new Im(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){const s=this._sanitizer.sanitize(i.K.HTML,e);if(!s)throw Dm(e);return this._addSvgIconSetConfig(t,new Im("",s,n))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(i.K.RESOURCE_URL,t);if(!e)throw Rm(t);const n=this._cachedIconsByUrl.get(e);return n?Object(Ci.a)(Mm(n)):this._loadSvgIconFromConfig(new Im(t,null)).pipe(ir(t=>this._cachedIconsByUrl.set(e,t)),Object(Ti.a)(t=>Mm(t)))}getNamedSvgIcon(t,e=""){const n=Lm(e,t);let i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(e,t),i)return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):Object(Om.a)(Am(n))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?Object(Ci.a)(Mm(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(Object(Ti.a)(t=>Mm(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);return n?Object(Ci.a)(n):Sm(e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe(Object(Ai.a)(e=>{const n=this._sanitizer.sanitize(i.K.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${e.message}`)),Object(Ci.a)(null)})))).pipe(Object(Ti.a)(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw Am(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.svgText&&i.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(i),n=this._extractSvgIconFromSet(e,t,i.options);if(n)return n}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(ir(e=>t.svgText=e),Object(Ti.a)(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?Object(Ci.a)(null):this._fetchIcon(t).pipe(ir(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,n){const i=t.querySelector(`[id="${e}"]`);if(!i)return null;const s=i.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,n);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),n);const r=this._svgElementFromString("<svg></svg>");return r.appendChild(s),this._setSvgAttributes(r,n)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const n=e.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}_toSvgElement(t){const e=this._svgElementFromString("<svg></svg>"),n=t.attributes;for(let i=0;i<n.length;i++){const{name:t,value:s}=n[i];"id"!==t&&e.setAttribute(t,s)}for(let i=0;i<t.childNodes.length;i++)t.childNodes[i].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[i].cloneNode(!0));return e}_setSvgAttributes(t,e){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),e&&e.viewBox&&t.setAttribute("viewBox",e.viewBox),t}_fetchIcon(t){var e;const{url:n,options:s}=t,r=null!==(e=null==s?void 0:s.withCredentials)&&void 0!==e&&e;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==n)throw Error(`Cannot fetch icon from URL "${n}".`);const o=this._sanitizer.sanitize(i.K.RESOURCE_URL,n);if(!o)throw Rm(n);const a=this._inProgressUrlFetches.get(o);if(a)return a;const l=this._httpClient.get(o,{responseType:"text",withCredentials:r}).pipe(Ki(()=>this._inProgressUrlFetches.delete(o)),Object(km.a)());return this._inProgressUrlFetches.set(o,l),l}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(Lm(t,e),n),this}_addSvgIconSetConfig(t,e){const n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let i=0;i<this._resolvers.length;i++){const s=this._resolvers[i](e,t);if(s)return(n=s).url&&n.options?new Im(s.url,null,s.options):new Im(s,null)}var n}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Vh,8),i.Yb(jt),i.Yb(o,8),i.Yb(i.n))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(Vh,8),Object(i.Yb)(jt),Object(i.Yb)(o,8),Object(i.Yb)(i.n))},token:t,providedIn:"root"}),t})();function Mm(t){return t.cloneNode(!0)}function Lm(t,e){return t+":"+e}class jm{constructor(t){this._elementRef=t}}const Fm=lp(jm),Nm=new i.s("mat-icon-location",{providedIn:"root",factory:function(){const t=Object(i.X)(o),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),Um=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Bm=Um.map(t=>`[${t}]`).join(", "),Vm=/^url\(['"]?#(.*?)['"]?\)$/;let Hm=(()=>{class t extends Fm{constructor(t,e,n,i,s){super(t),this._iconRegistry=e,this._location=i,this._errorHandler=s,this._inline=!1,this._currentIconFetch=Di.a.EMPTY,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=uc(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let i=0;i<e.length;i++)e[i].textContent+=" ";const n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let e=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();e--;){const n=t.childNodes[e];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||t.removeChild(n)}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,e=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();e!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),e&&t.classList.add(e),this._previousFontSetClass=e),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const e=this._elementsWithExternalReferences;e&&e.forEach((e,n)=>{e.forEach(e=>{n.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(Bm),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i<e.length;i++)Um.forEach(t=>{const s=e[i],r=s.getAttribute(t),o=r?r.match(Vm):null;if(o){let e=n.get(s);e||(e=[],n.set(s,e)),e.push({name:t,value:o[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,n]=this._splitIconName(t);e&&(this._svgNamespace=e),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,e).pipe(Object($i.a)(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${n}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(Pm),i.Zb("aria-hidden"),i.Ob(Nm),i.Ob(i.n))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(i.Eb("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),i.Gb("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.Ab],ngContentSelectors:Tm,decls:1,vars:0,template:function(t,e){1&t&&(i.lc(),i.kc(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),zm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({imports:[[op],op]}),t})();class Ym{constructor(t,e){this.isManual=t,this.element=e}}let $m=(()=>{class t{constructor(e){this.el=e,this.scrolling=!1,this.stickToTop=()=>{t.stickies.length>0&&t.stickies.forEach(t=>{t.element&&(window.pageYOffset>t.element.getBoundingClientRect().top?this.addSticky(t):this.removeSticky(t))})},this.isManual=()=>"true"===this.ftdnaStickyManual}ngOnInit(){t.stickies.push(new Ym(this.isManual(),this.el.nativeElement)),window.onscroll=()=>this.scrolling=!0;const e=this;window.setInterval(()=>{e.scrolling&&(e.scrolling=!1,e.stickToTop())},250)}addSticky(t){t.element.classList.add("sticky"),t.isManual||(t.element.style.position="fixed",t.element.style.top="0")}removeSticky(t){t.element.classList.remove("sticky"),t.isManual||(t.element.style.position="static",t.element.style.top="auto")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","ftdnaSticky",""]],inputs:{ftdnaStickyManual:"ftdnaStickyManual"}}),t.stickies=[],t})(),Wm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({imports:[[]]}),t})();const Km=["*"],qm=["tabListContainer"],Gm=["tabList"],Qm=["nextPaginator"],Xm=["previousPaginator"],Zm=["mat-tab-nav-bar",""],Jm=new i.s("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let tg=(()=>{class t{constructor(t,e,n,i){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=n,this._animationMode=i}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),n=this._elementRef.nativeElement;n.style.left=e.left,n.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.B),i.Ob(Jm),i.Ob(hi,8))},t.\u0275dir=i.Jb({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&i.Gb("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})();const eg=bd({passive:!0});let ng=(()=>{class t{constructor(t,e,n,s,r,o,a){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=n,this._dir=s,this._ngZone=r,this._platform=o,this._animationMode=a,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new _i.a,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new _i.a,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new i.o,this.indexFocused=new i.o,r.runOutsideAngular(()=>{Ol(t.nativeElement,"mouseleave").pipe(Object(El.a)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=hc(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){Ol(this._previousPaginator.nativeElement,"touchstart",eg).pipe(Object(El.a)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Ol(this._nextPaginator.nativeElement,"touchstart",eg).pipe(Object(El.a)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:Object(Ci.a)(null),e=this._viewportRuler.change(150),n=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Md(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(n):n(),Object(mi.a)(t,e,this._items.changes).pipe(Object(El.a)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(n)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Object(El.a)(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}ngAfterContentChecked(){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())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!ld(t))switch(t.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,n=this._getLayoutDirection();e.scrollLeft="ltr"==n?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const n=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:i,offsetWidth:s}=e.elementRef.nativeElement;let r,o;"ltr"==this._getLayoutDirection()?(r=i,o=r+s):(o=this._tabList.nativeElement.offsetWidth-i,r=o-s);const a=this.scrollDistance,l=this.scrollDistance+n;r<a?this.scrollDistance-=a-r+60:o>l&&(this.scrollDistance+=o-l+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),hf(650,100).pipe(Object(El.a)(Object(mi.a)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:n}=this._scrollHeader(t);(0===n||n>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.h),i.Ob(vf),i.Ob(Nc,8),i.Ob(i.B),i.Ob(hd),i.Ob(hi,8))},t.\u0275dir=i.Jb({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),ig=(()=>{class t extends ng{constructor(t,e,n,i,s,r,o){super(t,i,s,e,n,r,o),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement.classList;e.remove(`mat-background-${this.backgroundColor}`),t&&e.add(`mat-background-${t}`),this._backgroundColor=t}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=uc(t)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe(Bs(null),Object(El.a)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const t=this._items.toArray();for(let e=0;e<t.length;e++)if(t[e].active)return this.selectedIndex=e,void this._changeDetectorRef.markForCheck();this.selectedIndex=-1,this._inkBar.hide()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(Nc,8),i.Ob(i.B),i.Ob(i.h),i.Ob(vf),i.Ob(hd),i.Ob(hi,8))},t.\u0275dir=i.Jb({type:t,inputs:{color:"color",backgroundColor:"backgroundColor",disableRipple:"disableRipple"},features:[i.Ab]}),t})(),sg=(()=>{class t extends ig{constructor(t,e,n,i,s,r,o){super(t,e,n,i,s,r,o)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(Nc,8),i.Ob(i.B),i.Ob(i.h),i.Ob(vf),i.Ob(hd),i.Ob(hi,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(t,e,n){if(1&t&&i.Hb(n,lg,1),2&t){let t;i.sc(t=i.dc())&&(e._items=t)}},viewQuery:function(t,e){if(1&t&&(i.Kc(tg,3),i.Kc(qm,3),i.Kc(Gm,3),i.Kc(Qm,1),i.Kc(Xm,1)),2&t){let t;i.sc(t=i.dc())&&(e._inkBar=t.first),i.sc(t=i.dc())&&(e._tabListContainer=t.first),i.sc(t=i.dc())&&(e._tabList=t.first),i.sc(t=i.dc())&&(e._nextPaginator=t.first),i.sc(t=i.dc())&&(e._previousPaginator=t.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(t,e){2&t&&i.Gb("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())("mat-primary","warn"!==e.color&&"accent"!==e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[i.Ab],attrs:Zm,ngContentSelectors:Km,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-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["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(t,e){1&t&&(i.lc(),i.Ub(0,"div",0,1),i.cc("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),i.Pb(2,"div",2),i.Tb(),i.Ub(3,"div",3,4),i.cc("keydown",function(t){return e._handleKeydown(t)}),i.Ub(5,"div",5,6),i.cc("cdkObserveContent",function(){return e._onContentChanges()}),i.Ub(7,"div",7),i.kc(8),i.Tb(),i.Pb(9,"mat-ink-bar"),i.Tb(),i.Tb(),i.Ub(10,"div",8,9),i.cc("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),i.Pb(12,"div",2),i.Tb()),2&t&&(i.Gb("mat-tab-header-pagination-disabled",e._disableScrollBefore),i.mc("matRippleDisabled",e._disableScrollBefore||e.disableRipple),i.Db(5),i.Gb("_mat-animation-noopable","NoopAnimations"===e._animationMode),i.Db(5),i.Gb("mat-tab-header-pagination-disabled",e._disableScrollAfter),i.mc("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[wp,Od,tg],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-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.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-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{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;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n'],encapsulation:2}),t})();class rg{}const og=up(cp(ap(rg)));let ag=(()=>{class t extends og{constructor(t,e,n,i,s,r){super(),this._tabNavBar=t,this.elementRef=e,this._focusMonitor=s,this._isActive=!1,this.rippleConfig=n||{},this.tabIndex=parseInt(i)||0,"NoopAnimations"===r&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(t){uc(t)!==this._isActive&&(this._isActive=t,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(ig),i.Ob(i.l),i.Ob(vp,8),i.Zb("tabindex"),i.Ob(Kd),i.Ob(hi,8))},t.\u0275dir=i.Jb({type:t,inputs:{active:"active"},features:[i.Ab]}),t})(),lg=(()=>{class t extends ag{constructor(t,e,n,i,s,r,o,a){super(t,e,s,r,o,a),this._tabLinkRipple=new yp(this,n,e,i),this._tabLinkRipple.setupTriggerEvents(e.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(sg),i.Ob(i.l),i.Ob(i.B),i.Ob(hd),i.Ob(vp,8),i.Zb("tabindex"),i.Ob(Kd),i.Ob(hi,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){2&t&&(i.Eb("aria-current",e.active?"page":null)("aria-disabled",e.disabled)("tabIndex",e.tabIndex),i.Gb("mat-tab-disabled",e.disabled)("mat-tab-label-active",e.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[i.Ab]}),t})(),cg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({imports:[[rt,op,rf,Cp,xd,Qd],op]}),t})();function ug(t,e){if(1&t&&(i.Ub(0,"a",19,20),i.Fc(2," Y-DNA HAPLOTREE "),i.Tb()),2&t){const t=i.tc(1),e=i.gc(2);i.mc("routerLink",e.yTree)("active",t.isActive)}}function hg(t,e){if(1&t&&(i.Ub(0,"a",19,21),i.Fc(2," mtDNA HAPLOTREE "),i.Tb()),2&t){const t=i.tc(1),e=i.gc(2);i.mc("routerLink",e.mtTree)("active",t.isActive)}}function dg(t,e){1&t&&(i.Ub(0,"a",22),i.Fc(1," Y-DNA HAPLOTREE "),i.Tb())}function pg(t,e){1&t&&(i.Ub(0,"a",22),i.Fc(1," mtDNA HAPLOTREE "),i.Tb())}function fg(t,e){if(1&t&&(i.Ub(0,"div"),i.Pb(1,"h2",13),i.Ub(2,"div",14),i.Ub(3,"div",15),i.Ub(4,"nav",16),i.Ec(5,ug,3,2,"a",17),i.Ec(6,hg,3,2,"a",17),i.Ec(7,dg,2,0,"a",18),i.Ec(8,pg,2,0,"a",18),i.Tb(),i.Tb(),i.Pb(9,"router-outlet"),i.Tb(),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("innerHTML",n.subtitle,i.yc),i.Db(4),i.mc("ngIf",!t.isLoading),i.Db(1),i.mc("ngIf",!t.isLoading),i.Db(1),i.mc("ngIf",t.isLoading),i.Db(1),i.mc("ngIf",t.isLoading)}}let mg=(()=>{class t{constructor(t){this.store=t,this.yTree=Ru,this.mtTree=Du;const e=[t.select(xh),t.select(ah),t.select(wh)];this.store$=Is(e).pipe(Object(Ti.a)(([t,e,n])=>{let i="Discover the countries of origin for each branch of the <strong>mtDNA Haplotree</strong> using the world's ",s="Discover the countries of origin and surnames for each branch of the world's largest <strong>Y-DNA Haplotree</strong>. ";return n?(i+=`largest mtDNA database containing ${(n=n).mtDnaFullSequenceCount.toLocaleString("en-US")} mtFull Sequences from over 180 different countries.`,s+=`Currently, the tree includes ${n.yDnaBranchCount.toLocaleString("en-US")} branches, ${n.yDnaVariantCount.toLocaleString("en-US")} variants, and ${n.yDnaSnpTestedUserCount.toLocaleString("en-US")} SNP-tested users from our Y-DNA database.`):i+="largest mtDNA database.",this.subtitle=t===Du?i:s,{isLoading:e}}))}ngOnInit(){this.store.dispatch(new Pu)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(fi.i))},t.\u0275cmp=i.Ib({type:t,selectors:[["haplo-tree-tabs"]],decls:33,vars:5,consts:[["ngClass.gt-600.ftdna","gt-600","ngClass.gt-1440.ftdna","gt-1440",1,"matches-header"],["fxLayout","row","fxLayoutAlign","space-between center","ngClass.gt-600.ftdna","gt-600","ngClass.gt-1440.ftdna","gt-1440",1,"matches-container"],["ngClass.gt-1024.ftdna","gt-1024",1,"title"],["mat-button","","color","accent","fxHide","","fxHide.gt-1024.ftdna","false",1,"mat-button-md",3,"matMenuTriggerFor"],["resources",""],[1,"menu-link"],["menu","matMenu"],["mat-menu-item","","href","https://help.familytreedna.com/hc/en-us/sections/360001448756","target","_blank"],["mat-menu-item","","href","https://help.familytreedna.com/hc/en-us/sections/360001448736","target","_blank"],["mat-menu-item","","href","https://survey.zohopublic.com/zs/hIzcLm","target","_blank"],["mat-icon-button","","color","accent","fxHide.gt-1024.ftdna","",1,"mat-button-lg",3,"matMenuTriggerFor"],["menu_icon","matMenu"],[4,"ngIf"],[1,"subtitle",3,"innerHTML"],[1,"outer-tabs-container"],["ftdnaSticky","",1,"nav-bar-container","main-tabs"],["mat-tab-nav-bar",""],["mat-tab-link","","routerLinkActive","","queryParamsHandling","merge",3,"routerLink","active",4,"ngIf"],["mat-tab-link","","disabled","",4,"ngIf"],["mat-tab-link","","routerLinkActive","","queryParamsHandling","merge",3,"routerLink","active"],["rla","routerLinkActive"],["rla2","routerLinkActive"],["mat-tab-link","","disabled",""]],template:function(t,e){if(1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",0),i.Ub(2,"div",1),i.Ub(3,"div",2),i.Fc(4,"Public Haplotrees"),i.Tb(),i.Ub(5,"button",3,4),i.Ub(7,"mat-icon"),i.Fc(8,"help"),i.Tb(),i.Ub(9,"span"),i.Fc(10,"Help"),i.Tb(),i.Tb(),i.Ub(11,"mat-menu",5,6),i.Ub(13,"a",7),i.Fc(14,"mtDNA Haplotree Help Link"),i.Tb(),i.Ub(15,"a",8),i.Fc(16,"Y-DNA Haplotree Help Link"),i.Tb(),i.Ub(17,"a",9),i.Fc(18,"Submit Feedback"),i.Tb(),i.Tb(),i.Ub(19,"button",10,4),i.Ub(21,"mat-icon"),i.Fc(22,"help"),i.Tb(),i.Tb(),i.Ub(23,"mat-menu",5,11),i.Ub(25,"a",7),i.Fc(26,"mtDNA Haplotree Help Link"),i.Tb(),i.Ub(27,"a",8),i.Fc(28,"Y-DNA Haplotree Help Link"),i.Tb(),i.Ub(29,"a",9),i.Fc(30,"Submit Feedback"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ec(31,fg,10,5,"div",12),i.hc(32,"async")),2&t){const t=i.tc(12),n=i.tc(24);i.Db(5),i.mc("matMenuTriggerFor",t),i.Db(14),i.mc("matMenuTriggerFor",n),i.Db(12),i.mc("ngIf",i.ic(32,3,e.store$))}},directives:[mu,xu,qc,eu,bu,zp,Sc,wu,vm,Hm,gm,dm,V,$m,sg,Fa,Ma,lg,ja],pipes:[tt],styles:[".subtitle{color:#444;font-family:Roboto,Arial,Helvetica,sans-serif;font-size:16px;font-weight:300;line-height:24px;letter-spacing:.8px;margin:60px auto 42px;text-align:center;width:534px}.nav-bar-container.sticky{background-color:#fff;width:100%;z-index:1000}.nav-bar-container.main-tabs{padding-left:20px;padding-right:20px}.outer-tabs-container{border-bottom:1px solid rgba(33,33,33,.3)}.matches-header{border-bottom:1px solid #d6d6d6;height:48px}.matches-header.gt-600{margin:0 0 8px}.matches-header.gt-1440{margin:0 0 24px}.matches-header .matches-container{height:100%;padding:0 24px}.matches-header .title{font-size:16px}.matches-header .title.gt-1024{font-size:18px}.menu-link a:focus,.menu-link a:hover{text-decoration:none;color:#212121}"],encapsulation:2,changeDetection:0}),t})(),gg=(()=>{class t{constructor(){this.title="app"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["public-haplo-tree"]],decls:1,vars:0,template:function(t,e){1&t&&i.Pb(0,"haplo-tree-tabs")},directives:[mg],encapsulation:2}),t})();const _g=[[["caption"]],[["colgroup"],["col"]]],bg=["caption","colgroup, col"];function yg(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=uc(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const vg=new i.s("CDK_TABLE");let wg=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.O))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkCellDef",""]]}),t})(),Cg=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.O))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),Og=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.O))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class xg{}const Sg=yg(xg);let Eg=(()=>{class t extends Sg{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=uc(t),this._hasStickyChanged=e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(vg,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,n){if(1&t&&(i.Hb(n,wg,1),i.Hb(n,Cg,1),i.Hb(n,Og,1)),2&t){let t;i.sc(t=i.dc())&&(e.cell=t.first),i.sc(t=i.dc())&&(e.headerCell=t.first),i.sc(t=i.dc())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[i.Cb([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),i.Ab]}),t})();class kg{constructor(t,e){const n=e.nativeElement.classList;for(const i of t._columnCssClassName)n.add(i)}}let Tg=(()=>{class t extends kg{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Eg),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.Ab]}),t})(),Ag=(()=>{class t extends kg{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Eg),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:["role","gridcell",1,"cdk-footer-cell"],features:[i.Ab]}),t})(),Rg=(()=>{class t extends kg{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Eg),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[i.Ab]}),t})();class Dg{constructor(){this.tasks=[],this.endTasks=[]}}const Ig=new i.s("_COALESCED_STYLE_SCHEDULER");let Pg=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new _i.a}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Dg,this._getScheduleObservable().pipe(Object(El.a)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new Dg;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Object(bi.a)(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Object($i.a)(1))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(i.B))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),Mg=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof Fg?t.headerCell.template:this instanceof Bg?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.O),i.Ob(i.u))},t.\u0275dir=i.Jb({type:t,features:[i.Bb]}),t})();class Lg extends Mg{}const jg=yg(Lg);let Fg=(()=>{class t extends jg{constructor(t,e,n){super(t,e),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.O),i.Ob(i.u),i.Ob(vg,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.Ab,i.Bb]}),t})();class Ng extends Mg{}const Ug=yg(Ng);let Bg=(()=>{class t extends Ug{constructor(t,e,n){super(t,e),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.O),i.Ob(i.u),i.Ob(vg,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.Ab,i.Bb]}),t})(),Vg=(()=>{class t extends Mg{constructor(t,e,n){super(t,e),this._table=n}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.O),i.Ob(i.u),i.Ob(vg,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.Ab]}),t})(),Hg=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.S))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),zg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&i.Qb(0,0)},directives:[Hg],encapsulation:2}),t})(),Yg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&i.Qb(0,0)},directives:[Hg],encapsulation:2}),t})(),$g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&i.Qb(0,0)},directives:[Hg],encapsulation:2}),t})(),Wg=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.O))},t.\u0275dir=i.Jb({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const Kg=["top","bottom","left","right"];class qg{constructor(t,e,n,i,s=!0,r=!0,o){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=n,this._coalescedStyleScheduler=i,this._isBrowser=s,this._needsPositionStickyOnElement=r,this._positionListener=o,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(t,e){const n=[];for(const i of t)if(i.nodeType===i.ELEMENT_NODE){n.push(i);for(let t=0;t<i.children.length;t++)n.push(i.children[t])}this._scheduleStyleChanges(()=>{for(const t of n)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,n,i=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!n.some(t=>t))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const s=t[0],r=s.children.length,o=this._getCellWidths(s,i),a=this._getStickyStartColumnPositions(o,e),l=this._getStickyEndColumnPositions(o,n),c=e.lastIndexOf(!0),u=n.indexOf(!0);this._scheduleStyleChanges(()=>{const i="rtl"===this.direction,s=i?"right":"left",h=i?"left":"right";for(const o of t)for(let t=0;t<r;t++){const i=o.children[t];e[t]&&this._addStickyStyle(i,s,a[t],t===c),n[t]&&this._addStickyStyle(i,h,l[t],t===u)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===c?[]:o.slice(0,c+1).map((t,n)=>e[n]?t:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===u?[]:o.slice(u).map((t,e)=>n[e+u]?t:null).reverse()}))})}stickRows(t,e,n){if(!this._isBrowser)return;const i="bottom"===n?t.slice().reverse():t,s="bottom"===n?e.slice().reverse():e,r=[],o=[],a=[];for(let c=0,u=0;c<i.length;c++){if(r[c]=u,!s[c])continue;const t=i[c];a[c]=this._isNativeHtmlTable?Array.from(t.children):[t];const e=t.getBoundingClientRect().height;u+=e,o[c]=e}const l=s.lastIndexOf(!0);this._scheduleStyleChanges(()=>{var t,e;for(let o=0;o<i.length;o++){if(!s[o])continue;const t=r[o],e=o===l;for(const i of a[o])this._addStickyStyle(i,n,t,e)}"top"===n?null===(t=this._positionListener)||void 0===t||t.stickyHeaderRowsUpdated({sizes:o,elements:a}):null===(e=this._positionListener)||void 0===e||e.stickyFooterRowsUpdated({sizes:o,elements:a})})}updateStickyFooterContainer(t,e){if(!this._isNativeHtmlTable)return;const n=t.querySelector("tfoot");this._scheduleStyleChanges(()=>{e.some(t=>!t)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const n of e)t.style[n]="",t.classList.remove(this._borderCellCss[n]);Kg.some(n=>-1===e.indexOf(n)&&t.style[n])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,n,i){t.classList.add(this._stickCellCss),i&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${n}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let n=0;for(const i of Kg)t.style[i]&&(n+=e[i]);return n?`${n}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const n=[],i=t.children;for(let s=0;s<i.length;s++)n.push(i[s].getBoundingClientRect().width);return this._cachedCellWidths=n,n}_getStickyStartColumnPositions(t,e){const n=[];let i=0;for(let s=0;s<t.length;s++)e[s]&&(n[s]=i,i+=t[s]);return n}_getStickyEndColumnPositions(t,e){const n=[];let i=0;for(let s=t.length;s>0;s--)e[s]&&(n[s]=i,i+=t[s]);return n}_scheduleStyleChanges(t){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(t):t()}}const Gg=new i.s("CDK_SPL");let Qg=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.S),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","rowOutlet",""]]}),t})(),Xg=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.S),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),Zg=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.S),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),Jg=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.S),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),t_=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,u){this._differs=t,this._changeDetectorRef=e,this._elementRef=n,this._dir=s,this._platform=o,this._viewRepeater=a,this._coalescedStyleScheduler=l,this._stickyPositioningListener=c,this._viewportRuler=u,this._onDestroy=new _i.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 Ss.a({start:0,end:Number.MAX_VALUE}),i||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=r,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=uc(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=uc(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e),this._viewportRuler&&this._viewportRuler.change().pipe(Object(El.a)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,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()}ngOnDestroy(){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(),mf(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return void this._updateNoDataRow();const e=this._rowOutlet.viewContainer;this._viewRepeater?this._viewRepeater.applyChanges(t,e,(t,e,n)=>this._getEmbeddedViewArgs(t.item,n),t=>t.item.data,t=>{1===t.operation&&t.context&&this._renderCellTemplateForItem(t.record.item.rowDef,t.context)}):t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const e=t.item;this._renderRow(this._rowOutlet,e.rowDef,i,{$implicit:e.data})}else if(null==i)e.remove(n);else{const t=e.get(n);e.move(t,i)}}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const n=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,n,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const n=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),n=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...e,...n],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const n=[];for(let i=0;i<e.length;i++)this._renderRows[i].rowDef===t&&n.push(e[i]);this._addStickyColumnStyles(n,t)}),n.forEach((t,e)=>{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let n=0;n<this._data.length;n++){let i=this._data[n];const s=this._getRenderRowsForData(i,n,e.get(i));this._cachedRenderRowsMap.has(i)||this._cachedRenderRowsMap.set(i,new WeakMap);for(let e=0;e<s.length;e++){let n=s[e];const i=this._cachedRenderRowsMap.get(n.data);i.has(n.rowDef)?i.get(n.rowDef).push(n):i.set(n.rowDef,[n]),t.push(n)}}return t}_getRenderRowsForData(t,e,n){return this._getRowDefs(t,e).map(i=>{const s=n&&n.has(i)?n.get(i):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:i,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),e_(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=e_(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=e_(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=e_(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff(),e=this._rowDefs.reduce(t,!1);e&&this._forceRenderDataRows();const n=this._headerRowDefs.reduce(t,!1);n&&this._forceRenderHeaderRows();const i=this._footerRowDefs.reduce(t,!1);return i&&this._forceRenderFooterRows(),e||n||i}_switchDataSource(t){this._data=[],mf(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;mf(this.dataSource)?t=this.dataSource.connect(this):of(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Object(Ci.a)(this.dataSource)),this._renderChangeSubscription=t.pipe(Object(El.a)(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,e){const n=Array.from(e.columns||[]).map(t=>this._columnDefsByName.get(t)),i=n.map(t=>t.sticky),s=n.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,i,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let n=0;n<t.viewContainer.length;n++){const i=t.viewContainer.get(n);e.push(i.rootNodes[0])}return e}_getRowDefs(t,e){if(1==this._rowDefs.length)return[this._rowDefs[0]];let n=[];if(this.multiTemplateDataRows)n=this._rowDefs.filter(n=>!n.when||n.when(e,t));else{let i=this._rowDefs.find(n=>n.when&&n.when(e,t))||this._defaultRowDef;i&&n.push(i)}return n}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,n,i={}){const s=t.viewContainer.createEmbeddedView(e.template,i,n);return this._renderCellTemplateForItem(e,i),s}_renderCellTemplateForItem(t,e){for(let n of this._getCellTemplates(t))Hg.mostRecentCellOutlet&&Hg.mostRecentCellOutlet._viewContainer.createEmbeddedView(n,e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,n=t.length;e<n;e++){const i=t.get(e).context;i.count=n,i.first=0===e,i.last=e===n-1,i.even=e%2==0,i.odd=!i.even,this.multiTemplateDataRows?(i.dataIndex=this._renderRows[e].dataIndex,i.renderIndex=e):i.index=this._renderRows[e].dataIndex}}_getCellTemplates(t){return t&&t.columns?Array.from(t.columns,e=>{const n=this._columnDefsByName.get(e);return t.extractCellTemplate(n)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const n of e){const e=this._document.createElement(n.tag);e.setAttribute("role","rowgroup");for(const t of n.outlets)e.appendChild(t.elementRef.nativeElement);t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new qg(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(Ci.a)()).pipe(Object(El.a)(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const t=this._customNoDataRow||this._noDataRow;if(t){const e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){const n=this._noDataRowOutlet.viewContainer;e?n.createEmbeddedView(t.templateRef):n.clear(),this._isShowingNoDataRow=e}}}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.u),i.Ob(i.h),i.Ob(i.l),i.Zb("role"),i.Ob(Nc,8),i.Ob(o),i.Ob(hd),i.Ob(bf,8),i.Ob(Ig,8),i.Ob(Gg,12),i.Ob(vf,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,n){if(1&t&&(i.Hb(n,Wg,1),i.Hb(n,Eg,1),i.Hb(n,Vg,1),i.Hb(n,Fg,1),i.Hb(n,Bg,1)),2&t){let t;i.sc(t=i.dc())&&(e._noDataRow=t.first),i.sc(t=i.dc())&&(e._contentColumnDefs=t),i.sc(t=i.dc())&&(e._contentRowDefs=t),i.sc(t=i.dc())&&(e._contentHeaderRowDefs=t),i.sc(t=i.dc())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(i.Kc(Qg,3),i.Kc(Xg,3),i.Kc(Zg,3),i.Kc(Jg,3)),2&t){let t;i.sc(t=i.dc())&&(e._rowOutlet=t.first),i.sc(t=i.dc())&&(e._headerRowOutlet=t.first),i.sc(t=i.dc())&&(e._footerRowOutlet=t.first),i.sc(t=i.dc())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&i.Gb("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[i.Cb([{provide:vg,useExisting:t},{provide:bf,useClass:gf},{provide:Ig,useClass:Pg},{provide:Gg,useValue:null}])],ngContentSelectors:bg,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(i.lc(_g),i.kc(0),i.kc(1,1),i.Qb(2,0),i.Qb(3,1),i.Qb(4,2),i.Qb(5,3))},directives:[Xg,Qg,Jg,Zg],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function e_(t,e){return t.concat(Array.from(e))}let n_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({imports:[[Cf]]}),t})();class i_ extends class{constructor(){this.expansionModel=new _f(!0)}toggle(t){this.expansionModel.toggle(this._trackByValue(t))}expand(t){this.expansionModel.select(this._trackByValue(t))}collapse(t){this.expansionModel.deselect(this._trackByValue(t))}isExpanded(t){return this.expansionModel.isSelected(this._trackByValue(t))}toggleDescendants(t){this.expansionModel.isSelected(this._trackByValue(t))?this.collapseDescendants(t):this.expandDescendants(t)}collapseAll(){this.expansionModel.clear()}expandDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.select(...e.map(t=>this._trackByValue(t)))}collapseDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.deselect(...e.map(t=>this._trackByValue(t)))}_trackByValue(t){return this.trackBy?this.trackBy(t):t}}{constructor(t,e,n){super(),this.getLevel=t,this.isExpandable=e,this.options=n,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(t){const e=[];for(let n=this.dataNodes.indexOf(t)+1;n<this.dataNodes.length&&this.getLevel(t)<this.getLevel(this.dataNodes[n]);n++)e.push(this.dataNodes[n]);return e}expandAll(){this.expansionModel.select(...this.dataNodes.map(t=>this._trackByValue(t)))}}const s_=new i.s("CDK_TREE_NODE_OUTLET_NODE");let r_=(()=>{class t{constructor(t,e){this.viewContainer=t,this._node=e}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.S),i.Ob(s_,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkTreeNodeOutlet",""]]}),t})();class o_{constructor(t){this.$implicit=t}}let a_=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.O))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),t})(),l_=(()=>{class t{constructor(t,e){this._differs=t,this._changeDetectorRef=e,this._onDestroy=new _i.a,this._levels=new Map,this.viewChange=new Ss.a({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const t=this._nodeDefs.filter(t=>!t.when);this._defaultNodeDef=t[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(t){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),t||this._nodeOutlet.viewContainer.clear(),this._dataSource=t,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let t;mf(this._dataSource)?t=this._dataSource.connect(this):of(this._dataSource)?t=this._dataSource:Array.isArray(this._dataSource)&&(t=Object(Ci.a)(this._dataSource)),t&&(this._dataSubscription=t.pipe(Object(El.a)(this._onDestroy)).subscribe(t=>this.renderNodeChanges(t)))}renderNodeChanges(t,e=this._dataDiffer,n=this._nodeOutlet.viewContainer,i){const s=e.diff(t);s&&(s.forEachOperation((e,s,r)=>{if(null==e.previousIndex)this.insertNode(t[r],r,n,i);else if(null==r)n.remove(s),this._levels.delete(e.item);else{const t=n.get(s);n.move(t,r)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(t,e){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(n=>n.when&&n.when(e,t))||this._defaultNodeDef}insertNode(t,e,n,i){const s=this._getNodeDef(t,e),r=new o_(t);r.level=this.treeControl.getLevel?this.treeControl.getLevel(t):void 0!==i&&this._levels.has(i)?this._levels.get(i)+1:0,this._levels.set(t,r.level),(n||this._nodeOutlet.viewContainer).createEmbeddedView(s.template,r,e),c_.mostRecentTreeNode&&(c_.mostRecentTreeNode.data=t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.u),i.Ob(i.h))},t.\u0275cmp=i.Ib({type:t,selectors:[["cdk-tree"]],contentQueries:function(t,e,n){if(1&t&&i.Hb(n,a_,1),2&t){let t;i.sc(t=i.dc())&&(e._nodeDefs=t)}},viewQuery:function(t,e){if(1&t&&i.Kc(r_,3),2&t){let t;i.sc(t=i.dc())&&(e._nodeOutlet=t.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(t,e){1&t&&i.Qb(0,0)},directives:[r_],encapsulation:2}),t})(),c_=(()=>{class t{constructor(e,n){this._elementRef=e,this._tree=n,this._destroyed=new _i.a,this._dataChanges=new _i.a,t.mostRecentTreeNode=this,this._elementRef.nativeElement.classList.add("cdk-tree-node"),this.role="treeitem"}get role(){return"treeitem"}set role(t){this._elementRef.nativeElement.setAttribute("role",t)}get data(){return this._data}set data(t){t!==this._data&&(this._data=t,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}_setExpanded(t){this._isAriaExpanded=t,this._elementRef.nativeElement.setAttribute("aria-expanded",`${t}`)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function(t){let e=t.parentElement;for(;e&&!u_(e);)e=e.parentElement;return e?e.classList.contains("cdk-nested-tree-node")?hc(e.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngDoCheck(){this.isExpanded!=this._isAriaExpanded&&this._setExpanded(this.isExpanded)}ngOnDestroy(){t.mostRecentTreeNode===this&&(t.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(l_))},t.\u0275dir=i.Jb({type:t,selectors:[["cdk-tree-node"]],inputs:{role:"role"},exportAs:["cdkTreeNode"]}),t.mostRecentTreeNode=null,t})();function u_(t){const e=t.classList;return!(!(null==e?void 0:e.contains("cdk-nested-tree-node"))&&!(null==e?void 0:e.contains("cdk-tree")))}let h_=(()=>{class t{constructor(t,e){this._tree=t,this._treeNode=e,this._recursive=!1}get recursive(){return this._recursive}set recursive(t){this._recursive=uc(t)}_toggle(t){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),t.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(l_),i.Ob(c_))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(t,e){1&t&&i.cc("click",function(t){return e._toggle(t)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),t})(),d_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({}),t})();const p_=new i.s("NgValueAccessor"),f_={provide:p_,useExisting:Object(i.W)(()=>g_),multi:!0},m_=new i.s("CompositionEventMode");let g_=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=r()?r().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l),i.Ob(m_,8))},t.\u0275dir=i.Jb({type:t,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(t,e){1&t&&i.cc("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[i.Cb([f_])]}),t})();const __=new i.s("NgValidators"),b_=new i.s("NgAsyncValidators");function y_(t){return null!=t}function v_(t){const e=Object(i.ub)(t)?Object(bi.a)(t):t;return Object(i.tb)(e),e}function w_(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function C_(t,e){return e.map(e=>e(t))}function O_(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function x_(t){return null!=t?function(t){if(!t)return null;const e=t.filter(y_);return 0==e.length?null:function(t){return w_(C_(t,e))}}(O_(t)):null}function S_(t){return null!=t?function(t){if(!t)return null;const e=t.filter(y_);return 0==e.length?null:function(t){return Sm(C_(t,e).map(v_)).pipe(Object(Ti.a)(w_))}}(O_(t)):null}function E_(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function k_(t){return t._rawValidators}function T_(t){return t._rawAsyncValidators}let A_=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=x_(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=S_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t}),t})(),R_=(()=>{class t extends A_{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return D_(e||t)},t.\u0275dir=i.Jb({type:t,features:[i.Ab]}),t})();const D_=i.Wb(R_);class I_ extends A_{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let P_=(()=>{class t extends class{constructor(t){this._cd=t}is(t){var e,n;return!!(null===(n=null===(e=this._cd)||void 0===e?void 0:e.control)||void 0===n?void 0:n[t])}}{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(I_,2))},t.\u0275dir=i.Jb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.Gb("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[i.Ab]}),t})();function M_(t,e){F_(t,e,!0),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&U_(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&U_(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function L_(t,e,n=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),N_(t,e,!0),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function j_(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function F_(t,e,n){const i=k_(t);null!==e.validator?t.setValidators(E_(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const s=T_(t);if(null!==e.asyncValidator?t.setAsyncValidators(E_(s,e.asyncValidator)):"function"==typeof s&&t.setAsyncValidators([s]),n){const n=()=>t.updateValueAndValidity();j_(e._rawValidators,n),j_(e._rawAsyncValidators,n)}}function N_(t,e,n){let i=!1;if(null!==t){if(null!==e.validator){const n=k_(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.validator);s.length!==n.length&&(i=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const n=T_(t);if(Array.isArray(n)&&n.length>0){const s=n.filter(t=>t!==e.asyncValidator);s.length!==n.length&&(i=!0,t.setAsyncValidators(s))}}}if(n){const t=()=>{};j_(e._rawValidators,t),j_(e._rawAsyncValidators,t)}return i}function U_(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function B_(t,e){F_(t,e,!1)}function V_(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}function H_(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function z_(t,e){if(!e)return null;let n,i,s;return Array.isArray(e),e.forEach(t=>{t.constructor===g_?n=t:Object.getPrototypeOf(t.constructor)===class{}?i=t:s=t}),s||i||n||null}function Y_(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function $_(t){return(G_(t)?t.validators:t)||null}function W_(t){return Array.isArray(t)?x_(t):t||null}function K_(t,e){return(G_(e)?e.asyncValidators:t)||null}function q_(t){return Array.isArray(t)?S_(t):t||null}function G_(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Q_{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=W_(this._rawValidators),this._composedAsyncValidatorFn=q_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=W_(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=q_(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const e=v_(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let i=t;return e.forEach(t=>{i=i instanceof Z_?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof J_&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new i.o,this.statusChanges=new i.o}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){G_(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class X_ extends Q_{constructor(t=null,e,n){super($_(e),K_(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Y_(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Y_(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Z_ extends Q_{constructor(t,e,n){super($_(e),K_(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof X_?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class J_ extends Q_{constructor(t,e,n){super($_(e),K_(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof X_?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const tb={provide:R_,useExisting:Object(i.W)(()=>nb)},eb=(()=>Promise.resolve(null))();let nb=(()=>{class t extends R_{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.o,this.form=new Z_({},x_(t),S_(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){eb.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),M_(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){eb.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),Y_(this._directives,t)})}addFormGroup(t){eb.then(()=>{const e=this._findContainer(t.path),n=new Z_({});B_(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){eb.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){eb.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,H_(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(__,10),i.Ob(b_,10))},t.\u0275dir=i.Jb({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&i.cc("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Cb([tb]),i.Ab]}),t})();const ib={provide:I_,useExisting:Object(i.W)(()=>rb)},sb=(()=>Promise.resolve(null))();let rb=(()=>{class t extends I_{constructor(t,e,n,s){super(),this.control=new X_,this._registered=!1,this.update=new i.o,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=z_(0,s)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),V_(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?[...this._parent.path,this.name]:[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){M_(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){sb.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;sb.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(R_,9),i.Ob(__,10),i.Ob(b_,10),i.Ob(p_,10))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i.Cb([ib]),i.Ab,i.Bb]}),t})(),ob=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({}),t})();const ab=new i.s("NgModelWithFormControlWarning"),lb={provide:I_,useExisting:Object(i.W)(()=>cb)};let cb=(()=>{class t extends I_{constructor(t,e,n,s){super(),this._ngModelWarningConfig=s,this.update=new i.o,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=z_(0,n)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const e=t.form.previousValue;e&&L_(e,this,!1),M_(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}V_(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&L_(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(__,10),i.Ob(b_,10),i.Ob(p_,10),i.Ob(ab,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i.Cb([lb]),i.Ab,i.Bb]}),t._ngModelWarningSentOnce=!1,t})();const ub={provide:R_,useExisting:Object(i.W)(()=>hb)};let hb=(()=>{class t extends R_{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.o,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(N_(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return M_(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){L_(t.control||null,t,!1),Y_(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,H_(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,n=this.form.get(t.path);e!==n&&(L_(e||null,t),n instanceof X_&&(M_(n,t),t.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);B_(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return N_(t,e,!1)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){F_(this.form,this,!1),this._oldForm&&N_(this._oldForm,this,!1)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(__,10),i.Ob(b_,10))},t.\u0275dir=i.Jb({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&i.cc("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Cb([ub]),i.Ab,i.Bb]}),t})(),db=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({imports:[[ob]]}),t})(),pb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({imports:[db]}),t})(),fb=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:ab,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({imports:[db]}),t})();const mb=["underline"],gb=["connectionContainer"],_b=["inputContainer"],bb=["label"];function yb(t,e){1&t&&(i.Sb(0),i.Ub(1,"div",14),i.Pb(2,"div",15),i.Pb(3,"div",16),i.Pb(4,"div",17),i.Tb(),i.Ub(5,"div",18),i.Pb(6,"div",15),i.Pb(7,"div",16),i.Pb(8,"div",17),i.Tb(),i.Rb())}function vb(t,e){1&t&&(i.Ub(0,"div",19),i.kc(1,1),i.Tb())}function wb(t,e){if(1&t&&(i.Sb(0),i.kc(1,2),i.Ub(2,"span"),i.Fc(3),i.Tb(),i.Rb()),2&t){const t=i.gc(2);i.Db(3),i.Gc(t._control.placeholder)}}function Cb(t,e){1&t&&i.kc(0,3,["*ngSwitchCase","true"])}function Ob(t,e){1&t&&(i.Ub(0,"span",23),i.Fc(1," *"),i.Tb())}function xb(t,e){if(1&t){const t=i.Vb();i.Ub(0,"label",20,21),i.cc("cdkObserveContent",function(){return i.xc(t),i.gc().updateOutlineGap()}),i.Ec(2,wb,4,1,"ng-container",12),i.Ec(3,Cb,1,0,"ng-content",12),i.Ec(4,Ob,2,0,"span",22),i.Tb()}if(2&t){const t=i.gc();i.Gb("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),i.mc("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),i.Eb("for",t._control.id)("aria-owns",t._control.id),i.Db(2),i.mc("ngSwitchCase",!1),i.Db(1),i.mc("ngSwitchCase",!0),i.Db(1),i.mc("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function Sb(t,e){1&t&&(i.Ub(0,"div",24),i.kc(1,4),i.Tb())}function Eb(t,e){if(1&t&&(i.Ub(0,"div",25,26),i.Pb(2,"span",27),i.Tb()),2&t){const t=i.gc();i.Db(2),i.Gb("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function kb(t,e){if(1&t&&(i.Ub(0,"div"),i.kc(1,5),i.Tb()),2&t){const t=i.gc();i.mc("@transitionMessages",t._subscriptAnimationState)}}function Tb(t,e){if(1&t&&(i.Ub(0,"div",31),i.Fc(1),i.Tb()),2&t){const t=i.gc(2);i.mc("id",t._hintLabelId),i.Db(1),i.Gc(t.hintLabel)}}function Ab(t,e){if(1&t&&(i.Ub(0,"div",28),i.Ec(1,Tb,2,2,"div",29),i.kc(2,6),i.Pb(3,"div",30),i.kc(4,7),i.Tb()),2&t){const t=i.gc();i.mc("@transitionMessages",t._subscriptAnimationState),i.Db(1),i.mc("ngIf",t.hintLabel)}}const Rb=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Db=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],Ib=new i.s("MatError"),Pb={transitionMessages:zt("transitionMessages",[Kt("enter",Wt({opacity:1,transform:"translateY(0%)"})),Gt("void => enter",[Wt({opacity:0,transform:"translateY(-5px)"}),Yt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Mb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t}),t})(),Lb=0;const jb=new i.s("MatHint");let Fb=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+Lb++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(i.Eb("id",e.id)("align",null),i.Gb("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[i.Cb([{provide:jb,useExisting:t}])]}),t})(),Nb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-label"]]}),t})(),Ub=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-placeholder"]]}),t})();const Bb=new i.s("MatPrefix"),Vb=new i.s("MatSuffix");let Hb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","matSuffix",""]],features:[i.Cb([{provide:Vb,useExisting:t}])]}),t})(),zb=0;class Yb{constructor(t){this._elementRef=t}}const $b=lp(Yb,"primary"),Wb=new i.s("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Kb=new i.s("MatFormField");let qb=(()=>{class t extends $b{constructor(t,e,n,i,s,r,o,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this._defaults=s,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new _i.a,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+zb++,this._labelId="mat-form-field-label-"+zb++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=uc(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(Bs(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Object(El.a)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Object(El.a)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Object(mi.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Bs(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Bs(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Object(El.a)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Ol(this._label.nativeElement,"transitionend").pipe(Object($i.a)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,n=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const i=this._connectionContainerRef.nativeElement,s=i.querySelectorAll(".mat-form-field-outline-start"),r=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=i.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(s),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let t=0;t<o.length;t++)l+=o[t].offsetWidth;e=Math.abs(a-r)-5,n=l>0?.75*l+10:0}for(let o=0;o<s.length;o++)s[o].style.width=`${e}px`;for(let o=0;o<r.length;o++)r[o].style.width=`${n}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(t){return this._dir&&"rtl"===this._dir.value?t.right:t.left}_isAttachedToDOM(){const t=this._elementRef.nativeElement;if(t.getRootNode){const e=t.getRootNode();return e&&e!==t}return document.documentElement.contains(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.h),i.Ob(i.l),i.Ob(Nc,8),i.Ob(Wb,8),i.Ob(hd),i.Ob(i.B),i.Ob(hi,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-form-field"]],contentQueries:function(t,e,n){if(1&t&&(i.Hb(n,Mb,1),i.Hb(n,Mb,3),i.Hb(n,Nb,1),i.Hb(n,Nb,3),i.Hb(n,Ub,1),i.Hb(n,Ib,1),i.Hb(n,jb,1),i.Hb(n,Bb,1),i.Hb(n,Vb,1)),2&t){let t;i.sc(t=i.dc())&&(e._controlNonStatic=t.first),i.sc(t=i.dc())&&(e._controlStatic=t.first),i.sc(t=i.dc())&&(e._labelChildNonStatic=t.first),i.sc(t=i.dc())&&(e._labelChildStatic=t.first),i.sc(t=i.dc())&&(e._placeholderChild=t.first),i.sc(t=i.dc())&&(e._errorChildren=t),i.sc(t=i.dc())&&(e._hintChildren=t),i.sc(t=i.dc())&&(e._prefixChildren=t),i.sc(t=i.dc())&&(e._suffixChildren=t)}},viewQuery:function(t,e){if(1&t&&(i.Kc(mb,1),i.Kc(gb,3),i.Kc(_b,1),i.Kc(bb,1)),2&t){let t;i.sc(t=i.dc())&&(e.underlineRef=t.first),i.sc(t=i.dc())&&(e._connectionContainerRef=t.first),i.sc(t=i.dc())&&(e._inputContainerRef=t.first),i.sc(t=i.dc())&&(e._label=t.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(t,e){2&t&&i.Gb("mat-form-field-appearance-standard","standard"==e.appearance)("mat-form-field-appearance-fill","fill"==e.appearance)("mat-form-field-appearance-outline","outline"==e.appearance)("mat-form-field-appearance-legacy","legacy"==e.appearance)("mat-form-field-invalid",e._control.errorState)("mat-form-field-can-float",e._canLabelFloat())("mat-form-field-should-float",e._shouldLabelFloat())("mat-form-field-has-label",e._hasFloatingLabel())("mat-form-field-hide-placeholder",e._hideControlPlaceholder())("mat-form-field-disabled",e._control.disabled)("mat-form-field-autofilled",e._control.autofilled)("mat-focused",e._control.focused)("ng-untouched",e._shouldForward("untouched"))("ng-touched",e._shouldForward("touched"))("ng-pristine",e._shouldForward("pristine"))("ng-dirty",e._shouldForward("dirty"))("ng-valid",e._shouldForward("valid"))("ng-invalid",e._shouldForward("invalid"))("ng-pending",e._shouldForward("pending"))("_mat-animation-noopable",!e._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[i.Cb([{provide:Kb,useExisting:t}]),i.Ab],ngContentSelectors:Db,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(t,e){1&t&&(i.lc(Rb),i.Ub(0,"div",0),i.Ub(1,"div",1,2),i.cc("click",function(t){return e._control.onContainerClick&&e._control.onContainerClick(t)}),i.Ec(3,yb,9,0,"ng-container",3),i.Ec(4,vb,2,0,"div",4),i.Ub(5,"div",5,6),i.kc(7),i.Ub(8,"span",7),i.Ec(9,xb,5,16,"label",8),i.Tb(),i.Tb(),i.Ec(10,Sb,2,0,"div",9),i.Tb(),i.Ec(11,Eb,3,4,"div",10),i.Ub(12,"div",11),i.Ec(13,kb,2,1,"div",12),i.Ec(14,Ab,5,2,"div",13),i.Tb(),i.Tb()),2&t&&(i.Db(3),i.mc("ngIf","outline"==e.appearance),i.Db(1),i.mc("ngIf",e._prefixChildren.length),i.Db(5),i.mc("ngIf",e._hasFloatingLabel()),i.Db(1),i.mc("ngIf",e._suffixChildren.length),i.Db(1),i.mc("ngIf","outline"!=e.appearance),i.Db(1),i.mc("ngSwitch",e._getDisplayedMessages()),i.Db(1),i.mc("ngSwitchCase","error"),i.Db(1),i.mc("ngSwitchCase","hint"))},directives:[V,$,W,Od],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:[Pb.transitionMessages]},changeDetection:0}),t})(),Gb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({imports:[[rt,op,xd],op]}),t})();const Qb=["panel"];function Xb(t,e){if(1&t&&(i.Ub(0,"div",0,1),i.kc(2),i.Tb()),2&t){const t=e.id,n=i.gc();i.mc("id",n.id)("ngClass",n._classList),i.Eb("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(t))}}const Zb=["*"];let Jb=0;class ty{constructor(t,e){this.source=t,this.option=e}}class ey{}const ny=cp(ey),iy=new i.s("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let sy=(()=>{class t extends ny{constructor(t,e,n,s){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=Di.a.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new i.o,this.opened=new i.o,this.closed=new i.o,this.optionActivated=new i.o,this._classList={},this.id="mat-autocomplete-"+Jb++,this.inertGroups=(null==s?void 0:s.SAFARI)||!1,this._autoActiveFirstOption=!!n.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=uc(t)}set classList(t){this._classList=t&&t.length?function(t,e=/\s+/){const n=[];if(null!=t){const i=Array.isArray(t)?t:`${t}`.split(e);for(const t of i){const e=`${t}`.trim();e&&n.push(e)}}return n}(t).reduce((t,e)=>(t[e]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new Pd(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const e=new ty(this,t);this.optionSelected.emit(e)}_getPanelAriaLabelledby(t){return this.ariaLabel?null:this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_setVisibilityClasses(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.h),i.Ob(i.l),i.Ob(iy),i.Ob(hd))},t.\u0275dir=i.Jb({type:t,viewQuery:function(t,e){if(1&t&&(i.Kc(i.O,3),i.Kc(Qb,1)),2&t){let t;i.sc(t=i.dc())&&(e.template=t.first),i.sc(t=i.dc())&&(e.panel=t.first)}},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[i.Ab]}),t})(),ry=(()=>{class t extends sy{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return t.\u0275fac=function(e){return oy(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,n){if(1&t&&(i.Hb(n,Rp,1),i.Hb(n,Mp,1)),2&t){let t;i.sc(t=i.dc())&&(e.optionGroups=t),i.sc(t=i.dc())&&(e.options=t)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[i.Cb([{provide:Sp,useExisting:t}]),i.Ab],ngContentSelectors:Zb,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(i.lc(),i.Ec(0,Xb,3,4,"ng-template"))},directives:[F],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),t})();const oy=i.Wb(ry),ay=new i.s("mat-autocomplete-scroll-strategy"),ly={provide:ay,deps:[Xf],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},cy={provide:p_,useExisting:Object(i.W)(()=>hy),multi:!0};let uy=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,u){this._element=t,this._overlay=e,this._viewContainerRef=n,this._zone=i,this._changeDetectorRef=s,this._dir=o,this._formField=a,this._document=l,this._viewportRuler=c,this._defaults=u,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Di.a.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new _i.a,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=vi(()=>this.autocomplete&&this.autocomplete.options?Object(mi.a)(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.pipe(Object($i.a)(1),Object(Us.a)(()=>this.optionSelections))),this._scrollStrategy=r}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=uc(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Object(mi.a)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Object(Ri.a)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Object(Ri.a)(()=>this._overlayAttached)):Object(Ci.a)()).pipe(Object(Ti.a)(t=>t instanceof Ip?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Object(mi.a)(Ol(this._document,"click"),Ol(this._document,"auxclick"),Ol(this._document,"touchend")).pipe(Object(Ri.a)(t=>{const e=this._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,n=this._formField?this._formField._elementRef.nativeElement:null,i=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&e!==this._element.nativeElement&&(!n||!n.contains(e))&&(!i||!i.contains(e))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(e)}))}writeValue(t){Promise.resolve(null).then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const e=t.keyCode;if(27!==e||ld(t)||t.preventDefault(),this.activeOption&&13===e&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const n=this.autocomplete._keyManager.activeItem,i=38===e||40===e;this.panelOpen||9===e?this.autocomplete._keyManager.onKeydown(t):i&&this._canOpen()&&this.openPanel(),(i||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(t){let e=t.target,n=e.value;"number"===e.type&&(n=""==n?null:parseFloat(n)),this._previousValue!==n&&(this._previousValue=n,this._onChange(n),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const t=this._zone.onStable.pipe(Object($i.a)(1)),e=this.autocomplete.options.changes.pipe(ir(()=>this._positionStrategy.reapplyLastPosition()),Kp(0));return Object(mi.a)(t,e).pipe(Object(Us.a)(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),Object($i.a)(1)).subscribe(t=>this._setValueAndClose(t))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,n=null!=e?e:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n,this._previousValue=n}_setValueAndClose(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(e=>{e!==t&&e.selected&&e.deselect()})}_attachOverlay(){var t;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!vd(this._element.nativeElement));let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new Jp(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,e.keydownEvents().subscribe(t=>{(27===t.keyCode&&!ld(t)||38===t.keyCode&&ld(t,"altKey"))&&(this._resetActiveItem(),this._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const n=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&n!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var t;return new Pf({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const e=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],n=this._aboveClass,i=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:n},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:n}];let s;s="above"===this.position?i:"below"===this.position?e:[...e,...i],t.withPositions(s)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}_scrollToOption(t){const e=this.autocomplete,n=Lp(t,e.options,e.optionGroups);if(0===t&&1===n)e._setScrollTop(0);else if(e.panel){const n=e.options.toArray()[t];if(n){const t=n._getHostElement(),i=jp(t.offsetTop,t.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(i)}}}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(Xf),i.Ob(i.S),i.Ob(i.B),i.Ob(i.h),i.Ob(ay),i.Ob(Nc,8),i.Ob(Kb,9),i.Ob(o,8),i.Ob(vf),i.Ob(iy,8))},t.\u0275dir=i.Jb({type:t,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[i.Bb]}),t})(),hy=(()=>{class t extends uy{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return t.\u0275fac=function(e){return dy(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&i.cc("focusin",function(){return e._handleFocus()})("blur",function(){return e._onTouched()})("input",function(t){return e._handleInput(t)})("keydown",function(t){return e._handleKeydown(t)}),2&t&&i.Eb("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[i.Cb([cy]),i.Ab]}),t})();const dy=i.Wb(hy);let py=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({providers:[ly],imports:[[im,Fp,op,rt],wf,Fp,op]}),t})();function fy(t,e){}class my{constructor(){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}}const gy={dialogContainer:zt("dialogContainer",[Kt("void, exit",Wt({opacity:0,transform:"scale(0.7)"})),Kt("enter",Wt({transform:"none"})),Gt("* => enter",Yt("150ms cubic-bezier(0, 0, 0.2, 1)",Wt({transform:"none",opacity:1}))),Gt("* => void, * => exit",Yt("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Wt({opacity:0})))])};let _y=(()=>{class t extends ef{constructor(t,e,n,s,r,o){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=n,this._config=r,this._focusMonitor=o,this._animationStateChanged=new i.o,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=r.ariaLabelledBy||null,this._document=s}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=this._getActiveElement(),n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._getActiveElement())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=this._getActiveElement();return t===e||t.contains(e)}_getActiveElement(){var t;const e=this._document.activeElement;return(null===(t=null==e?void 0:e.shadowRoot)||void 0===t?void 0:t.activeElement)||e}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(Ud),i.Ob(i.h),i.Ob(o,8),i.Ob(my),i.Ob(Kd))},t.\u0275dir=i.Jb({type:t,viewQuery:function(t,e){if(1&t&&i.Kc(sf,3),2&t){let t;i.sc(t=i.dc())&&(e._portalOutlet=t.first)}},features:[i.Ab]}),t})(),by=(()=>{class t extends _y{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return yy(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&i.Cc("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(i.Xb("id",e._id),i.Eb("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),i.Dc("@dialogContainer",e._state))},features:[i.Ab],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&i.Ec(0,fy,0,0,"ng-template",0)},directives:[sf],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:[gy.dialogContainer]}}),t})();const yy=i.Wb(by);let vy=0;class wy{constructor(t,e,n="mat-dialog-"+vy++){this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new _i.a,this._afterClosed=new _i.a,this._beforeClosed=new _i.a,this._state=0,e._id=n,e._animationStateChanged.pipe(Object(Ri.a)(t=>"opened"===t.state),Object($i.a)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Object(Ri.a)(t=>"closed"===t.state),Object($i.a)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(Object(Ri.a)(t=>27===t.keyCode&&!this.disableClose&&!ld(t))).subscribe(t=>{t.preventDefault(),Cy(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Cy(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Object(Ri.a)(t=>"closing"===t.state),Object($i.a)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Cy(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}const Oy=new i.s("MatDialogData"),xy=new i.s("mat-dialog-default-options"),Sy=new i.s("mat-dialog-scroll-strategy"),Ey={provide:Sy,deps:[Xf],useFactory:function(t){return()=>t.scrollStrategies.block()}};let ky=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=i,this._overlayContainer=s,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new _i.a,this._afterOpenedAtThisLevel=new _i.a,this._ariaHiddenElements=new Map,this.afterAllClosed=vi(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Bs(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new my)).id&&this.getDialogById(e.id);const n=this._createOverlay(e),i=this._attachDialogContainer(n,e),s=this._attachDialogContent(t,i,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),i._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new Pf({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const n=i.t.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:my,useValue:e}]}),s=new Zp(this._dialogContainerType,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(s).instance}_attachDialogContent(t,e,n,s){const r=new this._dialogRefConstructor(n,e,s.id);if(t instanceof i.O)e.attachTemplatePortal(new Jp(t,null,{$implicit:s.data,dialogRef:r}));else{const n=this._createInjector(s,r,e),i=e.attachComponentPortal(new Zp(t,s.viewContainerRef,n));r.componentInstance=i.instance}return r.updateSize(s.width,s.height).updatePosition(s.position),r}_createInjector(t,e,n){const s=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||s&&s.get(Nc,null)||r.push({provide:Nc,useValue:{value:t.direction,change:Object(Ci.a)()}}),i.t.create({parent:s||this._injector,providers:r})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let i=e[n];i===t||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Xf),i.Ob(i.t),i.Ob(void 0),i.Ob(void 0),i.Ob(Bf),i.Ob(void 0),i.Ob(i.Q),i.Ob(i.Q),i.Ob(i.s))},t.\u0275dir=i.Jb({type:t}),t})(),Ty=(()=>{class t extends ky{constructor(t,e,n,i,s,r,o){super(t,e,i,r,o,s,wy,by,Oy)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Xf),i.Yb(i.t),i.Yb(w,8),i.Yb(xy,8),i.Yb(Sy),i.Yb(t,12),i.Yb(Bf))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),Ay=0,Ry=(()=>{class t{constructor(t,e,n){this.dialogRef=t,this._elementRef=e,this._dialog=n,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=My(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}_onButtonClick(t){Cy(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(wy,8),i.Ob(i.l),i.Ob(Ty))},t.\u0275dir=i.Jb({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&i.cc("click",function(t){return e._onButtonClick(t)}),2&t&&i.Eb("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[i.Bb]}),t})(),Dy=(()=>{class t{constructor(t,e,n){this._dialogRef=t,this._elementRef=e,this._dialog=n,this.id="mat-dialog-title-"+Ay++}ngOnInit(){this._dialogRef||(this._dialogRef=My(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(wy,8),i.Ob(i.l),i.Ob(Ty))},t.\u0275dir=i.Jb({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&i.Xb("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),Iy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),Py=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})();function My(t,e){let n=t.nativeElement.parentElement;for(;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find(t=>t.id===n.id):null}let Ly=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({providers:[Ty,Ey],imports:[[im,rf,op],op]}),t})();const jy=bd({passive:!0});let Fy=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return yi.a;const e=mc(t),n=this._monitoredElements.get(e);if(n)return n.subject;const i=new _i.a,s="cdk-text-field-autofilled",r=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",r,jy),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:i,unlisten:()=>{e.removeEventListener("animationstart",r,jy)}}),i}stopMonitoring(t){const e=mc(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(hd),i.Yb(i.B))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(hd),Object(i.Yb)(i.B))},token:t,providedIn:"root"}),t})(),Ny=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({imports:[[dd]]}),t})();const Uy=new i.s("MAT_INPUT_VALUE_ACCESSOR"),By=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Vy=0;class Hy{constructor(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}}const zy=hp(Hy);let Yy=(()=>{class t extends zy{constructor(t,e,n,i,s,r,o,a,l,c){super(r,i,s,n),this._elementRef=t,this._platform=e,this.ngControl=n,this._autofillMonitor=a,this._formField=c,this._uid="mat-input-"+Vy++,this.focused=!1,this.stateChanges=new _i.a,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>fd().has(t));const u=this._elementRef.nativeElement,h=u.nodeName.toLowerCase();this._inputValueAccessor=o||u,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&l.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{let e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===h,this._isTextarea="textarea"===h,this._isNativeSelect&&(this.controlType=u.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=uc(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=uc(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&fd().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=uc(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const n=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(n!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=n,n?t.setAttribute("placeholder",n):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){By.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(hd),i.Ob(I_,10),i.Ob(nb,8),i.Ob(hb,8),i.Ob(pp),i.Ob(Uy,10),i.Ob(Fy),i.Ob(i.B),i.Ob(Kb,8))},t.\u0275dir=i.Jb({type:t,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(t,e){1&t&&i.cc("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(i.Xb("disabled",e.disabled)("required",e.required),i.Eb("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.errorState&&!e.empty)("aria-required",e.required),i.Gb("mat-input-server",e._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:[i.Cb([{provide:Mb,useExisting:t}]),i.Ab,i.Bb]}),t})(),$y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({providers:[pp],imports:[[Ny,Gb,op],Ny,Gb]}),t})();const Wy=["trigger"],Ky=["panel"];function qy(t,e){if(1&t&&(i.Ub(0,"span",8),i.Fc(1),i.Tb()),2&t){const t=i.gc();i.Db(1),i.Gc(t.placeholder)}}function Gy(t,e){if(1&t&&(i.Ub(0,"span",12),i.Fc(1),i.Tb()),2&t){const t=i.gc(2);i.Db(1),i.Gc(t.triggerValue)}}function Qy(t,e){1&t&&i.kc(0,0,["*ngSwitchCase","true"])}function Xy(t,e){if(1&t&&(i.Ub(0,"span",9),i.Ec(1,Gy,2,1,"span",10),i.Ec(2,Qy,1,0,"ng-content",11),i.Tb()),2&t){const t=i.gc();i.mc("ngSwitch",!!t.customTrigger),i.Db(2),i.mc("ngSwitchCase",!0)}}function Zy(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",13),i.Ub(1,"div",14,15),i.cc("@transformPanel.done",function(e){return i.xc(t),i.gc()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return i.xc(t),i.gc()._handleKeydown(e)}),i.kc(3,1),i.Tb(),i.Tb()}if(2&t){const t=i.gc();i.mc("@transformPanelWrap",void 0),i.Db(1),i.Fb("mat-select-panel ",t._getPanelTheme(),""),i.Bc("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),i.mc("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),i.Eb("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const Jy=[[["mat-select-trigger"]],"*"],tv=["mat-select-trigger","*"],ev={transformPanelWrap:zt("transformPanelWrap",[Gt("* => void",Xt("@transformPanel",[Qt()],{optional:!0}))]),transformPanel:zt("transformPanel",[Kt("void",Wt({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Kt("showing",Wt({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Kt("showing-multiple",Wt({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Gt("void => *",Yt("120ms cubic-bezier(0, 0, 0.2, 1)")),Gt("* => void",Yt("100ms 25ms linear",Wt({opacity:0})))])};let nv=0;const iv=new i.s("mat-select-scroll-strategy"),sv=new i.s("MAT_SELECT_CONFIG"),rv={provide:iv,deps:[Xf],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class ov{constructor(t,e){this.source=t,this.value=e}}class av{constructor(t,e,n,i,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=s}}const lv=cp(up(ap(hp(av)))),cv=new i.s("MatSelectTrigger");let uv=(()=>{class t extends lv{constructor(t,e,n,s,r,o,a,l,c,u,h,d,p,f){var m,g,_;super(r,s,a,l,u),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=n,this._dir=o,this._parentFormField=c,this.ngControl=u,this._liveAnnouncer=p,this._defaultOptions=f,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+nv++,this._triggerAriaLabelledBy=null,this._destroy=new _i.a,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+nv++,this._panelDoneAnimatingStream=new _i.a,this._overlayPanelClass=(null===(m=this._defaultOptions)||void 0===m?void 0:m.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(_=null===(g=this._defaultOptions)||void 0===g?void 0:g.disableOptionCentering)&&void 0!==_&&_,this.ariaLabel="",this.optionSelectionChanges=vi(()=>{const t=this.options;return t?t.changes.pipe(Bs(t),Object(Us.a)(()=>Object(mi.a)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe(Object($i.a)(1),Object(Us.a)(()=>this.optionSelectionChanges))}),this.openedChange=new i.o,this._openedStream=this.openedChange.pipe(Object(Ri.a)(t=>t),Object(Ti.a)(()=>{})),this._closedStream=this.openedChange.pipe(Object(Ri.a)(t=>!t),Object(Ti.a)(()=>{})),this.selectionChange=new i.o,this.valueChange=new i.o,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==f?void 0:f.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=f.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=uc(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=uc(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=uc(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=hc(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new _f(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Object(af.a)(),Object(El.a)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Object(El.a)(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Bs(null),Object(El.a)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,n=40===e||38===e||37===e||39===e,i=13===e||32===e,s=this._keyManager;if(!s.isTyping()&&i&&!ld(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const n=this.selected;n&&e!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,n=t.keyCode,i=40===n||38===n,s=e.isTyping();if(i&&t.altKey)t.preventDefault(),this.close();else if(s||13!==n&&32!==n||!e.activeItem||ld(t))if(!s&&this._multiple&&65===n&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const n=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==n&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this.overlayDir.positionChange.pipe(Object($i.a)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(n){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new Pd(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Object(El.a)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Object(El.a)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=Object(mi.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Object(El.a)(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Object(mi.a)(...this.options.map(t=>t._stateChanges)).pipe(Object(El.a)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,n)=>this.sortComparator?this.sortComparator(e,n,t):t.indexOf(e)-t.indexOf(n)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let n=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(vf),i.Ob(i.h),i.Ob(i.B),i.Ob(pp),i.Ob(i.l),i.Ob(Nc,8),i.Ob(nb,8),i.Ob(hb,8),i.Ob(Kb,8),i.Ob(I_,10),i.Zb("tabindex"),i.Ob(iv),i.Ob(Hd),i.Ob(sv,8))},t.\u0275dir=i.Jb({type:t,viewQuery:function(t,e){if(1&t&&(i.Kc(Wy,1),i.Kc(Ky,1),i.Kc(em,1)),2&t){let t;i.sc(t=i.dc())&&(e.trigger=t.first),i.sc(t=i.dc())&&(e.panel=t.first),i.sc(t=i.dc())&&(e.overlayDir=t.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:[i.Ab,i.Bb]}),t})(),hv=(()=>{class t extends uv{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(t,e,n){const i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Object(El.a)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Object($i.a)(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=Lp(t,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=jp((t+e)*n,n,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new ov(this,t)}_calculateOverlayOffsetX(){const t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),n=this._isRtl(),i=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}n||(s*=-1);const r=0-(t.left+s-(n?i:0)),o=t.right+s-e.width+(n?0:i);r>0?s+=r+8:o>0&&(s-=o+8),this.overlayDir.offsetX=Math.round(s),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,n){const i=this._getItemHeight(),s=(i-this._triggerRect.height)/2,r=Math.floor(256/i);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?t*i:this._scrollTop===n?(t-(this._getItemCount()-r))*i+(i-(this._getItemCount()*i-256)%i):e-i/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,s=n.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-r-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):r>i?this._adjustPanelDown(r,i,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,n){const i=Math.round(t-e);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")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),i=e*t-n;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=Lp(s,this.options,this.optionGroups);const r=n/2;this._scrollTop=this._calculateOverlayScroll(s,r,i),this._offsetY=this._calculateOverlayOffsetY(s,r,i),this._checkOverlayWithinViewport(i)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(e){return dv(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){if(1&t&&(i.Hb(n,cv,1),i.Hb(n,Mp,1),i.Hb(n,Rp,1)),2&t){let t;i.sc(t=i.dc())&&(e.customTrigger=t.first),i.sc(t=i.dc())&&(e.options=t),i.sc(t=i.dc())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&i.cc("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(i.Eb("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),i.Gb("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[i.Cb([{provide:Mb,useExisting:t},{provide:Sp,useExisting:t}]),i.Ab],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(t,e){if(1&t&&(i.lc(Jy),i.Ub(0,"div",0,1),i.cc("click",function(){return e.toggle()}),i.Ub(3,"div",2),i.Ec(4,qy,2,1,"span",3),i.Ec(5,Xy,3,2,"span",4),i.Tb(),i.Ub(6,"div",5),i.Pb(7,"div",6),i.Tb(),i.Tb(),i.Ec(8,Zy,4,14,"ng-template",7),i.cc("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=i.tc(1);i.Eb("aria-owns",e.panelOpen?e.id+"-panel":null),i.Db(3),i.mc("ngSwitch",e.empty),i.Eb("id",e._valueId),i.Db(1),i.mc("ngSwitchCase",!0),i.Db(1),i.mc("ngSwitchCase",!1),i.Db(3),i.mc("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[tm,$,W,em,K,F],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:[ev.transformPanelWrap,ev.transformPanel]},changeDetection:0}),t})();const dv=i.Wb(hv);let pv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({providers:[rv],imports:[[rt,im,Fp,op],wf,Gb,Fp,op]}),t})();var fv=n("zP0r");const mv=new Set;let gv,_v=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):bv}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!mv.has(t))try{gv||(gv=document.createElement("style"),gv.setAttribute("type","text/css"),document.head.appendChild(gv)),gv.sheet&&(gv.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),mv.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(hd))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(hd))},token:t,providedIn:"root"}),t})();function bv(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let yv=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new _i.a}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return vv(pc(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=Is(vv(pc(t)).map(t=>this._registerQuery(t).observable));return e=Fs(e.pipe(Object($i.a)(1)),e.pipe(Object(fv.a)(1),Object(Sl.a)(0))),e.pipe(Object(Ti.a)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:n})=>{e.matches=e.matches||t,e.breakpoints[n]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new gi.a(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(Bs(e),Object(Ti.a)(({matches:e})=>({query:t,matches:e})),Object(El.a)(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(_v),i.Yb(i.B))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(_v),Object(i.Yb)(i.B))},token:t,providedIn:"root"}),t})();function vv(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const wv={tooltipState:zt("state",[Kt("initial, void, hidden",Wt({opacity:0,transform:"scale(0)"})),Kt("visible",Wt({transform:"scale(1)"})),Gt("* => visible",Yt("200ms cubic-bezier(0, 0, 0.2, 1)",qt([Wt({opacity:0,transform:"scale(0)",offset:0}),Wt({opacity:.5,transform:"scale(0.99)",offset:.5}),Wt({opacity:1,transform:"scale(1)",offset:1})]))),Gt("* => hidden",Yt("100ms cubic-bezier(0, 0, 0.2, 1)",Wt({opacity:0})))])},Cv=bd({passive:!0}),Ov=new i.s("mat-tooltip-scroll-strategy"),xv={provide:Ov,deps:[Xf],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},Sv=new i.s("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Ev=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,u,h){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=s,this._platform=r,this._ariaDescriber=o,this._focusMonitor=a,this._dir=c,this._defaultOptions=u,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new _i.a,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!ld(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,u&&(u.position&&(this.position=u.position),u.touchGestures&&(this.touchGestures=u.touchGestures)),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=uc(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Object(El.a)(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,n])=>{t.removeEventListener(e,n,Cv)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new Zp(kv,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Object(El.a)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return e.positionChanges.pipe(Object(El.a)(this._destroyed)).subscribe(t=>{this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Object(El.a)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),n.main),Object.assign(Object.assign({},e.fallback),n.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e||"below"==e?n={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={originX:"end",originY:"center"});const{x:i,y:s}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e?n={overlayX:"center",overlayY:"bottom"}:"below"==e?n={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={overlayX:"start",overlayY:"center"});const{x:i,y:s}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Object($i.a)(1),Object(El.a)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_setupPointerEnterEventsIfNeeded(){!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,Cv)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=(this._document||document).elementFromPoint(t.clientX,t.clientY),n=this._elementRef.nativeElement;e===n||n.contains(e)||this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==t&&e.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Xf),i.Ob(i.l),i.Ob(yf),i.Ob(i.S),i.Ob(i.B),i.Ob(hd),i.Ob(Ad),i.Ob(Kd),i.Ob(Ov),i.Ob(Nc,8),i.Ob(Sv,8),i.Ob(o))},t.\u0275dir=i.Jb({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t})(),kv=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new _i.a,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}show(t){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},t)}hide(t){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.h),i.Ob(yv))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&i.cc("click",function(){return e._handleBodyInteraction()},!1,i.uc)("auxclick",function(){return e._handleBodyInteraction()},!1,i.uc),2&t&&i.Bc("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(i.Ub(0,"div",0),i.cc("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),i.hc(1,"async"),i.Fc(2),i.Tb()),2&t){let t=null;i.Gb("mat-tooltip-handset",null==(t=i.ic(1,5,e._isHandset))?null:t.matches),i.mc("ngClass",e.tooltipClass)("@state",e._visibility),i.Db(2),i.Gc(e.message)}},directives:[F],pipes:[tt],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[wv.tooltipState]},changeDetection:0}),t})(),Tv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({providers:[xv],imports:[[Qd,rt,im,op],op,wf]}),t})();function Av(t,e){if(1&t&&(i.Ub(0,"mat-option",19),i.Fc(1),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t),i.Db(1),i.Hc(" ",t," ")}}function Rv(t,e){if(1&t){const t=i.Vb();i.Ub(0,"mat-form-field",16),i.Ub(1,"mat-select",17),i.cc("selectionChange",function(e){return i.xc(t),i.gc(2)._changePageSize(e.value)}),i.Ec(2,Av,2,2,"mat-option",18),i.Tb(),i.Tb()}if(2&t){const t=i.gc(2);i.mc("appearance",t._formFieldAppearance)("color",t.color),i.Db(1),i.mc("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),i.Db(1),i.mc("ngForOf",t._displayedPageSizeOptions)}}function Dv(t,e){if(1&t&&(i.Ub(0,"div",20),i.Fc(1),i.Tb()),2&t){const t=i.gc(2);i.Db(1),i.Gc(t.pageSize)}}function Iv(t,e){if(1&t&&(i.Ub(0,"div",12),i.Ub(1,"div",13),i.Fc(2),i.Tb(),i.Ec(3,Rv,3,6,"mat-form-field",14),i.Ec(4,Dv,2,1,"div",15),i.Tb()),2&t){const t=i.gc();i.Db(2),i.Hc(" ",t._intl.itemsPerPageLabel," "),i.Db(1),i.mc("ngIf",t._displayedPageSizeOptions.length>1),i.Db(1),i.mc("ngIf",t._displayedPageSizeOptions.length<=1)}}function Pv(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",21),i.cc("click",function(){return i.xc(t),i.gc().firstPage()}),i.fc(),i.Ub(1,"svg",7),i.Pb(2,"path",22),i.Tb(),i.Tb()}if(2&t){const t=i.gc();i.mc("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),i.Eb("aria-label",t._intl.firstPageLabel)}}function Mv(t,e){if(1&t){const t=i.Vb();i.fc(),i.ec(),i.Ub(0,"button",23),i.cc("click",function(){return i.xc(t),i.gc().lastPage()}),i.fc(),i.Ub(1,"svg",7),i.Pb(2,"path",24),i.Tb(),i.Tb()}if(2&t){const t=i.gc();i.mc("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),i.Eb("aria-label",t._intl.lastPageLabel)}}let Lv=(()=>{class t{constructor(){this.changes=new _i.a,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,n)=>{if(0==n||0==e)return`0 of ${n}`;const i=t*e;return`${i+1} \u2013 ${i<(n=Math.max(n,0))?Math.min(i+e,n):i+e} of ${n}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const jv={provide:Lv,deps:[[new i.C,new i.M,Lv]],useFactory:function(t){return t||new Lv}},Fv=new i.s("MAT_PAGINATOR_DEFAULT_OPTIONS");class Nv{}const Uv=ap(dp(Nv));let Bv=(()=>{class t extends Uv{constructor(t,e,n){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new i.o,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){const{pageSize:t,pageSizeOptions:e,hidePageSize:i,showFirstLastButtons:s}=n;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=i&&(this._hidePageSize=i),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(hc(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=hc(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(hc(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>hc(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=uc(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=uc(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndex<t&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(t){const e=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/t)||0,this.pageSize=t,this._emitPageEvent(e)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((t,e)=>t-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Lv),i.Ob(i.h),i.Ob(void 0))},t.\u0275dir=i.Jb({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[i.Ab]}),t})(),Vv=(()=>{class t extends Bv{constructor(t,e,n){super(t,e,n),n&&null!=n.formFieldAppearance&&(this._formFieldAppearance=n.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Lv),i.Ob(i.h),i.Ob(Fv,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[i.Ab],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ec(2,Iv,5,3,"div",2),i.Ub(3,"div",3),i.Ub(4,"div",4),i.Fc(5),i.Tb(),i.Ec(6,Pv,3,5,"button",5),i.Ub(7,"button",6),i.cc("click",function(){return e.previousPage()}),i.fc(),i.Ub(8,"svg",7),i.Pb(9,"path",8),i.Tb(),i.Tb(),i.ec(),i.Ub(10,"button",9),i.cc("click",function(){return e.nextPage()}),i.fc(),i.Ub(11,"svg",7),i.Pb(12,"path",10),i.Tb(),i.Tb(),i.Ec(13,Mv,3,5,"button",11),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(2),i.mc("ngIf",!e.hidePageSize),i.Db(3),i.Hc(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),i.Db(1),i.mc("ngIf",e.showFirstLastButtons),i.Db(1),i.mc("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),i.Eb("aria-label",e._intl.previousPageLabel),i.Db(3),i.mc("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),i.Eb("aria-label",e._intl.nextPageLabel),i.Db(3),i.mc("ngIf",e.showFirstLastButtons))},directives:[V,zp,Ev,qb,hv,U,Mp],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),Hv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({providers:[jv],imports:[[rt,Yp,pv,Tv,op]]}),t})();function zv(t,e){if(1&t&&(i.fc(),i.Pb(0,"circle",3)),2&t){const t=i.gc();i.Bc("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),i.Eb("r",t._getCircleRadius())}}function Yv(t,e){if(1&t&&(i.fc(),i.Pb(0,"circle",3)),2&t){const t=i.gc();i.Bc("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),i.Eb("r",t._getCircleRadius())}}function $v(t,e){if(1&t&&(i.fc(),i.Pb(0,"circle",3)),2&t){const t=i.gc();i.Bc("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),i.Eb("r",t._getCircleRadius())}}function Wv(t,e){if(1&t&&(i.fc(),i.Pb(0,"circle",3)),2&t){const t=i.gc();i.Bc("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),i.Eb("r",t._getCircleRadius())}}const Kv=".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";class qv{constructor(t){this._elementRef=t}}const Gv=lp(qv,"primary"),Qv=new i.s("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let Xv=(()=>{class t extends Gv{constructor(e,n,i,s,r){super(e),this._elementRef=e,this._document=i,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),o.has(i.head)||o.set(i.head,new Set([100])),this._fallbackAnimation=n.EDGE||n.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!r&&!r._forceAnimations,r&&(r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=hc(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=hc(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,hc(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=vd(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,n=this._diameter,i=t._diameters;let s=i.get(e);if(!s||!s.has(n)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,i.set(e,s)),s.add(n)}}_getAnimationText(){const t=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,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(hd),i.Ob(o,8),i.Ob(hi,8),i.Ob(Qv))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(i.Eb("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),i.Bc("width",e.diameter,"px")("height",e.diameter,"px"),i.Gb("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[i.Ab],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(t,e){1&t&&(i.fc(),i.Ub(0,"svg",0),i.Ec(1,zv,1,9,"circle",1),i.Ec(2,Yv,1,7,"circle",2),i.Tb()),2&t&&(i.Bc("width",e.diameter,"px")("height",e.diameter,"px"),i.mc("ngSwitch","indeterminate"===e.mode),i.Eb("viewBox",e._getViewBox()),i.Db(1),i.mc("ngSwitchCase",!0),i.Db(1),i.mc("ngSwitchCase",!1))},directives:[$,W],styles:[Kv],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),Zv=(()=>{class t extends Xv{constructor(t,e,n,i,s){super(t,e,n,i,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(hd),i.Ob(o,8),i.Ob(hi,8),i.Ob(Qv))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(i.Bc("width",e.diameter,"px")("height",e.diameter,"px"),i.Gb("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[i.Ab],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(t,e){1&t&&(i.fc(),i.Ub(0,"svg",0),i.Ec(1,$v,1,9,"circle",1),i.Ec(2,Wv,1,7,"circle",2),i.Tb()),2&t&&(i.Bc("width",e.diameter,"px")("height",e.diameter,"px"),i.mc("ngSwitch","indeterminate"===e.mode),i.Eb("viewBox",e._getViewBox()),i.Db(1),i.mc("ngSwitchCase",!0),i.Db(1),i.mc("ngSwitchCase",!1))},directives:[$,W],styles:[Kv],encapsulation:2,changeDetection:0}),t})(),Jv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({imports:[[op,rt],op]}),t})();const tw=["mat-sort-header",""];function ew(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",3),i.cc("@arrowPosition.start",function(){return i.xc(t),i.gc()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return i.xc(t),i.gc()._disableViewStateAnimation=!1}),i.Pb(1,"div",4),i.Ub(2,"div",5),i.Pb(3,"div",6),i.Pb(4,"div",7),i.Pb(5,"div",8),i.Tb(),i.Tb()}if(2&t){const t=i.gc();i.mc("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),i.Db(2),i.mc("@indicator",t._getArrowDirectionState()),i.Db(1),i.mc("@leftPointer",t._getArrowDirectionState()),i.Db(1),i.mc("@rightPointer",t._getArrowDirectionState())}}const nw=["*"],iw=new i.s("MAT_SORT_DEFAULT_OPTIONS");class sw{}const rw=dp(ap(sw));let ow=(()=>{class t extends rw{constructor(t){super(),this._defaultOptions=t,this.sortables=new Map,this._stateChanges=new _i.a,this.start="asc",this._direction="",this.sortChange=new i.o}get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=uc(t)}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){var e,n,i;if(!t)return"";const s=null!==(n=null!==(e=null==t?void 0:t.disableClear)&&void 0!==e?e:this.disableClear)&&void 0!==n?n:!!(null===(i=this._defaultOptions)||void 0===i?void 0:i.disableClear);let r=function(t,e){let n=["asc","desc"];return"desc"==t&&n.reverse(),e||n.push(""),n}(t.start||this.start,s),o=r.indexOf(this.direction)+1;return o>=r.length&&(o=0),r[o]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(iw,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[i.Ab,i.Bb]}),t})();const aw=np.ENTERING+" "+ep.STANDARD_CURVE,lw={indicator:zt("indicator",[Kt("active-asc, asc",Wt({transform:"translateY(0px)"})),Kt("active-desc, desc",Wt({transform:"translateY(10px)"})),Gt("active-asc <=> active-desc",Yt(aw))]),leftPointer:zt("leftPointer",[Kt("active-asc, asc",Wt({transform:"rotate(-45deg)"})),Kt("active-desc, desc",Wt({transform:"rotate(45deg)"})),Gt("active-asc <=> active-desc",Yt(aw))]),rightPointer:zt("rightPointer",[Kt("active-asc, asc",Wt({transform:"rotate(45deg)"})),Kt("active-desc, desc",Wt({transform:"rotate(-45deg)"})),Gt("active-asc <=> active-desc",Yt(aw))]),arrowOpacity:zt("arrowOpacity",[Kt("desc-to-active, asc-to-active, active",Wt({opacity:1})),Kt("desc-to-hint, asc-to-hint, hint",Wt({opacity:.54})),Kt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Wt({opacity:0})),Gt("* => asc, * => desc, * => active, * => hint, * => void",Yt("0ms")),Gt("* <=> *",Yt(aw))]),arrowPosition:zt("arrowPosition",[Gt("* => desc-to-hint, * => desc-to-active",Yt(aw,qt([Wt({transform:"translateY(-25%)"}),Wt({transform:"translateY(0)"})]))),Gt("* => hint-to-desc, * => active-to-desc",Yt(aw,qt([Wt({transform:"translateY(0)"}),Wt({transform:"translateY(25%)"})]))),Gt("* => asc-to-hint, * => asc-to-active",Yt(aw,qt([Wt({transform:"translateY(25%)"}),Wt({transform:"translateY(0)"})]))),Gt("* => hint-to-asc, * => active-to-asc",Yt(aw,qt([Wt({transform:"translateY(0)"}),Wt({transform:"translateY(-25%)"})]))),Kt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Wt({transform:"translateY(0)"})),Kt("hint-to-desc, active-to-desc, desc",Wt({transform:"translateY(-25%)"})),Kt("hint-to-asc, active-to-asc, asc",Wt({transform:"translateY(25%)"}))]),allowChildren:zt("allowChildren",[Gt("* <=> *",[Xt("@*",Qt(),{optional:!0})])])};let cw=(()=>{class t{constructor(){this.changes=new _i.a,this.sortButtonLabel=t=>`Change sorting for ${t}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const uw={provide:cw,deps:[[new i.C,new i.M,cw]],useFactory:function(t){return t||new cw}};class hw{}const dw=ap(hw);let pw=(()=>{class t extends dw{constructor(t,e,n,i,s,r){super(),this._intl=t,this._changeDetectorRef=e,this._sort=n,this._columnDef=i,this._focusMonitor=s,this._elementRef=r,this._showIndicatorHint=!1,this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._handleStateChanges()}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=uc(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{const e=!!t;e!==this._showIndicatorHint&&(this._setIndicatorHintVisible(e),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t,this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_toggleOnInteraction(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(t){this._isDisabled()||32!==t.keyCode&&13!==t.keyCode||(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const t=this._viewState.fromState;return(t?`${t}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_handleStateChanges(){this._rerenderSubscription=Object(mi.a)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(cw),i.Ob(i.h),i.Ob(ow,8),i.Ob("MAT_SORT_HEADER_COLUMN_DEF",8),i.Ob(Kd),i.Ob(i.l))},t.\u0275cmp=i.Ib({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&i.cc("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(i.Eb("aria-sort",e._getAriaSortAttribute()),i.Gb("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[i.Ab],attrs:tw,ngContentSelectors:nw,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(i.lc(),i.Ub(0,"div",0),i.Ub(1,"div",1),i.kc(2),i.Tb(),i.Ec(3,ew,6,6,"div",2),i.Tb()),2&t&&(i.Gb("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),i.Eb("tabindex",e._isDisabled()?null:0),i.Db(3),i.mc("ngIf",e._renderArrow()))},directives:[V],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[lw.indicator,lw.leftPointer,lw.rightPointer,lw.arrowOpacity,lw.arrowPosition,lw.allowChildren]},changeDetection:0}),t})(),fw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({providers:[uw],imports:[[rt,op]]}),t})();const mw=[[["caption"]],[["colgroup"],["col"]]],gw=["caption","colgroup, col"];let _w=(()=>{class t extends t_{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(e){return bw(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,e){2&t&&i.Gb("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[i.Cb([{provide:bf,useClass:gf},{provide:t_,useExisting:t},{provide:vg,useExisting:t},{provide:Ig,useClass:Pg}]),i.Ab],ngContentSelectors:gw,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(i.lc(mw),i.kc(0),i.kc(1,1),i.Qb(2,0),i.Qb(3,1),i.Qb(4,2),i.Qb(5,3))},directives:[Xg,Qg,Jg,Zg],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}),t})();const bw=i.Wb(_w);let yw=(()=>{class t extends wg{}return t.\u0275fac=function(e){return vw(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","matCellDef",""]],features:[i.Cb([{provide:wg,useExisting:t}]),i.Ab]}),t})();const vw=i.Wb(yw);let ww=(()=>{class t extends Cg{}return t.\u0275fac=function(e){return Cw(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","matHeaderCellDef",""]],features:[i.Cb([{provide:Cg,useExisting:t}]),i.Ab]}),t})();const Cw=i.Wb(ww);let Ow=(()=>{class t extends Og{}return t.\u0275fac=function(e){return xw(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","matFooterCellDef",""]],features:[i.Cb([{provide:Og,useExisting:t}]),i.Ab]}),t})();const xw=i.Wb(Ow);let Sw=(()=>{class t extends Eg{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(e){return Ew(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i.Cb([{provide:Eg,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),i.Ab]}),t})();const Ew=i.Wb(Sw);let kw=(()=>{class t extends Tg{}return t.\u0275fac=function(e){return Tw(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[i.Ab]}),t})();const Tw=i.Wb(kw);let Aw=(()=>{class t extends Ag{}return t.\u0275fac=function(e){return Rw(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[i.Ab]}),t})();const Rw=i.Wb(Aw);let Dw=(()=>{class t extends Rg{}return t.\u0275fac=function(e){return Iw(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[i.Ab]}),t})();const Iw=i.Wb(Dw);let Pw=(()=>{class t extends Fg{}return t.\u0275fac=function(e){return Mw(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i.Cb([{provide:Fg,useExisting:t}]),i.Ab]}),t})();const Mw=i.Wb(Pw);let Lw=(()=>{class t extends Bg{}return t.\u0275fac=function(e){return jw(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[i.Cb([{provide:Bg,useExisting:t}]),i.Ab]}),t})();const jw=i.Wb(Lw);let Fw=(()=>{class t extends Vg{}return t.\u0275fac=function(e){return Nw(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i.Cb([{provide:Vg,useExisting:t}]),i.Ab]}),t})();const Nw=i.Wb(Fw);let Uw=(()=>{class t extends zg{}return t.\u0275fac=function(e){return Bw(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[i.Cb([{provide:zg,useExisting:t}]),i.Ab],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&i.Qb(0,0)},directives:[Hg],encapsulation:2}),t})();const Bw=i.Wb(Uw);let Vw=(()=>{class t extends Yg{}return t.\u0275fac=function(e){return Hw(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[i.Cb([{provide:Yg,useExisting:t}]),i.Ab],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&i.Qb(0,0)},directives:[Hg],encapsulation:2}),t})();const Hw=i.Wb(Vw);let zw=(()=>{class t extends $g{}return t.\u0275fac=function(e){return Yw(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[i.Cb([{provide:$g,useExisting:t}]),i.Ab],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&i.Qb(0,0)},directives:[Hg],encapsulation:2}),t})();const Yw=i.Wb(zw);let $w=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({imports:[[n_,op],op]}),t})();class Ww extends ff{constructor(t=[]){super(),this._renderData=new Ss.a([]),this._filter=new Ss.a(""),this._internalPageChanges=new _i.a,this._renderChangesSubscription=null,this.sortingDataAccessor=(t,e)=>{const n=t[e];if(dc(n)){const t=Number(n);return t<9007199254740991?t:n}return n},this.sortData=(t,e)=>{const n=e.active,i=e.direction;return n&&""!=i?t.sort((t,e)=>{let s=this.sortingDataAccessor(t,n),r=this.sortingDataAccessor(e,n);const o=typeof s,a=typeof r;o!==a&&("number"===o&&(s+=""),"number"===a&&(r+=""));let l=0;return null!=s&&null!=r?s>r?l=1:s<r&&(l=-1):null!=s?l=1:null!=r&&(l=-1),l*("asc"==i?1:-1)}):t},this.filterPredicate=(t,e)=>{const n=Object.keys(t).reduce((e,n)=>e+t[n]+"\u25ec","").toLowerCase(),i=e.trim().toLowerCase();return-1!=n.indexOf(i)},this._data=new Ss.a(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t),this._renderChangesSubscription||this._filterData(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){var t;const e=this._sort?Object(mi.a)(this._sort.sortChange,this._sort.initialized):Object(Ci.a)(null),n=this._paginator?Object(mi.a)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Object(Ci.a)(null),i=Is([this._data,this._filter]).pipe(Object(Ti.a)(([t])=>this._filterData(t))),s=Is([i,e]).pipe(Object(Ti.a)(([t])=>this._orderData(t))),r=Is([s,n]).pipe(Object(Ti.a)(([t])=>this._pageData(t)));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=r.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=null==this.filter||""===this.filter?t:t.filter(t=>this.filterPredicate(t,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,n=Math.min(e.pageIndex,t);n!==e.pageIndex&&(e.pageIndex=n,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}class Kw extends Ww{}const qw=up(ap(c_));let Gw=(()=>{class t extends qw{constructor(t,e,n){super(t,e),this._elementRef=t,this._tree=e,this.tabIndex=Number(n)||0,this._elementRef.nativeElement.classList.add("mat-tree-node")}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngOnDestroy(){super.ngOnDestroy()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(l_),i.Zb("tabindex"))},t.\u0275dir=i.Jb({type:t,selectors:[["mat-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[i.Cb([{provide:c_,useExisting:t}]),i.Ab]}),t})(),Qw=(()=>{class t extends a_{}return t.\u0275fac=function(e){return Xw(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[i.Cb([{provide:a_,useExisting:t}]),i.Ab]}),t})();const Xw=i.Wb(Qw);let Zw=(()=>{class t{constructor(t,e){this.viewContainer=t,this._node=e}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.S),i.Ob(s_,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","matTreeNodeOutlet",""]],features:[i.Cb([{provide:r_,useExisting:t}])]}),t})(),Jw=(()=>{class t extends l_{}return t.\u0275fac=function(e){return tC(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-tree"]],viewQuery:function(t,e){if(1&t&&i.Kc(Zw,3),2&t){let t;i.sc(t=i.dc())&&(e._nodeOutlet=t.first)}},hostAttrs:["role","tree",1,"mat-tree","cdk-tree"],exportAs:["matTree"],features:[i.Cb([{provide:l_,useExisting:t}]),i.Ab],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(t,e){1&t&&i.Qb(0,0)},directives:[Zw],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),t})();const tC=i.Wb(Jw);let eC=(()=>{class t extends h_{get recursive(){return this._recursive}set recursive(t){this._recursive=uc(t)}}return t.\u0275fac=function(e){return nC(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[i.Cb([{provide:h_,useExisting:t}]),i.Ab]}),t})();const nC=i.Wb(eC);let iC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({imports:[[d_,op],op]}),t})();class sC{constructor(t,e,n,i){this.transformFunction=t,this.getLevel=e,this.isExpandable=n,this.getChildren=i}_flattenNode(t,e,n,i){const s=this.transformFunction(t,e);if(n.push(s),this.isExpandable(s)){const s=this.getChildren(t);s&&(Array.isArray(s)?this._flattenChildren(s,e,n,i):s.pipe(Object($i.a)(1)).subscribe(t=>{this._flattenChildren(t,e,n,i)}))}return n}_flattenChildren(t,e,n,i){t.forEach((s,r)=>{let o=i.slice();o.push(r!=t.length-1),this._flattenNode(s,e+1,n,o)})}flattenNodes(t){let e=[];return t.forEach(t=>this._flattenNode(t,0,e,[])),e}expandFlattenedNodes(t,e){let n=[],i=[];return i[0]=!0,t.forEach(t=>{let s=!0;for(let e=0;e<=this.getLevel(t);e++)s=s&&i[e];s&&n.push(t),this.isExpandable(t)&&(i[this.getLevel(t)+1]=e.isExpanded(t))}),n}}class rC extends ff{constructor(t,e,n=[]){super(),this._treeControl=t,this._treeFlattener=e,this._flattenedData=new Ss.a([]),this._expandedData=new Ss.a([]),this._data=new Ss.a(n)}get data(){return this._data.value}set data(t){this._data.next(t),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(t){const e=[t.viewChange,this._treeControl.expansionModel.changed,this._flattenedData];return Object(mi.a)(...e).pipe(Object(Ti.a)(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}const oC=[n_,d_,py,Yp,Ly,Gb,zm,$y,Cm,Hv,Jv,pv,fw,$w,cg,Tv,iC];let aC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({imports:[oC,n_,d_,py,Yp,Ly,Gb,zm,$y,Cm,Hv,Jv,pv,fw,$w,cg,Tv,iC]}),t})();function lC(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",3),i.cc("click",function(){return i.xc(t),i.gc().panLeft()}),i.Ub(1,"mat-icon"),i.Fc(2," keyboard_arrow_left "),i.Tb(),i.Tb()}if(2&t){const t=i.gc();i.mc("ngClass",t.isSticky?"sticky":null)("ngStyle",t.panLeftStyles)}}function cC(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",4,5),i.cc("click",function(){return i.xc(t),i.gc().panRight()}),i.Ub(2,"mat-icon"),i.Fc(3," keyboard_arrow_right "),i.Tb(),i.Tb()}if(2&t){const t=i.gc();i.mc("ngClass",t.isSticky?"sticky":null)("ngStyle",t.panRightStyles)}}const uC=["*"],hC=()=>new CustomEvent("ftdna-pannable--update");let dC=(()=>{class t{constructor(t){this.rootRef=t,this.panLeftPositionLeft=0,this.panRightPositionLeft=0,this.showPanLeft=!0,this.showPanRight=!0,this.isSticky=!1,this.offsetTop=0,this.updated=new i.o}ngAfterContentInit(){this.container=this.rootRef.nativeElement,this.setPanPositions(),this.setPanVisibility()}panLeft(){try{this.container.scrollBy({left:-1*this.container.offsetWidth,behavior:"smooth"})}catch(t){const e=this.container.scrollLeft-this.container.offsetWidth;this.container.scrollLeft=e>=0?e:0}}panRight(){try{this.container.scrollBy({left:this.container.offsetWidth,behavior:"smooth"})}catch(t){this.container.scrollLeft+=this.container.offsetWidth}}setPanPositions(){const t=this.container.getBoundingClientRect();this.panLeftPositionLeft=t.left+(this.isSticky?0:this.container.scrollLeft)+20,this.panRightPositionLeft=t.right-60}setPanVisibility(){const t=this.container.offsetWidth;this.showPanLeft=t<this.container.scrollWidth&&this.container.scrollLeft>0,this.showPanRight=this.container.scrollLeft<this.container.scrollWidth-t}update(){this.setPanPositions(),this.setPanVisibility(),this.updated.emit()}get panLeftStyles(){return{left:this.panLeftPositionLeft+"px"}}get panRightStyles(){return{left:this.panRightPositionLeft+"px"}}onUpdate(){this.update()}onScroll(){this.update()}onWindowScroll(){this.update(),this.isSticky=!(this.container.getBoundingClientRect().top>=this.offsetTop)}onWindowResize(){this.update()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l))},t.\u0275cmp=i.Ib({type:t,selectors:[["ftdna-pannable"]],hostBindings:function(t,e){1&t&&i.cc("ftdna-pannable--update",function(){return e.onUpdate()},!1,i.vc)("scroll",function(){return e.onScroll()})("scroll",function(){return e.onWindowScroll()},!1,i.wc)("resize",function(){return e.onWindowResize()},!1,i.wc)},inputs:{offsetTop:"offsetTop"},outputs:{updated:"updated"},ngContentSelectors:uC,decls:4,vars:2,consts:[[1,"pannable"],["class","pan pan-left",3,"ngClass","ngStyle","click",4,"ngIf"],["class","pan pan-right",3,"ngClass","ngStyle","click",4,"ngIf"],[1,"pan","pan-left",3,"ngClass","ngStyle","click"],[1,"pan","pan-right",3,"ngClass","ngStyle","click"],["pannableContain",""]],template:function(t,e){1&t&&(i.lc(),i.Ub(0,"div",0),i.Ec(1,lC,3,2,"div",1),i.kc(2),i.Ec(3,cC,4,2,"div",2),i.Tb()),2&t&&(i.Db(1),i.mc("ngIf",e.showPanLeft),i.Db(2),i.mc("ngIf",e.showPanRight))},directives:[V,F,bc,q,Pc,Hm],styles:[".pannable[_ngcontent-%COMP%]{position:relative}.pannable[_ngcontent-%COMP%]   .pan[_ngcontent-%COMP%]{background:#fff;border:1px solid #d6d6d6;border-radius:20px;box-shadow:0 3px 6px rgba(0,0,0,.16);height:40px;opacity:.5;position:absolute;text-align:center;top:40px;width:40px;z-index:1000}.pannable[_ngcontent-%COMP%]   .pan.sticky[_ngcontent-%COMP%]{position:fixed;top:50%}.pannable[_ngcontent-%COMP%]   .pan[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{line-height:40px}.pannable[_ngcontent-%COMP%]   .pan.pan-left[_ngcontent-%COMP%]{left:20px}.pannable[_ngcontent-%COMP%]   .pan.pan-right[_ngcontent-%COMP%]{right:20px}.pannable[_ngcontent-%COMP%]   .pan[_ngcontent-%COMP%]:hover{cursor:pointer;opacity:1}"]}),t})(),pC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({imports:[[rt,pu,zm]]}),t})();function fC(t,e){if(1&t&&i.Pb(0,"img",9),2&t){const t=i.gc().$implicit;i.oc("src","/common/img/country-flags/",t.countryCode,".svg",i.zc)}}function mC(t,e){if(1&t&&(i.Ub(0,"div",10),i.Fc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Jc(" ",t.name," - ",t.kitsCounts," participant",1===t.kitsCounts?"":"s"," ")}}function gC(t,e){if(1&t&&(i.Ub(0,"div",6),i.Ec(1,fC,1,1,"img",7),i.Ec(2,mC,2,3,"div",8),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.mc("ngIf","X"!=t.countryCode),i.Db(1),i.mc("ngIf","X"!=t.countryCode)}}let _C=(()=>{class t{constructor(t){this.data=t,this.countries=t.countries,this.haplogroup=t.haplogroup}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Oy))},t.\u0275cmp=i.Ib({type:t,selectors:[["ng-component"]],decls:9,vars:2,consts:[["mat-dialog-title",""],[1,"countryDialogList"],["class","countryDialogItem","fxLayout","row",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","end"],["mat-button","","mat-dialog-close","","color","accent"],["mat-button","","mat-dialog-close","true","color","accent"],["fxLayout","row",1,"countryDialogItem"],["class","flag",3,"src",4,"ngIf"],["class","countryText",4,"ngIf"],[1,"flag",3,"src"],[1,"countryText"]],template:function(t,e){1&t&&(i.Ub(0,"h2",0),i.Fc(1),i.Tb(),i.Ub(2,"mat-dialog-content",1),i.Ec(3,gC,3,2,"div",2),i.Tb(),i.Ub(4,"mat-dialog-actions",3),i.Ub(5,"button",4),i.Fc(6,"CANCEL"),i.Tb(),i.Ub(7,"button",5),i.Fc(8,"VIEW REPORT"),i.Tb(),i.Tb()),2&t&&(i.Db(1),i.Hc("Countries haplogroup ",e.haplogroup,""),i.Db(2),i.mc("ngForOf",e.countries))},directives:[Dy,Iy,U,Py,qc,eu,zp,Ry,V],styles:[".mat-dialog-title[_ngcontent-%COMP%]{font-size:16px}.countryDialogList[_ngcontent-%COMP%]{max-height:216px;max-width:425px}.countryDialogList[_ngcontent-%COMP%]   .countryDialogItem[_ngcontent-%COMP%]{margin-bottom:.5em;align-items:center}.countryDialogList[_ngcontent-%COMP%]   .countryDialogItem[_ngcontent-%COMP%]   .flag[_ngcontent-%COMP%]{background-color:#cbcbcb;border-radius:9px;height:18px;width:18px}.countryDialogList[_ngcontent-%COMP%]   .countryDialogItem[_ngcontent-%COMP%]   .countryText[_ngcontent-%COMP%]{margin-left:8px}"]}),t})(),bC=(()=>{class t{constructor(t){this.data=t,this.surnames=t.surnames.map(t=>t.surname).join(", "),this.haplogroup=t.haplogroup}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Oy))},t.\u0275cmp=i.Ib({type:t,selectors:[["ng-component"]],decls:11,vars:2,consts:[["mat-dialog-title",""],[1,"disable-translation"],[1,"surnameDialog","disable-translation"],["fxLayout","row","fxLayoutAlign","end"],["mat-button","","mat-dialog-close","","color","accent"],["mat-button","","mat-dialog-close","true","color","accent"]],template:function(t,e){1&t&&(i.Ub(0,"h2",0),i.Fc(1,"Surnames haplogroup "),i.Ub(2,"span",1),i.Fc(3),i.Tb(),i.Tb(),i.Ub(4,"mat-dialog-content",2),i.Fc(5),i.Tb(),i.Ub(6,"mat-dialog-actions",3),i.Ub(7,"button",4),i.Fc(8,"CANCEL"),i.Tb(),i.Ub(9,"button",5),i.Fc(10,"VIEW REPORT"),i.Tb(),i.Tb()),2&t&&(i.Db(3),i.Gc(e.haplogroup),i.Db(2),i.Hc(" ",e.surnames,"\n"))},directives:[Dy,Iy,Py,qc,eu,zp,Ry],styles:[".mat-dialog-title[_ngcontent-%COMP%]{font-size:16px}.surnameDialog[_ngcontent-%COMP%]{max-height:216px;max-width:365px}.mat-dialog-actions[_ngcontent-%COMP%]   .mat-button[_ngcontent-%COMP%]:hover{background-color:transparent}"]}),t})(),yC=(()=>{class t{constructor(t){this.data=t,this.variants=t.variants.map(t=>t.variant).join(", "),this.haplogroup=t.haplogroup}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Oy))},t.\u0275cmp=i.Ib({type:t,selectors:[["ng-component"]],decls:9,vars:2,consts:[["mat-dialog-title",""],[1,"disable-translation"],[1,"variantDialog","disable-translation"],["mat-button","","mat-dialog-close","","color","accent"]],template:function(t,e){1&t&&(i.Ub(0,"h2",0),i.Fc(1,"Variants haplogroup "),i.Ub(2,"span",1),i.Fc(3),i.Tb(),i.Tb(),i.Ub(4,"mat-dialog-content",2),i.Fc(5),i.Tb(),i.Ub(6,"mat-dialog-actions"),i.Ub(7,"button",3),i.Fc(8,"CANCEL"),i.Tb(),i.Tb()),2&t&&(i.Db(3),i.Gc(e.haplogroup),i.Db(2),i.Hc(" ",e.variants,"\n"))},directives:[Dy,Iy,Py,zp,Ry],styles:[".mat-dialog-title[_ngcontent-%COMP%]{font-size:16px}.variantDialog[_ngcontent-%COMP%]{max-height:216px;max-width:365px}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.mat-dialog-actions[_ngcontent-%COMP%]   .mat-button[_ngcontent-%COMP%]:hover{background-color:transparent}"]}),t})();function vC(t,e){if(1&t&&(i.Ub(0,"th",26),i.Fc(1),i.Ub(2,"mat-icon"),i.Fc(3,"info"),i.Tb(),i.Tb()),2&t){const t=i.gc();i.nc("matTooltip",t.data.tree===t.yTree?"Self-reported country of the earliest known direct paternal line ancestor of Y-SNP testers.":"Self-reported country of the earliest known direct maternal line ancestor of mtFull Sequence testers."),i.Db(1),i.Hc(" ",t.originHeader,"*")}}function wC(t,e){if(1&t&&i.Pb(0,"img",29),2&t){const t=i.gc().$implicit;i.oc("src","/common/img/country-flags/",t.countryCode,".svg",i.zc),i.nc("matTooltip",t.name)}}function CC(t,e){if(1&t&&(i.Ub(0,"td",27),i.Ec(1,wC,1,2,"img",28),i.Fc(2),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.mc("ngIf","X"!=t.countryCode),i.Db(1),i.Hc(" ",t.name," ")}}function OC(t,e){1&t&&(i.Ub(0,"td",30),i.Fc(1,"Total"),i.Tb())}function xC(t,e){if(1&t&&(i.Ub(0,"th",31),i.Ub(1,"div"),i.Ub(2,"div",32),i.Fc(3,"Branch Participants"),i.Tb(),i.Ub(4,"div",33),i.Fc(5),i.Tb(),i.Tb(),i.Ub(6,"div"),i.Ub(7,"mat-icon"),i.Fc(8,"info"),i.Tb(),i.Tb(),i.Tb()),2&t){const t=i.gc();i.nc("matTooltip",t.data.tree===t.yTree?"Number of Y-SNP testers placed on this branch who reported this paternal origin. Further SNP testing could give more specific placements.":"Number of mtFull Sequence testers placed on this branch who specified this maternal origin."),i.Db(5),i.Gc(t.node.name)}}function SC(t,e){if(1&t&&(i.Ub(0,"td",34),i.Fc(1),i.hc(2,"number"),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Hc(" ",i.ic(2,1,t.kitsCounts)," ")}}function EC(t,e){if(1&t&&(i.Ub(0,"td",35),i.Fc(1),i.hc(2,"number"),i.Tb()),2&t){const t=i.gc();i.Db(1),i.Hc(" ",i.ic(2,1,t.totalKits)," ")}}function kC(t,e){if(1&t&&(i.Ub(0,"th",36),i.Ub(1,"div"),i.Ub(2,"div",32),i.Fc(3,"Downstream Participants"),i.Tb(),i.Ub(4,"div",33),i.Fc(5),i.Tb(),i.Tb(),i.Ub(6,"div"),i.Ub(7,"mat-icon"),i.Fc(8,"info"),i.Tb(),i.Tb(),i.Tb()),2&t){const t=i.gc();i.nc("matTooltip",t.data.tree===t.yTree?"Number of Y-SNP testers placed below this branch who reported this paternal origin. Downstream testers descend from a common paternal ancestor.":"Number of mtFull testers placed at or below this branch who specified this maternal origin. All testers descend from a common maternal ancestor."),i.Db(5),i.Hc(" ",t.node.name," and Downstream (Excluding other Letters) ")}}function TC(t,e){if(1&t&&(i.Ub(0,"td",34),i.Fc(1),i.hc(2,"number"),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Hc(" ",i.ic(2,1,t.kitsCountsDownstream)," ")}}function AC(t,e){if(1&t&&(i.Ub(0,"td",35),i.Fc(1),i.hc(2,"number"),i.Tb()),2&t){const t=i.gc();i.Db(1),i.Hc(" ",i.ic(2,1,t.totalKitsDownstream)," ")}}function RC(t,e){if(1&t&&(i.Ub(0,"th",37),i.Ub(1,"div"),i.Ub(2,"div",32),i.Fc(3,"All Downstream Participants"),i.Tb(),i.Ub(4,"div",33),i.Fc(5),i.Tb(),i.Tb(),i.Ub(6,"div"),i.Ub(7,"mat-icon"),i.Fc(8,"info"),i.Tb(),i.Tb(),i.Tb()),2&t){const t=i.gc();i.nc("matTooltip",t.data.tree===t.yTree?"Number of Y-SNP testers placed at or below this branch who reported this paternal origin. All testers descend from a common paternal ancestor.":"Number of mtFull testers placed at or below this branch who specified this maternal origin. All testers descend from a common maternal ancestor."),i.Db(5),i.Hc(" ",t.node.name," and Downstream (Including other Letters) ")}}function DC(t,e){if(1&t&&(i.Ub(0,"td",34),i.Fc(1),i.hc(2,"number"),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Hc(" ",i.ic(2,1,t.kitsCountsDownstreamFull)," ")}}function IC(t,e){if(1&t&&(i.Ub(0,"td",35),i.Fc(1),i.hc(2,"number"),i.Tb()),2&t){const t=i.gc();i.Db(1),i.Hc(" ",i.ic(2,1,t.totalKitsDownstreamFull)," ")}}function PC(t,e){if(1&t&&(i.Ub(0,"th",38),i.Ub(1,"div",39),i.Ub(2,"div"),i.Fc(3,"Distribution"),i.Tb(),i.Ub(4,"div"),i.Ub(5,"mat-icon"),i.Fc(6,"info"),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t){const t=i.gc();i.nc("matTooltip",t.data.tree===t.yTree?"Percentage of descendents of this haplogroup who reported this paternal origin. This can provide a hint as to where the common ancestor lived.":"Percentage of descendents of this haplogroup who reported this maternal origin. This can provide a hint as to where the common ancestor lived.")}}function MC(t,e){if(1&t&&(i.Ub(0,"td",34),i.Fc(1),i.hc(2,"percent"),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.Hc(" ","X"===t.countryCode?"**":i.jc(2,1,t.kitsCountsDownstreamFull/n.totalKnownDownstreamFull,"1.2-2")," ")}}function LC(t,e){1&t&&(i.Ub(0,"td",35),i.Fc(1,"100.00%"),i.Tb())}function jC(t,e){1&t&&i.Pb(0,"tr",40)}function FC(t,e){1&t&&i.Pb(0,"tr",41)}function NC(t,e){1&t&&i.Pb(0,"tr",42)}function UC(t,e){1&t&&i.Pb(0,"tr",43)}let BC=(()=>{class t{constructor(t,e){this.data=t,this.dialogRef=e,this.yTree=Ru,this.columns=["name","kitsCounts","kitsCountsDownstream","kitsCountsDownstreamFull","distribution"],this.allNodes=t.allNodes,this.node=t.node,this.originHeader=t.tree==Du?"Maternal Origin":"Paternal Origin",this.title=t.tree==Du?"mtDNA":"Y-DNA"}ngAfterContentInit(){setTimeout(()=>{const t=this.getDownstreamCounts(this.node);this.countries=t.filter(t=>"X"!==t.countryCode).sort((t,e)=>e.kitsCountsDownstreamFull-t.kitsCountsDownstreamFull).concat(t.filter(t=>"X"===t.countryCode)),this.totalKits=this.countries.reduce((t,e)=>t+e.kitsCounts,0),this.totalKitsDownstream=this.countries.reduce((t,e)=>t+e.kitsCountsDownstream,0),this.totalKitsDownstreamFull=this.countries.reduce((t,e)=>t+e.kitsCountsDownstreamFull,0),this.totalKnownDownstreamFull=this.countries.filter(t=>"X"!=t.countryCode).reduce((t,e)=>t+e.kitsCountsDownstreamFull,0),this.dataSource=new Kw(this.countries),this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator,this.dataSource.sortingDataAccessor=(t,e)=>"X"!==t.countryCode?t[e]:this.isNumber(t[e])?"asc"===this.sort.direction?Number.MAX_SAFE_INTEGER:Number.MIN_SAFE_INTEGER:"asc"===this.sort.direction?"zzz":"AAA"},1e3)}close(){this.dialogRef.close()}isNumber(t){return!isNaN(Number(t.toString()))}compare(t,e,n,i){return(t[i]<e[i]?-1:1)*(n?1:-1)}getDownstreamCounts(t){let e=(t.countryCounts||[]).map(t=>Object.assign(Object.assign({},t),{kitsCountsDownstream:t.kitsCounts,kitsCountsDownstreamFull:t.kitsCounts}));return t.children?t.children.map(t=>this.allNodes[t]).reduce((t,e)=>{if(void 0!==e)return this.mergeCountryCounts(t,this.getDownstreamCounts(e),!e.isRoot)},e):e}mergeCountryCounts(t,e,n){const i=t.reduce((t,e)=>Object.assign(Object.assign({},t),{[e.name]:e}),{});if(void 0!==e){const t=e.reduce((t,e)=>Object.assign(Object.assign({},t),{[e.name]:{countryCode:e.countryCode,name:e.name,kitsCounts:t[e.name]?t[e.name].kitsCounts:0,kitsCountsDownstream:n?(t[e.name]?t[e.name].kitsCountsDownstream:0)+e.kitsCountsDownstream:t[e.name]?t[e.name].kitsCountsDownstream:0,kitsCountsDownstreamFull:(t[e.name]?t[e.name].kitsCountsDownstreamFull:0)+e.kitsCountsDownstreamFull}}),i);return Object.keys(t).map(e=>t[e])}return Object.keys(i).map(t=>i[t])}isAlternate(t){return t%2==1}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Oy),i.Ob(wy))},t.\u0275cmp=i.Ib({type:t,selectors:[["ng-component"]],viewQuery:function(t,e){if(1&t&&(i.Kc(ow,1),i.Kc(Vv,1)),2&t){let t;i.sc(t=i.dc())&&(e.sort=t.first),i.sc(t=i.dc())&&(e.paginator=t.first)}},decls:39,vars:10,consts:[["fxLayout","row","fxLayoutAlign","space-between center",1,"title-container"],["mat-dialog-title",""],[1,"modal-header-close",3,"click"],[1,"countryReportDialog"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","","arrowPosition","after",3,"matTooltip",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-footer-cell","",4,"matFooterCellDef"],["matColumnDef","kitsCounts"],["mat-header-cell","","mat-sort-header","","arrowPosition","after","class","right",3,"matTooltip",4,"matHeaderCellDef"],["mat-cell","","class","right",4,"matCellDef"],["mat-footer-cell","","class","right",4,"matFooterCellDef"],["matColumnDef","kitsCountsDownstream"],["mat-header-cell","","mat-sort-header","","arrowPosition","after","class","right downstream-col",3,"matTooltip",4,"matHeaderCellDef"],["matColumnDef","kitsCountsDownstreamFull"],["mat-header-cell","","mat-sort-header","","arrowPosition","after","class","right all-downstream-col",3,"matTooltip",4,"matHeaderCellDef"],["matColumnDef","distribution"],["mat-header-cell","","class","right distribution-col",3,"matTooltip",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","mat-row-alternate",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",4,"matFooterRowDef"],[3,"pageSize","showFirstLastButtons"],["fxLayout","row","fxLayoutAlign","end"],["mat-button","","mat-dialog-close",""],["mat-header-cell","","mat-sort-header","","arrowPosition","after",3,"matTooltip"],["mat-cell",""],["class","flag",3,"src","matTooltip",4,"ngIf"],[1,"flag",3,"src","matTooltip"],["mat-footer-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","after",1,"right",3,"matTooltip"],[1,"header1"],[1,"header2"],["mat-cell","",1,"right"],["mat-footer-cell","",1,"right"],["mat-header-cell","","mat-sort-header","","arrowPosition","after",1,"right","downstream-col",3,"matTooltip"],["mat-header-cell","","mat-sort-header","","arrowPosition","after",1,"right","all-downstream-col",3,"matTooltip"],["mat-header-cell","",1,"right","distribution-col",3,"matTooltip"],[1,"list"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"mat-row-alternate"],["mat-footer-row",""]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"h2",1),i.Fc(2),i.Tb(),i.Ub(3,"mat-icon",2),i.cc("click",function(){return e.close()}),i.Fc(4,"close"),i.Tb(),i.Tb(),i.Ub(5,"mat-dialog-content",3),i.Ub(6,"table",4),i.Sb(7,5),i.Ec(8,vC,4,2,"th",6),i.Ec(9,CC,3,2,"td",7),i.Ec(10,OC,2,0,"td",8),i.Rb(),i.Sb(11,9),i.Ec(12,xC,9,2,"th",10),i.Ec(13,SC,3,3,"td",11),i.Ec(14,EC,3,3,"td",12),i.Rb(),i.Sb(15,13),i.Ec(16,kC,9,2,"th",14),i.Ec(17,TC,3,3,"td",11),i.Ec(18,AC,3,3,"td",12),i.Rb(),i.Sb(19,15),i.Ec(20,RC,9,2,"th",16),i.Ec(21,DC,3,3,"td",11),i.Ec(22,IC,3,3,"td",12),i.Rb(),i.Sb(23,17),i.Ec(24,PC,7,1,"th",18),i.Ec(25,MC,3,4,"td",11),i.Ec(26,LC,2,0,"td",12),i.Rb(),i.Ec(27,jC,1,0,"tr",19),i.Ec(28,FC,1,0,"tr",20),i.Ec(29,NC,1,0,"tr",21),i.Ec(30,UC,1,0,"tr",22),i.Tb(),i.Pb(31,"mat-paginator",23),i.Ub(32,"p"),i.Fc(33," * All origins are self-reported by the participants and may not reflect accurate haplogroup origins. "),i.Tb(),i.Ub(34,"p"),i.Fc(35,"** Unknown Origins are not included in the calculated distributions."),i.Tb(),i.Ub(36,"mat-dialog-actions",24),i.Ub(37,"button",25),i.Fc(38,"OK"),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(2),i.Ic("Country Report: ",e.title," Haplogroup ",e.node.name,""),i.Db(4),i.mc("dataSource",e.dataSource),i.Db(21),i.mc("matHeaderRowDef",e.columns),i.Db(1),i.mc("matRowDefColumns",e.columns),i.Db(1),i.mc("matRowDefColumns",e.columns)("matRowDefWhen",e.isAlternate),i.Db(1),i.mc("matFooterRowDef",e.columns),i.Db(1),i.mc("pageSize",10)("showFirstLastButtons",!0))},directives:[qc,eu,Dy,Hm,Iy,_w,ow,Sw,ww,yw,Ow,Pw,Fw,Lw,Vv,Py,zp,Ry,kw,pw,Ev,Dw,V,Aw,Uw,zw,Vw],pipes:[et,nt],styles:[".title-container{margin-bottom:15px}.title-container h2{margin-bottom:5px}.title-container .mat-icon{cursor:pointer}.countryReportDialog{height:82vh;max-height:82vh;width:75vw}.countryReportDialog .mat-table{width:100%;border:1px solid rgba(0,0,0,.12);border-width:0 1px}.countryReportDialog .mat-table .mat-sort-header-content{flex-direction:row;margin-right:-22px}.countryReportDialog .mat-table .list{display:flex;flex-direction:row;align-items:center;margin-left:30px}.countryReportDialog .mat-table .mat-icon{margin-left:4px;font-size:21px;width:21px;height:21px}.countryReportDialog .mat-table .mat-header-cell.right .mat-sort-header-container{justify-content:flex-end}.countryReportDialog .mat-table .mat-header-cell.right .mat-sort-header-container .header1,.countryReportDialog .mat-table .mat-header-cell.right .mat-sort-header-container .header2{text-align:right}.countryReportDialog .mat-table .mat-header-cell.right .mat-sort-header-arrow{right:-20px}.countryReportDialog .mat-table .mat-header-cell .header2{font-size:10px}.countryReportDialog .mat-table .right{text-align:right}.countryReportDialog .mat-table .mat-footer-row{font-weight:700}.countryReportDialog .all-downstream-col,.countryReportDialog .downstream-col{width:300px}.countryReportDialog .distribution-col{width:150px}.countryReportDialog .flag{background-color:#cbcbcb;border-radius:9px;font-size:20px;float:left;height:18px;line-height:18px;margin-right:10px;text-align:center;width:18px}"],encapsulation:2}),t})();function VC(t,e){1&t&&(i.Ub(0,"th",22),i.Fc(1," Surname "),i.Ub(2,"mat-icon"),i.Fc(3,"info"),i.Tb(),i.Tb())}function HC(t,e){if(1&t&&(i.Ub(0,"td",23),i.Fc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Hc(" ",t.surname," ")}}function zC(t,e){1&t&&(i.Ub(0,"td",24),i.Fc(1," Total "),i.Tb())}function YC(t,e){1&t&&(i.Ub(0,"th",25),i.Fc(1," Participants "),i.Ub(2,"mat-icon"),i.Fc(3,"info"),i.Tb(),i.Tb())}function $C(t,e){if(1&t&&(i.Ub(0,"td",26),i.Fc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Hc(" ",t.kitsCounts," ")}}function WC(t,e){if(1&t&&(i.Ub(0,"td",24),i.Fc(1),i.Tb()),2&t){const t=i.gc();i.Db(1),i.Hc(" ",t.totalKits," ")}}function KC(t,e){1&t&&(i.Ub(0,"th",27),i.Fc(1," Distribution "),i.Ub(2,"mat-icon"),i.Fc(3,"info"),i.Tb(),i.Tb())}function qC(t,e){if(1&t&&(i.Ub(0,"td",26),i.Fc(1),i.hc(2,"percent"),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.Hc(" ",i.jc(2,1,t.kitsCounts/n.totalKits,"1.2-2")," ")}}function GC(t,e){1&t&&(i.Ub(0,"td",24),i.Fc(1," 100.00% "),i.Tb())}function QC(t,e){1&t&&i.Pb(0,"tr",28)}function XC(t,e){1&t&&i.Pb(0,"tr",29)}function ZC(t,e){1&t&&i.Pb(0,"tr",30)}function JC(t,e){1&t&&i.Pb(0,"tr",31)}let tO=(()=>{class t{constructor(t,e,n){this.data=t,this.cdr=e,this.dialogRef=n,this.columns=["surname","kitsCounts","distribution"],this.node=t.node,this.title=t.tree==Du?"mtDNA":"Y-DNA"}ngAfterViewInit(){setTimeout(()=>{this.totalKits=this.node.surnames.reduce((t,e)=>t+e.kitsCounts,0),this.dataSource=new Kw(this.node.surnames),this.cdr.detectChanges(),this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator},1e3)}isAlternate(t,e){return t%2==1}close(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Oy),i.Ob(i.h),i.Ob(wy))},t.\u0275cmp=i.Ib({type:t,selectors:[["ng-component"]],viewQuery:function(t,e){if(1&t&&(i.Kc(ow,1),i.Kc(Vv,1)),2&t){let t;i.sc(t=i.dc())&&(e.sort=t.first),i.sc(t=i.dc())&&(e.paginator=t.first)}},decls:33,vars:10,consts:[["fxLayout","row","fxLayoutAlign","space-between center",1,"title-container"],["mat-dialog-title",""],[1,"disable-translation"],[1,"modal-header-close",3,"click"],[1,"surnameReportDialog"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","surname"],["mat-header-cell","","mat-sort-header","","arrowPosition","after","matTooltip","A shared surname with identical spelling with at least two SNP testers placed at this branch. Requires opting in to Group Project Profile sharing.",4,"matHeaderCellDef"],["mat-cell","","class","disable-translation",4,"matCellDef"],["mat-footer-cell","",4,"matFooterCellDef"],["matColumnDef","kitsCounts"],["mat-header-cell","","mat-sort-header","","arrowPosition","after","matTooltip","Number of Y-SNP testers with this surname placed on this branch. Requires at least two participants opted in to Group Project Profile sharing.",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","distribution"],["mat-header-cell","","matTooltip","Percentage of surname participants placed on this branch compared to other shared surnames on this branch.",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","mat-row-alternate",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",4,"matFooterRowDef"],[3,"pageSize","showFirstLastButtons"],["fxLayout","row","fxLayoutAlign","end"],["mat-button","","mat-dialog-close",""],["mat-header-cell","","mat-sort-header","","arrowPosition","after","matTooltip","A shared surname with identical spelling with at least two SNP testers placed at this branch. Requires opting in to Group Project Profile sharing."],["mat-cell","",1,"disable-translation"],["mat-footer-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","after","matTooltip","Number of Y-SNP testers with this surname placed on this branch. Requires at least two participants opted in to Group Project Profile sharing."],["mat-cell",""],["mat-header-cell","","matTooltip","Percentage of surname participants placed on this branch compared to other shared surnames on this branch."],["mat-header-row",""],["mat-row",""],["mat-row","",1,"mat-row-alternate"],["mat-footer-row",""]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"h2",1),i.Fc(2),i.Ub(3,"span",2),i.Fc(4),i.Tb(),i.Tb(),i.Ub(5,"mat-icon",3),i.cc("click",function(){return e.close()}),i.Fc(6,"close"),i.Tb(),i.Tb(),i.Ub(7,"mat-dialog-content",4),i.Ub(8,"table",5),i.Sb(9,6),i.Ec(10,VC,4,0,"th",7),i.Ec(11,HC,2,1,"td",8),i.Ec(12,zC,2,0,"td",9),i.Rb(),i.Sb(13,10),i.Ec(14,YC,4,0,"th",11),i.Ec(15,$C,2,1,"td",12),i.Ec(16,WC,2,1,"td",9),i.Rb(),i.Sb(17,13),i.Ec(18,KC,4,0,"th",14),i.Ec(19,qC,3,4,"td",12),i.Ec(20,GC,2,0,"td",9),i.Rb(),i.Ec(21,QC,1,0,"tr",15),i.Ec(22,XC,1,0,"tr",16),i.Ec(23,ZC,1,0,"tr",17),i.Ec(24,JC,1,0,"tr",18),i.Tb(),i.Pb(25,"mat-paginator",19),i.Ub(26,"p"),i.Fc(27,"* All surnames are self-reported by the participants and may not reflect accurate haplogroup ancestry."),i.Tb(),i.Ub(28,"p"),i.Fc(29,"** Two or more kits with public project profile sharing and the same surname spelling are required for a surname to show on the Haplotree."),i.Tb(),i.Ub(30,"mat-dialog-actions",20),i.Ub(31,"button",21),i.Fc(32,"OK"),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(2),i.Hc("Surname Report: ",e.title," Haplogroup "),i.Db(2),i.Gc(e.node.name),i.Db(4),i.mc("dataSource",e.dataSource),i.Db(13),i.mc("matHeaderRowDef",e.columns),i.Db(1),i.mc("matRowDefColumns",e.columns),i.Db(1),i.mc("matRowDefColumns",e.columns)("matRowDefWhen",e.isAlternate),i.Db(1),i.mc("matFooterRowDef",e.columns),i.Db(1),i.mc("pageSize",10)("showFirstLastButtons",!0))},directives:[qc,eu,Dy,Hm,Iy,_w,ow,Sw,ww,yw,Ow,Pw,Fw,Lw,Vv,Py,zp,Ry,kw,pw,Ev,Dw,Aw,Uw,zw,Vw],pipes:[nt],styles:[".title-container{margin-bottom:15px}.title-container h2{margin-bottom:5px}.title-container .mat-icon{cursor:pointer}.surnameReportDialog{height:82vh;max-height:82vh;width:75vw}.surnameReportDialog .mat-table{width:100%;border:1px solid rgba(0,0,0,.12);border-width:0 1px}.surnameReportDialog .mat-table .mat-icon{margin-left:4px;font-size:21px;width:21px;height:21px;vertical-align:middle}.surnameReportDialog .mat-table th.mat-header-cell{width:33.33%}.surnameReportDialog .mat-table .mat-footer-row{font-weight:700}"],encapsulation:2}),t})(),eO=(()=>{class t{constructor(t){this.data=t,this.columns=["variant","region","position","ancestral","derived"],this.node=t.node,this.title=t.tree==Du?"mtDNA":"Y-DNA",this.positionHeader=t.tree==Ru?"Position (hg38)":"Position"}ngOnInit(){this.dataSource=new Kw(this.node.variants),this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator}isAlternate(t,e){return t%2==1}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Oy))},t.\u0275cmp=i.Ib({type:t,selectors:[["ng-component"]],viewQuery:function(t,e){if(1&t&&(i.Kc(ow,1),i.Kc(Vv,1)),2&t){let t;i.sc(t=i.dc())&&(e.sort=t.first),i.sc(t=i.dc())&&(e.paginator=t.first)}},decls:2,vars:2,consts:[["mat-dialog-title",""]],template:function(t,e){1&t&&(i.Ub(0,"h2",0),i.Fc(1),i.Tb()),2&t&&(i.Db(1),i.Ic("Variant Report: ",e.title," Haplogroup ",e.node.name,""))},directives:[Dy],styles:[".variantReportDialog{height:82vh;max-height:82vh;width:75vw}.variantReportDialog .mat-table{width:100%;border:1px solid rgba(0,0,0,.12)}.variantReportDialog .mat-table .mat-row-alternate{background-color:#eee}.variantReportDialog .mat-table .mat-header-cell{background-color:#505759;color:#fff;font-family:Roboto;font-size:14px;font-weight:400;height:40px;text-align:left;padding:0 24px;width:20%}.variantReportDialog .mat-table .mat-header-cell.cdk-column-position{text-align:right}.variantReportDialog .mat-table .mat-cell{padding:0 24px;text-align:left;width:20%}.variantReportDialog .mat-table .mat-cell.cdk-column-position{text-align:right}"],encapsulation:2}),t})();function nO(t,e){1&t&&(i.Ub(0,"div",5),i.Pb(1,"div",6),i.Pb(2,"div",7),i.Tb()),2&t&&i.mc("ngClass",e.$implicit?"line":"space")}function iO(t,e){if(1&t&&(i.Ub(0,"div"),i.Ub(1,"span",8),i.Ub(2,"mat-icon",9),i.Fc(3," keyboard_arrow_right "),i.Tb(),i.Tb(),i.Ub(4,"span",10),i.Fc(5),i.Tb(),i.Tb()),2&t){const t=i.gc();i.Fb("disable-translation treeItem ",t.model.children?"branch":"leaf",""),i.Db(2),i.mc("inline",!0),i.Db(3),i.Gc(t.model.name)}}const sO=function(t,e){return["/",t,e]};function rO(t,e){if(1&t&&(i.Ub(0,"a",11),i.Fc(1),i.Tb()),2&t){const t=i.gc();i.mc("routerLink",i.rc(2,sO,t.tree,t.model.root)),i.Db(1),i.Hc(" ",t.model.name," ")}}let oO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["haplo-tree-item"]],inputs:{model:"model",branchesCount:"branchesCount",tree:"tree"},decls:9,vars:14,consts:[[1,"haplo-tree-item-container"],["class","spacer",3,"ngClass",4,"ngFor","ngForOf"],[3,"class",4,"ngIf"],["class","disable-translation treeItem root",3,"routerLink",4,"ngIf"],[1,"branchCount",3,"matTooltip"],[1,"spacer",3,"ngClass"],[1,"top"],[1,"bottom"],[1,"tree-item-icon"],[3,"inline"],[1,"tree-item-label","disable-translation"],[1,"disable-translation","treeItem","root",3,"routerLink"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ec(1,nO,3,1,"div",1),i.Ec(2,iO,6,5,"div",2),i.Ec(3,rO,2,5,"a",3),i.Ub(4,"div",4),i.hc(5,"number"),i.hc(6,"percent"),i.Fc(7),i.hc(8,"number"),i.Tb(),i.Tb()),2&t&&(i.Db(1),i.mc("ngForOf",e.model.spacers),i.Db(1),i.mc("ngIf",!e.model.isRoot),i.Db(1),i.mc("ngIf",e.model.isRoot),i.Db(1),i.pc("matTooltip","",i.ic(5,7,e.model.subBranches)," downstream branches of ",e.model.name," (",i.jc(6,9,e.model.subBranches/e.branchesCount,"1.1-1")," of the tree)"),i.Db(3),i.Hc(" ",e.model.subBranches>0?i.ic(8,12,e.model.subBranches):"\xa0"," "))},directives:[U,V,Ev,F,bc,Hm,Ma],pipes:[et,nt],styles:['[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]{display:inline-flex;align-items:center}[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]   .spacer[_ngcontent-%COMP%]{float:left;height:47px;margin-left:4px;width:30px;flex-shrink:0}[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]   .spacer.line[_ngcontent-%COMP%]{border-left:1px solid rgba(33,33,33,.3)}[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]   .spacer.space[_ngcontent-%COMP%]{border:0}[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]   .spacer[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]{height:24px}[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]   .spacer[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]{height:22px}[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-last-child(3).spacer   .top[_ngcontent-%COMP%]{border-bottom:1px solid rgba(33,33,33,.3)}[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-last-child(3).spacer.space   .top[_ngcontent-%COMP%]{border-left:1px solid rgba(33,33,33,.3)}[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]   .treeItem[_ngcontent-%COMP%]{border-radius:3px;color:#fff;padding:5px 10px;margin:0 2px 0 0;position:relative}[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]   .treeItem.root[_ngcontent-%COMP%]{background-color:#00a5ca}[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]   .treeItem.branch[_ngcontent-%COMP%]{background-color:#003764;cursor:pointer}[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]   .treeItem.branch[_ngcontent-%COMP%]   .tree-item-icon[_ngcontent-%COMP%]{margin-left:-3px;margin-right:3px;width:12px;height:12px;overflow:hidden;display:inline-block;transition:transform .5s}[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]   .treeItem.leaf[_ngcontent-%COMP%]{background-color:#00bbb4}[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]   .treeItem.leaf[_ngcontent-%COMP%]   .tree-item-icon[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .haplo-tree-item-container[_ngcontent-%COMP%]   .branchCount[_ngcontent-%COMP%]{font-size:12px;font-weight:700;margin-left:10px;margin-right:30px}.expanded[_nghost-%COMP%]   .treeItem.branch[_ngcontent-%COMP%]:before, .expanded[_nghost-%COMP%]   .treeItem.root[_ngcontent-%COMP%]:before{content:"";border-left:1px solid rgba(33,33,33,.3);height:11px;position:absolute;left:4px;bottom:-11px}.expanded[_nghost-%COMP%]   .treeItem.branch[_ngcontent-%COMP%]   .tree-item-icon[_ngcontent-%COMP%], .expanded[_nghost-%COMP%]   .treeItem.root[_ngcontent-%COMP%]   .tree-item-icon[_ngcontent-%COMP%]{transform:rotate(90deg)}'],changeDetection:0}),t})(),aO=(()=>{class t{transform(t){return t?t>1e9?(t/1e9).toPrecision(1).toString()+"B":t>1e6?(t/1e6).toPrecision(1).toString()+"M":t>1e3?(t/1e3).toPrecision(1).toString()+"K":t.toString():"0"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Nb({name:"significantDigit",type:t,pure:!0}),t})(),lO=(()=>{class t{transform(t){return t?t>1?`+${t}`:t.toString():"0"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Nb({name:"prependPlus",type:t,pure:!0}),t})();function cO(t,e){if(1&t&&i.Pb(0,"img",7),2&t){const t=i.gc().$implicit;i.oc("src","/common/img/country-flags/",t.countryCode,".svg",i.zc),i.nc("matTooltip",t.name)}}function uO(t,e){if(1&t&&(i.Ub(0,"div",8),i.Fc(1),i.hc(2,"significantDigit"),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Gc(i.ic(2,1,t.kitsCounts))}}function hO(t,e){if(1&t&&(i.Ub(0,"div",4),i.Ec(1,cO,1,2,"img",5),i.Ec(2,uO,3,3,"div",6),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.mc("ngIf","X"!=t.countryCode),i.Db(1),i.mc("ngIf","X"!=t.countryCode)}}function dO(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",9),i.cc("click",function(e){return i.xc(t),i.gc().openList(e)}),i.Fc(1),i.hc(2,"prependPlus"),i.hc(3,"significantDigit"),i.Tb()}if(2&t){const t=i.gc();i.mc("disableRipple",!0),i.Db(1),i.Hc(" ",i.ic(2,2,i.ic(3,4,t.countries.length))," ")}}let pO=(()=>{class t{constructor(t,e){this.dialog=t,this.overlay=e,this.openReport=new i.o}ngOnInit(){this.branchCountries=this.countries?this.countries.filter(t=>t.kitsCounts>0):null,this.topCountries=this.countries?this.branchCountries.filter((t,e)=>e<15):null,this.length=this.countries?this.countries.length:0,this.overflow=this.branchCountries&&this.branchCountries.length>15}openList(t){this.dialog.closeAll(),this.dialog.open(_C,{autoFocus:!1,backdropClass:"backdropInvis",data:{countries:this.countries,haplogroup:this.haplogroup},hasBackdrop:!0,position:this.getPosition(t.target),scrollStrategy:this.overlay.scrollStrategies.reposition()}).afterClosed().subscribe(t=>{t&&this.openReport.emit()})}getPosition(t){const e=t.getBoundingClientRect(),n=window.innerHeight-500,i=e.top,s=window.innerWidth-e.left;return n<i?{right:s.toString()+"px",bottom:"50px"}:{right:s.toString()+"px",top:i.toString()+"px"}}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Ty),i.Ob(Xf))},t.\u0275cmp=i.Ib({type:t,selectors:[["haplo-tree-countries"]],inputs:{countries:"countries",haplogroup:"haplogroup"},outputs:{openReport:"openReport"},decls:4,vars:2,consts:[[1,"countriesContainer"],[1,"countryFlags"],["class","country",4,"ngFor","ngForOf"],["mat-button","","color","accent","class","overflowCountries",3,"disableRipple","click",4,"ngIf"],[1,"country"],["class","flag",3,"src","matTooltip",4,"ngIf"],["class","kitCount",4,"ngIf"],[1,"flag",3,"src","matTooltip"],[1,"kitCount"],["mat-button","","color","accent",1,"overflowCountries",3,"disableRipple","click"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ec(2,hO,3,2,"div",2),i.Tb(),i.Ec(3,dO,4,6,"button",3),i.Tb()),2&t&&(i.Db(2),i.mc("ngForOf",e.topCountries),i.Db(1),i.mc("ngIf",e.length>0))},directives:[U,V,Ev,zp],pipes:[aO,lO],styles:["[_nghost-%COMP%]   .countriesContainer[_ngcontent-%COMP%]{height:44px}[_nghost-%COMP%]   .countriesContainer[_ngcontent-%COMP%]   .countryFlags[_ngcontent-%COMP%]{display:inline-block;height:44px;overflow:hidden;white-space:normal;width:calc(100% - 44px)}[_nghost-%COMP%]   .countriesContainer[_ngcontent-%COMP%]   .countryFlags[_ngcontent-%COMP%]   .country[_ngcontent-%COMP%]{display:inline-block;margin-left:12px;padding-top:4px}[_nghost-%COMP%]   .countriesContainer[_ngcontent-%COMP%]   .countryFlags[_ngcontent-%COMP%]   .country[_ngcontent-%COMP%]   .flag[_ngcontent-%COMP%]{background-color:#cbcbcb;border-radius:12px;width:22px;height:22px;margin-bottom:3px}[_nghost-%COMP%]   .countriesContainer[_ngcontent-%COMP%]   .countryFlags[_ngcontent-%COMP%]   .country[_ngcontent-%COMP%]   .kitCount[_ngcontent-%COMP%]{font-size:12px;text-align:center}[_nghost-%COMP%]   .countriesContainer[_ngcontent-%COMP%]   .overflowCountries[_ngcontent-%COMP%]{display:inline-block;line-height:48px;min-width:44px;text-align:center;padding:0;vertical-align:top;width:44px}[_nghost-%COMP%]   .countriesContainer[_ngcontent-%COMP%]   .overflowCountries[_ngcontent-%COMP%]:hover{background-color:transparent}.close-data-column[_nghost-%COMP%]   .countriesContainer[_ngcontent-%COMP%]   .countryFlags[_ngcontent-%COMP%]{display:none}"],changeDetection:0}),t})();function fO(t,e){if(1&t&&(i.Ub(0,"div",4),i.Fc(1),i.Tb()),2&t){const t=e.$implicit,n=e.index,s=i.gc();i.Db(1),i.Hc(" ",t.surname+(n<s.surnames.length-1?",":"")," ")}}function mO(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",5),i.cc("click",function(e){return i.xc(t),i.gc().openList(e)}),i.Fc(1),i.hc(2,"prependPlus"),i.hc(3,"significantDigit"),i.Tb()}if(2&t){const t=i.gc();i.mc("disableRipple",!0),i.Db(1),i.Hc(" ",i.ic(2,2,i.ic(3,4,t.length))," ")}}let gO=(()=>{class t{constructor(t,e){this.dialog=t,this.overlay=e,this.openReport=new i.o}ngOnInit(){this.length=this.surnames?this.surnames.length:0,this.overflow=this.surnames&&this.surnames.length>15}openList(t){this.dialog.closeAll(),this.dialog.open(bC,{autoFocus:!1,backdropClass:"backdropInvis",data:{surnames:this.surnames,haplogroup:this.haplogroup},hasBackdrop:!0,position:this.getPosition(t.target),scrollStrategy:this.overlay.scrollStrategies.reposition()}).afterClosed().subscribe(t=>{t&&this.openReport.emit()})}getPosition(t){const e=t.getBoundingClientRect(),n=window.innerHeight-500,i=e.top,s=window.innerWidth-e.left;return n<i?{right:s.toString()+"px",bottom:"50px"}:{right:s.toString()+"px",top:i.toString()+"px"}}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Ty),i.Ob(Xf))},t.\u0275cmp=i.Ib({type:t,selectors:[["haplo-tree-surnames"]],inputs:{surnames:"surnames",haplogroup:"haplogroup"},outputs:{openReport:"openReport"},decls:4,vars:2,consts:[[1,"surnamesContainer","disable-translation"],[1,"surnames"],["class","surname",4,"ngFor","ngForOf"],["mat-button","","class","overflowSurnames","color","accent",3,"disableRipple","click",4,"ngIf"],[1,"surname"],["mat-button","","color","accent",1,"overflowSurnames",3,"disableRipple","click"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ec(2,fO,2,1,"div",2),i.Tb(),i.Ec(3,mO,4,6,"button",3),i.Tb()),2&t&&(i.Db(2),i.mc("ngForOf",e.surnames),i.Db(1),i.mc("ngIf",e.length>0))},directives:[U,V,zp],pipes:[lO,aO],styles:["[_nghost-%COMP%]   .surnamesContainer[_ngcontent-%COMP%]{height:44px;overflow:hidden}[_nghost-%COMP%]   .surnamesContainer[_ngcontent-%COMP%]   .surnames[_ngcontent-%COMP%]{display:inline-block;overflow:hidden;padding:6px 11px;white-space:normal;width:calc(100% - 44px)}[_nghost-%COMP%]   .surnamesContainer[_ngcontent-%COMP%]   .surnames[_ngcontent-%COMP%]   .surname[_ngcontent-%COMP%]{display:inline-block;line-height:16px;padding:2px;white-space:nowrap}[_nghost-%COMP%]   .surnamesContainer[_ngcontent-%COMP%]   .overflowSurnames[_ngcontent-%COMP%]{display:inline-block;line-height:48px;min-width:44px;text-align:center;padding:0;vertical-align:top;width:44px}[_nghost-%COMP%]   .surnamesContainer[_ngcontent-%COMP%]   .overflowSurnames[_ngcontent-%COMP%]:hover{background-color:transparent}.close-data-column[_nghost-%COMP%]   .surnamesContainer[_ngcontent-%COMP%]   .surnames[_ngcontent-%COMP%]{display:none}"],changeDetection:0}),t})();function _O(t,e){if(1&t&&(i.Ub(0,"div",4),i.Fc(1),i.Tb()),2&t){const t=e.$implicit,n=e.index,s=i.gc();i.Db(1),i.Hc(" ",t.variant+(n<s.variants.length-1?",":"")," ")}}function bO(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",5),i.cc("click",function(e){return i.xc(t),i.gc().openList(e)}),i.Fc(1),i.hc(2,"prependPlus"),i.hc(3,"significantDigit"),i.Tb()}if(2&t){const t=i.gc();i.mc("disableRipple",!0),i.Db(1),i.Hc(" ",i.ic(2,2,i.ic(3,4,t.length))," ")}}let yO=(()=>{class t{constructor(t,e){this.dialog=t,this.overlay=e,this.openReport=new i.o}ngOnInit(){this.length=this.variants?this.variants.length:0,this.overflow=this.variants&&this.variants.length>15}openList(t){this.dialog.closeAll(),this.dialog.open(yC,{autoFocus:!1,backdropClass:"backdropInvis",data:{variants:this.variants,haplogroup:this.haplogroup},hasBackdrop:!0,position:this.getPosition(t.target),scrollStrategy:this.overlay.scrollStrategies.reposition()}).afterClosed().subscribe(t=>{t&&this.openReport.emit()})}getPosition(t){const e=t.getBoundingClientRect(),n=window.innerHeight-500,i=e.top,s=window.innerWidth-e.left;return n<i?{right:s.toString()+"px",bottom:"50px"}:{right:s.toString()+"px",top:i.toString()+"px"}}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Ty),i.Ob(Xf))},t.\u0275cmp=i.Ib({type:t,selectors:[["haplo-tree-variants"]],inputs:{variants:"variants",haplogroup:"haplogroup"},outputs:{openReport:"openReport"},decls:4,vars:2,consts:[[1,"variantsContainer","disable-translation"],[1,"variants"],["class","variant",4,"ngFor","ngForOf"],["mat-button","","class","overflowVariants","color","accent",3,"disableRipple","click",4,"ngIf"],[1,"variant"],["mat-button","","color","accent",1,"overflowVariants",3,"disableRipple","click"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ec(2,_O,2,1,"div",2),i.Tb(),i.Ec(3,bO,4,6,"button",3),i.Tb()),2&t&&(i.Db(2),i.mc("ngForOf",e.variants),i.Db(1),i.mc("ngIf",e.length>0))},directives:[U,V,zp],pipes:[lO,aO],styles:["[_nghost-%COMP%]   .variantsContainer[_ngcontent-%COMP%]{height:44px}[_nghost-%COMP%]   .variantsContainer[_ngcontent-%COMP%]   .variants[_ngcontent-%COMP%]{display:inline-block;height:44px;overflow:hidden;padding:6px 11px;white-space:normal;width:calc(100% - 44px)}[_nghost-%COMP%]   .variantsContainer[_ngcontent-%COMP%]   .variants[_ngcontent-%COMP%]   .variant[_ngcontent-%COMP%]{display:inline-block;line-height:16px;padding:2px;white-space:nowrap}[_nghost-%COMP%]   .variantsContainer[_ngcontent-%COMP%]   .overflowVariants[_ngcontent-%COMP%]{display:inline-block;line-height:48px;min-width:44px;text-align:center;padding:0;vertical-align:top;width:44px}[_nghost-%COMP%]   .variantsContainer[_ngcontent-%COMP%]   .overflowVariants[_ngcontent-%COMP%]:hover{background-color:transparent}.close-data-column[_nghost-%COMP%]   .variantsContainer[_ngcontent-%COMP%]   .variants[_ngcontent-%COMP%]{display:none}"],changeDetection:0}),t})();function vO(t,e){1&t&&i.Pb(0,"mat-spinner")}function wO(t,e){1&t&&(i.Ub(0,"mat-icon",17),i.Fc(1," info "),i.Tb())}function CO(t,e){1&t&&(i.Ub(0,"mat-icon",18),i.Fc(1," info "),i.Tb())}function OO(t,e){1&t&&(i.Ub(0,"mat-icon",19),i.Fc(1," info "),i.Tb())}function xO(t,e){1&t&&(i.Ub(0,"mat-icon",20),i.Fc(1," info "),i.Tb())}function SO(t,e){1&t&&(i.Ub(0,"mat-icon",21),i.Fc(1," info "),i.Tb())}function EO(t,e){1&t&&(i.Ub(0,"mat-icon",22),i.Fc(1," keyboard_arrow_right "),i.Tb())}function kO(t,e){1&t&&(i.Ub(0,"mat-icon",23),i.Fc(1," keyboard_arrow_left "),i.Tb())}const TO=function(t,e){return{selected:t,active:e}};function AO(t,e){if(1&t){const t=i.Vb();i.Ub(0,"mat-tree-node",30),i.cc("mouseover",function(){i.xc(t);const n=e.$implicit;return i.gc(4).onMouseOver(n)})("mouseout",function(){i.xc(t);const n=e.$implicit;return i.gc(4).onMouseOut(n)}),i.Pb(1,"haplo-tree-item",31),i.Tb()}if(2&t){const t=e.$implicit,n=i.gc(4);i.mc("ngClass",i.rc(5,TO,n.isSelected(t)||n.hoverName===t.name,n.isActive(t))),i.Db(1),i.mc("model",t)("tree",n.tree)("branchesCount",n.nodesCount)("ngClass",n.treeControl.isExpanded(t)?"expanded":null)}}function RO(t,e){if(1&t){const t=i.Vb();i.Ub(0,"haplo-tree-countries",42),i.cc("openReport",function(){i.xc(t);const e=i.gc().$implicit;return i.gc(4).openCountryReport(e)}),i.Tb()}if(2&t){const t=i.gc().$implicit,e=i.gc(4);i.mc("countries",t.countryCounts)("haplogroup",t.name)("ngClass",e.isDataColumnOpen?null:"close-data-column")}}function DO(t,e){if(1&t){const t=i.Vb();i.Ub(0,"haplo-tree-surnames",43),i.cc("openReport",function(){i.xc(t);const e=i.gc().$implicit;return i.gc(4).openSurnameReport(e)}),i.Tb()}if(2&t){const t=i.gc().$implicit,e=i.gc(4);i.mc("surnames",t.surnames)("haplogroup",t.name)("ngClass",e.isDataColumnOpen?null:"close-data-column")}}function IO(t,e){if(1&t){const t=i.Vb();i.Ub(0,"haplo-tree-variants",44),i.cc("openReport",function(){i.xc(t);const e=i.gc().$implicit;return i.gc(4).openVariantReport(e)}),i.Tb()}if(2&t){const t=i.gc().$implicit,e=i.gc(4);i.mc("variants",t.variants)("haplogroup",t.name)("ngClass",e.isDataColumnOpen?null:"close-data-column")}}function PO(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",40),i.cc("click",function(){i.xc(t);const e=i.gc().$implicit;return i.gc(4).openSurnameReport(e)}),i.Ub(1,"span"),i.Fc(2,"Surname Report"),i.Tb(),i.Tb()}}function MO(t,e){if(1&t){const t=i.Vb();i.Ub(0,"mat-tree-node",32),i.cc("mouseover",function(){i.xc(t);const n=e.$implicit;return i.gc(4).onMouseOver(n)})("mouseout",function(){i.xc(t);const n=e.$implicit;return i.gc(4).onMouseOut(n)}),i.Ub(1,"div",33),i.Ub(2,"div",34),i.Ec(3,RO,1,3,"haplo-tree-countries",35),i.Ec(4,DO,1,3,"haplo-tree-surnames",36),i.Ec(5,IO,1,3,"haplo-tree-variants",37),i.Tb(),i.Ub(6,"button",38),i.Ub(7,"mat-icon"),i.Fc(8,"more_vert"),i.Tb(),i.Tb(),i.Ub(9,"mat-menu",null,39),i.Ub(11,"button",40),i.cc("click",function(){i.xc(t);const n=e.$implicit;return i.gc(4).openCountryReport(n)}),i.Ub(12,"span"),i.Fc(13,"Country Report"),i.Tb(),i.Tb(),i.Ec(14,PO,3,0,"button",41),i.Tb(),i.Tb(),i.Tb()}if(2&t){const t=e.$implicit,n=i.tc(10),s=i.gc(3).$implicit,r=i.gc();i.mc("ngClass",i.rc(6,TO,r.isSelected(t)||r.hoverName===t.name,r.isActive(t))),i.Db(3),i.mc("ngIf",s.view===r.countries),i.Db(1),i.mc("ngIf",s.view===r.surnames),i.Db(1),i.mc("ngIf",s.view===r.variants),i.Db(1),i.mc("matMenuTriggerFor",n),i.Db(8),i.mc("ngIf",!!t.surnames)}}function LO(t,e){if(1&t&&(i.Ub(0,"div",24),i.Ub(1,"ftdna-pannable",25),i.Ub(2,"mat-tree",26),i.Ec(3,AO,2,8,"mat-tree-node",27),i.Tb(),i.Tb(),i.Ub(4,"div",28),i.Ub(5,"mat-tree",26),i.Ec(6,MO,15,9,"mat-tree-node",29),i.Tb(),i.Tb(),i.Tb()),2&t){const t=i.gc(3);i.Db(1),i.mc("offsetTop",228)("ngClass",t.isDataColumnOpen?null:"close-data-column"),i.Db(1),i.mc("dataSource",t.dataSource)("treeControl",t.treeControl),i.Db(2),i.mc("ngClass",t.isDataColumnOpen?null:"close-data-column"),i.Db(1),i.mc("dataSource",t.dataSource)("treeControl",t.treeControl)}}function jO(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",2),i.Ub(1,"div",3),i.Ub(2,"div",4),i.Fc(3," Branch "),i.Ub(4,"mat-icon",5),i.Fc(5,"info"),i.Tb(),i.Tb(),i.Ub(6,"div",6),i.Ub(7,"span",7),i.Fc(8),i.Ec(9,wO,2,0,"mat-icon",8),i.Ec(10,CO,2,0,"mat-icon",9),i.Ec(11,OO,2,0,"mat-icon",10),i.Ec(12,xO,2,0,"mat-icon",11),i.Ec(13,SO,2,0,"mat-icon",12),i.Tb(),i.Ub(14,"div",13),i.cc("click",function(){return i.xc(t),i.gc(2).toggleDataColumn()}),i.Ec(15,EO,2,0,"mat-icon",14),i.Ec(16,kO,2,0,"mat-icon",15),i.Tb(),i.Tb(),i.Tb(),i.Ec(17,LO,7,7,"div",16),i.Tb()}if(2&t){const t=i.gc().$implicit,e=i.gc();i.Db(2),i.mc("ngClass",e.isDataColumnOpen?null:"close-data-column"),i.Db(2),i.oc("matTooltip","",e.tree===e.yTree?"A branch on the tree represents an ancient man who is the direct paternal line ancestor of all descendent branches and testers.":"A branch on the tree represents an ancient woman who is the direct maternal line ancestor of all descendent branches and testers.","\n        "),i.Db(2),i.mc("ngClass",e.isDataColumnOpen?null:"close-data-column"),i.Db(2),i.Hc(" ",t.view," "),i.Db(1),i.mc("ngIf",e.tree===e.yTree&&t.view===e.countries),i.Db(1),i.mc("ngIf",e.tree===e.yTree&&t.view===e.surnames),i.Db(1),i.mc("ngIf",e.tree===e.yTree&&t.view===e.variants),i.Db(1),i.mc("ngIf",e.tree===e.mtTree&&t.view===e.countries),i.Db(1),i.mc("ngIf",e.tree===e.mtTree&&t.view===e.variants),i.Db(2),i.mc("ngIf",e.isDataColumnOpen),i.Db(1),i.mc("ngIf",!e.isDataColumnOpen),i.Db(1),i.mc("ngIf",!t.isSearching)}}function FO(t,e){if(1&t&&(i.Ub(0,"div"),i.Ec(1,vO,1,0,"mat-spinner",0),i.Ec(2,jO,18,12,"div",1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.mc("ngIf",t.isSearching),i.Db(1),i.mc("ngIf",!t.isSearching)}}let NO=(()=>{class t{constructor(t,e,n){this.store=t,this.dialog=e,this.cdr=n,this.nodesCount=0,this.countries="Countries",this.surnames="Surnames",this.variants="Variants",this.mtTree=Du,this.yTree=Ru,this.isDataColumnOpen=!0,this.getChildren=t=>t.children.map(t=>this.nodes[t]),this.getLevel=t=>t.level,this.hasChild=t=>!!t.children&&t.children.length>0,this.transformer=(t,e)=>(t.level=e,t.children&&this.mapChildren(t,e),t),this.treeFlattener=new sC(this.transformer,this.getLevel,this.hasChild,this.getChildren),this.treeControl=new i_(t=>t.level,t=>this.hasChild(t)),this.dataSource=new rC(this.treeControl,this.treeFlattener)}ngOnInit(){this.store$=Is(this.store.select(Ch),this.store.select(bh),this.store.select(Oh),this.store.select(yh),(t,e,n,i)=>(!t||this.root&&t.name===this.root.name||(this.treeControl.collapse(t),this.dataSource.data=new Array(t),this.treeControl.dataNodes.filter(t=>t.level<2||t.isRoot).map(t=>this.expandToNode(t)),this.root=t,this.selectedItems&&this.runSearch()),this.activeName=n,!i&&n&&this.searchNode(n),{view:e,name:n,isSearching:i})),this.roots$=this.store.select(mh).subscribe(t=>this.roots=t),this.tree$=this.store.select(xh).subscribe(t=>this.tree=t),this.nodes$=this.store.select(fh).subscribe(t=>{this.nodes=t,this.nodesCount=Object.keys(t).length}),this.selected$=this.store.select(vh).subscribe(t=>{this.selectedItems=t,t&&this.runSearch()}),this.store$.subscribe(t=>{this.currentView!==t.view&&(this.openDataColumn(),this.currentView=t.view)})}ngAfterViewInit(){const t=document.getElementsByClassName("active")[0];t&&setTimeout(()=>t.scrollIntoView({behavior:"smooth",block:"center"}),100)}ngOnChanges(t){document.dispatchEvent(hC())}runSearch(){this.searchNodeAll()}expandToNode(t){t.parent&&(this.expandToNode(t.parent),this.treeControl.expand(t.parent))}searchNode(t){const e=this.treeControl.dataNodes.find(e=>e.name.toUpperCase()===t.toUpperCase()),n=this.treeControl.dataNodes.find(e=>e.variants.some(e=>e.variant===t.substring(2))),i=e||n;i&&i.name!==t&&(this.activeName=i.name),null!=i&&(i.artificialRoot||i.root)===this.root.root&&this.expandToNode(i),this.cdr.detectChanges();const s=document.getElementsByClassName("active")[0];s&&setTimeout(()=>{s.scrollIntoView({behavior:"smooth",block:"end"})},1e3)}searchNodeAll(){if(!this.treeControl||!this.treeControl.dataNodes||!this.selectedItems)return;const t=this.treeControl.dataNodes.filter(t=>this.selectedItems[t.name]&&(t.artificialRoot||t.root)===this.root.root).sort(t=>t.level);this.store.dispatch(new qu(t.length)),t.filter((t,e)=>e<100).map(t=>this.expandToNode(t)),this.cdr.detectChanges()}mapChildren(t,e){t.children.forEach(e=>{this.nodes[e]&&(this.nodes[e].spacers=(t.spacers||[]).concat(!0),this.nodes[e].parent=t)}),this.nodes[t.children[t.children.length-1]].spacers[e]=!1}openCountryReport(t){this.dialog.closeAll(),this.dialog.open(BC,{autoFocus:!1,backdropClass:"backdrop",data:{node:t,allNodes:this.nodes,tree:this.tree},hasBackdrop:!0})}openSurnameReport(t){this.dialog.closeAll(),this.dialog.open(tO,{autoFocus:!1,backdropClass:"backdrop",data:{node:t,tree:this.tree},hasBackdrop:!0})}openVariantReport(t){this.dialog.closeAll(),this.dialog.open(eO,{autoFocus:!1,backdropClass:"backdrop",data:{node:t,tree:this.tree},hasBackdrop:!0})}onMouseOver(t){this.hoverName=t.name}onMouseOut(t){this.hoverName===t.name&&(this.hoverName=null)}openDataColumn(){this.isDataColumnOpen||this.toggleDataColumn()}toggleDataColumn(){this.isDataColumnOpen=!this.isDataColumnOpen,setTimeout(()=>{document.dispatchEvent(hC())},501)}ngOnDestroy(){this.roots$.unsubscribe(),this.nodes$.unsubscribe(),this.selected$.unsubscribe(),this.tree$.unsubscribe()}isSelected(t){return!!this.selectedItems&&!!this.selectedItems[t.name]}isActive(t){return!!this.activeName&&this.activeName===t.name}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(fi.i),i.Ob(Ty),i.Ob(i.h))},t.\u0275cmp=i.Ib({type:t,selectors:[["haplo-tree"]],features:[i.Bb],decls:2,vars:3,consts:[[4,"ngIf"],["class","treeContainer",4,"ngIf"],[1,"treeContainer"],["fxLayout","row","ftdnaSticky","",1,"header"],[1,"column","treeColumn",3,"ngClass"],[3,"matTooltip"],["fxLayout","row","fxLayoutAlign","flex-start center",1,"column","dataColumn",3,"ngClass"],[1,"data-label"],["matTooltip","Self-reported country of the earliest known direct paternal line ancestor of Y-SNP testers.",4,"ngIf"],["matTooltip","A shared surname with identical spelling with at least two SNP testers placed at this branch. Requires opting in to Group Project Profile sharing.",4,"ngIf"],["matTooltip","A branch is defined by Y-SNP mutations in the paternal line that were passed down to descendents. Downstream testers typically share these variants.",4,"ngIf"],["matTooltip","Self-reported country of the earliest known direct maternal line ancestor of mtFull Sequence testers.",4,"ngIf"],["matTooltip","A branch is defined by mtDNA mutations in the maternal line that were passed down to descendents. Downstream testers typically share these variants.",4,"ngIf"],[1,"toggle-data",3,"click"],["matTooltip","Collapse column",4,"ngIf"],["matTooltip","Expand column",4,"ngIf"],["fxLayout","row",4,"ngIf"],["matTooltip","Self-reported country of the earliest known direct paternal line ancestor of Y-SNP testers."],["matTooltip","A shared surname with identical spelling with at least two SNP testers placed at this branch. Requires opting in to Group Project Profile sharing."],["matTooltip","A branch is defined by Y-SNP mutations in the paternal line that were passed down to descendents. Downstream testers typically share these variants."],["matTooltip","Self-reported country of the earliest known direct maternal line ancestor of mtFull Sequence testers."],["matTooltip","A branch is defined by mtDNA mutations in the maternal line that were passed down to descendents. Downstream testers typically share these variants."],["matTooltip","Collapse column"],["matTooltip","Expand column"],["fxLayout","row"],[1,"column","treeColumn",3,"offsetTop","ngClass"],[3,"dataSource","treeControl"],["class","haplo-node",3,"ngClass","mouseover","mouseout",4,"matTreeNodeDef"],[1,"column","dataColumn","results",3,"ngClass"],[3,"ngClass","mouseover","mouseout",4,"matTreeNodeDef"],[1,"haplo-node",3,"ngClass","mouseover","mouseout"],["matTreeNodeToggle","",1,"haplo-tree-item",3,"model","tree","branchesCount","ngClass"],[3,"ngClass","mouseover","mouseout"],[1,"shadow"],[1,"data"],[3,"countries","haplogroup","ngClass","openReport",4,"ngIf"],[3,"surnames","haplogroup","ngClass","openReport",4,"ngIf"],[3,"variants","haplogroup","ngClass","openReport",4,"ngIf"],["mat-button","",1,"moreInfo",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],[3,"countries","haplogroup","ngClass","openReport"],[3,"surnames","haplogroup","ngClass","openReport"],[3,"variants","haplogroup","ngClass","openReport"]],template:function(t,e){1&t&&(i.Ec(0,FO,3,2,"div",0),i.hc(1,"async")),2&t&&i.mc("ngIf",i.ic(1,1,e.store$))},directives:[V,Zv,qc,$m,F,bc,Hm,Ev,eu,dC,Jw,Qw,Gw,oO,eC,zp,vm,gm,dm,pO,gO,yO],pipes:[tt],styles:[".header[_ngcontent-%COMP%]{height:40px;background-color:#505759;color:#fff}.header.sticky[_ngcontent-%COMP%]{margin-top:187px;width:100%;z-index:1000}.header[_ngcontent-%COMP%]   .data-label[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%], .header[_ngcontent-%COMP%]   .treeColumn[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%]{margin-left:4px;font-size:21px;width:21px;height:21px;vertical-align:middle}.header[_ngcontent-%COMP%]   .toggle-data[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%]{vertical-align:middle}.treeContainer[_ngcontent-%COMP%]{margin:0 auto}.treeContainer[_ngcontent-%COMP%]   .header[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]{padding:12px 20px;font-weight:500}.treeContainer[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]{align-items:center;white-space:nowrap;overflow-y:hidden;transition:all .5s}.treeContainer[_ngcontent-%COMP%]   .column.treeColumn[_ngcontent-%COMP%]{width:60%}.treeContainer[_ngcontent-%COMP%]   .column.treeColumn[_ngcontent-%COMP%]   .mat-tree[_ngcontent-%COMP%]{background:transparent}.treeContainer[_ngcontent-%COMP%]   .column.treeColumn[_ngcontent-%COMP%]   .mat-tree-node[_ngcontent-%COMP%]{padding-left:20px}.treeContainer[_ngcontent-%COMP%]   .column.treeColumn[_ngcontent-%COMP%]   .mat-tree-node.active[_ngcontent-%COMP%], .treeContainer[_ngcontent-%COMP%]   .column.treeColumn[_ngcontent-%COMP%]   .mat-tree-node.selected[_ngcontent-%COMP%]{background-color:#c9d2de}.treeContainer[_ngcontent-%COMP%]   .column.treeColumn.close-data-column[_ngcontent-%COMP%]{width:calc(100% - 50px)}.treeContainer[_ngcontent-%COMP%]   .column.dataColumn[_ngcontent-%COMP%]{width:40%;overflow:hidden}.treeContainer[_ngcontent-%COMP%]   .column.dataColumn[_ngcontent-%COMP%]   .mat-tree-node[_ngcontent-%COMP%]{border-bottom:1px solid rgba(33,33,33,.3)}.treeContainer[_ngcontent-%COMP%]   .column.dataColumn[_ngcontent-%COMP%]   .mat-tree-node[_ngcontent-%COMP%]:last-child{border-bottom:none}.treeContainer[_ngcontent-%COMP%]   .column.dataColumn[_ngcontent-%COMP%]   .mat-tree-node.active[_ngcontent-%COMP%], .treeContainer[_ngcontent-%COMP%]   .column.dataColumn[_ngcontent-%COMP%]   .mat-tree-node.selected[_ngcontent-%COMP%]{background-color:#c9d2de}.treeContainer[_ngcontent-%COMP%]   .column.dataColumn.results[_ngcontent-%COMP%]{border-left:1px solid rgba(33,33,33,.3)}.treeContainer[_ngcontent-%COMP%]   .column.dataColumn.close-data-column[_ngcontent-%COMP%]{width:140px}.treeContainer[_ngcontent-%COMP%]   .column.dataColumn[_ngcontent-%COMP%]   .toggle-data[_ngcontent-%COMP%]{margin-top:-1px;cursor:pointer}.treeContainer[_ngcontent-%COMP%]   .column.dataColumn[_ngcontent-%COMP%]   .shadow[_ngcontent-%COMP%]{align-items:center;display:flex;height:100%;width:100%}.treeContainer[_ngcontent-%COMP%]   .column.dataColumn[_ngcontent-%COMP%]   .shadow[_ngcontent-%COMP%]   .data[_ngcontent-%COMP%]{display:block;float:left;height:100%;width:calc(100% - 50px)}.treeContainer[_ngcontent-%COMP%]   .column.dataColumn[_ngcontent-%COMP%]   .shadow[_ngcontent-%COMP%]   .moreInfo[_ngcontent-%COMP%]{border-radius:18px;display:flex;float:right;height:36px;margin:auto;min-width:36px;padding:0 6px}.treeContainer[_ngcontent-%COMP%]   .column.dataColumn[_ngcontent-%COMP%]   .shadow[_ngcontent-%COMP%]   .moreInfo[_ngcontent-%COMP%]:hover{background-color:rgba(33,33,33,.1)}.treeContainer[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]   .mat-tree[_ngcontent-%COMP%]{display:table;overflow-x:auto;width:100%}.treeContainer[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]   .mat-tree[_ngcontent-%COMP%]   .mat-tree-node[_ngcontent-%COMP%]{height:47px;min-height:auto;width:auto}.treeContainer[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]   .mat-tree[_ngcontent-%COMP%]   .mat-tree-node[_ngcontent-%COMP%]   .expand[_ngcontent-%COMP%]{padding:2px;width:24px;flex-shrink:0}.treeContainer[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]   .mat-tree[_ngcontent-%COMP%]   .mat-tree-node[_ngcontent-%COMP%]   .expand[_ngcontent-%COMP%]   .mat-button[_ngcontent-%COMP%]{min-width:18px;padding:0}.treeContainer[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]   .mat-tree[_ngcontent-%COMP%]   .mat-tree-node[_ngcontent-%COMP%]   .expand[_ngcontent-%COMP%]   .mat-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{font-size:14px;line-height:22px}.treeContainer[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]   .mat-tree[_ngcontent-%COMP%]   .mat-tree-node[_ngcontent-%COMP%]   .haplo-tree-item[_ngcontent-%COMP%]{display:flex;align-items:center}"],changeDetection:0}),t})();function UO(t,e){1&t&&i.Pb(0,"mat-spinner")}function BO(t,e){if(1&t&&(i.Ub(0,"mat-option",20),i.Fc(1),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t),i.Db(1),i.Hc(" ",t," ")}}function VO(t,e){1&t&&(i.Ub(0,"mat-hint",21),i.Fc(1," No Results "),i.Tb())}function HO(t,e){1&t&&(i.Ub(0,"mat-hint",21),i.Fc(1," No Results "),i.Tb())}function zO(t,e){if(1&t&&(i.Ub(0,"mat-hint"),i.Fc(1),i.hc(2,"number"),i.Tb()),2&t){const t=i.gc(3).$implicit,e=i.gc();i.Db(1),i.Ic(" ",i.ic(2,2,t.selectedItems.length)," Results, ",t.searchFoundOnBranch>e.maxItems?e.maxItems+"+":t.searchFoundOnBranch," on branch ")}}function YO(t,e){if(1&t&&(i.Ub(0,"mat-hint"),i.Fc(1),i.hc(2,"number"),i.Tb()),2&t){const t=i.gc(3).$implicit;i.Db(1),i.Ic(" ",i.ic(2,2,t.selectedItems.length)," Results on ",t.searchFoundRoots," ")}}function $O(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",24),i.cc("click",function(){return i.xc(t),i.gc(4).clearSearch()}),i.Ub(1,"mat-icon"),i.Fc(2,"close"),i.Tb(),i.Tb()}}function WO(t,e){if(1&t){const t=i.Vb();i.Ub(0,"mat-form-field",11),i.Ub(1,"mat-label"),i.Fc(2,"Search by Country"),i.Tb(),i.Ub(3,"input",22),i.cc("ngModelChange",function(e){return i.xc(t),i.gc(3).search.countries=e}),i.Tb(),i.Ec(4,HO,2,0,"mat-hint",13),i.Ec(5,zO,3,4,"mat-hint",0),i.Ec(6,YO,3,4,"mat-hint",0),i.Ec(7,$O,3,0,"button",23),i.Tb()}if(2&t){i.gc();const t=i.tc(24),e=i.gc().$implicit,n=i.gc();i.Db(3),i.mc("formControl",n.autoControl)("matAutocomplete",t)("ngModel",n.search.countries),i.Db(1),i.mc("ngIf",e.countryNotFound),i.Db(1),i.mc("ngIf",e.searchFoundOnBranch>0),i.Db(1),i.mc("ngIf",e.selectedItems&&0===e.searchFoundOnBranch),i.Db(1),i.mc("ngIf",n.search.countries)}}function KO(t,e){1&t&&(i.Ub(0,"mat-hint",21),i.Fc(1," No Results "),i.Tb())}function qO(t,e){if(1&t&&(i.Ub(0,"mat-hint"),i.Fc(1),i.hc(2,"number"),i.Tb()),2&t){const t=i.gc(3).$implicit,e=i.gc();i.Db(1),i.Ic(" ",i.ic(2,2,t.selectedItems.length)," Results, ",t.searchFoundOnBranch>e.maxItems?e.maxItems+"+":t.searchFoundOnBranch," on branch ")}}function GO(t,e){if(1&t&&(i.Ub(0,"mat-hint"),i.Fc(1),i.hc(2,"number"),i.Tb()),2&t){const t=i.gc(3).$implicit;i.Db(1),i.Ic(" ",i.ic(2,2,t.selectedItems.length)," Results on ",t.searchFoundRoots," ")}}function QO(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",24),i.cc("click",function(){return i.xc(t),i.gc(4).clearSearch()}),i.Ub(1,"mat-icon"),i.Fc(2,"close"),i.Tb(),i.Tb()}}function XO(t,e){if(1&t){const t=i.Vb();i.Ub(0,"mat-form-field",11),i.Ub(1,"mat-label"),i.Fc(2,"Search by Surname"),i.Tb(),i.Ub(3,"input",12),i.cc("keyup.enter",function(e){return i.xc(t),i.gc(3).onSurnameSearchChange(e.target.value)})("ngModelChange",function(e){return i.xc(t),i.gc(3).search.surnames=e}),i.Tb(),i.Ec(4,KO,2,0,"mat-hint",13),i.Ec(5,qO,3,4,"mat-hint",0),i.Ec(6,GO,3,4,"mat-hint",0),i.Ec(7,QO,3,0,"button",23),i.Tb()}if(2&t){const t=i.gc(2).$implicit,e=i.gc();i.Db(3),i.mc("ngModel",e.search.surnames),i.Db(1),i.mc("ngIf",t.surnameNotFound),i.Db(1),i.mc("ngIf",t.searchFoundOnBranch>0),i.Db(1),i.mc("ngIf",t.selectedItems&&0===t.searchFoundOnBranch),i.Db(1),i.mc("ngIf",e.search.surnames)}}function ZO(t,e){1&t&&(i.Ub(0,"mat-hint",21),i.Fc(1," No Results "),i.Tb())}function JO(t,e){if(1&t&&(i.Ub(0,"mat-hint"),i.Fc(1),i.hc(2,"number"),i.Tb()),2&t){const t=i.gc(3).$implicit,e=i.gc();i.Db(1),i.Ic(" ",i.ic(2,2,t.selectedItems.length)," Results, ",t.searchFoundOnBranch>e.maxItems?e.maxItems+"+":t.searchFoundOnBranch," on branch ")}}function tx(t,e){if(1&t&&(i.Ub(0,"mat-hint"),i.Fc(1),i.hc(2,"number"),i.Tb()),2&t){const t=i.gc(3).$implicit;i.Db(1),i.Ic(" ",i.ic(2,2,t.selectedItems.length)," Results on ",t.searchFoundRoots," ")}}function ex(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",24),i.cc("click",function(){return i.xc(t),i.gc(4).clearSearch()}),i.Ub(1,"mat-icon"),i.Fc(2,"close"),i.Tb(),i.Tb()}}function nx(t,e){if(1&t){const t=i.Vb();i.Ub(0,"mat-form-field",11),i.Ub(1,"mat-label"),i.Fc(2,"Search by Variant"),i.Tb(),i.Ub(3,"input",12),i.cc("keyup.enter",function(e){return i.xc(t),i.gc(3).onVariantSearchChange(e.target.value)})("ngModelChange",function(e){return i.xc(t),i.gc(3).search.variants=e}),i.Tb(),i.Ec(4,ZO,2,0,"mat-hint",13),i.Ec(5,JO,3,4,"mat-hint",0),i.Ec(6,tx,3,4,"mat-hint",0),i.Ec(7,ex,3,0,"button",23),i.Tb()}if(2&t){const t=i.gc(2).$implicit,e=i.gc();i.Db(3),i.mc("ngModel",e.search.variants),i.Db(1),i.mc("ngIf",t.variantNotFound),i.Db(1),i.mc("ngIf",t.searchFoundOnBranch>0),i.Db(1),i.mc("ngIf",t.selectedItems&&0===t.searchFoundOnBranch),i.Db(1),i.mc("ngIf",e.search.variants)}}function ix(t,e){if(1&t&&(i.Ub(0,"mat-option",20),i.Ub(1,"div",25),i.Fc(2),i.Tb(),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t),i.Db(2),i.Gc(t)}}function sx(t,e){if(1&t&&(i.Ub(0,"a",26,27),i.Ub(2,"span",28),i.Fc(3),i.Tb(),i.Tb()),2&t){const t=e.$implicit,n=i.tc(1);i.mc("routerLink",t)("active",n.isActive),i.Db(3),i.Gc(t)}}function rx(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",3),i.Ub(1,"div",4),i.Ub(2,"div",5),i.Ub(3,"mat-form-field",6),i.Ub(4,"mat-label"),i.Fc(5,"View by"),i.Tb(),i.Ub(6,"mat-select",7),i.cc("valueChange",function(e){return i.xc(t),i.gc().$implicit.view=e})("selectionChange",function(e){return i.xc(t),i.gc(2).changeActiveView(e)}),i.Ec(7,BO,2,2,"mat-option",8),i.Tb(),i.Tb(),i.Tb(),i.Ub(8,"div",9),i.Ub(9,"div",10),i.Ub(10,"mat-icon"),i.Fc(11,"search"),i.Tb(),i.Ub(12,"mat-form-field",11),i.Ub(13,"mat-label"),i.Fc(14,"Go to Branch Name"),i.Tb(),i.Ub(15,"input",12),i.cc("keyup.enter",function(e){return i.xc(t),i.gc(2).onSearchChange(e.target.value)})("ngModelChange",function(e){return i.xc(t),i.gc(2).search.name=e}),i.Tb(),i.Ec(16,VO,2,0,"mat-hint",13),i.Tb(),i.Tb(),i.Ub(17,"div",10),i.Ub(18,"mat-icon"),i.Fc(19,"search"),i.Tb(),i.Ec(20,WO,8,7,"mat-form-field",14),i.Ec(21,XO,8,5,"mat-form-field",14),i.Ec(22,nx,8,5,"mat-form-field",14),i.Tb(),i.Tb(),i.Tb(),i.Ub(23,"mat-autocomplete",15,16),i.cc("optionSelected",function(e){return i.xc(t),i.gc(2).onCountrySearchChange(e.option.value)}),i.Ec(25,ix,3,2,"mat-option",8),i.hc(26,"async"),i.Tb(),i.Ub(27,"div",17),i.Ub(28,"nav",18),i.Ec(29,sx,4,3,"a",19),i.Tb(),i.Tb(),i.Tb()}if(2&t){const t=i.gc().$implicit,e=i.gc();i.Db(6),i.mc("value",t.view),i.Db(1),i.mc("ngForOf",e.viewOptions),i.Db(8),i.mc("ngModel",e.search.name),i.Db(1),i.mc("ngIf",t.nameNotFound),i.Db(4),i.mc("ngIf",t.view===e.countries),i.Db(1),i.mc("ngIf",t.view===e.surnames),i.Db(1),i.mc("ngIf",t.view===e.variants),i.Db(3),i.mc("ngForOf",i.ic(26,10,e.filteredCountries$)),i.Db(3),i.mc("disableRipple",!0),i.Db(1),i.mc("ngForOf",e.rootNames)}}function ox(t,e){1&t&&i.Pb(0,"router-outlet")}function ax(t,e){1&t&&(i.Ub(0,"div",29),i.Fc(1," van Oven M, Kayser M. 2009. Updated comprehensive phylogenetic tree of global human mitochondrial DNA variation. Hum Mutat 30(2):E386-E394. "),i.Ub(2,"a",30),i.Fc(3,"http://www.phylotree.org"),i.Tb(),i.Tb())}function lx(t,e){if(1&t&&(i.Ub(0,"div"),i.Ec(1,UO,1,0,"mat-spinner",0),i.Ec(2,rx,30,12,"div",1),i.Ec(3,ox,1,0,"router-outlet",0),i.Ec(4,ax,4,0,"div",2),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",t.isLoading),i.Db(1),i.mc("ngIf",!t.isLoading),i.Db(1),i.mc("ngIf",!t.isLoading),i.Db(1),i.mc("ngIf",n.tree===n.mtTree)}}let cx=(()=>{class t{constructor(t){this.store=t,this.autoControl=new X_,this.countries="Countries",this.surnames="Surnames",this.variants="Variants",this.maxItems=100,this.yTree=Ru,this.mtTree=Du,this.search={countries:"",surnames:"",variants:"",name:""},this.store$=Is(this.store.select(ah),this.store.select(lh),this.store.select(ch),this.store.select(uh),this.store.select(hh),this.store.select(dh),this.store.select(ph),this.store.select(bh),this.store.select(vh),this.store.select(gh),this.store.select(xh),(t,e,n,i,s,r,o,a,l,c)=>(this.filteredCountries$=this.autoControl.valueChanges.pipe(Object(Ti.a)(t=>c.filter(e=>e.toLowerCase().includes(t.toLowerCase())))),{isLoading:t,searchFoundOnBranch:e,searchFoundRoots:n.length>10?"other branches":n.join(","),nameNotFound:i,countryNotFound:s,surnameNotFound:r,variantNotFound:o,view:a,selectedItems:l?Object.keys(l):null,allCountries:c})),this.roots$=this.store.select(mh).subscribe(t=>this.roots=t),this.nodes$=this.store.select(fh).subscribe(t=>this.nodes=t),this.rootNames$=this.store.select(_h).subscribe(t=>this.rootNames=t),this.tree$=this.store.select(xh).subscribe(t=>{this.tree=t,this.viewOptions=t==Du?["Countries","Variants"]:["Countries","Surnames","Variants"],this.title=t==Du?"mtDNA Haplotree":"Y-DNA Haplotree",this.store.dispatch(new Nu("Countries"))})}ngOnInit(){this.store.dispatch(new Ku),this.store.dispatch(new Lu(this.tree))}ngOnDestroy(){this.roots$.unsubscribe(),this.nodes$.unsubscribe(),this.rootNames$.unsubscribe(),this.tree$.unsubscribe()}clearSearch(){this.search={countries:"",surnames:"",variants:"",name:""},this.store.dispatch(new Ku)}changeActiveView(t){this.store.dispatch(new Nu(t.value))}findNodeByName(t){const e=Object.keys(this.nodes).map(t=>this.nodes[t]).filter(e=>e.name.toUpperCase()===t.toUpperCase());return 0===e.length?null:e[0]}onCountrySearchChange(t){const e=Object.keys(this.nodes).map(t=>this.nodes[t]).filter(e=>{return(n=e).countryCounts&&n.countryCounts.filter(e=>e.name===t).length>0;var n});this.store.dispatch(e.length>0?new Vu(e):new Hu)}onSurnameSearchChange(t){const e=Object.keys(this.nodes).map(t=>this.nodes[t]).filter(e=>{return(n=e).surnames&&n.surnames.filter(e=>e.surname.toLowerCase().includes(t.toLowerCase())).length>0;var n});this.store.dispatch(e.length>0?new zu(e):new Yu)}onVariantSearchChange(t){const e=Object.keys(this.nodes).map(t=>this.nodes[t]).filter(e=>{return!!(n=e).variants&&n.variants.map(t=>t.variant.toUpperCase()).includes(t.toUpperCase());var n});this.store.dispatch(e.length>0?new $u(e):new Wu)}onSearchChange(t){this.store.dispatch(new Gu);const e=this.findNodeByName(t);this.store.dispatch(null!=e?new Uu({tree:this.tree,root:e.artificialRoot||e.root,name:e.name}):new Bu),this.store.dispatch(new Qu)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(fi.i))},t.\u0275cmp=i.Ib({type:t,selectors:[["haplo-tree-root-tabs"]],decls:2,vars:3,consts:[[4,"ngIf"],["class","navBarContainerRootTabs","ftdnaSticky","",4,"ngIf"],["class","mtCredit",4,"ngIf"],["ftdnaSticky","",1,"navBarContainerRootTabs"],["fxLayout","row","fxLayoutAlign","space-between start",1,"tabsContainer"],[1,"formFieldContainer","view-select-container"],["appearance","fill","color","accent",1,"viewSelect","left"],[3,"value","valueChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row",1,"formFieldContainer"],["fxLayout","row",1,"search-box"],["appearance","standard","color","accent",1,"searchName"],["matInput","",3,"ngModel","keyup.enter","ngModelChange"],["class","mat-error",4,"ngIf"],["appearance","standard","class","searchName","color","accent",4,"ngIf"],[3,"optionSelected"],["auto","matAutocomplete"],[1,"navBarContainer"],["mat-tab-nav-bar","",3,"disableRipple"],["mat-tab-link","","routerLinkActive","","queryParamsHandling","merge","class","haploRootLink",3,"routerLink","active",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-error"],["matInput","",3,"formControl","matAutocomplete","ngModel","ngModelChange"],["mat-button","","matTooltip","Clear Search","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],["mat-button","","matTooltip","Clear Search","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[1,"countryText"],["mat-tab-link","","routerLinkActive","","queryParamsHandling","merge",1,"haploRootLink",3,"routerLink","active"],["rla","routerLinkActive"],[1,"inner-tab"],[1,"mtCredit"],["href","http://www.phylotree.org.","target","blank"]],template:function(t,e){1&t&&(i.Ec(0,lx,5,4,"div",0),i.hc(1,"async")),2&t&&i.mc("ngIf",i.ic(1,1,e.store$))},directives:[V,Zv,$m,qc,eu,qb,Nb,hv,U,Hm,Yy,g_,P_,rb,ry,sg,Mp,Fb,hy,cb,zp,Ev,Hb,Ma,lg,ja,Fa],pipes:[tt,et],styles:[".navBarContainerRootTabs.sticky{background-color:#fff;margin-top:49px;width:100%;z-index:1000}.view-select-container{width:200px}.mat-spinner{margin:100px auto}.tabsContainer{padding:20px 0 0 20px}.search-box{margin-left:auto;margin-right:20px}.search-box mat-icon{margin:auto}.mtCredit{border:1px solid rgba(33,33,33,.17);margin-top:24px;padding:8px}.navBarContainer{margin-bottom:-1px}.navBarContainer .mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex;height:48px}.navBarContainer .haploRootLink{min-width:0;flex:1;padding:0}.navBarContainer .haploRootLink .inner-tab{background:transparent;display:inline-block;padding:5px 15px;border-radius:3px}.navBarContainer .haploRootLink:hover .inner-tab{background-color:#cbcbcb}.navBarContainer .haploRootLink:active,.navBarContainer .haploRootLink:focus,.navBarContainer .haploRootLink:hover,.navBarContainer .haploRootLink:visited{text-decoration:none}.navBarContainer .haploRootLink.mat-tab-label-active{opacity:1}.navBarContainer .haploRootLink.mat-tab-label-active .inner-tab{color:#fff;background:#fa4616}.navBarContainer .mat-ink-bar{display:none}"],encapsulation:2,changeDetection:0}),t})(),ux=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({providers:[sd],imports:[[rt,pb,nd,aC,fb,Au,pu.withConfig({disableDefaultBps:!0},Tu),Ka.forRoot([{path:Ru,component:cx,children:[{path:":root",component:NO,data:{tree:Ru}},{path:"",redirectTo:"A",pathMatch:"full"}]},{path:Du,component:cx,children:[{path:":root",component:NO,data:{tree:Du}},{path:"",redirectTo:"L",pathMatch:"full"}]},{path:"",redirectTo:Ru,pathMatch:"full"}],{relativeLinkResolution:"legacy"}),fi.k.forFeature("public-haplo-tree",Zu),ws.forFeature(ad),pu,Wm,pC]]}),t})(),hx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.Mb({type:t,bootstrap:[gg]}),t.\u0275inj=i.Lb({providers:[{provide:il,useClass:nh},Eg,{provide:b,useValue:"/public"}],imports:[[Vt,pi,ux,Ka.forRoot([],{relativeLinkResolution:"legacy"}),fi.k.forRoot(th,{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),ws.forRoot(oh),xs.a.instrument({maxAge:25,logOnly:!0}),hl.forRoot({serializer:sl}),pu.withConfig({disableDefaultBps:!0},Tu),Au]]}),t})();Object(i.V)(),Ut().bootstrapModule(hx).catch(t=>console.log(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"},zp1y:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("l7GE"),s=n("ZUHj");function r(...t){return e=>{let n;return"function"==typeof t[t.length-1]&&(n=t.pop()),e.lift(new o(t,n))}}class o{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new a(t,this.observables,this.project))}}class a extends i.a{constructor(t,e,n){super(t),this.observables=e,this.project=n,this.toRespond=[];const i=e.length;this.values=new Array(i);for(let s=0;s<i;s++)this.toRespond.push(s);for(let r=0;r<i;r++){let t=e[r];this.add(Object(s.a)(this,t,void 0,r))}}notifyNext(t,e,n){this.values[n]=e;const i=this.toRespond;if(i.length>0){const t=i.indexOf(n);-1!==t&&i.splice(t,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},zx2A:function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return a}),n.d(e,"c",function(){return l});var i=n("7o/Q"),s=n("HDdC"),r=n("SeVD");class o extends i.a{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends i.a{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function l(t,e){if(!e.closed)return t instanceof s.a?t.subscribe(e):Object(r.a)(t)(e)}}},[[0,0]]]);
