Team:FCB-UANL/JS/scripts

(self.webpackChunksynbiofoam=self.webpackChunksynbiofoam||[]).push([[179],{255:ta=>{function er(na){return Promise.resolve().then(()=>{var gi=new Error("Cannot find module '"+na+"'");throw gi.code="MODULE_NOT_FOUND",gi})}er.keys=()=>[],er.resolve=er,er.id=255,ta.exports=er},943:(ta,er,na)=>{"use strict";function gi(n){return"function"==typeof n}let th=!1;const Gn={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else th&&console.log("RxJS: Back to a better error behavior. Thank you. <3");th=n},get useDeprecatedSynchronousErrorHandling(){return th}};function Ds(n){setTimeout(()=>{throw n},0)}const Wl={closed:!0,next(n){},error(n){if(Gn.useDeprecatedSynchronousErrorHandling)throw n;Ds(n)},complete(){}},tr=Array.isArray||(n=>n&&"number"==typeof n.length);function nh(n){return null!==n&&"object"==typeof n}const zl=(()=>{function n(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n})();class Oe{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof Oe)e.remove(this);else if(null!==e)for(let o=0;o<e.length;++o)e[o].remove(this);if(gi(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){t=o instanceof zl?F_(o.errors):[o]}}if(tr(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(nh(l))try{l.unsubscribe()}catch(c){t=t||[],c instanceof zl?t=t.concat(F_(c.errors)):t.push(c)}}}if(t)throw new zl(t)}add(t){let e=t;if(!t)return Oe.EMPTY;switch(typeof t){case"function":e=new Oe(t);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof Oe)){const s=e;e=new Oe,e._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:i}=e;if(null===i)e._parentOrParents=this;else if(i instanceof Oe){if(i===this)return e;e._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return e;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[e]:r.push(e),e}remove(t){const e=this._subscriptions;if(e){const i=e.indexOf(t);-1!==i&&e.splice(i,1)}}}var n;function F_(n){return n.reduce((t,e)=>t.concat(e instanceof zl?e.errors:e),[])}Oe.EMPTY=((n=new Oe).closed=!0,n);const ql="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class Re extends Oe{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Wl;break;case 1:if(!t){this.destination=Wl;break}if("object"==typeof t){t instanceof Re?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new L_(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new L_(this,t,e,i)}}[ql](){return this}static create(t,e,i){const r=new Re(t,e,i);return r.syncErrorThrowable=!1,r}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 L_ extends Re{constructor(t,e,i,r){super(),this._parentSubscriber=t;let s,o=this;gi(e)?s=e:e&&(s=e.next,i=e.error,r=e.complete,e!==Wl&&(o=Object.create(e),gi(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=i,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;Gn.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:i}=Gn;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):Ds(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;Ds(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);Gn.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(i){if(this.unsubscribe(),Gn.useDeprecatedSynchronousErrorHandling)throw i;Ds(i)}}__tryOrSetError(t,e,i){if(!Gn.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return Gn.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(Ds(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const ia="function"==typeof Symbol&&Symbol.observable||"@@observable";function Yl(n){return n}let Ce=(()=>{class n{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:s}=this,o=function(n,t,e){if(n){if(n instanceof Re)return n;if(n[ql])return n[ql]()}return n||t||e?new Re(n,t,e):new Re(Wl)}(e,i,r);if(o.add(s?s.call(o,this.source):this.source||Gn.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),Gn.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){Gn.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function(n){for(;n;){const{closed:t,destination:e,isStopped:i}=n;if(t||i)return!1;n=e&&e instanceof Re?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=B_(i))((r,s)=>{let o;o=this.subscribe(a=>{try{e(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[ia](){return this}pipe(...e){return 0===e.length?this:function(n){return 0===n.length?Yl:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=B_(e))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=t=>new n(t),n})();function B_(n){if(n||(n=Gn.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Or=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class H_ extends Oe{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 i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class $_ extends Re{constructor(t){super(t),this.destination=t}}let Y=(()=>{class n extends Ce{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[ql](){return new $_(this)}lift(e){const i=new j_(this,this);return i.operator=e,i}next(e){if(this.closed)throw new Or;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].next(e)}}error(e){if(this.closed)throw new Or;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].error(e);this.observers.length=0}complete(){if(this.closed)throw new Or;this.isStopped=!0;const{observers:e}=this,i=e.length,r=e.slice();for(let s=0;s<i;s++)r[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new Or;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new Or;return this.hasError?(e.error(this.thrownError),Oe.EMPTY):this.isStopped?(e.complete(),Oe.EMPTY):(this.observers.push(e),new H_(this,e))}asObservable(){const e=new Ce;return e.source=this,e}}return n.create=(t,e)=>new j_(t,e),n})();class j_ extends Y{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):Oe.EMPTY}}function Es(n){return n&&"function"==typeof n.schedule}function ge(n,t){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new $N(n,t))}}class $N{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new jN(t,this.project,this.thisArg))}}class jN extends Re{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const U_=n=>t=>{for(let e=0,i=n.length;e<i&&!t.closed;e++)t.next(n[e]);t.complete()},nr="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",G_=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function W_(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const ih=n=>{if(n&&"function"==typeof n[ia])return(n=>t=>{const e=n[ia]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)})(n);if(G_(n))return U_(n);if(W_(n))return(n=>t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,Ds),t))(n);if(n&&"function"==typeof n[nr])return(n=>t=>{const e=n[nr]();for(;;){let i;try{i=e.next()}catch(r){return t.error(r),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof e.return&&t.add(()=>{e.return&&e.return()}),t})(n);{const e=`You provided ${nh(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function rh(n,t){return new Ce(e=>{const i=new Oe;let r=0;return i.add(t.schedule(function(){r!==n.length?(e.next(n[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function Ot(n,t){return t?function(n,t){if(null!=n){if(function(n){return n&&"function"==typeof n[ia]}(n))return function(n,t){return new Ce(e=>{const i=new Oe;return i.add(t.schedule(()=>{const r=n[ia]();i.add(r.subscribe({next(s){i.add(t.schedule(()=>e.next(s)))},error(s){i.add(t.schedule(()=>e.error(s)))},complete(){i.add(t.schedule(()=>e.complete()))}}))})),i})}(n,t);if(W_(n))return function(n,t){return new Ce(e=>{const i=new Oe;return i.add(t.schedule(()=>n.then(r=>{i.add(t.schedule(()=>{e.next(r),i.add(t.schedule(()=>e.complete()))}))},r=>{i.add(t.schedule(()=>e.error(r)))}))),i})}(n,t);if(G_(n))return rh(n,t);if(function(n){return n&&"function"==typeof n[nr]}(n)||"string"==typeof n)return function(n,t){if(!n)throw new Error("Iterable cannot be null");return new Ce(e=>{const i=new Oe;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=n[nr](),i.add(t.schedule(function(){if(e.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void e.error(a)}o?e.complete():(e.next(s),this.schedule())}))})),i})}(n,t)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,t):n instanceof Ce?n:new Ce(ih(n))}class Ms extends Re{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 Ss extends Re{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function Ts(n,t){if(t.closed)return;if(n instanceof Ce)return n.subscribe(t);let e;try{e=ih(n)(t)}catch(i){t.error(i)}return e}function St(n,t,e=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(St((r,s)=>Ot(n(r,s)).pipe(ge((o,a)=>t(r,o,s,a))),e)):("number"==typeof t&&(e=t),i=>i.lift(new XN(n,e)))}class XN{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new eA(t,this.project,this.concurrent))}}class eA extends Ss{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,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 i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e)}_innerSub(t){const e=new Ms(this),i=this.destination;i.add(e);const r=Ts(t,e);r!==e&&i.add(r)}_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()}}function ra(n=Number.POSITIVE_INFINITY){return St(Yl,n)}function sa(n,t){return t?rh(n,t):new Ce(U_(n))}function Kl(...n){let t=Number.POSITIVE_INFINITY,e=null,i=n[n.length-1];return Es(i)?(e=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(t=n.pop())):"number"==typeof i&&(t=n.pop()),null===e&&1===n.length&&n[0]instanceof Ce?n[0]:ra(t)(sa(n,e))}function sh(){return function(t){return t.lift(new tA(t))}}class tA{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const r=new nA(t,i),s=e.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class nA extends Re{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:i}=this,r=t._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class z_ extends Ce{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 Oe,t.add(this.source.subscribe(new rA(this.getSubject(),this))),t.closed&&(this._connection=null,t=Oe.EMPTY)),t}refCount(){return sh()(this)}}const iA=(()=>{const n=z_.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class rA extends $_{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()}}}function lA(){return new Y}function xe(n){for(let t in n)if(n[t]===xe)return t;throw Error("Could not find renamed property on target object.")}function oh(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function he(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(he).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function ah(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const cA=xe({__forward_ref__:xe});function fe(n){return n.__forward_ref__=fe,n.toString=function(){return he(this())},n}function G(n){return Y_(n)?n():n}function Y_(n){return"function"==typeof n&&n.hasOwnProperty(cA)&&n.__forward_ref__===fe}class Rr extends Error{constructor(t,e){super(function(n,t){return`${n?`NG0${n}: `:""}${t}`}(t,e)),this.code=t}}function le(n){return"string"==typeof n?n:null==n?"":String(n)}function Kt(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():le(n)}function Ql(n,t){const e=t?` in ${t}`:"";throw new Rr("201",`No provider for ${Kt(n)} found${e}`)}function pn(n,t){null==n&&function(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function I(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function X(n){return{providers:n.providers||[],imports:n.imports||[]}}function Li(n){return K_(n,Jl)||K_(n,J_)}function K_(n,t){return n.hasOwnProperty(t)?n[t]:null}function Q_(n){return n&&(n.hasOwnProperty(ch)||n.hasOwnProperty(mA))?n[ch]:null}const Jl=xe({\u0275prov:xe}),ch=xe({\u0275inj:xe}),J_=xe({ngInjectableDef:xe}),mA=xe({ngInjectorDef:xe});var W=(()=>((W=W||{})[W.Default=0]="Default",W[W.Host=1]="Host",W[W.Self=2]="Self",W[W.SkipSelf=4]="SkipSelf",W[W.Optional=8]="Optional",W))();let uh;function ir(n){const t=uh;return uh=n,t}function Z_(n,t,e){const i=Li(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&W.Optional?null:void 0!==t?t:void Ql(he(n),"Injector")}function rr(n){return{toString:n}.toString()}var Sn=(()=>((Sn=Sn||{})[Sn.OnPush=0]="OnPush",Sn[Sn.Default=1]="Default",Sn))(),ut=(()=>((ut=ut||{})[ut.Emulated=0]="Emulated",ut[ut.None=2]="None",ut[ut.ShadowDom=3]="ShadowDom",ut))();const yA="undefined"!=typeof globalThis&&globalThis,bA="undefined"!=typeof window&&window,vA="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,CA="undefined"!=typeof global&&global,Le=yA||CA||bA||vA,Ns={},Be=[],Zl=xe({\u0275cmp:xe}),dh=xe({\u0275dir:xe}),hh=xe({\u0275pipe:xe}),X_=xe({\u0275mod:xe}),wA=xe({\u0275loc:xe}),Vi=xe({\u0275fac:xe}),oa=xe({__NG_ELEMENT_ID__:xe});let DA=0;function Ne(n){return rr(()=>{const e={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Sn.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||Be,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||ut.Emulated,id:"c",styles:n.styles||Be,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=DA++,i.inputs=iy(n.inputs,e),i.outputs=iy(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(ey):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(ty):null,i})}function ey(n){return Qt(n)||function(n){return n[dh]||null}(n)}function ty(n){return function(n){return n[hh]||null}(n)}const ny={};function ne(n){return rr(()=>{const t={type:n.type,bootstrap:n.bootstrap||Be,declarations:n.declarations||Be,imports:n.imports||Be,exports:n.exports||Be,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(ny[n.id]=n.type),t})}function iy(n,t){if(null==n)return Ns;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),e[r]=i,t&&(t[r]=s)}return e}const S=Ne;function Qt(n){return n[Zl]||null}function Tn(n,t){const e=n[X_]||null;if(!e&&!0===t)throw new Error(`Type ${he(n)} does not have '\u0275mod' property.`);return e}function mi(n){return Array.isArray(n)&&"object"==typeof n[1]}function zn(n){return Array.isArray(n)&&!0===n[1]}function gh(n){return 0!=(8&n.flags)}function nc(n){return 2==(2&n.flags)}function ic(n){return 1==(1&n.flags)}function qn(n){return null!==n.template}function IA(n){return 0!=(512&n[2])}function Vr(n,t){return n.hasOwnProperty(Vi)?n[Vi]:null}class sy{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Ee(){return oy}function oy(n){return n.type.prototype.ngOnChanges&&(n.setInput=xA),RA}function RA(){const n=ly(this),t=null==n?void 0:n.current;if(t){const e=n.previous;if(e===Ns)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function xA(n,t,e,i){const r=ly(n)||function(n,t){return n[ay]=t}(n,{previous:Ns,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[e],l=o[a];s[a]=new sy(l&&l.currentValue,t,o===Ns),n[i]=t}Ee.ngInherit=!0;const ay="__ngSimpleChanges__";function ly(n){return n[ay]||null}let yh;function tt(n){return!!n.listen}const dy={createRenderer:(n,t)=>void 0!==yh?yh:"undefined"!=typeof document?document:void 0};function dt(n){for(;Array.isArray(n);)n=n[0];return n}function In(n,t){return dt(t[n.index])}function vh(n,t){return n.data[t]}function mn(n,t){const e=t[n];return mi(e)?e:e[0]}function hy(n){return 4==(4&n[2])}function Ch(n){return 128==(128&n[2])}function or(n,t){return null==t?null:n[t]}function fy(n){n[18]=0}function wh(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const ie={lFrame:Cy(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function py(){return ie.bindingsEnabled}function T(){return ie.lFrame.lView}function Me(){return ie.lFrame.tView}function K(n){return ie.lFrame.contextLView=n,n[8]}function yt(){let n=gy();for(;null!==n&&64===n.type;)n=n.parent;return n}function gy(){return ie.lFrame.currentTNode}function _i(n,t){const e=ie.lFrame;e.currentTNode=n,e.isParent=t}function Dh(){return ie.lFrame.isParent}function Eh(){ie.lFrame.isParent=!1}function sc(){return ie.isInCheckNoChangesMode}function oc(n){ie.isInCheckNoChangesMode=n}function xs(){return ie.lFrame.bindingIndex++}function Bi(n){const t=ie.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function KA(n,t){const e=ie.lFrame;e.bindingIndex=e.bindingRootIndex=n,Mh(t)}function Mh(n){ie.lFrame.currentDirectiveIndex=n}function Sh(n){const t=ie.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function yy(){return ie.lFrame.currentQueryIndex}function Th(n){ie.lFrame.currentQueryIndex=n}function JA(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function by(n,t,e){if(e&W.SkipSelf){let r=t,s=n;for(;!(r=r.parent,null!==r||e&W.Host||(r=JA(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,n=s}const i=ie.lFrame=vy();return i.currentTNode=t,i.lView=n,!0}function ac(n){const t=vy(),e=n[1];ie.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function vy(){const n=ie.lFrame,t=null===n?null:n.child;return null===t?Cy(n):t}function Cy(n){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function wy(){const n=ie.lFrame;return ie.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Dy=wy;function lc(){const n=wy();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function Zt(){return ie.lFrame.selectedIndex}function ar(n){ie.lFrame.selectedIndex=n}function nt(){const n=ie.lFrame;return vh(n.tView,n.selectedIndex)}function cc(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e<i;e++){const s=n.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-e,o),a&&((n.contentHooks||(n.contentHooks=[])).push(e,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(e,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-e,l),c&&((n.viewHooks||(n.viewHooks=[])).push(e,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(e,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(e,u)}}function uc(n,t,e){Ey(n,t,3,e)}function dc(n,t,e,i){(3&n[2])===e&&Ey(n,t,e,i)}function Nh(n,t){let e=n[2];(3&e)===t&&(e&=2047,e+=1,n[2]=e)}function Ey(n,t,e,i){const s=null!=i?i:-1,o=t.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<o;l++)if("number"==typeof t[l+1]){if(a=t[l],null!=i&&a>=i)break}else t[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(oI(n,e,t,l),n[18]=(4294901760&n[18])+l+2),l++}function oI(n,t,e,i){const r=e[i]<0,s=e[i+1],a=n[r?-e[i]:e[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===t){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class da{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function hc(n,t,e){const i=tt(n);let r=0;for(;r<e.length;){const s=e[r];if("number"==typeof s){if(0!==s)break;r++;const o=e[r++],a=e[r++],l=e[r++];i?n.setAttribute(t,a,l,o):t.setAttributeNS(o,a,l)}else{const o=s,a=e[++r];Ih(o)?i&&n.setProperty(t,o,a):i?n.setAttribute(t,o,a):t.setAttribute(o,a),r++}}return r}function My(n){return 3===n||4===n||6===n}function Ih(n){return 64===n.charCodeAt(0)}function fc(n,t){if(null!==t&&0!==t.length)if(null===n||0===n.length)n=t.slice();else{let e=-1;for(let i=0;i<t.length;i++){const r=t[i];"number"==typeof r?e=r:0===e||Sy(n,e,r,null,-1===e||2===e?t[++i]:null)}}return n}function Sy(n,t,e,i,r){let s=0,o=n.length;if(-1===t)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===t){o=-1;break}if(a>t){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==r&&(n[s+1]=r));if(i===n[s+1])return void(n[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(n.splice(o,0,t),s=o+1),n.splice(s++,0,e),null!==i&&n.splice(s++,0,i),null!==r&&n.splice(s++,0,r)}function Ty(n){return-1!==n}function Ps(n){return 32767&n}function Fs(n,t){let e=function(n){return n>>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let kh=!0;function pc(n){const t=kh;return kh=n,t}let hI=0;function fa(n,t){const e=Rh(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,Oh(i.data,n),Oh(t,null),Oh(i.blueprint,null));const r=gc(n,t),s=n.injectorIndex;if(Ty(r)){const o=Ps(r),a=Fs(r,t),l=a[1].data;for(let c=0;c<8;c++)t[s+c]=a[o+c]|l[o+c]}return t[s+8]=r,s}function Oh(n,t){n.push(0,0,0,0,0,0,0,0,t)}function Rh(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function gc(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){const s=r[1],o=s.type;if(i=2===o?s.declTNode:1===o?r[6]:null,null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function mc(n,t,e){!function(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(oa)&&(i=e[oa]),null==i&&(i=e[oa]=hI++);const r=255&i;t.data[n+(r>>5)]|=1<<r}(n,t,e)}function Iy(n,t,e){if(e&W.Optional)return n;Ql(t,"NodeInjector")}function ky(n,t,e,i){if(e&W.Optional&&void 0===i&&(i=null),0==(e&(W.Self|W.Host))){const r=n[9],s=ir(void 0);try{return r?r.get(t,i,e&W.Optional):Z_(t,i,e&W.Optional)}finally{ir(s)}}return Iy(i,t,e)}function Oy(n,t,e,i=W.Default,r){if(null!==n){const s=function(n){if("string"==typeof n)return n.charCodeAt(0)||0;const t=n.hasOwnProperty(oa)?n[oa]:void 0;return"number"==typeof t?t>=0?255&t:gI:t}(e);if("function"==typeof s){if(!by(t,n,i))return i&W.Host?Iy(r,e,i):ky(t,e,i,r);try{const o=s(i);if(null!=o||i&W.Optional)return o;Ql(e)}finally{Dy()}}else if("number"==typeof s){let o=null,a=Rh(n,t),l=-1,c=i&W.Host?t[16][6]:null;for((-1===a||i&W.SkipSelf)&&(l=-1===a?gc(n,t):t[a+8],-1!==l&&Py(i,!1)?(o=t[1],a=Ps(l),t=Fs(l,t)):a=-1);-1!==a;){const u=t[1];if(xy(s,a,u.data)){const d=mI(a,t,e,o,i,c);if(d!==Ry)return d}l=t[a+8],-1!==l&&Py(i,t[1].data[a+8]===c)&&xy(s,a,t)?(o=u,a=Ps(l),t=Fs(l,t)):a=-1}}}return ky(t,e,i,r)}const Ry={};function gI(){return new Ls(yt(),T())}function mI(n,t,e,i,r,s){const o=t[1],a=o.data[n+8],u=_c(a,o,e,null==i?nc(a)&&kh:i!=o&&0!=(3&a.type),r&W.Host&&s===a);return null!==u?pa(t,o,u,a):Ry}function _c(n,t,e,i,r){const s=n.providerIndexes,o=t.data,a=1048575&s,l=n.directiveStart,u=s>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f<h;f++){const p=o[f];if(f<l&&e===p||f>=l&&p.type===e)return f}if(r){const f=o[l];if(f&&qn(f)&&f.type===e)return l}return null}function pa(n,t,e,i){let r=n[e];const s=t.data;if(function(n){return n instanceof da}(r)){const o=r;o.resolving&&function(n,t){throw new Rr("200",`Circular dependency in DI detected for ${n}`)}(Kt(s[e]));const a=pc(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?ir(o.injectImpl):null;by(n,i,W.Default);try{r=n[e]=o.factory(void 0,s,n,i),t.firstCreatePass&&e>=i.directiveStart&&function(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const o=oy(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),s&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s))}(e,s[e],t)}finally{null!==l&&ir(l),pc(a),o.resolving=!1,Dy()}}return r}function xy(n,t,e){return!!(e[t+(n>>5)]&1<<n)}function Py(n,t){return!(n&W.Self||n&W.Host&&t)}class Ls{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return Oy(this._tNode,this._lView,t,void 0,e)}}function xh(n){return Y_(n)?()=>{const t=xh(G(n));return t&&t()}:Vr(n)}const Bs="__parameters__";function Br(n,t,e){return rr(()=>{const i=function(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(Bs)?l[Bs]:Object.defineProperty(l,Bs,{value:[]})[Bs];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class j{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=I({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const vI=new j("AnalyzeForEntryComponents"),$s=Function;function kn(n,t){void 0===t&&(t=n);for(let e=0;e<n.length;e++){let i=n[e];Array.isArray(i)?(t===n&&(t=n.slice(0,e)),kn(i,t)):t!==n&&t.push(i)}return t}function bi(n,t){n.forEach(e=>Array.isArray(e)?bi(e,t):t(e))}function bc(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Hr(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function ur(n,t){const e=[];for(let i=0;i<n;i++)e.push(t);return e}function _n(n,t,e){let i=js(n,t);return i>=0?n[1|i]=e:(i=~i,function(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function Fh(n,t){const e=js(n,t);if(e>=0)return n[1|e]}function js(n,t){return function(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const s=i+(r-i>>1),o=n[s<<e];if(t===o)return s<<e;o>t?r=s:i=s+1}return~(r<<e)}(n,t,1)}const ya={},Vh="__NG_DI_FLAG__",Us="ngTempTokenPath",II=/\n/gm,Bh="__source",Hh=xe({provide:String,useValue:xe});let ba;function Gs(n){const t=ba;return ba=n,t}function OI(n,t=W.Default){if(void 0===ba)throw new Error("inject() must be called from an injection context");return null===ba?Z_(n,void 0,t):ba.get(n,t&W.Optional?null:void 0,t)}function C(n,t=W.Default){return(uh||OI)(G(n),t)}const $y=C;function $r(n){const t=[];for(let e=0;e<n.length;e++){const i=G(n[e]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let r,s=W.Default;for(let o=0;o<i.length;o++){const a=i[o],l=RI(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}t.push(C(r,s))}else t.push(C(i))}return t}function va(n,t){return n[Vh]=t,n.prototype[Vh]=t,n}function RI(n){return n[Vh]}function jy(n,t,e,i){const r=n[Us];throw t[Bh]&&r.unshift(t[Bh]),n.message=function(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=he(t);if(Array.isArray(t))r=t.map(he).join(" -> ");else if("object"==typeof t){let s=[];for(let o in t)if(t.hasOwnProperty(o)){let a=t[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):he(a)))}r=`{${s.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(II,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[Us]=null,n}const Ws=va(Br("Inject",n=>({token:n})),-1),ln=va(Br("Optional"),8),dr=va(Br("SkipSelf"),4);class jr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function yn(n){return n instanceof jr?n.changingThisBreaksApplicationSecurity:n}function vi(n,t){const e=function(n){return n instanceof jr&&n.getTypeName()||null}(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}const ik=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,rk=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;var He=(()=>((He=He||{})[He.NONE=0]="NONE",He[He.HTML=1]="HTML",He[He.STYLE=2]="STYLE",He[He.SCRIPT=3]="SCRIPT",He[He.URL=4]="URL",He[He.RESOURCE_URL=5]="RESOURCE_URL",He))();function Ys(n){const t=function(){const n=T();return n&&n[12]}();return t?t.sanitize(He.URL,n)||"":vi(n,"URL")?yn(n):function(n){return(n=String(n)).match(ik)||n.match(rk)?n:"unsafe:"+n}(le(n))}const ab="__ngContext__";function jt(n,t){n[ab]=t}function Kh(n){const t=function(n){return n[ab]||null}(n);return t?Array.isArray(t)?t:t.lView:null}function Sc(n){return n.ngOriginalError}function Sk(n,...t){n.error(...t)}class Ur{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),r=function(n){return n&&n.ngErrorLogger||Sk}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),i&&r(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?function(n){return n.ngDebugContext}(t)||this._findContext(Sc(t)):null}_findOriginalError(t){let e=t&&Sc(t);for(;e&&Sc(e);)e=Sc(e);return e||null}}const mb=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Le))();function _b(n){return n.ownerDocument.defaultView}function wi(n){return n instanceof Function?n():n}var bn=(()=>((bn=bn||{})[bn.Important=1]="Important",bn[bn.DashCase=2]="DashCase",bn))();function Zh(n,t){return undefined(n,t)}function Sa(n){const t=n[3];return zn(t)?t[3]:t}function Xh(n){return wb(n[13])}function ef(n){return wb(n[4])}function wb(n){for(;null!==n&&!zn(n);)n=n[4];return n}function Qs(n,t,e,i,r){if(null!=i){let s,o=!1;zn(i)?s=i:mi(i)&&(o=!0,i=i[0]);const a=dt(i);0===n&&null!==e?null==r?Nb(t,e,a):Gr(t,e,a,r||null,!0):1===n&&null!==e?Gr(t,e,a,r||null,!0):2===n?function(n,t,e){const i=Nc(n,t);i&&function(n,t,e,i){tt(n)?n.removeChild(t,e,i):t.removeChild(e)}(n,i,t,e)}(t,a,o):3===n&&t.destroyNode(a),null!=s&&function(n,t,e,i,r){const s=e[7];s!==dt(e)&&Qs(t,n,i,s,r);for(let a=10;a<e.length;a++){const l=e[a];Ta(l[1],l,n,t,i,s)}}(t,n,s,e,r)}}function nf(n,t,e){return tt(n)?n.createElement(t,e):null===e?n.createElement(t):n.createElementNS(e,t)}function Eb(n,t){const e=n[9],i=e.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,wh(r,-1)),e.splice(i,1)}function rf(n,t){if(n.length<=10)return;const e=10+t,i=n[e];if(i){const r=i[17];null!==r&&r!==n&&Eb(r,i),t>0&&(n[e-1][4]=i[4]);const s=Hr(n,10+t);!function(n,t){Ta(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Mb(n,t){if(!(256&t[2])){const e=t[11];tt(e)&&e.destroyNode&&Ta(n,t,e,3,null,null),function(n){let t=n[13];if(!t)return sf(n[1],n);for(;t;){let e=null;if(mi(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)mi(t)&&sf(t[1],t),t=t[3];null===t&&(t=n),mi(t)&&sf(t[1],t),e=t&&t[4]}t=e}}(t)}}function sf(n,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i<e.length;i+=2){const r=t[e[i]];if(!(r instanceof da)){const s=e[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=r[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(r)}finally{}}}}(n,t),function(n,t){const e=n.cleanup,i=t[7];let r=-1;if(null!==e)for(let s=0;s<e.length-1;s+=2)if("string"==typeof e[s]){const o=e[s+1],a="function"==typeof o?o(t):dt(t[o]),l=i[r=e[s+2]],c=e[s+3];"boolean"==typeof c?a.removeEventListener(e[s],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=e[s+1]];e[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();t[7]=null}}(n,t),1===t[1].type&&tt(t[11])&&t[11].destroy();const e=t[17];if(null!==e&&zn(t[3])){e!==t[3]&&Eb(e,t);const i=t[19];null!==i&&i.detachView(n)}}}function Sb(n,t,e){return function(n,t,e){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return e[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===ut.None||r===ut.Emulated)return null}return In(i,e)}(n,t.parent,e)}function Gr(n,t,e,i,r){tt(n)?n.insertBefore(t,e,i,r):t.insertBefore(e,i,r)}function Nb(n,t,e){tt(n)?n.appendChild(t,e):t.appendChild(e)}function Ab(n,t,e,i,r){null!==i?Gr(n,t,e,i,r):Nb(n,t,e)}function Nc(n,t){return tt(n)?n.parentNode(t):t.parentNode}function Ib(n,t,e){return Ob(n,t,e)}let Ob=function(n,t,e){return 40&n.type?In(n,e):null};function Ac(n,t,e,i){const r=Sb(n,i,t),s=t[11],a=Ib(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(e))for(let l=0;l<e.length;l++)Ab(s,r,e[l],a,!1);else Ab(s,r,e,a,!1)}function Ic(n,t){if(null!==t){const e=t.type;if(3&e)return In(t,n);if(4&e)return af(-1,n[t.index]);if(8&e){const i=t.child;if(null!==i)return Ic(n,i);{const r=n[t.index];return zn(r)?af(-1,r):dt(r)}}if(32&e)return Zh(t,n)()||dt(n[t.index]);{const i=xb(n,t);return null!==i?Array.isArray(i)?i[0]:Ic(Sa(n[16]),i):Ic(n,t.next)}}return null}function xb(n,t){return null!==t?n[16][6].projection[t.projection]:null}function af(n,t){const e=10+n+1;if(e<t.length){const i=t[e],r=i[1].firstChild;if(null!==r)return Ic(i,r)}return t[7]}function lf(n,t,e,i,r,s,o){for(;null!=e;){const a=i[e.index],l=e.type;if(o&&0===t&&(a&&jt(dt(a),i),e.flags|=4),64!=(64&e.flags))if(8&l)lf(n,t,e.child,i,r,s,!1),Qs(t,n,r,a,s);else if(32&l){const c=Zh(e,i);let u;for(;u=c();)Qs(t,n,r,u,s);Qs(t,n,r,a,s)}else 16&l?Fb(n,t,i,e,r,s):Qs(t,n,r,a,s);e=o?e.projectionNext:e.next}}function Ta(n,t,e,i,r,s){lf(e,i,n.firstChild,t,r,s,!1)}function Fb(n,t,e,i,r,s){const o=e[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)Qs(t,n,r,l[c],s);else lf(n,t,l,o[3],r,s,!0)}function Lb(n,t,e){tt(n)?n.setAttribute(t,"style",e):t.style.cssText=e}function cf(n,t,e){tt(n)?""===e?n.removeAttribute(t,"class"):n.setAttribute(t,"class",e):t.className=e}function Vb(n,t,e){let i=n.length;for(;;){const r=n.indexOf(t,e);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const s=t.length;if(r+s===i||n.charCodeAt(r+s)<=32)return r}e=r+1}}const Bb="ng-template";function Jk(n,t,e){let i=0;for(;i<n.length;){let r=n[i++];if(e&&"class"===r){if(r=n[i],-1!==Vb(r.toLowerCase(),t,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function Hb(n){return 4===n.type&&n.value!==Bb}function Zk(n,t,e){return t===(4!==n.type||e?n.value:Bb)}function Xk(n,t,e){let i=4;const r=n.attrs||[],s=function(n){for(let t=0;t<n.length;t++)if(My(n[t]))return t;return n.length}(r);let o=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!Zk(n,l,e)||""===l&&1===t.length){if(Yn(i))return!1;o=!0}}else{const c=8&i?l:t[++a];if(8&i&&null!==n.attrs){if(!Jk(n.attrs,c,e)){if(Yn(i))return!1;o=!0}continue}const d=eO(8&i?"class":l,r,Hb(n),e);if(-1===d){if(Yn(i))return!1;o=!0;continue}if(""!==c){let h;h=d>s?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==Vb(f,c,0)||2&i&&c!==h){if(Yn(i))return!1;o=!0}}}}else{if(!o&&!Yn(i)&&!Yn(l))return!1;if(o&&Yn(l))continue;o=!1,i=l|1&i}}return Yn(i)||o}function Yn(n){return 0==(1&n)}function eO(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let s=!1;for(;r<t.length;){const o=t[r];if(o===n)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=t[++r];for(;"string"==typeof a;)a=t[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function(n,t){let e=n.indexOf(4);if(e>-1)for(e++;e<n.length;){const i=n[e];if("number"==typeof i)return-1;if(i===t)return e;e++}return-1}(t,n)}function $b(n,t,e=!1){for(let i=0;i<t.length;i++)if(Xk(n,t[i],e))return!0;return!1}function rO(n,t){e:for(let e=0;e<t.length;e++){const i=t[e];if(n.length===i.length){for(let r=0;r<n.length;r++)if(n[r]!==i[r])continue e;return!0}}return!1}function jb(n,t){return n?":not("+t.trim()+")":t}function sO(n){let t=n[0],e=1,i=2,r="",s=!1;for(;e<n.length;){let o=n[e];if("string"==typeof o)if(2&i){const a=n[++e];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!Yn(o)&&(t+=jb(s,r),r=""),i=o,s=s||!Yn(i);e++}return""!==r&&(t+=jb(s,r)),t}const se={};function N(n){Ub(Me(),T(),Zt()+n,sc())}function Ub(n,t,e,i){if(!i)if(3==(3&t[2])){const s=n.preOrderCheckHooks;null!==s&&uc(t,s,e)}else{const s=n.preOrderHooks;null!==s&&dc(t,s,0,e)}ar(e)}function kc(n,t){return n<<17|t<<2}function Kn(n){return n>>17&32767}function uf(n){return 2|n}function Hi(n){return(131068&n)>>2}function df(n,t){return-131069&n|t<<2}function hf(n){return 1|n}function Xb(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const r=e[i],s=e[i+1];if(-1!==s){const o=n.data[s];Th(r),o.contentQueries(2,t[s],s)}}}function Na(n,t,e,i,r,s,o,a,l,c){const u=t.blueprint.slice();return u[0]=r,u[2]=140|i,fy(u),u[3]=u[15]=n,u[8]=e,u[10]=o||n&&n[10],u[11]=a||n&&n[11],u[12]=l||n&&n[12]||null,u[9]=c||n&&n[9]||null,u[6]=s,u[16]=2==t.type?n[16]:u,u}function Js(n,t,e,i,r){let s=n.data[t];if(null===s)s=function(n,t,e,i,r){const s=gy(),o=Dh(),l=n.data[t]=function(n,t,e,i,r,s){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,e,t,i,r);return null===n.firstChild&&(n.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(n,t,e,i,r),ie.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=e,s.value=i,s.attrs=r;const o=function(){const n=ie.lFrame,t=n.currentTNode;return n.isParent?t:t.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return _i(s,!0),s}function Zs(n,t,e,i){if(0===e)return-1;const r=t.length;for(let s=0;s<e;s++)t.push(i),n.blueprint.push(i),n.data.push(null);return r}function Aa(n,t,e){ac(t);try{const i=n.viewQuery;null!==i&&Nf(1,i,e);const r=n.template;null!==r&&ev(n,t,r,1,e),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&Xb(n,t),n.staticViewQueries&&Nf(2,n.viewQuery,e);const s=n.components;null!==s&&function(n,t){for(let e=0;e<t.length;e++)VO(n,t[e])}(t,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{t[2]&=-5,lc()}}function Xs(n,t,e,i){const r=t[2];if(256==(256&r))return;ac(t);const s=sc();try{fy(t),function(n){ie.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==e&&ev(n,t,e,2,i);const o=3==(3&r);if(!s)if(o){const c=n.preOrderCheckHooks;null!==c&&uc(t,c,null)}else{const c=n.preOrderHooks;null!==c&&dc(t,c,0,null),Nh(t,0)}if(function(n){for(let t=Xh(n);null!==t;t=ef(t)){if(!t[2])continue;const e=t[9];for(let i=0;i<e.length;i++){const r=e[i],s=r[3];0==(1024&r[2])&&wh(s,1),r[2]|=1024}}}(t),function(n){for(let t=Xh(n);null!==t;t=ef(t))for(let e=10;e<t.length;e++){const i=t[e],r=i[1];Ch(i)&&Xs(r,i,r.template,i[8])}}(t),null!==n.contentQueries&&Xb(n,t),!s)if(o){const c=n.contentCheckHooks;null!==c&&uc(t,c)}else{const c=n.contentHooks;null!==c&&dc(t,c,1),Nh(t,1)}!function(n,t){const e=n.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const r=e[i];if(r<0)ar(~r);else{const s=r,o=e[++i],a=e[++i];KA(o,s),a(2,t[s])}}}finally{ar(-1)}}(n,t);const a=n.components;null!==a&&function(n,t){for(let e=0;e<t.length;e++)LO(n,t[e])}(t,a);const l=n.viewQuery;if(null!==l&&Nf(2,l,i),!s)if(o){const c=n.viewCheckHooks;null!==c&&uc(t,c)}else{const c=n.viewHooks;null!==c&&dc(t,c,2),Nh(t,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),s||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,wh(t[3],-1))}finally{lc()}}function yO(n,t,e,i){const r=t[10],s=!sc(),o=hy(t);try{s&&!o&&r.begin&&r.begin(),o&&Aa(n,t,i),Xs(n,t,e,i)}finally{s&&!o&&r.end&&r.end()}}function ev(n,t,e,i,r){const s=Zt(),o=2&i;try{ar(-1),o&&t.length>20&&Ub(n,t,20,sc()),e(i,r)}finally{ar(s)}}function vf(n,t,e){!py()||(function(n,t,e,i){const r=e.directiveStart,s=e.directiveEnd;n.firstCreatePass||fa(e,t),jt(i,t);const o=e.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=qn(l);c&&OO(t,e,l);const u=pa(t,n,a,e);jt(u,t),null!==o&&RO(0,a-r,u,l,0,o),c&&(mn(e.index,t)[8]=u)}}(n,t,e,In(e,t)),128==(128&e.flags)&&function(n,t,e){const i=e.directiveStart,r=e.directiveEnd,o=e.index,a=ie.lFrame.currentDirectiveIndex;try{ar(o);for(let l=i;l<r;l++){const c=n.data[l],u=t[l];Mh(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&cv(c,u)}}finally{ar(-1),Mh(a)}}(n,t,e))}function Cf(n,t,e=In){const i=t.localNames;if(null!==i){let r=t.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?e(t,n):n[o];n[r++]=a}}}function nv(n){const t=n.tView;return null===t||t.incompleteFirstPass?n.tView=xc(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):t}function xc(n,t,e,i,r,s,o,a,l,c){const u=20+i,d=u+r,h=function(n,t){const e=[];for(let i=0;i<t;i++)e.push(i<n?null:se);return e}(u,d),f="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:e,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,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 s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function sv(n,t,e,i){const r=gv(t);null===e?r.push(i):(r.push(e),n.firstCreatePass&&mv(n).push(i,r.length-1))}function ov(n,t,e){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(e=null===e?{}:e).hasOwnProperty(i)?e[i].push(t,r):e[i]=[t,r]}return e}function vn(n,t,e,i,r,s,o,a){const l=In(t,e);let u,c=t.inputs;!a&&null!=c&&(u=c[i])?(bv(n,e,u,i,r),nc(t)&&function(n,t){const e=mn(t,n);16&e[2]||(e[2]|=64)}(e,t.index)):3&t.type&&(i=function(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),r=null!=o?o(r,t.value||"",i):r,tt(s)?s.setProperty(l,i,r):Ih(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}function wf(n,t,e,i){let r=!1;if(py()){const s=function(n,t,e){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];$b(e,o.selectors,!1)&&(r||(r=[]),mc(fa(e,t),n,o.type),qn(o)?(uv(n,e),r.unshift(o)):r.push(o))}return r}(n,t,e),o=null===i?null:{"":-1};if(null!==s){r=!0,dv(e,n.data.length,s.length);for(let u=0;u<s.length;u++){const d=s[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=Zs(n,t,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];e.mergedAttrs=fc(e.mergedAttrs,d.hostAttrs),hv(n,e,t,c,d),kO(c,d,o),null!==d.contentQueries&&(e.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(e.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e.index),l=!0),c++}!function(n,t){const i=t.directiveEnd,r=n.data,s=t.attrs,o=[];let a=null,l=null;for(let c=t.directiveStart;c<i;c++){const u=r[c],d=u.inputs,h=null===s||Hb(t)?null:xO(d,s);o.push(h),a=ov(d,c,a),l=ov(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=a,t.outputs=l}(n,e)}o&&function(n,t,e){if(t){const i=n.localNames=[];for(let r=0;r<t.length;r+=2){const s=e[t[r+1]];if(null==s)throw new Rr("301",`Export of name '${t[r+1]}' not found!`);i.push(t[r],s)}}}(e,i,o)}return e.mergedAttrs=fc(e.mergedAttrs,e.attrs),r}function lv(n,t,e,i,r,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~t.index;(function(n){let t=n.length;for(;t>0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function cv(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function uv(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function kO(n,t,e){if(e){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)e[t.exportAs[i]]=n;qn(t)&&(e[""]=n)}}function dv(n,t,e){n.flags|=1,n.directiveStart=t,n.directiveEnd=t+e,n.providerIndexes=t}function hv(n,t,e,i,r){n.data[i]=r;const s=r.factory||(r.factory=Vr(r.type)),o=new da(s,qn(r),null);n.blueprint[i]=o,e[i]=o,lv(n,t,0,i,Zs(n,e,r.hostVars,se),r)}function OO(n,t,e){const i=In(t,n),r=nv(e),s=n[10],o=Pc(n,Na(n,r,null,e.onPush?64:16,i,t,s,s.createRenderer(i,e),null,null));n[t.index]=o}function Di(n,t,e,i,r,s){const o=In(n,t);!function(n,t,e,i,r,s,o){if(null==s)tt(n)?n.removeAttribute(t,r,e):t.removeAttribute(r);else{const a=null==o?le(s):o(s,i||"",r);tt(n)?n.setAttribute(t,r,a,e):e?t.setAttributeNS(e,r,a):t.setAttribute(r,a)}}(t[11],o,s,n.value,e,i,r)}function RO(n,t,e,i,r,s){const o=s[t];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],d=o[l++];null!==a?i.setInput(e,d,c,u):e[u]=d}}}function xO(n,t){let e=null,i=0;for(;i<t.length;){const r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===e&&(e=[]),e.push(r,n[r],t[i+1])),i+=2}else i+=2;else i+=4}return e}function fv(n,t,e,i){return new Array(n,!0,!1,t,null,0,i,e,null,null)}function LO(n,t){const e=mn(t,n);if(Ch(e)){const i=e[1];80&e[2]?Xs(i,e,i.template,e[8]):e[5]>0&&Ef(e)}}function Ef(n){for(let i=Xh(n);null!==i;i=ef(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];Xs(o,s,o.template,s[8])}else s[5]>0&&Ef(s)}const e=n[1].components;if(null!==e)for(let i=0;i<e.length;i++){const r=mn(e[i],n);Ch(r)&&r[5]>0&&Ef(r)}}function VO(n,t){const e=mn(t,n),i=e[1];(function(n,t){for(let e=t.length;e<n.blueprint.length;e++)t.push(n.blueprint[e])})(i,e),Aa(i,e,e[8])}function Pc(n,t){return n[13]?n[14][4]=t:n[13]=t,n[14]=t,t}function Mf(n){for(;n;){n[2]|=64;const t=Sa(n);if(IA(n)&&!t)return n;n=t}return null}function Tf(n,t,e){const i=t[10];i.begin&&i.begin();try{Xs(n,t,n.template,e)}catch(r){throw yv(t,r),r}finally{i.end&&i.end()}}function pv(n){!function(n){for(let t=0;t<n.components.length;t++){const e=n.components[t],i=Kh(e),r=i[1];yO(r,i,r.template,e)}}(n[8])}function Nf(n,t,e){Th(0),t(n,e)}const UO=(()=>Promise.resolve(null))();function gv(n){return n[7]||(n[7]=[])}function mv(n){return n.cleanup||(n.cleanup=[])}function _v(n,t,e){return(null===n||qn(n))&&(e=function(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(e[t.index])),e[11]}function yv(n,t){const e=n[9],i=e?e.get(Ur,null):null;i&&i.handleError(t)}function bv(n,t,e,i,r){for(let s=0;s<e.length;){const o=e[s++],a=e[s++],l=t[o],c=n.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function Fc(n,t,e){let i=e?n.styles:null,r=e?n.classes:null,s=0;if(null!==t)for(let o=0;o<t.length;o++){const a=t[o];"number"==typeof a?s=a:1==s?r=ah(r,a):2==s&&(i=ah(i,a+": "+t[++o]+";"))}e?n.styles=i:n.stylesWithoutHost=i,e?n.classes=r:n.classesWithoutHost=r}const pr=new j("INJECTOR",-1);class vv{get(t,e=ya){if(e===ya){const i=new Error(`NullInjectorError: No provider for ${he(t)}!`);throw i.name="NullInjectorError",i}return e}}const Ia=new j("Set Injector scope."),ka={},zO={};let Af;function Cv(){return void 0===Af&&(Af=new vv),Af}function wv(n,t=null,e=null,i){return new YO(n,e,t||Cv(),i)}class YO{constructor(t,e,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&bi(e,a=>this.processProvider(a,t,e)),bi([t],a=>this.processInjectorType(a,[],s)),this.records.set(pr,eo(void 0,this));const o=this.records.get(Ia);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof t?null:he(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=ya,i=W.Default){this.assertNotDestroyed();const r=Gs(this),s=ir(void 0);try{if(!(i&W.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function(n){return"function"==typeof n||"object"==typeof n&&n instanceof j}(t)&&Li(t);a=l&&this.injectableDefInScope(l)?eo(If(t),ka):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&W.Self?Cv():this.parent).get(t,e=i&W.Optional&&e===ya?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[Us]=o[Us]||[]).unshift(he(t)),r)throw o;return jy(o,t,"R3InjectorError",this.source)}throw o}finally{ir(s),Gs(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,r)=>t.push(he(r))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=G(t)))return!1;let r=Q_(t);const s=null==r&&t.ngModule||void 0,o=void 0===s?t:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=Q_(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{bi(r.imports,d=>{this.processInjectorType(d,e,i)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:h,providers:f}=u[d];bi(f,p=>this.processProvider(p,h,f||Be))}}this.injectorDefTypes.add(o);const l=Vr(o)||(()=>new o);this.records.set(o,eo(l,ka));const c=r.providers;if(null!=c&&!a){const u=t;bi(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let r=to(t=G(t))?t:G(t&&t.provide);const s=function(n,t,e){return Ev(n)?eo(void 0,n.useValue):eo(function(n,t,e){let i;if(to(n)){const r=G(n);return Vr(r)||If(r)}if(Ev(n))i=()=>G(n.useValue);else if(function(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...$r(n.deps||[]));else if(function(n){return!(!n||!n.useExisting)}(n))i=()=>C(G(n.useExisting));else{const r=G(n&&(n.useClass||n.provide));if(!function(n){return!!n.deps}(n))return Vr(r)||If(r);i=()=>new r(...$r(n.deps))}return i}(n),ka)}(t);if(to(t)||!0!==t.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=eo(void 0,ka,!0),o.factory=()=>$r(o.multi),this.records.set(r,o)),r=t,o.multi.push(t)}this.records.set(r,s)}hydrate(t,e){return e.value===ka&&(e.value=zO,e.value=e.factory()),"object"==typeof e.value&&e.value&&function(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=G(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function If(n){const t=Li(n),e=null!==t?t.factory:Vr(n);if(null!==e)return e;if(n instanceof j)throw new Error(`Token ${he(n)} is missing a \u0275prov definition.`);if(n instanceof Function)return function(n){const t=n.length;if(t>0){const i=ur(t,"?");throw new Error(`Can't resolve all parameters for ${he(n)}: (${i.join(", ")}).`)}const e=function(n){const t=n&&(n[Jl]||n[J_]);if(t){const e=function(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" 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 "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new Error("unreachable")}function eo(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function Ev(n){return null!==n&&"object"==typeof n&&Hh in n}function to(n){return"function"==typeof n}const Mv=function(n,t,e){return function(n,t=null,e=null,i){const r=wv(n,t,e,i);return r._resolveInjectorDefTypes(),r}({name:e},t,n,e)};let pe=(()=>{class n{static create(e,i){return Array.isArray(e)?Mv(e,i,""):Mv(e.providers,e.parent,e.name||"")}}return n.THROW_IF_NOT_FOUND=ya,n.NULL=new vv,n.\u0275prov=I({token:n,providedIn:"any",factory:()=>C(pr)}),n.__NG_ELEMENT_ID__=-1,n})();function gR(n,t){cc(Kh(n)[1],yt())}function we(n){let t=function(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const i=[n];for(;t;){let r;if(qn(n))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(e){i.push(r);const o=n;o.inputs=Ff(n.inputs),o.declaredInputs=Ff(n.declaredInputs),o.outputs=Ff(n.outputs);const a=r.hostBindings;a&&bR(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&_R(n,l),c&&yR(n,c),oh(n.inputs,r.inputs),oh(n.declaredInputs,r.declaredInputs),oh(n.outputs,r.outputs),qn(r)&&r.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(n),a===we&&(e=!1)}}t=Object.getPrototypeOf(t)}!function(n){let t=0,e=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=fc(r.hostAttrs,e=fc(e,r.hostAttrs))}}(i)}function Ff(n){return n===Ns?{}:n===Be?[]:n}function _R(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function yR(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,s)=>{t(i,r,s),e(i,r,s)}:t}function bR(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let Lc=null;function no(){if(!Lc){const n=Le.Symbol;if(n&&n.iterator)Lc=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const i=t[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Lc=i)}}}return Lc}function Ra(n){return!!Lf(n)&&(Array.isArray(n)||!(n instanceof Map)&&no()in n)}function Lf(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function Ut(n,t,e){return!Object.is(n[t],e)&&(n[t]=e,!0)}function me(n,t,e,i){const r=T();return Ut(r,xs(),t)&&(Me(),Di(nt(),r,n,t,e,i)),me}function k(n,t,e,i,r,s,o,a){const l=T(),c=Me(),u=n+20,d=c.firstCreatePass?function(n,t,e,i,r,s,o,a,l){const c=t.consts,u=Js(t,n,4,o||null,or(c,a));wf(t,e,u,or(c,l)),cc(t,u);const d=u.tViews=xc(2,u,i,r,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(u,c,l,t,e,i,r,s,o):c.data[u];_i(d,!1);const h=l[11].createComment("");Ac(c,l,h,d),jt(h,l),Pc(l,l[u]=fv(h,l,h,d)),ic(d)&&vf(c,l,d),null!=o&&Cf(l,d,a)}function it(n){return function(n,t){return n[t]}(ie.lFrame.contextLView,20+n)}function g(n,t=W.Default){const e=T();return null===e?C(n,t):Oy(yt(),e,G(n),t)}function M(n,t,e){const i=T();return Ut(i,xs(),t)&&vn(Me(),nt(),i,n,t,i[11],e,!1),M}function jf(n,t,e,i,r){const o=r?"class":"style";bv(n,e,t.inputs[o],o,i)}function m(n,t,e,i){const r=T(),s=Me(),o=20+n,a=r[11],l=r[o]=nf(a,t,ie.lFrame.currentNamespace),c=s.firstCreatePass?function(n,t,e,i,r,s,o){const a=t.consts,c=Js(t,n,2,r,or(a,s));return wf(t,e,c,or(a,o)),null!==c.attrs&&Fc(c,c.attrs,!1),null!==c.mergedAttrs&&Fc(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(o,s,r,0,t,e,i):s.data[o];_i(c,!0);const u=c.mergedAttrs;null!==u&&hc(a,l,u);const d=c.classes;null!==d&&cf(a,l,d);const h=c.styles;null!==h&&Lb(a,l,h),64!=(64&c.flags)&&Ac(s,r,l,c),0===ie.lFrame.elementDepthCount&&jt(l,r),ie.lFrame.elementDepthCount++,ic(c)&&(vf(s,r,c),function(n,t,e){if(gh(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s<r;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,e[s],s)}}}(s,c,r)),null!==i&&Cf(r,c)}function _(){let n=yt();Dh()?Eh():(n=n.parent,_i(n,!1));const t=n;ie.lFrame.elementDepthCount--;const e=Me();e.firstCreatePass&&(cc(e,n),gh(n)&&e.queries.elementEnd(n)),null!=t.classesWithoutHost&&function(n){return 0!=(16&n.flags)}(t)&&jf(e,t,T(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(n){return 0!=(32&n.flags)}(t)&&jf(e,t,T(),t.stylesWithoutHost,!1)}function y(n,t,e,i){m(n,t,e,i),_()}function ke(){return T()}function Pa(n){return!!n&&"function"==typeof n.then}const Hc=function(n){return!!n&&"function"==typeof n.subscribe};function x(n,t,e,i){const r=T(),s=Me(),o=yt();return d0(s,r,r[11],o,n,t,!!e,i),x}function Wf(n,t){const e=yt(),i=T(),r=Me();return d0(r,i,_v(Sh(r.data),e,i),e,n,t,!1),Wf}function d0(n,t,e,i,r,s,o,a){const l=ic(i),u=n.firstCreatePass&&mv(n),d=t[8],h=gv(t);let f=!0;if(3&i.type||a){const b=In(i,t),D=a?a(b):b,w=h.length,R=a?P=>a(dt(P[i.index])):i.index;if(tt(e)){let P=null;if(!a&&l&&(P=function(n,t,e,i){const r=n.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===e&&r[s+1]===i){const a=t[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,t,r,i.index)),null!==P)(P.__ngLastListenerFn__||P).__ngNextListenerFn__=s,P.__ngLastListenerFn__=s,f=!1;else{s=zf(i,t,d,s,!1);const Q=e.listen(D,r,s);h.push(s,Q),u&&u.push(r,R,w,w+1)}}else s=zf(i,t,d,s,!0),D.addEventListener(r,s,o),h.push(s),u&&u.push(r,R,w,o)}else s=zf(i,t,d,s,!1);const p=i.outputs;let v;if(f&&null!==p&&(v=p[r])){const b=v.length;if(b)for(let D=0;D<b;D+=2){const Ae=t[v[D]][v[D+1]].subscribe(s),Fe=h.length;h.push(s,Ae),u&&u.push(r,i.index,Fe,-(Fe+1))}}}function h0(n,t,e,i){try{return!1!==e(i)}catch(r){return yv(n,r),!1}}function zf(n,t,e,i,r){return function s(o){if(o===Function)return i;const a=2&n.flags?mn(n.index,t):t;0==(32&t[2])&&Mf(a);let l=h0(t,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=h0(t,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function O(n=1){return function(n){return(ie.lFrame.contextLView=function(n,t){for(;n>0;)t=t[15],n--;return t}(n,ie.lFrame.contextLView))[8]}(n)}function ex(n,t){let e=null;const i=function(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r<t.length;r++){const s=t[r];if("*"!==s){if(null===i?$b(n,s,!0):rO(i,s))return r}else e=r}return e}function C0(n,t,e,i,r){const s=n[e+1],o=null===t;let a=i?Kn(s):Hi(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];ix(n[a],t)&&(l=!0,n[a+1]=i?hf(u):uf(u)),a=i?Kn(u):Hi(u)}l&&(n[e+1]=i?uf(s):hf(s))}function ix(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&js(n,t)>=0}const vt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function w0(n){return n.substring(vt.key,vt.keyEnd)}function D0(n,t){const e=vt.textEnd;return e===t?-1:(t=vt.keyEnd=function(n,t,e){for(;t<e&&n.charCodeAt(t)>32;)t++;return t}(n,vt.key=t,e),po(n,t,e))}function po(n,t,e){for(;t<e&&n.charCodeAt(t)<=32;)t++;return t}function gr(n,t,e){return ei(n,t,e,!1),gr}function te(n,t){return ei(n,t,null,!0),te}function Xn(n){!function(n,t,e,i){const r=Me(),s=Bi(2);r.firstUpdatePass&&A0(r,null,s,i);const o=T();if(e!==se&&Ut(o,s,e)){const a=r.data[Zt()];if(R0(a,i)&&!N0(r,s)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=ah(l,e||"")),jf(r,a,o,e,i)}else!function(n,t,e,i,r,s,o,a){r===se&&(r=Be);let l=0,c=0,u=0<r.length?r[0]:null,d=0<s.length?s[0]:null;for(;null!==u||null!==d;){const h=l<r.length?r[l+1]:void 0,f=c<s.length?s[c+1]:void 0;let v,p=null;u===d?(l+=2,c+=2,h!==f&&(p=d,v=f)):null===d||null!==u&&u<d?(l+=2,p=u):(c+=2,p=d,v=f),null!==p&&k0(n,t,e,i,p,v,o,a),u=l<r.length?r[l]:null,d=c<s.length?s[c]:null}}(r,a,o,o[11],o[s+1],o[s+1]=function(n,t,e){if(null==e||""===e)return Be;const i=[],r=yn(e);if(Array.isArray(r))for(let s=0;s<r.length;s++)n(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&n(i,s,r[s]);else"string"==typeof r&&t(i,r);return i}(n,t,e),i,s)}}(_n,Ti,n,!0)}function Ti(n,t){for(let e=function(n){return function(n){vt.key=0,vt.keyEnd=0,vt.value=0,vt.valueEnd=0,vt.textEnd=n.length}(n),D0(n,po(n,0,vt.textEnd))}(t);e>=0;e=D0(t,e))_n(n,w0(t),!0)}function ei(n,t,e,i){const r=T(),s=Me(),o=Bi(2);s.firstUpdatePass&&A0(s,n,o,i),t!==se&&Ut(r,o,t)&&k0(s,s.data[Zt()],r,r[11],n,r[o+1]=function(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=he(yn(n)))),n}(t,e),i,o)}function N0(n,t){return t>=n.expandoStartIndex}function A0(n,t,e,i){const r=n.data;if(null===r[e+1]){const s=r[Zt()],o=N0(n,e);R0(s,i)&&null===t&&!o&&(t=!1),t=function(n,t,e,i){const r=Sh(n);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=Fa(e=Yf(null,n,t,e,i),t.attrs,i),s=null);else{const o=t.directiveStylingLast;if(-1===o||n[o]!==r)if(e=Yf(r,n,t,e,i),null===s){let l=function(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==Hi(i))return n[Kn(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=Yf(null,n,t,l[1],i),l=Fa(l,t.attrs,i),function(n,t,e,i){n[Kn(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else s=function(n,t,e){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<r;s++)i=Fa(i,n[s].hostAttrs,e);return Fa(i,t.attrs,e)}(n,t,i)}return void 0!==s&&(i?t.residualClasses=s:t.residualStyles=s),e}(r,s,t,i),function(n,t,e,i,r,s){let o=s?t.classBindings:t.styleBindings,a=Kn(o),l=Hi(o);n[i]=e;let u,c=!1;if(Array.isArray(e)){const d=e;u=d[1],(null===u||js(d,u)>0)&&(c=!0)}else u=e;if(r)if(0!==l){const h=Kn(n[a+1]);n[i+1]=kc(h,a),0!==h&&(n[h+1]=df(n[h+1],i)),n[a+1]=function(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=kc(a,0),0!==a&&(n[a+1]=df(n[a+1],i)),a=i;else n[i+1]=kc(l,0),0===a?a=i:n[l+1]=df(n[l+1],i),l=i;c&&(n[i+1]=uf(n[i+1])),C0(n,u,i,!0),C0(n,u,i,!1),function(n,t,e,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof t&&js(s,t)>=0&&(e[i+1]=hf(e[i+1]))}(t,u,n,i,s),o=kc(a,l),s?t.classBindings=o:t.styleBindings=o}(r,s,t,e,o,i)}}function Yf(n,t,e,i,r){let s=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<o&&(s=t[a],i=Fa(i,s.hostAttrs,r),s!==n);)a++;return null!==n&&(e.directiveStylingLast=a),i}function Fa(n,t,e){const i=e?1:2;let r=-1;if(null!==t)for(let s=0;s<t.length;s++){const o=t[s];"number"==typeof o?r=o:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),_n(n,o,!!e||t[++s]))}return void 0===n?null:n}function k0(n,t,e,i,r,s,o,a){if(!(3&t.type))return;const l=n.data,c=l[a+1];jc(function(n){return 1==(1&n)}(c)?O0(l,t,e,r,Hi(c),o):void 0)||(jc(s)||function(n){return 2==(2&n)}(c)&&(s=O0(l,null,e,r,a,o)),function(n,t,e,i,r){const s=tt(n);if(t)r?s?n.addClass(e,i):e.classList.add(i):s?n.removeClass(e,i):e.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:bn.DashCase;if(null==r)s?n.removeStyle(e,i,o):e.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),o|=bn.Important),s?n.setStyle(e,i,r,o):e.style.setProperty(i,r,a?"important":"")}}}(i,o,function(n,t){return dt(t[n])}(Zt(),e),r,s))}function O0(n,t,e,i,r,s){const o=null===t;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===se&&(h=d?Be:void 0);let f=d?Fh(h,i):u===i?h:void 0;if(c&&!jc(f)&&(f=Fh(l,i)),jc(f)&&(a=f,o))return a;const p=n[r+1];r=o?Kn(p):Hi(p)}if(null!==t){let l=s?t.residualClasses:t.residualStyles;null!=l&&(a=Fh(l,i))}return a}function jc(n){return void 0!==n}function R0(n,t){return 0!=(n.flags&(t?16:32))}function E(n,t=""){const e=T(),i=Me(),r=n+20,s=i.firstCreatePass?Js(i,r,1,t,null):i.data[r],o=e[r]=function(n,t){return tt(n)?n.createText(t):n.createTextNode(t)}(e[11],t);Ac(i,e,o,s),_i(s,!1)}function Rt(n,t,e){const i=T();return Ut(i,xs(),t)&&vn(Me(),nt(),i,n,t,i[11],e,!0),Rt}function Kf(n,t,e){const i=T();if(Ut(i,xs(),t)){const s=Me(),o=nt();vn(s,o,i,n,t,_v(Sh(s.data),o,i),e,!0)}return Kf}const zr=void 0;var Fx=["en",[["a","p"],["AM","PM"],zr],[["AM","PM"],zr,zr],[["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"]],zr,[["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"]],zr,[["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}",zr,"{1} 'at' {0}",zr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(n){const t=Math.floor(Math.abs(n)),e=n.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===e?1:5}];let go={};function X0(n){return n in go||(go[n]=Le.ng&&Le.ng.common&&Le.ng.common.locales&&Le.ng.common.locales[n]),go[n]}var V=(()=>((V=V||{})[V.LocaleId=0]="LocaleId",V[V.DayPeriodsFormat=1]="DayPeriodsFormat",V[V.DayPeriodsStandalone=2]="DayPeriodsStandalone",V[V.DaysFormat=3]="DaysFormat",V[V.DaysStandalone=4]="DaysStandalone",V[V.MonthsFormat=5]="MonthsFormat",V[V.MonthsStandalone=6]="MonthsStandalone",V[V.Eras=7]="Eras",V[V.FirstDayOfWeek=8]="FirstDayOfWeek",V[V.WeekendRange=9]="WeekendRange",V[V.DateFormat=10]="DateFormat",V[V.TimeFormat=11]="TimeFormat",V[V.DateTimeFormat=12]="DateTimeFormat",V[V.NumberSymbols=13]="NumberSymbols",V[V.NumberFormats=14]="NumberFormats",V[V.CurrencyCode=15]="CurrencyCode",V[V.CurrencySymbol=16]="CurrencySymbol",V[V.CurrencyName=17]="CurrencyName",V[V.Currencies=18]="Currencies",V[V.Directionality=19]="Directionality",V[V.PluralCase=20]="PluralCase",V[V.ExtraData=21]="ExtraData",V))();const Uc="en-US";let e1=Uc;function Qf(n){pn(n,"Expected localeId to be defined"),"string"==typeof n&&(e1=n.toLowerCase().replace(/_/g,"-"))}class E1{}const S1="ngComponent";class xP{resolveComponentFactory(t){throw function(n){const t=Error(`No component factory found for ${he(n)}. Did you add it to @NgModule.entryComponents?`);return t[S1]=n,t}(t)}}let tn=(()=>{class n{}return n.NULL=new xP,n})();function Yc(...n){}function yo(n,t){return new U(In(n,t))}const LP=function(){return yo(yt(),T())};let U=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=LP,n})();function T1(n){return n instanceof U?n.nativeElement:n}class Gi{}let rp=(()=>{class n{}return n.\u0275prov=I({token:n,providedIn:"root",factory:()=>null}),n})();class mr{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const N1=new mr("12.2.6");class A1{constructor(){}supports(t){return Ra(t)}create(t){return new UP(t)}}const jP=(n,t)=>t;class UP{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||jP}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex<k1(i,r,s)?e:i,a=k1(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{s||(s=[]);const c=a-r,u=l-r;if(c!=u){for(let h=0;h<c;h++){const f=h<s.length?s[h]:s[h]=0,p=f+h;u<=p&&p<c&&(s[h]=f+1)}s[o.previousIndex]=u-c}}a!==l&&t(o,a,l)}}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=[]),!Ra(t))throw new Error(`Error trying to diff '${he(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let r,s,o,e=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)s=t[a],o=this._trackByFn(a,s),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,s,o,a)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,o,a),i=!0),e=e._next}else r=0,function(n,t){if(Array.isArray(n))for(let e=0;e<n.length;e++)t(n[e]);else{const e=n[no()]();let i;for(;!(i=e.next()).done;)t(i.value)}}(t,a=>{o=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,a,o,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),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,i,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):t=this._addAfter(new GP(e,i),s,r),t}_verifyReinsertion(t,e,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),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,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new I1),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._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 I1),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 GP{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 WP{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 i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class I1{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new WP,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.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 k1(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i<e.length&&(r=e[i]),i+t+r}class O1{constructor(){}supports(t){return t instanceof Map||Lf(t)}create(){return new zP}}class zP{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||Lf(t)))throw new Error(`Error trying to diff '${he(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,(i,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._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 r=this._records.get(t);this._maybeAddToChanges(r,e);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new qP(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_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(i=>e(t[i],i))}}class qP{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 R1(){return new bo([new A1])}let bo=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||R1()),deps:n,new dr,new ln}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new Error(`Cannot find a differ supporting object '${e}' of type '${function(n){return n.name||typeof n}(e)}'`)}}return n.\u0275prov=I({token:n,providedIn:"root",factory:R1}),n})();function x1(){return new vo([new O1])}let vo=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||x1()),deps:n,new dr,new ln}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return n.\u0275prov=I({token:n,providedIn:"root",factory:x1}),n})();function Kc(n,t,e,i,r=!1){for(;null!==e;){const s=t[e.index];if(null!==s&&i.push(dt(s)),zn(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&Kc(l[1],l,c,i)}const o=e.type;if(8&o)Kc(n,t,e.child,i);else if(32&o){const a=Zh(e,t);let l;for(;l=a();)i.push(l)}else if(16&o){const a=xb(t,e);if(Array.isArray(a))i.push(...a);else{const l=Sa(t[16]);Kc(l[1],l,a,i,!0)}}e=r?e.projectionNext:e.next}return i}class ja{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 Kc(e,t,e.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}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(zn(t)){const e=t[8],i=e?e.indexOf(this):-1;i>-1&&(rf(t,i),Hr(e,i))}this._attachedToViewContainer=!1}Mb(this._lView[1],this._lView)}onDestroy(t){sv(this._lView[1],this._lView,null,t)}markForCheck(){Mf(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Tf(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(n,t,e){oc(!0);try{Tf(n,t,e)}finally{oc(!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(){this._appRef=null,function(n,t){Ta(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class KP extends ja{constructor(t){super(t),this._view=t}detectChanges(){pv(this._view)}checkNoChanges(){!function(n){oc(!0);try{pv(n)}finally{oc(!1)}}(this._view)}get context(){return null}}const JP=function(n){return function(n,t,e){if(nc(n)&&!e){const i=mn(n.index,t);return new ja(i,i)}return 47&n.type?new ja(t[16],t):null}(yt(),T(),16==(16&n))};let ct=(()=>{class n{}return n.__NG_ELEMENT_ID__=JP,n})();const eF=[new O1],nF=new bo([new A1]),iF=new vo(eF),sF=function(){return Qc(yt(),T())};let Pe=(()=>{class n{}return n.__NG_ELEMENT_ID__=sF,n})();const oF=Pe,aF=class extends oF{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=Na(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(e)),Aa(e,i,t),new ja(i)}};function Qc(n,t){return 4&n.type?new aF(t,n,yo(n,t)):null}class Ai{}class P1{}const uF=function(){return V1(yt(),T())};let Ct=(()=>{class n{}return n.__NG_ELEMENT_ID__=uF,n})();const hF=Ct,F1=class extends hF{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return yo(this._hostTNode,this._hostLView)}get injector(){return new Ls(this._hostTNode,this._hostLView)}get parentInjector(){const t=gc(this._hostTNode,this._hostLView);if(Ty(t)){const e=Fs(t,this._hostLView),i=Ps(t);return new Ls(e[1].data[i+8],e)}return new Ls(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=L1(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const r=t.createEmbeddedView(e||{});return this.insert(r,i),r}createComponent(t,e,i,r,s){const o=i||this.parentInjector;if(!s&&null==t.ngModule&&o){const l=o.get(Ai,null);l&&(s=l)}const a=t.create(o,r,void 0,s);return this.insert(a.hostView,e),a}insert(t,e){const i=t._lView,r=i[1];if(function(n){return zn(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],h=new F1(d,d[6],d[3]);h.detach(h.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function(n,t,e,i){const r=10+i,s=e.length;i>0&&(e[r-1][4]=t),i<s-10?(t[4]=e[r],bc(e,10+i,t)):(e.push(t),t[4]=null),t[3]=e;const o=t[17];null!==o&&e!==o&&function(n,t){const e=n[9];t[16]!==t[3][3][16]&&(n[2]=!0),null===e?n[9]=[t]:e.push(t)}(o,t);const a=t[19];null!==a&&a.insertView(n),t[2]|=128}(r,i,o,s);const a=af(s,o),l=i[11],c=Nc(l,o[7]);return null!==c&&function(n,t,e,i,r,s){i[0]=r,i[6]=t,Ta(n,i,e,1,r,s)}(r,o[6],l,i,c,a),t.attachToViewContainerRef(),bc(sp(o),s,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=L1(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),i=rf(this._lContainer,e);i&&(Hr(sp(this._lContainer),e),Mb(i[1],i))}detach(t){const e=this._adjustIndex(t,-1),i=rf(this._lContainer,e);return i&&null!=Hr(sp(this._lContainer),e)?new ja(i):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function L1(n){return n[8]}function sp(n){return n[8]||(n[8]=[])}function V1(n,t){let e;const i=t[n.index];if(zn(i))e=i;else{let r;if(8&n.type)r=dt(i);else{const s=t[11];r=s.createComment("");const o=In(n,t);Gr(s,Nc(s,o),r,function(n,t){return tt(n)?n.nextSibling(t):t.nextSibling}(s,o),!1)}t[n.index]=e=fv(i,t,r,n),Pc(t,e)}return new F1(e,n,t)}const Eo={};class rC extends tn{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Qt(t);return new oC(e,this.ngModule)}}function sC(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}const c2=new j("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>mb});class oC extends E1{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function(n){return n.map(sO).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return sC(this.componentDef.inputs)}get outputs(){return sC(this.componentDef.outputs)}create(t,e,i,r){const s=(r=r||this.ngModule)?function(n,t){return{get:(e,i,r)=>{const s=n.get(e,Eo,r);return s!==Eo||i===Eo?s:t.get(e,i,r)}}}(t,r.injector):t,o=s.get(Gi,dy),a=s.get(rp,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function(n,t,e){if(tt(n))return n.selectRootElement(t,e===ut.ShadowDom);let i="string"==typeof t?n.querySelector(t):t;return i.textContent="",i}(l,i,this.componentDef.encapsulation):nf(o.createRenderer(null,this.componentDef),c,function(n){const t=n.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),d=this.componentDef.onPush?576:528,h=function(n,t){return{components:[],scheduler:n||mb,clean:UO,playerHandler:t||null,flags:0}}(),f=xc(0,null,null,1,0,null,null,null,null,null),p=Na(null,f,h,d,null,null,o,l,a,s);let v,b;ac(p);try{const D=function(n,t,e,i,r,s){const o=e[1];e[20]=n;const l=Js(o,20,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(Fc(l,c,!0),null!==n&&(hc(r,n,c),null!==l.classes&&cf(r,n,l.classes),null!==l.styles&&Lb(r,n,l.styles)));const u=i.createRenderer(n,t),d=Na(e,nv(t),null,t.onPush?64:16,e[20],l,i,u,s||null,null);return o.firstCreatePass&&(mc(fa(l,e),o,t.type),uv(o,l),dv(l,e.length,1)),Pc(e,d),e[20]=d}(u,this.componentDef,p,o,l);if(u)if(i)hc(l,u,["ng-version",N1.full]);else{const{attrs:w,classes:R}=function(n){const t=[],e=[];let i=1,r=2;for(;i<n.length;){let s=n[i];if("string"==typeof s)2===r?""!==s&&t.push(s,n[++i]):8===r&&e.push(s);else{if(!Yn(r))break;r=s}i++}return{attrs:t,classes:e}}(this.componentDef.selectors[0]);w&&hc(l,u,w),R&&R.length>0&&cf(l,u,R.join(" "))}if(b=vh(f,20),void 0!==e){const w=b.projection=[];for(let R=0;R<this.ngContentSelectors.length;R++){const P=e[R];w.push(null!=P?Array.from(P):null)}}v=function(n,t,e,i,r){const s=e[1],o=function(n,t,e){const i=yt();n.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),hv(n,i,t,Zs(n,t,1,null),e));const r=pa(t,n,i.directiveStart,i);jt(r,t);const s=In(i,t);return s&&jt(s,t),r}(s,e,t);if(i.components.push(o),n[8]=o,r&&r.forEach(l=>l(o,t)),t.contentQueries){const l=yt();t.contentQueries(1,o,l.directiveStart)}const a=yt();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(ar(a.index),lv(e[1],a,0,a.directiveStart,a.directiveEnd,t),cv(t,o)),o}(D,this.componentDef,p,h,[gR]),Aa(f,p,null)}finally{lc()}return new h2(this.componentType,v,yo(b,p),p,b)}}class h2 extends class{}{constructor(t,e,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new KP(r),this.componentType=t}get injector(){return new Ls(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Mo=new Map;class g2 extends Ai{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new rC(this);const i=Tn(t),r=function(n){return n[wA]||null}(t);r&&Qf(r),this._bootstrapComponents=wi(i.bootstrap),this._r3Injector=wv(t,e,[{provide:Ai,useValue:this},{provide:tn,useValue:this.componentFactoryResolver}],he(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=pe.THROW_IF_NOT_FOUND,i=W.Default){return t===pe||t===Ai||t===pr?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class yp extends P1{constructor(t){super(),this.moduleType=t,null!==Tn(t)&&function(n){const t=new Set;!function e(i){const r=Tn(i,!0),s=r.id;null!==s&&(function(n,t,e){if(t&&t!==e)throw new Error(`Duplicate module registered for ${n} - ${he(t)} vs ${he(t.name)}`)}(s,Mo.get(s),i),Mo.set(s,i));const o=wi(r.imports);for(const a of o)t.has(a)||(t.add(a),e(a))}(n)}(t)}create(t){return new g2(this.moduleType,t)}}function bp(n){return t=>{setTimeout(n,void 0,t)}}const F=class extends Y{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var r,s,o;let a=t,l=e||(()=>null),c=i;if(t&&"object"==typeof t){const d=t;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(s=d.error)||void 0===s?void 0:s.bind(d),c=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}this.__isAsync&&(l=bp(l),a&&(a=bp(a)),c&&(c=bp(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof Oe&&t.add(u),u}};function A2(){return this._results[no()]()}class iu{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=no(),i=iu.prototype;i[e]||(i[e]=A2)}get changes(){return this._changes||(this._changes=new F)}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){const i=this;i.dirty=!1;const r=kn(t);(this._changesDetected=!function(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],s=t[i];if(e&&(r=e(r),s=e(s)),s!==r)return!1}return!0}(i._results,r,e))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;class vp{constructor(t){this.queryList=t,this.matches=null}clone(){return new vp(this.queryList)}setDirty(){this.queryList.setDirty()}}class Cp{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const i=null!==t.contentQueries?t.contentQueries[0]:e.length,r=[];for(let s=0;s<i;s++){const o=e.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new Cp(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==vC(t,e).matches&&this.queries[e].setDirty()}}class mC{constructor(t,e,i=null){this.predicate=t,this.flags=e,this.read=i}}class wp{constructor(t=[]){this.queries=t}elementStart(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].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 i=0;i<this.length;i++){const r=null!==e?e.length:0,s=this.getByIndex(i).embeddedTView(t,r);s&&(s.indexInDeclarationView=i,null!==e?e.push(s):e=[s])}return null!==e?new wp(e):null}template(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Dp{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 Dp(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(t,e,O2(e,s)),this.matchTNodeWithReadOption(t,e,_c(e,t,s,!1,!1))}else i===Pe?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,_c(e,t,i,!1,!1))}matchTNodeWithReadOption(t,e,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===U||r===Ct||r===Pe&&4&e.type)this.addMatch(e.index,-2);else{const s=_c(e,t,r,!1,!1);null!==s&&this.addMatch(e.index,s)}else this.addMatch(e.index,i)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function O2(n,t){const e=n.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===t)return e[i+1];return null}function x2(n,t,e,i){return-1===e?function(n,t){return 11&n.type?yo(n,t):4&n.type?Qc(n,t):null}(t,n):-2===e?function(n,t,e){return e===U?yo(t,n):e===Pe?Qc(t,n):e===Ct?V1(t,n):void 0}(n,t,i):pa(n,n[1],e,t)}function _C(n,t,e,i){const r=t[19].queries[i];if(null===r.matches){const s=n.data,o=e.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:x2(t,s[c],o[l+1],e.metadata.read))}r.matches=a}return r.matches}function Ep(n,t,e,i){const r=n.queries.getByIndex(e),s=r.matches;if(null!==s){const o=_C(n,t,r,e);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)i.push(o[a/2]);else{const c=s[a+1],u=t[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&Ep(h[1],h,c,i)}if(null!==u[9]){const d=u[9];for(let h=0;h<d.length;h++){const f=d[h];Ep(f[1],f,c,i)}}}}}return i}function Se(n){const t=T(),e=Me(),i=yy();Th(i+1);const r=vC(e,i);if(n.dirty&&hy(t)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?Ep(e,t,i,[]):_C(e,t,r,i);n.reset(s,T1),n.notifyOnChanges()}return!0}return!1}function ri(n,t,e){const i=Me();i.firstCreatePass&&(function(n,t,e){null===n.queries&&(n.queries=new wp),n.queries.track(new Dp(t,e))}(i,new mC(n,t,e),-1),2==(2&t)&&(i.staticViewQueries=!0)),function(n,t,e){const i=new iu(4==(4&e));sv(n,t,i,i.destroy),null===t[19]&&(t[19]=new Cp),t[19].queries.push(new vp(i))}(i,T(),t)}function Te(){return function(n,t){return n[19].queries[t].queryList}(T(),yy())}function vC(n,t){return n.queries.getByIndex(t)}function Ze(n,t){return Qc(n,t)}const tl=new j("Application Initializer");let To=(()=>{class n{constructor(e){this.appInits=e,this.resolve=Yc,this.reject=Yc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(Pa(s))e.push(s);else if(Hc(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});e.push(o)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(C(tl,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const nl=new j("AppId"),uL={provide:nl,useFactory:function(){return`${Ip()}${Ip()}${Ip()}`},deps:[]};function Ip(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const VC=new j("Platform Initializer"),No=new j("Platform ID"),BC=new j("appBootstrapListener");let ou=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const wn=new j("LocaleId"),HC=new j("DefaultCurrencyCode");class hL{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const kp=function(n){return new yp(n)},fL=kp,pL=function(n){return Promise.resolve(kp(n))},$C=function(n){const t=kp(n),i=wi(Tn(n).declarations).reduce((r,s)=>{const o=Qt(s);return o&&r.push(new oC(o)),r},[]);return new hL(t,i)},gL=$C,mL=function(n){return Promise.resolve($C(n))};let Kr=(()=>{class n{constructor(){this.compileModuleSync=fL,this.compileModuleAsync=pL,this.compileModuleAndAllComponentsSync=gL,this.compileModuleAndAllComponentsAsync=mL}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const bL=(()=>Promise.resolve(0))();function Op(n){"undefined"==typeof Zone?bL.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class ${constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new F(!1),this.onMicrotaskEmpty=new F(!1),this.onStable=new F(!1),this.onError=new F(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function(){let n=Le.requestAnimationFrame,t=Le.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(n){const t=()=>{!function(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(Le,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,xp(n),n.isCheckStableRunning=!0,Rp(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),xp(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,s,o,a)=>{try{return jC(n),e.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&t(),UC(n)}},onInvoke:(e,i,r,s,o,a,l)=>{try{return jC(n),e.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),UC(n)}},onHasTask:(e,i,r,s)=>{e.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,xp(n),Rp(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,r,s)=>(e.handleError(r,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!$.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if($.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,t,CL,Yc,Yc);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const CL={};function Rp(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function xp(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function jC(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function UC(n){n._nesting--,Rp(n)}class EL{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new F,this.onMicrotaskEmpty=new F,this.onStable=new F,this.onError=new F}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}let Pp=(()=>{class n{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.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:()=>{$.assertNotInAngularZone(),Op(()=>{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())Op(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(C($))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),GC=(()=>{class n{constructor(){this._applications=new Map,Fp.addToWindow(this)}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Fp.findTestabilityInTree(this,e,i)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class ML{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}let Fp=new ML,WC=!0,zC=!1;function Lp(){return zC=!0,WC}let si;const qC=new j("AllowMultipleToken");class Vp{constructor(t,e){this.name=t,this.token=e}}function YC(n,t,e=[]){const i=`Platform: ${t}`,r=new j(i);return(s=[])=>{let o=KC();if(!o||o.injector.get(qC,!1))if(n)n(e.concat(s).concat({provide:r,useValue:!0}));else{const a=e.concat(s).concat({provide:r,useValue:!0},{provide:Ia,useValue:"platform"});!function(n){if(si&&!si.destroyed&&!si.injector.get(qC,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");si=n.get(QC);const t=n.get(VC,null);t&&t.forEach(e=>e())}(pe.create({providers:a,name:i}))}return function(n){const t=KC();if(!t)throw new Error("No platform exists!");if(!t.injector.get(n,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function KC(){return si&&!si.destroyed?si:null}let QC=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const a=function(n,t){let e;return e="noop"===n?new EL:("zone.js"===n?void 0:n)||new $({enableLongStackTrace:Lp(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:$,useValue:a}];return a.run(()=>{const c=pe.create({providers:l,parent:this.injector,name:e.moduleType.name}),u=e.create(c),d=u.injector.get(Ur,null);if(!d)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});u.onDestroy(()=>{Bp(this._modules,u),h.unsubscribe()})}),function(n,t,e){try{const i=e();return Pa(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const h=u.injector.get(To);return h.runInitializers(),h.donePromise.then(()=>(Qf(u.injector.get(wn,Uc)||Uc),this._moduleDoBootstrap(u),u))})})}bootstrapModule(e,i=[]){const r=JC({},i);return function(n,t,e){const i=new yp(e);return Promise.resolve(i)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(e){const i=e.injector.get(Fn);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${he(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(C(pe))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();function JC(n,t){return Array.isArray(t)?t.reduce(JC,n):Object.assign(Object.assign({},n),t)}let Fn=(()=>{class n{constructor(e,i,r,s,o){this._zone=e,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=o,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 a=new Ce(c=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{c.next(this._stable),c.complete()})}),l=new Ce(c=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{$.assertNotInAngularZone(),Op(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,c.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{$.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{c.next(!1)}))});return()=>{u.unsubscribe(),d.unsubscribe()}});this.isStable=Kl(a,l.pipe(n=>sh()(function(n,t){return function(i){let r;r="function"==typeof n?n:function(){return n};const s=Object.create(i,iA);return s.source=i,s.subjectFactory=r,s}}(lA)(n))))}bootstrap(e,i){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 r;r=e instanceof E1?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(r.componentType);const s=function(n){return n.isBoundToModule}(r)?void 0:this._injector.get(Ai),a=r.create(pe.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(Pp,null),u=c&&a.injector.get(GC);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Bp(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Bp(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(BC,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(e){return new(e||n)(C($),C(pe),C(Ur),C(tn),C(To))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();function Bp(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}class lu{}class HL{}const $L={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let jL=(()=>{class n{constructor(e,i){this._compiler=e,this._config=i||$L}load(e){return this.loadAndCompile(e)}loadAndCompile(e){let[i,r]=e.split("#");return void 0===r&&(r="default"),na(255)(i).then(s=>s[r]).then(s=>tw(s,i,r)).then(s=>this._compiler.compileModuleAsync(s))}loadFactory(e){let[i,r]=e.split("#"),s="NgFactory";return void 0===r&&(r="default",s=""),na(255)(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(o=>o[r+s]).then(o=>tw(o,i,r))}}return n.\u0275fac=function(e){return new(e||n)(C(Kr),C(HL,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();function tw(n,t,e){if(!n)throw new Error(`Cannot find '${e}' in '${t}'`);return n}const ZL=YC(null,"core",[{provide:No,useValue:"unknown"},{provide:QC,deps:[pe]},{provide:GC,deps:[]},{provide:ou,deps:[]}]),iV=[{provide:Fn,useClass:Fn,deps:[$,pe,Ur,tn,To]},{provide:c2,deps:[$],useFactory:function(n){let t=[];return n.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:To,useClass:To,deps:new ln,tl},{provide:Kr,useClass:Kr,deps:[]},uL,{provide:bo,useFactory:function(){return nF},deps:[]},{provide:vo,useFactory:function(){return iF},deps:[]},{provide:wn,useFactory:function(n){return Qf(n=n||"undefined"!=typeof $localize&&$localize.locale||Uc),n},deps:new Ws(wn),new ln,new dr},{provide:HC,useValue:"USD"}];let sV=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(C(Fn))},n.\u0275mod=ne({type:n}),n.\u0275inj=X({providers:iV}),n})(),yu=null;function Ii(){return yu}const H=new j("DocumentToken");let Zr=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({factory:rB,token:n,providedIn:"platform"}),n})();function rB(){return C(Mw)}const sB=new j("Location Initialized");let Mw=(()=>{class n extends Zr{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ii().getBaseHref(this._doc)}onPopState(e){const i=Ii().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Ii().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}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(e){this.location.pathname=e}pushState(e,i,r){Sw()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){Sw()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(C(H))},n.\u0275prov=I({factory:oB,token:n,providedIn:"platform"}),n})();function Sw(){return!!window.history.pushState}function oB(){return new Mw(C(H))}function eg(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function Tw(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function zi(n){return n&&"?"!==n[0]?"?"+n:n}let ko=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({factory:aB,token:n,providedIn:"root"}),n})();function aB(n){const t=C(H).location;return new Nw(C(Zr),t&&t.origin||"")}const tg=new j("appBaseHref");let Nw=(()=>{class n extends ko{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return eg(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+zi(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,s){const o=this.prepareExternalUrl(r+zi(s));this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){const o=this.prepareExternalUrl(r+zi(s));this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(C(Zr),C(tg,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),lB=(()=>{class n extends ko{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=eg(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,s){let o=this.prepareExternalUrl(r+zi(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){let o=this.prepareExternalUrl(r+zi(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(C(Zr),C(tg,8))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),Oo=(()=>{class n{constructor(e,i){this._subject=new F,this._urlChangeListeners=[],this._platformStrategy=e;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=Tw(Aw(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+zi(i))}normalize(e){return n.stripTrailingSlash(function(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,Aw(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._platformStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+zi(i)),r)}replaceState(e,i="",r=null){this._platformStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+zi(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.\u0275fac=function(e){return new(e||n)(C(ko),C(Zr))},n.normalizeQueryParams=zi,n.joinWithSlash=eg,n.stripTrailingSlash=Tw,n.\u0275prov=I({factory:cB,token:n,providedIn:"root"}),n})();function cB(){return new Oo(C(ko),C(Zr))}function Aw(n){return n.replace(/\/index.html$/,"")}var ht=(()=>((ht=ht||{})[ht.Zero=0]="Zero",ht[ht.One=1]="One",ht[ht.Two=2]="Two",ht[ht.Few=3]="Few",ht[ht.Many=4]="Many",ht[ht.Other=5]="Other",ht))();const pB=function(n){return function(n){const t=function(n){return n.toLowerCase().replace(/_/g,"-")}(n);let e=X0(t);if(e)return e;const i=t.split("-")[0];if(e=X0(i),e)return e;if("en"===i)return Fx;throw new Error(`Missing locale data for the locale "${n}".`)}(n)[V.PluralCase]};class Nu{}let jB=(()=>{class n extends Nu{constructor(e){super(),this.locale=e}getPluralCategory(e,i){switch(pB(i||this.locale)(e)){case ht.Zero:return"zero";case ht.One:return"one";case ht.Two:return"two";case ht.Few:return"few";case ht.Many:return"many";default:return"other"}}}return n.\u0275fac=function(e){return new(e||n)(C(wn))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),zt=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new YB,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){jw("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){jw("ngIfElse",e),this._elseTemplateRef=e,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(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(g(Ct),g(Pe))},n.\u0275dir=S({type:n,selectors:"","ngIf","",inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class YB{constructor(){this.$implicit=null,this.ngIf=null}}function jw(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${he(t)}'.`)}let un=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({providers:[{provide:Nu,useClass:jB}]}),n})();const zw="browser";let Yw=(()=>{class n{}return n.\u0275prov=I({token:n,providedIn:"root",factory:()=>new C3(C(H),window)}),n})();class C3{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(n,t){const e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const s=r.shadowRoot;if(s){const o=s.getElementById(t)||s.querySelector(`[name="${t}"]`);if(o)return o}r=i.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(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],r-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Kw(this.window.history)||Kw(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 Kw(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class gg extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function(n){yu||(yu=n)}(new gg)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}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}getBaseHref(t){const e=(cl=cl||document.querySelector("base"),cl?cl.getAttribute("href"):null);return null==e?null:function(n){Au=Au||document.createElement("a"),Au.setAttribute("href",n);const t=Au.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){cl=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,s]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}(document.cookie,t)}}let Au,cl=null;const Qw=new j("TRANSITION_ID"),N3=[{provide:tl,useFactory:function(n,t,e){return()=>{e.get(To).donePromise.then(()=>{const i=Ii(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[Qw,H,pe],multi:!0}];class mg{static init(){!function(n){Fp=n}(new mg)}addToWindow(t){Le.getAngularTestability=(i,r=!0)=>{const s=t.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},Le.getAllAngularTestabilities=()=>t.getAllTestabilities(),Le.getAllAngularRootElements=()=>t.getAllRootElements(),Le.frameworkStabilizers||(Le.frameworkStabilizers=[]),Le.frameworkStabilizers.push(i=>{const r=Le.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&i(o)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:i?Ii().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let A3=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const ul=new j("EventManagerPlugins");let ku=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[s];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error(`No event manager plugin found for event ${e}`)}}return n.\u0275fac=function(e){return new(e||n)(C(ul),C($))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class _g{constructor(t){this._doc=t}addGlobalEventListener(t,e,i){const r=Ii().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,i)}}let Zw=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),dl=(()=>{class n extends Zw{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(Xw),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Xw))}}return n.\u0275fac=function(e){return new(e||n)(C(H))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();function Xw(n){Ii().remove(n)}const yg={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/"},bg=/%COMP%/g;function Ou(n,t,e){for(let i=0;i<t.length;i++){let r=t[i];Array.isArray(r)?Ou(n,r,e):(r=r.replace(bg,n),e.push(r))}return e}function nD(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let Ru=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new vg(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case ut.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new G3(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case ut.ShadowDom:return new W3(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=Ou(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(C(ku),C(dl),C(nl))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class vg{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(yg[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,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const s=yg[r];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=yg[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(bn.DashCase|bn.Important)?t.style.setProperty(e,i,r&bn.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&bn.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,nD(i)):this.eventManager.addEventListener(t,e,nD(i))}}class G3 extends vg{constructor(t,e,i,r){super(t),this.component=i;const s=Ou(r+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr=function(n){return"_ngcontent-%COMP%".replace(bg,n)}(r+"-"+i.id),this.hostAttr=function(n){return"_nghost-%COMP%".replace(bg,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class W3 extends vg{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Ou(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}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,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let z3=(()=>{class n extends _g{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(C(H))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const sD=["alt","control","meta","shift"],X3={"\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"},oD={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"},eH={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let tH=(()=>{class n extends _g{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ii().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(sD.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(e){let i="",r=function(n){let t=n.key;if(null==t){if(t=n.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===n.location&&oD.hasOwnProperty(t)&&(t=oD[t]))}return X3[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),sD.forEach(s=>{s!=r&&eH[s](e)&&(i+=s+".")}),i+=r,i}static eventCallback(e,i,r){return s=>{n.getEventFullKey(s)===e&&r.runGuarded(()=>i(s))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return n.\u0275fac=function(e){return new(e||n)(C(H))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const cH=YC(ZL,"browser",[{provide:No,useValue:zw},{provide:VC,useValue:function(){gg.makeCurrent(),mg.init()},multi:!0},{provide:H,useFactory:function(){return function(n){yh=n}(document),document},deps:[]}]),uH=[[],{provide:Ia,useValue:"root"},{provide:Ur,useFactory:function(){return new Ur},deps:[]},{provide:ul,useClass:z3,multi:!0,deps:[H,$,No]},{provide:ul,useClass:tH,multi:!0,deps:[H]},[],{provide:Ru,useClass:Ru,deps:[ku,dl,nl]},{provide:Gi,useExisting:Ru},{provide:Zw,useExisting:dl},{provide:dl,useClass:dl,deps:[H]},{provide:Pp,useClass:Pp,deps:[$]},{provide:ku,useClass:ku,deps:[ul,$]},{provide:class{},useClass:A3,deps:[]},[]];let Eg=(()=>{class n{constructor(e){if(e)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:n,providers:[{provide:nl,useValue:e.appId},{provide:Qw,useExisting:nl},N3]}}}return n.\u0275fac=function(e){return new(e||n)(C(n,12))},n.\u0275mod=ne({type:n}),n.\u0275inj=X({providers:uH,imports:[un,sV]}),n})();function lD(n){return Array.isArray(n)?n:[n]}function pt(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Xr(n){return n instanceof U?n.nativeElement:n}function z(...n){let t=n[n.length-1];return Es(t)?(n.pop(),rh(n,t)):sa(n)}function Dt(n,t,e,i){return gi(e)&&(i=e,e=void 0),i?Dt(n,t,e).pipe(ge(r=>tr(r)?i(...r):i(r))):new Ce(r=>{cD(n,t,function(o){r.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},r,e)})}function cD(n,t,e,i,r){let s;if(function(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const o=n;n.addEventListener(t,e,r),s=()=>o.removeEventListener(t,e,r)}else if(function(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const o=n;n.on(t,e),s=()=>o.off(t,e)}else if(function(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const o=n;n.addListener(t,e),s=()=>o.removeListener(t,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let o=0,a=n.length;o<a;o++)cD(n[o],t,e,i,r)}i.add(s)}"undefined"!=typeof window&&window;class wH extends Oe{constructor(t,e){super()}schedule(t,e=0){return this}}class xu extends wH{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 i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let uD=(()=>{class n{constructor(e,i=n.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return n.now=()=>Date.now(),n})();class hi extends uD{constructor(t,e=uD.now){super(t,()=>hi.delegate&&hi.delegate!==this?hi.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return hi.delegate&&hi.delegate!==this?hi.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}new class extends hi{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r<s&&(t=e.shift()));if(this.active=!1,i){for(;++r<s&&(t=e.shift());)t.unsubscribe();throw i}}}(class extends xu{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});let SH=1;const TH=Promise.resolve(),Pu={};function dD(n){return n in Pu&&(delete Pu[n],!0)}const hD={setImmediate(n){const t=SH++;return Pu[t]=!0,TH.then(()=>dD(t)&&n()),t},clearImmediate(n){dD(n)}};new class extends hi{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r<s&&(t=e.shift()));if(this.active=!1,i){for(;++r<s&&(t=e.shift());)t.unsubscribe();throw i}}}(class extends xu{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=hD.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(hD.clearImmediate(e),t.scheduled=void 0)}});class kH{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new OH(t,this.compare,this.keySelector))}}class OH extends Re{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:r}=this;e=r?r(t):t}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}const Fu=new hi(xu);class xH{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new PH(t,this.durationSelector))}}class PH extends Ss{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(t)}catch(r){return this.destination.error(r)}const i=Ts(e,new Ms(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function pD(n){return!tr(n)&&n-parseFloat(n)+1>=0}function Sg(n=0,t,e){let i=-1;return pD(t)?i=Number(t)<1?1:Number(t):Es(t)&&(e=t),Es(e)||(e=Fu),new Ce(r=>{const s=pD(n)?n:+n-e.now();return e.schedule(FH,s,{index:0,period:i,subscriber:r})})}function FH(n){const{index:t,period:e,subscriber:i}=n;if(i.next(t),!i.closed){if(-1===e)return i.complete();n.index=t+1,this.schedule(n,e)}}function Tg(n,t=Fu){return function(n){return function(e){return e.lift(new xH(n))}}(()=>Sg(n,t))}function Ye(n,t){return function(i){return i.lift(new LH(n,t))}}class LH{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new VH(t,this.predicate,this.thisArg))}}class VH extends Re{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}function $e(n){return t=>t.lift(new BH(n))}class BH{constructor(t){this.notifier=t}call(t,e){const i=new HH(t),r=Ts(this.notifier,new Ms(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class HH extends Ss{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Lu(...n){return ra(1)(z(...n))}function es(...n){const t=n[n.length-1];return Es(t)?(n.pop(),e=>Lu(n,e,t)):e=>Lu(n,e)}function Hn(n,t){return"function"==typeof t?e=>e.pipe(Hn((i,r)=>Ot(n(i,r)).pipe(ge((s,o)=>t(i,s,r,o))))):e=>e.lift(new WH(n))}class WH{constructor(t){this.project=t}call(t,e){return e.subscribe(new zH(t,this.project))}}class zH extends Ss{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new Ms(this),r=this.destination;r.add(i),this.innerSubscription=Ts(t,i),this.innerSubscription!==i&&r.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)}}new class extends hi{}(class extends xu{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,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}});const ts=new Ce(n=>n.complete());function Vu(n){return n?function(n){return new Ce(t=>n.schedule(()=>t.complete()))}(n):ts}class dn{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,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,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return z(this.value);case"E":return function(n,t){return new Ce(e=>e.error(n))}(this.error);case"C":return Vu()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new dn("N",t):dn.undefinedValueNotification}static createError(t){return new dn("E",void 0,t)}static createComplete(){return dn.completeNotification}}let Ng;dn.completeNotification=new dn("C"),dn.undefinedValueNotification=new dn("N",void 0);try{Ng="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Ng=!1}let pl,ns,Ig,gt=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function(n){return n===zw}(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&&!Ng)&&"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 n.\u0275fac=function(e){return new(e||n)(C(No))},n.\u0275prov=I({factory:function(){return new n(C(No))},token:n,providedIn:"root"}),n})(),Hu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({}),n})();function Ag(n){return function(){if(null==pl&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>pl=!0}))}finally{pl=pl||!1}return pl}()?n:!!n.capture}function mD(){if(null==ns){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return ns=!1,ns;if("scrollBehavior"in document.documentElement.style)ns=!0;else{const n=Element.prototype.scrollTo;ns=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return ns}function ju(){let n="undefined"!=typeof document&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const t=n.shadowRoot.activeElement;if(t===n)break;n=t}return n}function xo(n){return n.composedPath?n.composedPath()[0]:n.target}const vr="undefined"!=typeof window?window:{};function kg(){return void 0!==vr.__karma__&&!!vr.__karma__||void 0!==vr.jasmine&&!!vr.jasmine||void 0!==vr.jest&&!!vr.jest||void 0!==vr.Mocha&&!!vr.Mocha}const _D=new j("cdk-dir-doc",{providedIn:"root",factory:function(){return $y(H)}});let is=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new F,e){const r=e.documentElement?e.documentElement.dir:null,s=(e.body?e.body.dir:null)||r;this.value="ltr"===s||"rtl"===s?s:"ltr"}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(C(_D,8))},n.\u0275prov=I({factory:function(){return new n(C(_D,8))},token:n,providedIn:"root"}),n})(),ml=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({}),n})(),Uu=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new Y,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Ce(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(Tg(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):z()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(Ye(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,e)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Xr(i),s=e.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Dt(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(C($),C(gt),C(H,8))},n.\u0275prov=I({factory:function(){return new n(C($),C(gt),C(H,8))},token:n,providedIn:"root"}),n})(),_l=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new Y,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,s=r.getBoundingClientRect();return{top:-s.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Tg(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(C(gt),C($),C(H,8))},n.\u0275prov=I({factory:function(){return new n(C(gt),C($),C(H,8))},token:n,providedIn:"root"}),n})(),wD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({}),n})(),DD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({imports:[[ml,Hu,wD],ml,wD]}),n})();class Og{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 Rg extends Og{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class Gu extends Og{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}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 w$ extends Og{constructor(t){super(),this.element=t instanceof U?t.nativeElement:t}}class xg{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Rg?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Gu?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof w$?(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 D$ extends xg{constructor(t,e,i,r,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.injector||this._defaultInjector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=t,i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let Wu=(()=>{class n extends xg{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new F,this.attachDomPortal=s=>{const o=s.element,a=this._document.createComment("dom-portal");s.setAttachedHost(this),o.parentNode.insertBefore(a,o),this._getRootNode().appendChild(o),this._attachedPortal=s,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(o,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,s=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),o=i.createComponent(s,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(g(tn),g(Ct),g(H))},n.\u0275dir=S({type:n,selectors:"","cdkPortalOutlet","",inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[we]}),n})(),MD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({}),n})();const SD=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function mt(n){return t=>0===n?Vu():t.lift(new E$(n))}class E${constructor(t){if(this.total=t,this.total<0)throw new SD}call(t,e){return e.subscribe(new M$(t,this.total))}}class M$ extends Re{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}const ND=mD();class F${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=pt(-this._previousScrollPosition.left),t.style.top=pt(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,r=this._document.body.style,s=i.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),ND&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ND&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class L${constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,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 e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-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 AD{enable(){}disable(){}attach(){}}function Fg(n,t){return t.some(e=>n.bottom<e.top||n.top>e.bottom||n.right<e.left||n.left>e.right)}function ID(n,t){return t.some(e=>n.top<e.top||n.bottom>e.bottom||n.left<e.left||n.right>e.right)}class V${constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();Fg(e,[{width:i,height:r,bottom:r,right:i,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 B$=(()=>{class n{constructor(e,i,r,s){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new AD,this.close=o=>new L$(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new F$(this._viewportRuler,this._document),this.reposition=o=>new V$(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(e){return new(e||n)(C(Uu),C(_l),C($),C(H))},n.\u0275prov=I({factory:function(){return new n(C(Uu),C(_l),C($),C(H))},token:n,providedIn:"root"}),n})();class Lg{constructor(t){if(this.scrollStrategy=new AD,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class H${constructor(t,e,i,r,s){this.offsetX=i,this.offsetY=r,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class $${constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let kD=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(C(H))},n.\u0275prov=I({factory:function(){return new n(C(H))},token:n,providedIn:"root"}),n})(),j$=(()=>{class n extends kD{constructor(e){super(e),this._keydownListener=i=>{const r=this._attachedOverlays;for(let s=r.length-1;s>-1;s--)if(r[s]._keydownEvents.observers.length>0){r[s]._keydownEvents.next(i);break}}}add(e){super.add(e),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 n.\u0275fac=function(e){return new(e||n)(C(H))},n.\u0275prov=I({factory:function(){return new n(C(H))},token:n,providedIn:"root"}),n})(),U$=(()=>{class n extends kD{constructor(e,i){super(e),this._platform=i,this._cursorStyleIsSet=!1,this._clickListener=r=>{const s=xo(r),o=this._attachedOverlays.slice();for(let a=o.length-1;a>-1;a--){const l=o[a];if(!(l._outsidePointerEvents.observers.length<1)&&l.hasAttached()){if(l.overlayElement.contains(s))break;l._outsidePointerEvents.next(r)}}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return n.\u0275fac=function(e){return new(e||n)(C(H),C(gt))},n.\u0275prov=I({factory:function(){return new n(C(H),C(gt))},token:n,providedIn:"root"}),n})(),yl=(()=>{class n{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){const e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||kg()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let s=0;s<r.length;s++)r[s].parentNode.removeChild(r[s])}const i=this._document.createElement("div");i.classList.add(e),kg()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(e){return new(e||n)(C(H),C(gt))},n.\u0275prov=I({factory:function(){return new n(C(H),C(gt))},token:n,providedIn:"root"}),n})();class G${constructor(t,e,i,r,s,o,a,l,c){this._portalOutlet=t,this._host=e,this._pane=i,this._config=r,this._ngZone=s,this._keyboardDispatcher=o,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new Y,this._attachments=new Y,this._detachments=new Y,this._locationChanges=Oe.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._keydownEvents=new Y,this._outsidePointerEvents=new Y,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.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(mt(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._disposeBackdrop(this._backdropElement),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=pt(this._config.width),t.height=pt(this._config.height),t.minWidth=pt(this._config.minWidth),t.minHeight=pt(this._config.minHeight),t.maxWidth=pt(this._config.maxWidth),t.maxHeight=pt(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(!t)return;let e;const i=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",i),this._disposeBackdrop(t)),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",i)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const r=t.classList;lD(e).forEach(s=>{s&&(i?r.add(s):r.remove(s))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe($e(Kl(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())}_disposeBackdrop(t){t&&(t.parentNode&&t.parentNode.removeChild(t),this._backdropElement===t&&(this._backdropElement=null))}}const OD="cdk-overlay-connected-position-bounding-box",W$=/([A-Za-z%]+)$/;class RD{constructor(t,e,i,r,s){this._viewportRuler=e,this._document=i,this._platform=r,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 Y,this._resizeSubscription=Oe.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(OD),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,i=this._viewportRect,r=[];let s;for(let o of this._preferredPositions){let a=this._getOriginPoint(t,o),l=this._getOverlayPoint(a,e,o),c=this._getOverlayFit(l,e,i,o);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,a);this._canFitWithFlexibleDimensions(c,l,i)?r.push({position:o,origin:a,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(a,o)}):(!s||s.overlayFit.visibleArea<c.visibleArea)&&(s={overlayFit:c,overlayPoint:l,originPoint:a,position:o,overlayRect:e})}if(r.length){let o=null,a=-1;for(const l of r){const c=l.boundingBoxRect.width*l.boundingBoxRect.height*(l.position.weight||1);c>a&&(a=c,o=l)}return this._isPushed=!1,void this._applyPosition(o.position,o.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&&rs(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(OD),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 i,r;if("center"==e.originX)i=t.left+t.width/2;else{const s=this._isRtl()?t.right:t.left,o=this._isRtl()?t.left:t.right;i="start"==e.originX?s:o}return r="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:r}}_getOverlayPoint(t,e,i){let r,s;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+s}}_getOverlayFit(t,e,i,r){const s=PD(e);let{x:o,y:a}=t,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(o+=l),c&&(a+=c);let h=0-a,f=a+s.height-i.height,p=this._subtractOverflows(s.width,0-o,o+s.width-i.width),v=this._subtractOverflows(s.height,h,f),b=p*v;return{visibleArea:b,isCompletelyWithinViewport:s.width*s.height===b,fitsInViewportVertically:v===s.height,fitsInViewportHorizontally:p==s.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,s=i.right-e.x,o=xD(this._overlayRef.getConfig().minHeight),a=xD(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportHorizontally||null!=a&&a<=s;return(t.fitsInViewportVertically||null!=o&&o<=r)&&c}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=PD(e),s=this._viewportRect,o=Math.max(t.x+r.width-s.width,0),a=Math.max(t.y+r.height-s.height,0),l=Math.max(s.top-i.top-t.y,0),c=Math.max(s.left-i.left-t.x,0);let u=0,d=0;return u=r.width<=s.width?c||-o:t.x<this._viewportMargin?s.left-i.left-t.x:0,d=r.height<=s.height?l||-a:t.y<this._viewportMargin?s.top-i.top-t.y:0,this._previousPushAmount={x:u,y:d},{x:t.x+u,y:t.y+d}}_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 i=this._getScrollVisibility(),r=new $$(t,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=t.overlayY;i="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=`${i} ${r}`}_calculateBoundingBoxRect(t,e){const i=this._viewportRect,r=this._isRtl();let s,o,a,u,d,h;if("top"===e.overlayY)o=t.y,s=i.height-o+this._viewportMargin;else if("bottom"===e.overlayY)a=i.height-t.y+2*this._viewportMargin,s=i.height-a+this._viewportMargin;else{const f=Math.min(i.bottom-t.y+i.top,t.y),p=this._lastBoundingBoxSize.height;s=2*f,o=t.y-f,s>p&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-p/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)h=i.width-t.x+this._viewportMargin,u=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)d=t.x,u=i.right-t.x;else{const f=Math.min(i.right-t.x+i.left,t.x),p=this._lastBoundingBoxSize.width;u=2*f,d=t.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=t.x-p/2)}return{top:o,left:d,bottom:a,right:h,width:u,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=pt(i.height),r.top=pt(i.top),r.bottom=pt(i.bottom),r.width=pt(i.width),r.left=pt(i.left),r.right=pt(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=pt(s)),o&&(r.maxWidth=pt(o))}this._lastBoundingBoxSize=i,rs(this._boundingBox.style,r)}_resetBoundingBoxStyles(){rs(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){rs(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();rs(i,this._getExactOverlayY(e,t,u)),rs(i,this._getExactOverlayX(e,t,u))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=pt(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=pt(o.maxWidth):s&&(i.maxWidth="")),rs(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=o,"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=pt(s.y),r}_getExactOverlayX(t,e,i){let o,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=pt(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ID(t,i),isOriginOutsideView:Fg(t,i),isOverlayClipped:ID(e,i),isOverlayOutsideView:Fg(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.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&&lD(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof U)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function rs(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function xD(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(W$);return e&&"px"!==e?null:parseFloat(t)}return n||null}function PD(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}class z${constructor(t,e,i,r,s,o,a){this._preferredPositions=[],this._positionStrategy=new RD(i,r,s,o,a).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,i,r){const s=new H$(t,e,i,r);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}}const FD="cdk-global-overlay-wrapper";class q${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(FD),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,i=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=l?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,l?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=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(FD),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Y$=(()=>{class n{constructor(e,i,r,s){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new q$}connectedTo(e,i,r){return new z$(i,r,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(e){return new RD(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(C(_l),C(H),C(gt),C(yl))},n.\u0275prov=I({factory:function(){return new n(C(_l),C(H),C(gt),C(yl))},token:n,providedIn:"root"}),n})(),K$=0,Po=(()=>{class n{constructor(e,i,r,s,o,a,l,c,u,d,h){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=s,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new Lg(e);return o.direction=o.direction||this._directionality.value,new G$(s,i,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+K$++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Fn)),new D$(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(C(B$),C(yl),C(tn),C(Y$),C(j$),C(pe),C($),C(H),C(is),C(Oo),C(U$))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const Z$={provide:new j("cdk-connected-overlay-scroll-strategy"),deps:[Po],useFactory:function(n){return()=>n.scrollStrategies.reposition()}};let X$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({providers:[Po,Z$],imports:[[ml,MD,DD],DD]}),n})();class _t extends Y{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 Or;return this._value}next(t){super.next(this._value=t)}}class e8{constructor(t){this.total=t}call(t,e){return e.subscribe(new t8(t,this.total))}}class t8 extends Re{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}let jD=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function(n){try{return n.frameElement}catch(t){return null}}(function(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(i&&(-1===GD(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),s=GD(e);return e.hasAttribute("contenteditable")?-1!==s:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function(n){let t=n.nodeName.toLowerCase(),e="input"===t&&n.type;return"text"===e||"password"===e||"select"===t||"textarea"===t}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==s:"video"===r?-1!==s&&(null!==s||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function(n){return!function(n){return function(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function(n){let t=n.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(n)||function(n){return function(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||UD(n))}(e)&&!this.isDisabled(e)&&((null==i?void 0:i.ignoreVisibility)||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(C(gt))},n.\u0275prov=I({factory:function(){return new n(C(gt))},token:n,providedIn:"root"}),n})();function UD(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let t=n.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function GD(n){if(!UD(n))return null;const t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class b8{constructor(t,e,i,r,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=r,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(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i<e.length;i++)e[i].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[i]):e[i].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[i]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return null==i||i.focus(t),!!i}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){const e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){const e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}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 i=0;i<e.length;i++){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[i]):null;if(r)return r}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let i=e.length-1;i>=0;i--){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}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(mt(1)).subscribe(t)}}let WD=(()=>{class n{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new b8(e,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(e){return new(e||n)(C(jD),C($),C(H))},n.\u0275prov=I({factory:function(){return new n(C(jD),C($),C(H))},token:n,providedIn:"root"}),n})();"undefined"!=typeof Element&&Element;const YD=new j("cdk-input-modality-detector-options"),E8={ignoreKeys:[18,17,224,91,16]},Fo=Ag({passive:!0,capture:!0});let QD=(()=>{class n{constructor(e,i,r,s){this._platform=e,this._mostRecentTarget=null,this._modality=new _t(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,l;(null===(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===l?void 0:l.some(c=>c===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=xo(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(function(n){return 0===n.offsetX&&0===n.offsetY}(o)?"keyboard":"mouse"),this._mostRecentTarget=xo(o))},this._onTouchstart=o=>{!function(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}(o)?(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=xo(o)):this._modality.next("keyboard")},this._options=Object.assign(Object.assign({},E8),s),this.modalityDetected=this._modality.pipe(function(n){return t=>t.lift(new e8(n))}(1)),this.modalityChanged=this.modalityDetected.pipe(function(n,t){return e=>e.lift(new kH(n,t))}()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Fo),r.addEventListener("mousedown",this._onMousedown,Fo),r.addEventListener("touchstart",this._onTouchstart,Fo)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Fo),document.removeEventListener("mousedown",this._onMousedown,Fo),document.removeEventListener("touchstart",this._onTouchstart,Fo))}}return n.\u0275fac=function(e){return new(e||n)(C(gt),C($),C(H),C(YD,8))},n.\u0275prov=I({factory:function(){return new n(C(gt),C($),C(H),C(YD,8))},token:n,providedIn:"root"}),n})();const XD=new j("cdk-focus-monitor-default-options"),zu=Ag({passive:!0,capture:!0});let eE=(()=>{class n{constructor(e,i,r,s,o){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Y,this._rootNodeFocusAndBlurListener=a=>{const l=xo(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let u=l;u;u=u.parentElement)c.call(this,a,u)},this._document=s,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(e,i=!1){const r=Xr(e);if(!this._platform.isBrowser||1!==r.nodeType)return z(null);const s=function(n){if(function(){if(null==Ig){const n="undefined"!=typeof document?document.head:null;Ig=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Ig}()){const t=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}(r)||this._getDocument(),o=this._elementInfo.get(r);if(o)return i&&(o.checkChildren=!0),o.subject;const a={checkChildren:i,subject:new Y,rootNode:s};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Xr(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const s=Xr(e);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof s.focus&&s.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(e,i,r){r?e.classList.add(i):e.classList.remove(i)}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){this._toggleClass(e,"cdk-focused",!!i),this._toggleClass(e,"cdk-touch-focused","touch"===i),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===i),this._toggleClass(e,"cdk-mouse-focused","mouse"===i),this._toggleClass(e,"cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),s=xo(e);!r||!r.checkChildren&&i!==s||this._originChanged(i,this._getFocusOrigin(s),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(e,i){this._ngZone.run(()=>e.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,zu),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,zu)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe($e(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,zu),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,zu),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,s)=>{(s===e||r.checkChildren&&s.contains(e))&&i.push([s,r])}),i}}return n.\u0275fac=function(e){return new(e||n)(C($),C(gt),C(QD),C(H,8),C(XD,8))},n.\u0275prov=I({factory:function(){return new n(C($),C(gt),C(QD),C(H,8),C(XD,8))},token:n,providedIn:"root"}),n})();const tE="cdk-high-contrast-black-on-white",nE="cdk-high-contrast-white-on-black",Bg="cdk-high-contrast-active";let iE=(()=>{class n{constructor(e,i){this._platform=e,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Bg),e.remove(tE),e.remove(nE),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(e.add(Bg),e.add(tE)):2===i&&(e.add(Bg),e.add(nE))}}}return n.\u0275fac=function(e){return new(e||n)(C(gt),C(H))},n.\u0275prov=I({factory:function(){return new n(C(gt),C(H))},token:n,providedIn:"root"}),n})();const rE=new mr("12.2.7");class sE{}const Yi="*";function N8(n,t){return{type:7,name:n,definitions:t,options:{}}}function oE(n,t=null){return{type:4,styles:t,timings:n}}function aE(n,t=null){return{type:2,steps:n,options:t}}function Lo(n){return{type:6,styles:n,offset:null}}function lE(n,t,e){return{type:0,name:n,styles:t,options:e}}function cE(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function uE(n){Promise.resolve(null).then(n)}class Vo{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(){uE(()=>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(){this._started=!1}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(i=>i()),e.length=0}}class dE{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,i=0,r=0;const s=this.players.length;0==s?uE(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.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(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,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(i=>i()),e.length=0}}function hE(){return"undefined"!=typeof window&&void 0!==window.document}function $g(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Cr(n){switch(n.length){case 0:return new Vo;case 1:return n[0];default:return new dE(n)}}function fE(n,t,e,i,r={},s={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.offset,h=d==l,f=h&&c||{};Object.keys(u).forEach(p=>{let v=p,b=u[p];if("offset"!==p)switch(v=t.normalizePropertyName(v,o),b){case"!":b=r[p];break;case Yi:b=s[p];break;default:b=t.normalizeStyleValue(p,v,b,o)}f[v]=b}),h||a.push(f),c=f,l=d}),o.length){const u="\n - ";throw new Error(`Unable to animate due to the following errors:${u}${o.join(u)}`)}return a}function jg(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&Ug(e,"start",n)));break;case"done":n.onDone(()=>i(e&&Ug(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&Ug(e,"destroy",n)))}}function Ug(n,t,e){const i=e.totalTime,s=Gg(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,null==i?n.totalTime:i,!!e.disabled),o=n._data;return null!=o&&(s._data=o),s}function Gg(n,t,e,i,r="",s=0,o){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Dn(n,t,e){let i;return n instanceof Map?(i=n.get(t),i||n.set(t,i=e)):(i=n[t],i||(i=n[t]=e)),i}function pE(n){const t=n.indexOf(":");return[n.substring(1,t),n.substr(t+1)]}let Wg=(n,t)=>!1,zg=(n,t)=>!1,gE=(n,t,e)=>[];const mE=$g();(mE||"undefined"!=typeof Element)&&(Wg=hE()?(n,t)=>{for(;t&&t!==document.documentElement;){if(t===n)return!0;t=t.parentNode||t.host}return!1}:(n,t)=>n.contains(t),zg=(()=>{if(mE||Element.prototype.matches)return(n,t)=>n.matches(t);{const n=Element.prototype,t=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector;return t?(e,i)=>t.apply(e,[i]):zg}})(),gE=(n,t,e)=>{let i=[];if(e){const r=n.querySelectorAll(t);for(let s=0;s<r.length;s++)i.push(r[s])}else{const r=n.querySelector(t);r&&i.push(r)}return i});let ss=null,_E=!1;function qg(n){ss||(ss=("undefined"!=typeof document?document.body:null)||{},_E=!!ss.style&&"WebkitAppearance"in ss.style);let t=!0;return ss.style&&!function(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in ss.style,!t&&_E&&(t="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in ss.style)),t}const Yg=zg,Kg=Wg,Qg=gE;function yE(n){const t={};return Object.keys(n).forEach(e=>{const i=e.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=n[e]}),t}let bE=(()=>{class n{validateStyleProperty(e){return qg(e)}matchesElement(e,i){return Yg(e,i)}containsElement(e,i){return Kg(e,i)}query(e,i,r){return Qg(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,s,o,a=[],l){return new Vo(r,s)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),Jg=(()=>{class n{}return n.NOOP=new bE,n})();const Zg="ng-enter",qu="ng-leave",Yu="ng-trigger",Ku=".ng-trigger",CE="ng-animating",Xg=".ng-animating";function os(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:em(parseFloat(t[1]),t[2])}function em(n,t){switch(t){case"s":return 1e3*n;default:return n}}function Qu(n,t,e){return n.hasOwnProperty("duration")?n:function(n,t,e){let r,s=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(`The provided timing value "${n}" is invalid.`),{duration:0,delay:0,easing:""};r=em(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=em(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),a=!0),s<0&&(t.push("Delay values below 0 are not allowed for this animation step."),a=!0),a&&t.splice(l,0,`The provided timing value "${n}" is invalid.`)}return{duration:r,delay:s,easing:o}}(n,t,e)}function Bo(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function wr(n,t,e={}){if(t)for(let i in n)e[i]=n[i];else Bo(n,e);return e}function DE(n,t,e){return e?t+":"+e+";":""}function EE(n){let t="";for(let e=0;e<n.style.length;e++){const i=n.style.item(e);t+=DE(0,i,n.style.getPropertyValue(i))}for(const e in n.style)n.style.hasOwnProperty(e)&&!e.startsWith("_")&&(t+=DE(0,F8(e),n.style[e]));n.setAttribute("style",t)}function ki(n,t,e){n.style&&(Object.keys(t).forEach(i=>{const r=nm(i);e&&!e.hasOwnProperty(i)&&(e[i]=n.style[r]),n.style[r]=t[i]}),$g()&&EE(n))}function as(n,t){n.style&&(Object.keys(t).forEach(e=>{const i=nm(e);n.style[i]=""}),$g()&&EE(n))}function bl(n){return Array.isArray(n)?1==n.length?n[0]:aE(n):n}const tm=new RegExp("Template:\\s*(.+?)\\s*","g");function ME(n){let t=[];if("string"==typeof n){let e;for(;e=tm.exec(n);)t.push(e[1]);tm.lastIndex=0}return t}function Ju(n,t,e){const i=n.toString(),r=i.replace(tm,(s,o)=>{let a=t[o];return t.hasOwnProperty(o)||(e.push(`Please provide a value for the animation param ${o}`),a=""),a.toString()});return r==i?n:r}function Zu(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const P8=/-+([a-z0-9])/g;function nm(n){return n.replace(P8,(...t)=>t[1].toUpperCase())}function F8(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function SE(n,t){return 0===n||0===t}function TE(n,t,e){const i=Object.keys(e);if(i.length&&t.length){let s=t[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=e[a]}),o.length)for(var r=1;r<t.length;r++){let a=t[r];o.forEach(function(l){a[l]=im(n,l)})}}return t}function En(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw new Error(`Unable to resolve animation metadata node #${t.type}`)}}function im(n,t){return window.getComputedStyle(n)[t]}function L8(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function(n,t,e){if(":"==n[0]){const l=function(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return t.push(`The transition alias value "${n}" is not supported`),"* => *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(`The provided transition expression "${n}" is not supported`),t;const r=i[1],s=i[2],o=i[3];t.push(NE(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&t.push(NE(o,r))}(i,e,t)):e.push(n),e}const ed=new Set(["true","1"]),td=new Set(["false","0"]);function NE(n,t){const e=ed.has(n)||td.has(n),i=ed.has(t)||td.has(t);return(r,s)=>{let o="*"==n||n==r,a="*"==t||t==s;return!o&&e&&"boolean"==typeof r&&(o=r?ed.has(n):td.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?ed.has(t):td.has(t)),o&&a}}const H8=new RegExp("s*:selfs*,?","g");function rm(n,t,e){return new $8(n).build(t,e)}class $8{constructor(t){this._driver=t}build(t,e){const i=new G8(e);return this._resetContextStyleTimingState(i),En(this,bl(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,o.push(l)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};if(i.styles.forEach(a=>{if(nd(a)){const l=a;Object.keys(l).forEach(c=>{ME(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size){const a=Zu(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${a.join(", ")}`)}}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=En(this,bl(t.animation),e);return{type:1,matchers:L8(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:ls(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>En(this,i,e)),options:ls(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const s=t.steps.map(o=>{e.currentTime=i;const a=En(this,o,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:s,options:ls(t.options)}}visitAnimate(t,e){const i=function(n,t){let e=null;if(n.hasOwnProperty("duration"))e=n;else if("number"==typeof n)return sm(Qu(n,t).duration,0,"");const i=n;if(i.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=sm(0,0,"");return s.dynamic=!0,s.strValue=i,s}return e=e||Qu(i,t),sm(e.duration,e.delay,e.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,s=t.styles?t.styles:Lo({});if(5==s.type)r=this.visitKeyframes(s,e);else{let o=t.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=Lo(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(o=>{"string"==typeof o?o==Yi?i.push(o):e.errors.push(`The provided style string value ${o} is not allowed.`):i.push(o)}):i.push(t.styles);let r=!1,s=null;return i.forEach(o=>{if(nd(o)){const a=o,l=a.easing;if(l&&(s=l,delete a.easing),!r)for(let c in a)if(a[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return void e.errors.push(`The provided animation property "${a}" is not a supported CSS property for animations`);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let u=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(e.errors.push(`The CSS property "${a}" that exists between the times of "${c.startTime}ms" and "${c.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${r}ms"`),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),e.options&&function(n,t,e){const i=t.params||{},r=ME(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||e.push(`Unable to resolve the local animation param ${s} in the given list of values`)})}(o[a],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=t.steps.map(D=>{const w=this._makeStyleAst(D,e);let R=null!=w.offset?w.offset:function(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(nd(e)&&e.hasOwnProperty("offset")){const i=e;t=parseFloat(i.offset),delete i.offset}});else if(nd(n)&&n.hasOwnProperty("offset")){const e=n;t=parseFloat(e.offset),delete e.offset}return t}(w.styles),P=0;return null!=R&&(s++,P=w.offset=R),l=l||P<0||P>1,a=a||P<c,c=P,o.push(P),w});l&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&e.errors.push("Please ensure that all keyframe offsets are in order");const d=t.steps.length;let h=0;s>0&&s<d?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==s&&(h=1/(d-1));const f=d-1,p=e.currentTime,v=e.currentAnimateTimings,b=v.duration;return u.forEach((D,w)=>{const R=h>0?w==f?1:h*w:o[w],P=R*b;e.currentTime=p+v.delay+P,v.duration=P,this._validateStyleAst(D,e),D.offset=R,i.styles.push(D)}),i}visitReference(t,e){return{type:8,animation:En(this,bl(t.animation),e),options:ls(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:ls(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ls(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(H8,"")),[n=n.replace(/@\*/g,Ku).replace(/@\w+/g,e=>Ku+"-"+e.substr(1)).replace(/:animating/g,Xg),t]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,Dn(e.collectedStyles,e.currentQuerySelector,{});const a=En(this,bl(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:ls(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Qu(t.timings,e.errors,!0);return{type:12,animation:En(this,bl(t.animation),e),timings:i,options:null}}}class G8{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 nd(n){return!Array.isArray(n)&&"object"==typeof n}function ls(n){return n?(n=Bo(n)).params&&(n.params=function(n){return n?Bo(n):null}(n.params)):n={},n}function sm(n,t,e){return{duration:n,delay:t,easing:e}}function om(n,t,e,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class id{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 i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const K8=new RegExp(":enter","g"),J8=new RegExp(":leave","g");function am(n,t,e,i,r,s={},o={},a,l,c=[]){return(new Z8).buildKeyframes(n,t,e,i,r,s,o,a,l,c)}class Z8{buildKeyframes(t,e,i,r,s,o,a,l,c,u=[]){c=c||new id;const d=new lm(t,e,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),En(this,i,d);const h=d.timelines.filter(f=>f.containsAnimation());if(h.length&&Object.keys(a).length){const f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([a],null,d.errors,l)}return h.length?h.map(f=>f.buildKeyframes()):[om(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const r=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let s=e.currentTimeline.currentTime;const o=null!=i.duration?os(i.duration):null,a=null!=i.delay?os(i.delay):null;return 0!==o&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),En(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const s=t.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=rd);const o=os(s.delay);r.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>En(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?os(t.options.delay):0;t.steps.forEach(o=>{const a=e.createSubContext(t.options);s&&a.delayNextStep(s),En(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return Qu(e.params?Ju(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},s=r.delay?os(r.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=rd);let o=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(t.options,c);s&&d.delayNextStep(s),c===e.element&&(l=d.currentTimeline),En(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;En(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const rd={};class lm{constructor(t,e,i,r,s,o,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=rd,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new sd(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=os(i.duration)),null!=i.delay&&(r.delay=os(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=Ju(s[a],o,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,s=new lm(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||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=rd,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new X8(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,s,o){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(K8,"."+this._enterClassName)).replace(J8,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&0==a.length&&o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),a}}class sd{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(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 sd(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(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Yi,this._currentKeyframe[e]=Yi}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&(this._previousKeyframe.easing=e);const s=r&&r.params||{},o=function(n,t){const e={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(t),i.forEach(s=>{e[s]=Yi})):wr(r,!1,e)}),e}(t,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=Ju(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:Yi),this._updateStyle(a,l)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=t[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}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 i=this._styleSummary[e],r=t._styleSummary[e];(!i||r.time>i.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=wr(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?t.add(u):d==Yi&&e.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=t.size?Zu(t.values()):[],o=e.size?Zu(e.values()):[];if(i){const a=r[0],l=Bo(a);a.offset=0,l.offset=1,r=[a,l]}return om(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class X8 extends sd{constructor(t,e,i,r,s,o,a=!1){super(t,e,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,a=e/o,l=wr(t[0],!1);l.offset=0,s.push(l);const c=wr(t[0],!1);c.offset=kE(a),s.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=wr(t[d],!1);h.offset=kE((e+h.offset*i)/o),s.push(h)}i=o,e=0,r="",t=s}return om(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function kE(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class cm{}class tj extends cm{normalizePropertyName(t,e){return nm(t)}normalizeStyleValue(t,e,i,r){let s="";const o=i.toString().trim();if(nj[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(`Please provide a CSS unit value for ${t}:${i}`)}return o+s}}const nj=(()=>function(n){const t={};return n.forEach(e=>t[e]=!0),t}("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 OE(n,t,e,i,r,s,o,a,l,c,u,d,h){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const um={};class RE{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function(n,t,e,i,r){return n.some(s=>s(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){const r=this._stateStyles["*"],s=this._stateStyles[t],o=r?r.buildStyles(e,i):{};return s?s.buildStyles(e,i):o}build(t,e,i,r,s,o,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||um,p=this.buildStyles(i,a&&a.params||um,d),v=l&&l.params||um,b=this.buildStyles(r,v,d),D=new Set,w=new Map,R=new Map,P="void"===r,Q={params:Object.assign(Object.assign({},h),v)},Ae=u?[]:am(t,e,this.ast.animation,s,o,p,b,Q,c,d);let Fe=0;if(Ae.forEach(qt=>{Fe=Math.max(qt.duration+qt.delay,Fe)}),d.length)return OE(e,this._triggerName,i,r,P,p,b,[],[],w,R,Fe,d);Ae.forEach(qt=>{const Yt=qt.element,Zi=Dn(w,Yt,{});qt.preStyleProps.forEach(pi=>Zi[pi]=!0);const Xi=Dn(R,Yt,{});qt.postStyleProps.forEach(pi=>Xi[pi]=!0),Yt!==e&&D.add(Yt)});const Qe=Zu(D.values());return OE(e,this._triggerName,i,r,P,p,b,Ae,Qe,w,R,Fe)}}class sj{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i={},r=Bo(this.defaultParams);return Object.keys(t).forEach(s=>{const o=t[s];null!=o&&(r[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=Ju(l,r,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),i[c]=l})}}),i}}class aj{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(r=>{this.states[r.name]=new sj(r.style,r.options&&r.options.params||{},i)}),xE(this.states,"true","1"),xE(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new RE(t,r,this.states))}),this.fallbackTransition=function(n,t,e){return new RE(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(o=>o.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function xE(n,t,e){n.hasOwnProperty(t)?n.hasOwnProperty(e)||(n[e]=n[t]):n.hasOwnProperty(e)&&(n[t]=n[e])}const cj=new id;class uj{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],r=rm(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=r}_buildPlayer(t,e,i){const r=t.element,s=fE(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],s=this._animations[t];let o;const a=new Map;if(s?(o=am(this._driver,e,s,Zg,qu,{},{},i,cj,r),o.forEach(u=>{const d=Dn(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),o=[]),r.length)throw new Error(`Unable to create the animation due to the following errors: ${r.join("\n")}`);a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,Yi)})});const c=Cr(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,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,i,r){const s=Gg(e,"","","");return jg(this._getPlayer(t),i,s,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const s=this._getPlayer(t);switch(i){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(r[0]));break;case"destroy":this.destroy(t)}}}const PE="ng-animate-queued",FE="ng-animate-disabled",LE=".ng-animate-disabled",pj=[],VE={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},gj={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},$n="__ng_removed";class dm{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function(n){return null!=n?n:null}(i?t.value:t),i){const s=Bo(t);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const vl="void",hm=new dm(vl);class mj{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,jn(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if(!function(n){return"start"==n||"done"==n}(i))throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);const s=Dn(this._elementListeners,t,[]),o={name:e,phase:i,callback:r};s.push(o);const a=Dn(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(jn(t,Yu),jn(t,Yu+"-"+e),a[e]=hm),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,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,i,r=!0){const s=this._getTrigger(e),o=new fm(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(jn(t,Yu),jn(t,Yu+"-"+e),this._engine.statesByElement.set(t,a={}));let l=a[e];const c=new dm(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=hm),c.value!==vl&&l.value===c.value){if(!function(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){const s=e[r];if(!t.hasOwnProperty(s)||n[s]!==t[s])return!1}return!0}(l.params,c.params)){const v=[],b=s.matchStyles(l.value,l.params,v),D=s.matchStyles(c.value,c.params,v);v.length?this._engine.reportError(v):this._engine.afterFlush(()=>{as(t,b),ki(t,D)})}return}const h=Dn(this._engine.playersByElement,t,[]);h.forEach(v=>{v.namespaceId==this.id&&v.triggerName==e&&v.queued&&v.destroy()});let f=s.matchTransition(l.value,c.value,t,c.params),p=!1;if(!f){if(!r)return;f=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(jn(t,PE),o.onStart(()=>{Ho(t,PE)})),o.onDone(()=>{let v=this.players.indexOf(o);v>=0&&this.players.splice(v,1);const b=this._engine.playersByElement.get(t);if(b){let D=b.indexOf(o);D>=0&&b.splice(D,1)}}),this.players.push(o),h.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,Ku,!0);i.forEach(r=>{if(r[$n])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const s=this._engine.statesByElement.get(t);if(s){const o=[];if(Object.keys(s).forEach(a=>{if(this._triggers[a]){const l=this.trigger(t,a,vl,r);l&&o.push(l)}}),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&Cr(o).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||hm,u=new dm(vl),d=new fm(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(t):[];if(s&&s.length)r=!0;else{let o=t;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const s=t[$n];(!s||s===VE)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){jn(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=Gg(s,i.triggerName,i.fromState.value,i.toState.value);l._data=t,jg(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class _j{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new mj(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let r=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const r=Object.keys(i);for(let s=0;s<r.length;s++){const o=i[r[s]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&e.add(a)}}}return e}trigger(t,e,i,r){if(od(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!od(e))return;const s=e[$n];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(t){const o=this._fetchNamespace(t);o&&o.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),jn(t,FE)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Ho(t,FE))}removeNode(t,e,i,r){if(od(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r){this.collectedLeaveElements.push(e),e[$n]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,r,s){return od(e)?this._fetchNamespace(t).listen(e,i,r,s):()=>{}}_buildInstruction(t,e,i,r,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,Ku,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Xg,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Cr(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[$n];if(e&&e.setForRemoval){if(t[$n]=VE,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,LE)&&this.markElementAsDisabled(t,!1),this.driver.query(t,LE,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)jn(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,t)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Cr(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const i=new id,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(B=>{u.add(B);const q=this.driver.query(B,".ng-animate-queued",!0);for(let ae=0;ae<q.length;ae++)u.add(q[ae])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=$E(h,this.collectedEnterElements),p=new Map;let v=0;f.forEach((B,q)=>{const ae=Zg+v++;p.set(q,ae),B.forEach(Ie=>jn(Ie,ae))});const b=[],D=new Set,w=new Set;for(let B=0;B<this.collectedLeaveElements.length;B++){const q=this.collectedLeaveElements[B],ae=q[$n];ae&&ae.setForRemoval&&(b.push(q),D.add(q),ae.hasAnimation?this.driver.query(q,".ng-star-inserted",!0).forEach(Ie=>D.add(Ie)):w.add(q))}const R=new Map,P=$E(h,Array.from(D));P.forEach((B,q)=>{const ae=qu+v++;R.set(q,ae),B.forEach(Ie=>jn(Ie,ae))}),t.push(()=>{f.forEach((B,q)=>{const ae=p.get(q);B.forEach(Ie=>Ho(Ie,ae))}),P.forEach((B,q)=>{const ae=R.get(q);B.forEach(Ie=>Ho(Ie,ae))}),b.forEach(B=>{this.processLeaveNode(B)})});const Q=[],Ae=[];for(let B=this._namespaceList.length-1;B>=0;B--)this._namespaceList[B].drainQueuedTransitions(e).forEach(ae=>{const Ie=ae.player,kt=ae.element;if(Q.push(Ie),this.collectedEnterElements.length){const Pi=kt[$n];if(Pi&&Pi.setForMove)return void Ie.destroy()}const xi=!d||!this.driver.containsElement(d,kt),Mn=R.get(kt),kr=p.get(kt),ot=this._buildInstruction(ae,i,kr,Mn,xi);if(ot.errors&&ot.errors.length)Ae.push(ot);else{if(xi)return Ie.onStart(()=>as(kt,ot.fromStyles)),Ie.onDestroy(()=>ki(kt,ot.toStyles)),void r.push(Ie);if(ae.isFallbackTransition)return Ie.onStart(()=>as(kt,ot.fromStyles)),Ie.onDestroy(()=>ki(kt,ot.toStyles)),void r.push(Ie);ot.timelines.forEach(Pi=>Pi.stretchStartingKeyframe=!0),i.append(kt,ot.timelines),o.push({instruction:ot,player:Ie,element:kt}),ot.queriedElements.forEach(Pi=>Dn(a,Pi,[]).push(Ie)),ot.preStyleProps.forEach((Pi,Gl)=>{const eh=Object.keys(Pi);if(eh.length){let ws=l.get(Gl);ws||l.set(Gl,ws=new Set),eh.forEach(P_=>ws.add(P_))}}),ot.postStyleProps.forEach((Pi,Gl)=>{const eh=Object.keys(Pi);let ws=c.get(Gl);ws||c.set(Gl,ws=new Set),eh.forEach(P_=>ws.add(P_))})}});if(Ae.length){const B=[];Ae.forEach(q=>{B.push(`@${q.triggerName} has failed due to:\n`),q.errors.forEach(ae=>B.push(`- ${ae}\n`))}),Q.forEach(q=>q.destroy()),this.reportError(B)}const Fe=new Map,Qe=new Map;o.forEach(B=>{const q=B.element;i.has(q)&&(Qe.set(q,q),this._beforeAnimationBuild(B.player.namespaceId,B.instruction,Fe))}),r.forEach(B=>{const q=B.element;this._getPreviousPlayers(q,!1,B.namespaceId,B.triggerName,null).forEach(Ie=>{Dn(Fe,q,[]).push(Ie),Ie.destroy()})});const qt=b.filter(B=>UE(B,l,c)),Yt=new Map;HE(Yt,this.driver,w,c,Yi).forEach(B=>{UE(B,l,c)&&qt.push(B)});const Xi=new Map;f.forEach((B,q)=>{HE(Xi,this.driver,new Set(B),l,"!")}),qt.forEach(B=>{const q=Yt.get(B),ae=Xi.get(B);Yt.set(B,Object.assign(Object.assign({},q),ae))});const pi=[],Xo=[],ea={};o.forEach(B=>{const{element:q,player:ae,instruction:Ie}=B;if(i.has(q)){if(u.has(q))return ae.onDestroy(()=>ki(q,Ie.toStyles)),ae.disabled=!0,ae.overrideTotalTime(Ie.totalTime),void r.push(ae);let kt=ea;if(Qe.size>1){let Mn=q;const kr=[];for(;Mn=Mn.parentNode;){const ot=Qe.get(Mn);if(ot){kt=ot;break}kr.push(Mn)}kr.forEach(ot=>Qe.set(ot,kt))}const xi=this._buildAnimation(ae.namespaceId,Ie,Fe,s,Xi,Yt);if(ae.setRealPlayer(xi),kt===ea)pi.push(ae);else{const Mn=this.playersByElement.get(kt);Mn&&Mn.length&&(ae.parentPlayer=Cr(Mn)),r.push(ae)}}else as(q,Ie.fromStyles),ae.onDestroy(()=>ki(q,Ie.toStyles)),Xo.push(ae),u.has(q)&&r.push(ae)}),Xo.forEach(B=>{const q=s.get(B.element);if(q&&q.length){const ae=Cr(q);B.setRealPlayer(ae)}}),r.forEach(B=>{B.parentPlayer?B.syncPlayerEvents(B.parentPlayer):B.destroy()});for(let B=0;B<b.length;B++){const q=b[B],ae=q[$n];if(Ho(q,qu),ae&&ae.hasAnimation)continue;let Ie=[];if(a.size){let xi=a.get(q);xi&&xi.length&&Ie.push(...xi);let Mn=this.driver.query(q,Xg,!0);for(let kr=0;kr<Mn.length;kr++){let ot=a.get(Mn[kr]);ot&&ot.length&&Ie.push(...ot)}}const kt=Ie.filter(xi=>!xi.destroyed);kt.length?Cj(this,q,kt):this.processLeaveNode(q)}return b.length=0,pi.forEach(B=>{this.players.push(B),B.onDone(()=>{B.destroy();const q=this.players.indexOf(B);this.players.splice(q,1)}),B.play()}),pi}elementContainsData(t,e){let i=!1;const r=e[$n];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,s){let o=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(o=a)}else{const a=this.playersByElement.get(t);if(a){const l=!s||s==vl;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(t,e,i){const s=e.element,o=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==s,d=Dn(i,c,[]);this._getPreviousPlayers(c,u,o,a,e.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}as(s,e.fromStyles)}_buildAnimation(t,e,i,r,s,o){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(p=>{const v=p.element;u.add(v);const b=v[$n];if(b&&b.removedBeforeQueried)return new Vo(p.duration,p.delay);const D=v!==l,w=function(n){const t=[];return jE(n,t),t}((i.get(v)||pj).map(Fe=>Fe.getRealPlayer())).filter(Fe=>!!Fe.element&&Fe.element===v),R=s.get(v),P=o.get(v),Q=fE(0,this._normalizer,0,p.keyframes,R,P),Ae=this._buildPlayer(p,Q,w);if(p.subTimeline&&r&&d.add(v),D){const Fe=new fm(t,a,v);Fe.setRealPlayer(Ae),c.push(Fe)}return Ae});c.forEach(p=>{Dn(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function(n,t,e){let i;if(n instanceof Map){if(i=n.get(t),i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}}else if(i=n[t],i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&delete n[t]}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>jn(p,CE));const f=Cr(h);return f.onDestroy(()=>{u.forEach(p=>Ho(p,CE)),ki(l,e.toStyles)}),d.forEach(p=>{Dn(r,p,[]).push(f)}),f}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Vo(t.duration,t.delay)}}class fm{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Vo,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(i=>jg(t,e,void 0,i))}),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){Dn(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 od(n){return n&&1===n.nodeType}function BE(n,t){const e=n.style.display;return n.style.display=null!=t?t:"none",e}function HE(n,t,e,i,r){const s=[];e.forEach(l=>s.push(BE(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const h=u[d]=t.computeStyle(c,d,r);(!h||0==h.length)&&(c[$n]=gj,o.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>BE(l,s[a++])),o}function $E(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return t.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}const ad="$$classes";function jn(n,t){if(n.classList)n.classList.add(t);else{let e=n[ad];e||(e=n[ad]={}),e[t]=!0}}function Ho(n,t){if(n.classList)n.classList.remove(t);else{let e=n[ad];e&&delete e[t]}}function Cj(n,t,e){Cr(e).onDone(()=>n.processLeaveNode(t))}function jE(n,t){for(let e=0;e<n.length;e++){const i=n[e];i instanceof dE?jE(i.players,t):t.push(i)}}function UE(n,t,e){const i=e.get(n);if(!i)return!1;let r=t.get(n);return r?i.forEach(s=>r.add(s)):t.set(n,i),e.delete(n),!0}class ld{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new _j(t,e,i),this._timelineEngine=new uj(t,e,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(t,e,i,r,s){const o=t+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],c=rm(this._driver,s,l);if(l.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${l.join("\n - ")}`);a=function(n,t,e){return new aj(n,t,e)}(r,c,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[s,o]=pE(i);this._timelineEngine.command(s,e,o,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,s){if("@"==i.charAt(0)){const[o,a]=pE(i);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(t,e,i,r,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function GE(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=pm(t[0]),t.length>1&&(i=pm(t[t.length-1]))):t&&(e=pm(t)),e||i?new Ej(n,e,i):null}let Ej=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(e);s||n.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ki(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ki(this._element,this._initialStyles),this._endStyles&&(ki(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(as(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(as(this._element,this._endStyles),this._endStyles=null),ki(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function pm(n){let t=null;const e=Object.keys(n);for(let i=0;i<e.length;i++){const r=e[i];Mj(r)&&(t=t||{},t[r]=n[r])}return t}function Mj(n){return"display"===n||"position"===n}const WE="animation",zE="animationend";class Nj{constructor(t,e,i,r,s,o,a){this._element=t,this._name=e,this._duration=i,this._delay=r,this._easing=s,this._fillMode=o,this._onDoneFn=a,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=l=>this._handleCallback(l)}apply(){(function(n,t){const e=mm(n,"").trim();let i=0;e.length&&(function(n,t){let e=0;for(let i=0;i<n.length;i++)","===n.charAt(i)&&e++;return e}(e)+1,t=`${e}, ${t}`),cd(n,"",t)})(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),KE(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){qE(this._element,this._name,"paused")}resume(){qE(this._element,this._name,"running")}setPosition(t){const e=YE(this._element,this._name);this._position=t*this._duration,cd(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),i=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),KE(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(n,t){const i=mm(n,"").split(","),r=gm(i,t);r>=0&&(i.splice(r,1),cd(n,"",i.join(",")))}(this._element,this._name))}}function qE(n,t,e){cd(n,"PlayState",e,YE(n,t))}function YE(n,t){const e=mm(n,"");return e.indexOf(",")>0?gm(e.split(","),t):gm([e],t)}function gm(n,t){for(let e=0;e<n.length;e++)if(n[e].indexOf(t)>=0)return e;return-1}function KE(n,t,e){e?n.removeEventListener(zE,t):n.addEventListener(zE,t)}function cd(n,t,e,i){const r=WE+t;if(null!=i){const s=n.style[r];if(s.length){const o=s.split(",");o[i]=e,e=o.join(",")}}n.style[r]=e}function mm(n,t){return n.style[WE+t]||""}class QE{constructor(t,e,i,r,s,o,a,l){this.element=t,this.keyframes=e,this.animationName=i,this._duration=r,this._delay=s,this._finalStyles=a,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=r+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._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Nj(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(i=>i()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:im(this.element,i))})}this.currentSnapshot=t}}class xj extends Vo{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 ZE{constructor(){this._count=0}validateStyleProperty(t){return qg(t)}matchesElement(t,e){return Yg(t,e)}containsElement(t,e){return Kg(t,e)}query(t,e,i){return Qg(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(a=>yE(a));let r=`@keyframes ${e} {\n`,s="";i.forEach(a=>{s=" ";const l=parseFloat(a.offset);r+=`${s}${100*l}% {\n`,s+=" ",Object.keys(a).forEach(c=>{const u=a[c];switch(c){case"offset":return;case"easing":return void(u&&(r+=`${s}animation-timing-function: ${u};\n`));default:return void(r+=`${s}${c}: ${u};\n`)}}),r+=`${s}}\n`}),r+="}\n";const o=document.createElement("style");return o.textContent=r,o}animate(t,e,i,r,s,o=[],a){const l=o.filter(b=>b instanceof QE),c={};SE(i,r)&&l.forEach(b=>{let D=b.currentSnapshot;Object.keys(D).forEach(w=>c[w]=D[w])});const u=function(n){let t={};return n&&(Array.isArray(n)?n:[n]).forEach(i=>{Object.keys(i).forEach(r=>{"offset"==r||"easing"==r||(t[r]=i[r])})}),t}(e=TE(t,e,c));if(0==i)return new xj(t,u);const d="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,d,e);(function(n){var t;const e=null===(t=n.getRootNode)||void 0===t?void 0:t.call(n);return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot?e:document.head})(t).appendChild(h);const p=GE(t,e),v=new QE(t,e,d,i,r,s,u,p);return v.onDestroy(()=>function(n){n.parentNode.removeChild(n)}(h)),v}}class eM{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_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,i){return t.animate(e,i)}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]:im(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class Bj{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(tM().toString()),this._cssKeyframesDriver=new ZE}validateStyleProperty(t){return qg(t)}matchesElement(t,e){return Yg(t,e)}containsElement(t,e){return Kg(t,e)}query(t,e,i){return Qg(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,r,s,o=[],a){if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,r,s,o);const u={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(u.easing=s);const d={},h=o.filter(p=>p instanceof eM);SE(i,r)&&h.forEach(p=>{let v=p.currentSnapshot;Object.keys(v).forEach(b=>d[b]=v[b])});const f=GE(t,e=TE(t,e=e.map(p=>wr(p,!1)),d));return new eM(t,e,u,f)}}function tM(){return hE()&&Element.prototype.animate||{}}let $j=(()=>{class n extends sE{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:ut.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?aE(e):e;return nM(this._renderer,null,i,"register",[r]),new jj(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(C(Gi),C(H))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class jj extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Uj(this._id,t,e||{},this._renderer)}}class Uj{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return nM(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"),this._started=!1}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 nM(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const iM="@.disabled";let Gj=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{o&&o.parentNode(s)&&o.removeChild(s.parentNode,s)}}createRenderer(e,i){const s=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new rM("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,e,u.name,u)};return i.data.animation.forEach(l),new Wj(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&e<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}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 n.\u0275fac=function(e){return new(e||n)(C(Gi),C(ld),C($))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();class rM{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):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,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}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,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==iM?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Wj extends rM{constructor(t,e,i,r){super(e,i,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==iM?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let s=e.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function(n){const t=n.indexOf(".");return[n.substring(0,t),n.substr(t+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}let Yj=(()=>{class n extends ld{constructor(e,i,r){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(C(H),C(Jg),C(cm))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const dd=new j("AnimationModuleType"),sM=[{provide:sE,useClass:$j},{provide:cm,useFactory:function(){return new tj}},{provide:ld,useClass:Yj},{provide:Gi,useFactory:function(n,t,e){return new Gj(n,t,e)},deps:[Ru,ld,$]}],oM=[{provide:Jg,useFactory:function(){return"function"==typeof tM()?new Bj:new ZE}},{provide:dd,useValue:"BrowserAnimations"},...sM],aM=[{provide:Jg,useClass:bE},{provide:dd,useValue:"NoopAnimations"},...sM];let Zj=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?aM:oM}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({providers:oM,imports:[Eg]}),n})();const lM=new mr("12.2.7"),s4=new j("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let cs,Dr=(()=>{class n{constructor(e,i,r){this._hasDoneGlobalChecks=!1,this._document=r,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=i,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!(!Lp()||kg())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}_checkDoctypeIsDefined(){this._checkIsEnabled("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._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);const i=getComputedStyle(e);i&&"none"!==i.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&lM.full!==rE.full&&console.warn("The Angular Material version ("+lM.full+") does not match the Angular CDK version ("+rE.full+").\nPlease ensure the versions of these two packages exactly match.")}}return n.\u0275fac=function(e){return new(e||n)(C(iE),C(s4,8),C(H))},n.\u0275mod=ne({type:n}),n.\u0275inj=X({imports:[[ml],ml]}),n})();try{cs="undefined"!=typeof Intl}catch(n){cs=!1}function ym(n){return new Ce(t=>{let e;try{e=n()}catch(r){return void t.error(r)}return(e?Ot(e):Vu()).subscribe(t)})}function R4(n,t){}class bm{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 x4={dialogContainer:N8("dialogContainer",[lE("void, exit",Lo({opacity:0,transform:"scale(0.7)"})),lE("enter",Lo({transform:"none"})),cE("* => enter",oE("150ms cubic-bezier(0, 0, 0.2, 1)",Lo({transform:"none",opacity:1}))),cE("* => void, * => exit",oE("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Lo({opacity:0})))])};let P4=(()=>{class n extends xg{constructor(e,i,r,s,o,a){super(),this._elementRef=e,this._focusTrapFactory=i,this._changeDetectorRef=r,this._config=o,this._focusMonitor=a,this._animationStateChanged=new F,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=l=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(l)),this._ariaLabelledBy=o.ariaLabelledBy||null,this._document=s}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_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 e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const i=ju(),r=this._elementRef.nativeElement;(!i||i===this._document.body||i===r||r.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=ju())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=ju();return e===i||e.contains(i)}}return n.\u0275fac=function(e){return new(e||n)(g(U),g(WD),g(ct),g(H,8),g(bm),g(eE))},n.\u0275dir=S({type:n,viewQuery:function(e,i){if(1&e&&ri(Wu,7),2&e){let r;Se(r=Te())&&(i._portalOutlet=r.first)}},features:[we]}),n})(),F4=(()=>{class n extends P4{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:i}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:i}))}_onAnimationStart({toState:e,totalTime:i}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:i}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:i})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=function(n){return rr(()=>{const t=n.prototype.constructor,e=t[Vi]||xh(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const s=r[Vi]||xh(r);if(s&&s!==e)return s;r=Object.getPrototypeOf(r)}return s=>new s})}(n)))(i||n)}}(),n.\u0275cmp=Ne({type:n,selectors:"mat-dialog-container",hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,i){1&e&&Wf("@dialogContainer.start",function(s){return i._onAnimationStart(s)})("@dialogContainer.done",function(s){return i._onAnimationDone(s)}),2&e&&(Rt("id",i._id),me("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),Kf("@dialogContainer",i._state))},features:[we],decls:1,vars:0,consts:"cdkPortalOutlet","",template:function(e,i){1&e&&k(0,R4,0,0,"ng-template",0)},directives:[Wu],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:[x4.dialogContainer]}}),n})(),L4=0;class vm{constructor(t,e,i="mat-dialog-"+L4++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Y,this._afterClosed=new Y,this._beforeClosed=new Y,this._state=0,e._id=i,e._animationStateChanged.pipe(Ye(r=>"opened"===r.state),mt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Ye(r=>"closed"===r.state),mt(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(Ye(r=>27===r.keyCode&&!this.disableClose&&!function(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}(r))).subscribe(r=>{r.preventDefault(),Cm(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Cm(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Ye(e=>"closing"===e.state),mt(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 Cm(n,t,e){return void 0!==n._containerInstance&&(n._containerInstance._closeInteractionType=t),n.close(e)}const V4=new j("MatDialogData"),B4=new j("mat-dialog-default-options"),mM=new j("mat-dialog-scroll-strategy"),$4={provide:mM,deps:[Po],useFactory:function(n){return()=>n.scrollStrategies.block()}};let j4=(()=>{class n{constructor(e,i,r,s,o,a,l,c,u){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=s,this._overlayContainer=o,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Y,this._afterOpenedAtThisLevel=new Y,this._ariaHiddenElements=new Map,this.afterAllClosed=ym(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(es(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,i){(i=function(n,t){return Object.assign(Object.assign({},t),n)}(i,this._defaultOptions||new bm)).id&&this.getDialogById(i.id);const r=this._createOverlay(i),s=this._attachDialogContainer(r,i),o=this._attachDialogContent(e,s,r,i);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(()=>this._removeOpenDialog(o)),this.afterOpened.next(o),s._initializeWithAttachedContent(),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(e){const i=this._getOverlayConfig(e);return this._overlay.create(i)}_getOverlayConfig(e){const i=new Lg({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachDialogContainer(e,i){const s=pe.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:bm,useValue:i}]}),o=new Rg(this._dialogContainerType,i.viewContainerRef,s,i.componentFactoryResolver);return e.attach(o).instance}_attachDialogContent(e,i,r,s){const o=new this._dialogRefConstructor(r,i,s.id);if(e instanceof Pe)i.attachTemplatePortal(new Gu(e,null,{$implicit:s.data,dialogRef:o}));else{const a=this._createInjector(s,o,i),l=i.attachComponentPortal(new Rg(e,s.viewContainerRef,a));o.componentInstance=l.instance}return o.updateSize(s.width,s.height).updatePosition(s.position),o}_createInjector(e,i,r){const s=e&&e.viewContainerRef&&e.viewContainerRef.injector,o=[{provide:this._dialogContainerType,useValue:r},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:i}];return e.direction&&(!s||!s.get(is,null,W.Optional))&&o.push({provide:is,useValue:{value:e.direction,change:z()}}),pe.create({parent:s||this._injector,providers:o})}_removeOpenDialog(e){const i=this.openDialogs.indexOf(e);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,s)=>{r?s.setAttribute("aria-hidden",r):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let s=i[r];s!==e&&"SCRIPT"!==s.nodeName&&"STYLE"!==s.nodeName&&!s.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(s,s.getAttribute("aria-hidden")),s.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}}return n.\u0275fac=function(e){return new(e||n)(g(Po),g(pe),g(void 0),g(void 0),g(yl),g(void 0),g($s),g($s),g(j))},n.\u0275dir=S({type:n}),n})(),wm=(()=>{class n extends j4{constructor(e,i,r,s,o,a,l){super(e,i,s,a,l,o,vm,F4,V4)}}return n.\u0275fac=function(e){return new(e||n)(C(Po),C(pe),C(Oo,8),C(B4,8),C(mM),C(n,12),C(yl))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),W4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({providers:[wm,$4],imports:[[X$,MD,Dr],Dr]}),n})();class Dm extends Re{notifyNext(t,e,i,r,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class z4 extends Re{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,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()}}function Em(n,t,e,i,r=new z4(n,e,i)){if(!r.closed)return t instanceof Ce?t.subscribe(r):ih(t)(r)}const yM={};class q4{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Y4(t,this.resultSelector))}}class Y4 extends Dm{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(yM),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 i=0;i<e;i++)this.add(Em(this,t[i],void 0,i))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,i){const r=this.values,o=this.toRespond?r[i]===yM?--this.toRespond:this.toRespond:0;r[i]=e,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const fd=(()=>{function n(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return n.prototype=Object.create(Error.prototype),n})();function bM(n,t){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new K4(n,t,e))}}class K4{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new Q4(t,this.accumulator,this.seed,this.hasSeed))}}class Q4 extends Re{constructor(t,e,i,r){super(t),this.accumulator=e,this._seed=i,this.hasSeed=r,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 i;try{i=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function us(n){return function(e){const i=new J4(n),r=e.lift(i);return i.caught=r}}class J4{constructor(t){this.selector=t}call(t,e){return e.subscribe(new Z4(t,this.selector,this.caught))}}class Z4 extends Ss{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let e;try{e=this.selector(t,this.caught)}catch(s){return void super.error(s)}this._unsubscribeAndRecycle();const i=new Ms(this);this.add(i);const r=Ts(e,i);r!==i&&this.add(r)}}}function wl(n,t){return St(n,t,1)}function Sm(n){return function(e){return 0===n?Vu():e.lift(new X4(n))}}class X4{constructor(t){if(this.total=t,this.total<0)throw new SD}call(t,e){return e.subscribe(new e5(t,this.total))}}class e5 extends Re{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,r=this.count++;e.length<i?e.push(t):e[r%i]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;s<i;s++){const o=e++%i;t.next(r[o])}}t.complete()}}function vM(n=i5){return t=>t.lift(new t5(n))}class t5{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new n5(t,this.errorFactory))}}class n5 extends Re{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 t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function i5(){return new fd}function CM(n=null){return t=>t.lift(new r5(n))}class r5{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new s5(t,this.defaultValue))}}class s5 extends Re{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()}}function $o(n,t){const e=arguments.length>=2;return i=>i.pipe(n?Ye((r,s)=>n(r,s,i)):Yl,mt(1),e?CM(t):vM(()=>new fd))}function Ki(){}function Ft(n,t,e){return function(r){return r.lift(new a5(n,t,e))}}class a5{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new l5(t,this.nextOrObserver,this.error,this.complete))}}class l5 extends Re{constructor(t,e,i,r){super(t),this._tapNext=Ki,this._tapError=Ki,this._tapComplete=Ki,this._tapError=i||Ki,this._tapComplete=r||Ki,gi(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Ki,this._tapError=e.error||Ki,this._tapComplete=e.complete||Ki)}_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(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class u5{constructor(t){this.callback=t}call(t,e){return e.subscribe(new d5(t,this.callback))}}class d5 extends Re{constructor(t,e){super(t),this.add(new Oe(e))}}class Qi{constructor(t,e){this.id=t,this.url=e}}class Tm extends Qi{constructor(t,e,i="imperative",r=null){super(t,e),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Dl extends Qi{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class wM extends Qi{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class h5 extends Qi{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class f5 extends Qi{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class p5 extends Qi{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class g5 extends Qi{constructor(t,e,i,r,s){super(t,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class m5 extends Qi{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _5 extends Qi{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class DM{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class EM{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class y5{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class b5{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class v5{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class C5{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class MM{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const ve="primary";class w5{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 jo(n){return new w5(n)}const SM="ngNavigationCancelingError";function Nm(n){const t=Error("NavigationCancelingError: "+n);return t[SM]=!0,t}function E5(n,t,e){const i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||i.length<n.length))return null;const r={};for(let s=0;s<i.length;s++){const o=i[s],a=n[s];if(o.startsWith(":"))r[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:n.slice(0,i.length),posParams:r}}function Oi(n,t){const e=n?Object.keys(n):void 0,i=t?Object.keys(t):void 0;if(!e||!i||e.length!=i.length)return!1;let r;for(let s=0;s<e.length;s++)if(r=e[s],!TM(n[r],t[r]))return!1;return!0}function TM(n,t){if(Array.isArray(n)&&Array.isArray(t)){if(n.length!==t.length)return!1;const e=[...n].sort(),i=[...t].sort();return e.every((r,s)=>i[s]===r)}return n===t}function NM(n){return Array.prototype.concat.apply([],n)}function AM(n){return n.length>0?n[n.length-1]:null}function Lt(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function Ri(n){return Hc(n)?n:Pa(n)?Ot(Promise.resolve(n)):z(n)}const T5={exact:function OM(n,t,e){if(!hs(n.segments,t.segments)||!pd(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const i in t.children)if(!n.children[i]||!OM(n.children[i],t.children[i],e))return!1;return!0},subset:RM},IM={exact:function(n,t){return Oi(n,t)},subset:function(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>TM(n[e],t[e]))},ignored:()=>!0};function kM(n,t,e){return T5[e.paths](n.root,t.root,e.matrixParams)&&IM[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function RM(n,t,e){return xM(n,t,t.segments,e)}function xM(n,t,e,i){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!hs(r,e)||t.hasChildren()||!pd(r,e,i))}if(n.segments.length===e.length){if(!hs(n.segments,e)||!pd(n.segments,e,i))return!1;for(const r in t.children)if(!n.children[r]||!RM(n.children[r],t.children[r],i))return!1;return!0}{const r=e.slice(0,n.segments.length),s=e.slice(n.segments.length);return!!(hs(n.segments,r)&&pd(n.segments,r,i)&&n.children[ve])&&xM(n.children[ve],t,s,i)}}function pd(n,t,e){return t.every((i,r)=>IM[e](n[r].parameters,i.parameters))}class ds{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=jo(this.queryParams)),this._queryParamMap}toString(){return O5.serialize(this)}}class De{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Lt(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return gd(this)}}class El{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=jo(this.parameters)),this._parameterMap}toString(){return VM(this)}}function hs(n,t){return n.length===t.length&&n.every((e,i)=>e.path===t[i].path)}class Am{}class PM{parse(t){const e=new $5(t);return new ds(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${`/${Ml(t.root,!0)}`}${function(n){const t=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(r=>`${md(e)}=${md(r)}`).join("&"):`${md(e)}=${md(i)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${function(n){return encodeURI(n)}(t.fragment)}`:""}`}}const O5=new PM;function gd(n){return n.segments.map(t=>VM(t)).join("/")}function Ml(n,t){if(!n.hasChildren())return gd(n);if(t){const e=n.children[ve]?Ml(n.children[ve],!1):"",i=[];return Lt(n.children,(r,s)=>{s!==ve&&i.push(`${s}:${Ml(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function(n,t){let e=[];return Lt(n.children,(i,r)=>{r===ve&&(e=e.concat(t(i,r)))}),Lt(n.children,(i,r)=>{r!==ve&&(e=e.concat(t(i,r)))}),e}(n,(i,r)=>r===ve?[Ml(n.children[ve],!1)]:[`${r}:${Ml(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[ve]?`${gd(n)}/${e[0]}`:`${gd(n)}/(${e.join("//")})`}}function FM(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function md(n){return FM(n).replace(/%3B/gi,";")}function Im(n){return FM(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function _d(n){return decodeURIComponent(n)}function LM(n){return _d(n.replace(/\+/g,"%20"))}function VM(n){return`${Im(n.path)}${function(n){return Object.keys(n).map(t=>`;${Im(t)}=${Im(n[t])}`).join("")}(n.parameters)}`}const F5=/^[^\/()?;=#]+/;function yd(n){const t=n.match(F5);return t?t[0]:""}const L5=/^[^=?&#]+/,B5=/^[^?&#]+/;class $5{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new De([],{}):new De([],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 i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[ve]=new De(t,e)),i}parseSegment(){const t=yd(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new El(_d(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=yd(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=yd(this.remaining);r&&(i=r,this.capture(i))}t[_d(e)]=_d(i)}parseQueryParam(t){const e=function(n){const t=n.match(L5);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=function(n){const t=n.match(B5);return t?t[0]:""}(this.remaining);o&&(i=o,this.capture(i))}const r=LM(e),s=LM(i);if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)||(o=[o],t[r]=o),o.push(s)}else t[r]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=yd(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=ve);const o=this.parseChildren();e[s]=1===Object.keys(o).length?o[ve]:new De([],o),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 BM{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=km(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){const e=km(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Om(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return Om(t,this._root).map(e=>e.value)}}function km(n,t){if(n===t.value)return t;for(const e of t.children){const i=km(n,e);if(i)return i}return null}function Om(n,t){if(n===t.value)return[t];for(const e of t.children){const i=Om(n,e);if(i.length)return i.unshift(t),i}return[]}class Ji{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Sl(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class HM extends BM{constructor(t,e){super(t),this.snapshot=e,Rm(this,t)}toString(){return this.snapshot.toString()}}function $M(n,t){const e=function(n,t){const o=new bd([],{},{},"",{},ve,t,null,n.root,-1,{});return new UM("",new Ji(o,[]))}(n,t),i=new _t([new El("",{})]),r=new _t({}),s=new _t({}),o=new _t({}),a=new _t(""),l=new Uo(i,r,o,a,s,ve,t,e.root);return l.snapshot=e.root,new HM(new Ji(l,[]),e)}class Uo{constructor(t,e,i,r,s,o,a,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this._futureSnapshot=l}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(ge(t=>jo(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ge(t=>jo(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function jM(n,t="emptyOnly"){const e=n.pathFromRoot;let i=0;if("always"!==t)for(i=e.length-1;i>=1;){const r=e[i],s=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(s.component)break;i--}}return function(n){return n.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:{}})}(e.slice(i))}class bd{constructor(t,e,i,r,s,o,a,l,c,u,d){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._resolve=d}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=jo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=jo(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class UM extends BM{constructor(t,e){super(e),this.url=t,Rm(this,e)}toString(){return GM(this._root)}}function Rm(n,t){t.value._routerState=n,t.children.forEach(e=>Rm(n,e))}function GM(n){const t=n.children.length>0?` { ${n.children.map(GM).join(", ")} } `:"";return`${n.value}${t}`}function xm(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Oi(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),Oi(t.params,e.params)||n.params.next(e.params),function(n,t){if(n.length!==t.length)return!1;for(let e=0;e<n.length;++e)if(!Oi(n[e],t[e]))return!1;return!0}(t.url,e.url)||n.url.next(e.url),Oi(t.data,e.data)||n.data.next(e.data)}else n.snapshot=n._futureSnapshot,n.data.next(n._futureSnapshot.data)}function Pm(n,t){return Oi(n.params,t.params)&&function(n,t){return hs(n,t)&&n.every((e,i)=>Oi(e.parameters,t[i].parameters))}(n.url,t.url)&&!(!n.parent!=!t.parent)&&(!n.parent||Pm(n.parent,t.parent))}function vd(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=t.value;const r=function(n,t,e){return t.children.map(i=>{for(const r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return vd(n,i,r);return vd(n,i)})}(n,t,e);return new Ji(i,r)}{if(n.shouldAttach(t.value)){const s=n.retrieve(t.value);if(null!==s){const o=s.route;return WM(t,o),o}}const i=function(n){return new Uo(new _t(n.url),new _t(n.params),new _t(n.queryParams),new _t(n.fragment),new _t(n.data),n.outlet,n.component,n)}(t.value),r=t.children.map(s=>vd(n,s));return new Ji(i,r)}}function WM(n,t){if(n.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(n.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=n.value;for(let e=0;e<n.children.length;++e)WM(n.children[e],t.children[e])}function Cd(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Tl(n){return"object"==typeof n&&null!=n&&n.outlets}function Fm(n,t,e,i,r){let s={};return i&&Lt(i,(o,a)=>{s[a]=Array.isArray(o)?o.map(l=>`${l}`):`${o}`}),new ds(e.root===n?t:zM(e.root,n,t),s,r)}function zM(n,t,e){const i={};return Lt(n.children,(r,s)=>{i[s]=r===t?e:zM(r,t,e)}),new De(n.segments,i)}class qM{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Cd(i[0]))throw new Error("Root segment cannot have matrix parameters");const r=i.find(Tl);if(r&&r!==AM(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Lm{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function YM(n,t,e){if(n||(n=new De([],{})),0===n.segments.length&&n.hasChildren())return wd(n,t,e);const i=function(n,t,e){let i=0,r=t;const s={match:!1,pathIndex:0,commandIndex:0};for(;r<n.segments.length;){if(i>=e.length)return s;const o=n.segments[r],a=e[i];if(Tl(a))break;const l=`${a}`,c=i<e.length-1?e[i+1]:null;if(r>0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!QM(l,c,o))return s;i+=2}else{if(!QM(l,{},o))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex<n.segments.length){const s=new De(n.segments.slice(0,i.pathIndex),{});return s.children[ve]=new De(n.segments.slice(i.pathIndex),n.children),wd(s,0,r)}return i.match&&0===r.length?new De(n.segments,{}):i.match&&!n.hasChildren()?Vm(n,t,e):i.match?wd(n,0,r):Vm(n,t,e)}function wd(n,t,e){if(0===e.length)return new De(n.segments,{});{const i=function(n){return Tl(n[0])?n[0].outlets:{[ve]:n}}(e),r={};return Lt(i,(s,o)=>{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=YM(n.children[o],t,s))}),Lt(n.children,(s,o)=>{void 0===i[o]&&(r[o]=s)}),new De(n.segments,r)}}function Vm(n,t,e){const i=n.segments.slice(0,t);let r=0;for(;r<e.length;){const s=e[r];if(Tl(s)){const l=X5(s.outlets);return new De(i,l)}if(0===r&&Cd(e[0])){i.push(new El(n.segments[t].path,KM(e[0]))),r++;continue}const o=Tl(s)?s.outlets[ve]:`${s}`,a=r<e.length-1?e[r+1]:null;o&&a&&Cd(a)?(i.push(new El(o,KM(a))),r+=2):(i.push(new El(o,{})),r++)}return new De(i,{})}function X5(n){const t={};return Lt(n,(e,i)=>{"string"==typeof e&&(e=[e]),null!==e&&(t[i]=Vm(new De([],{}),0,e))}),t}function KM(n){const t={};return Lt(n,(e,i)=>t[i]=`${e}`),t}function QM(n,t,e){return n==e.path&&Oi(t,e.parameters)}class tU{constructor(t,e,i,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),xm(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const r=Sl(e);t.children.forEach(s=>{const o=s.value.outlet;this.deactivateRoutes(s,r[o],i),delete r[o]}),Lt(r,(s,o)=>{this.deactivateRouteAndItsChildren(s,i)})}deactivateRoutes(t,e,i){const r=t.value,s=e?e.value:null;if(r===s)if(r.component){const o=i.getContext(r.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const r=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t,contexts:s})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,s=Sl(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const r=Sl(e);t.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],i),this.forwardEvent(new C5(s.value.snapshot))}),t.children.length&&this.forwardEvent(new b5(t.value.snapshot))}activateRoutes(t,e,i){const r=t.value,s=e?e.value:null;if(xm(r),r===s)if(r.component){const o=i.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,i);else if(r.component){const o=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),JM(a.route)}else{const a=function(n){for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),l=a?a.module.componentFactoryResolver:null;o.attachRef=null,o.route=r,o.resolver=l,o.outlet&&o.outlet.activateWith(r,l),this.activateChildRoutes(t,null,o.children)}}else this.activateChildRoutes(t,null,i)}}function JM(n){xm(n.value),n.children.forEach(JM)}class Bm{constructor(t,e){this.routes=t,this.module=e}}function Er(n){return"function"==typeof n}function fs(n){return n instanceof ds}const Nl=Symbol("INITIAL_VALUE");function Al(){return Hn(n=>function(...n){let t,e;return Es(n[n.length-1])&&(e=n.pop()),"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&tr(n[0])&&(n=n[0]),sa(n,e).lift(new q4(t))}(n.map(t=>t.pipe(mt(1),es(Nl)))).pipe(bM((t,e)=>{let i=!1;return e.reduce((r,s,o)=>r!==Nl?r:(s===Nl&&(i=!0),i||!1!==s&&o!==e.length-1&&!fs(s)?r:s),t)},Nl),Ye(t=>t!==Nl),ge(t=>fs(t)?t:!0===t),mt(1)))}let ZM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ne({type:n,selectors:"ng-component",decls:1,vars:0,template:function(e,i){1&e&&y(0,"router-outlet")},directives:function(){return[Wm]},encapsulation:2}),n})();function XM(n,t=""){for(let e=0;e<n.length;e++){const i=n[e];lU(i,cU(t,i))}}function lU(n,t){n.children&&XM(n.children,t)}function cU(n,t){return t?n||t.path?n&&!t.path?`${n}/`:!n&&t.path?t.path:`${n}/${t.path}`:"":n}function Hm(n){const t=n.children&&n.children.map(Hm),e=t?Object.assign(Object.assign({},n),{children:t}):Object.assign({},n);return!e.component&&(t||e.loadChildren)&&e.outlet&&e.outlet!==ve&&(e.component=ZM),e}function Un(n){return n.outlet||ve}function eS(n,t){const e=n.filter(i=>Un(i)===t);return e.push(...n.filter(i=>Un(i)!==t)),e}const tS={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Dd(n,t,e){var i;if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},tS):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(t.matcher||E5)(e,n,t);if(!s)return Object.assign({},tS);const o={};Lt(s.posParams,(l,c)=>{o[c]=l.path});const a=s.consumed.length>0?Object.assign(Object.assign({},o),s.consumed[s.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:a,positionalParamSegments:null!==(i=s.posParams)&&void 0!==i?i:{}}}function Ed(n,t,e,i,r="corrected"){if(e.length>0&&function(n,t,e){return e.some(i=>Md(n,t,i)&&Un(i)!==ve)}(n,e,i)){const o=new De(t,function(n,t,e,i){const r={};r[ve]=i,i._sourceSegment=n,i._segmentIndexShift=t.length;for(const s of e)if(""===s.path&&Un(s)!==ve){const o=new De([],{});o._sourceSegment=n,o._segmentIndexShift=t.length,r[Un(s)]=o}return r}(n,t,i,new De(e,n.children)));return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function(n,t,e){return e.some(i=>Md(n,t,i))}(n,e,i)){const o=new De(n.segments,function(n,t,e,i,r,s){const o={};for(const a of i)if(Md(n,e,a)&&!r[Un(a)]){const l=new De([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===s?n.segments.length:t.length,o[Un(a)]=l}return Object.assign(Object.assign({},r),o)}(n,t,e,i,n.children,r));return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}const s=new De(n.segments,n.children);return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:e}}function Md(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function nS(n,t,e,i){return!!(Un(n)===i||i!==ve&&Md(t,e,n))&&("**"===n.path||Dd(t,n,e).matched)}function iS(n,t,e){return 0===t.length&&!n.children[e]}class Il{constructor(t){this.segmentGroup=t||null}}class rS{constructor(t){this.urlTree=t}}function Sd(n){return new Ce(t=>t.error(new Il(n)))}function sS(n){return new Ce(t=>t.error(new rS(n)))}function pU(n){return new Ce(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n}'`)))}class _U{constructor(t,e,i,r,s){this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(Ai)}apply(){const t=Ed(this.urlTree.root,[],[],this.config).segmentGroup,e=new De(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,ve).pipe(ge(s=>this.createUrlTree($m(s),this.urlTree.queryParams,this.urlTree.fragment))).pipe(us(s=>{if(s instanceof rS)return this.allowRedirects=!1,this.match(s.urlTree);throw s instanceof Il?this.noMatchError(s):s}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,ve).pipe(ge(r=>this.createUrlTree($m(r),t.queryParams,t.fragment))).pipe(us(r=>{throw r instanceof Il?this.noMatchError(r):r}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const r=t.segments.length>0?new De([],{[ve]:t}):t;return new ds(r,e,i)}expandSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(ge(s=>new De([],s))):this.expandSegment(t,i,e,i.segments,r,!0)}expandChildren(t,e,i){const r=[];for(const s of Object.keys(i.children))"primary"===s?r.unshift(s):r.push(s);return Ot(r).pipe(wl(s=>{const o=i.children[s],a=eS(e,s);return this.expandSegmentGroup(t,a,o,s).pipe(ge(l=>({segment:l,outlet:s})))}),bM((s,o)=>(s[o.outlet]=o.segment,s),{}),function(n,t){const e=arguments.length>=2;return i=>i.pipe(n?Ye((r,s)=>n(r,s,i)):Yl,Sm(1),e?CM(t):vM(()=>new fd))}())}expandSegment(t,e,i,r,s,o){return Ot(i).pipe(wl(a=>this.expandSegmentAgainstRoute(t,e,i,a,r,s,o).pipe(us(c=>{if(c instanceof Il)return z(null);throw c}))),$o(a=>!!a),us((a,l)=>{if(a instanceof fd||"EmptyError"===a.name){if(iS(e,r,s))return z(new De([],{}));throw new Il(e)}throw a}))}expandSegmentAgainstRoute(t,e,i,r,s,o,a){return nS(r,e,s,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,s,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o):Sd(e):Sd(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,r){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?sS(s):this.lineralizeSegments(i,s).pipe(St(o=>{const a=new De(o,{});return this.expandSegment(t,a,e,o,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o){const{matched:a,consumedSegments:l,lastChild:c,positionalParamSegments:u}=Dd(e,r,s);if(!a)return Sd(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?sS(d):this.lineralizeSegments(r,d).pipe(St(h=>this.expandSegment(t,e,i,h.concat(s.slice(c)),o,!1)))}matchSegmentAgainstRoute(t,e,i,r,s){if("**"===i.path)return i.loadChildren?(i._loadedConfig?z(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe(ge(h=>(i._loadedConfig=h,new De(r,{})))):z(new De(r,{}));const{matched:o,consumedSegments:a,lastChild:l}=Dd(e,i,r);if(!o)return Sd(e);const c=r.slice(l);return this.getChildConfig(t,i,r).pipe(St(d=>{const h=d.module,f=d.routes,{segmentGroup:p,slicedSegments:v}=Ed(e,a,c,f),b=new De(p.segments,p.children);if(0===v.length&&b.hasChildren())return this.expandChildren(h,f,b).pipe(ge(P=>new De(a,P)));if(0===f.length&&0===v.length)return z(new De(a,{}));const D=Un(i)===s;return this.expandSegment(h,b,f,v,D?ve:s,!0).pipe(ge(R=>new De(a.concat(R.segments),R.children)))}))}getChildConfig(t,e,i){return e.children?z(new Bm(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?z(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe(St(r=>r?this.configLoader.load(t.injector,e).pipe(ge(s=>(e._loadedConfig=s,s))):function(n){return new Ce(t=>t.error(Nm(`Cannot load children because the guard of the route "path: '${n.path}'" returned false`)))}(e))):z(new Bm([],t))}runCanLoadGuards(t,e,i){const r=e.canLoad;return r&&0!==r.length?z(r.map(o=>{const a=t.get(o);let l;if(function(n){return n&&Er(n.canLoad)}(a))l=a.canLoad(e,i);else{if(!Er(a))throw new Error("Invalid CanLoad guard");l=a(e,i)}return Ri(l)})).pipe(Al(),Ft(o=>{if(!fs(o))return;const a=Nm(`Redirecting to "${this.urlSerializer.serialize(o)}"`);throw a.url=o,a}),ge(o=>!0===o)):z(!0)}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return z(i);if(r.numberOfChildren>1||!r.children[ve])return pU(t.redirectTo);r=r.children[ve]}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,r){const s=this.createSegmentGroup(t,e.root,i,r);return new ds(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return Lt(t,(r,s)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[s]=e[a]}else i[s]=r}),i}createSegmentGroup(t,e,i,r){const s=this.createSegments(t,e.segments,i,r);let o={};return Lt(e.children,(a,l)=>{o[l]=this.createSegmentGroup(t,a,i,r)}),new De(s,o)}createSegments(t,e,i,r){return e.map(s=>s.path.startsWith(":")?this.findPosParam(t,s,r):this.findOrReturn(s,i))}findPosParam(t,e,i){const r=i[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let i=0;for(const r of e){if(r.path===t.path)return e.splice(i),r;i++}return t}}function $m(n){const t={};for(const i of Object.keys(n.children)){const s=$m(n.children[i]);(s.segments.length>0||s.hasChildren())&&(t[i]=s)}return function(n){if(1===n.numberOfChildren&&n.children[ve]){const t=n.children[ve];return new De(n.segments.concat(t.segments),t.children)}return n}(new De(n.segments,t))}class oS{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Td{constructor(t,e){this.component=t,this.route=e}}function vU(n,t,e){const i=n._root;return kl(i,t?t._root:null,e,[i.value])}function Nd(n,t,e){const i=function(n){if(!n)return null;for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(i?i.module.injector:e).get(n)}function kl(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=Sl(t);return n.children.forEach(o=>{(function(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=n.value,o=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!hs(n.url,t.url);case"pathParamsOrQueryParamsChange":return!hs(n.url,t.url)||!Oi(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Pm(n,t)||!Oi(n.queryParams,t.queryParams);case"paramsChange":default:return!Pm(n,t)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new oS(i)):(s.data=o.data,s._resolvedData=o._resolvedData),kl(n,t,s.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Td(a.outlet.component,o))}else o&&Ol(t,a,r),r.canActivateChecks.push(new oS(i)),kl(n,null,s.component?a?a.children:null:e,i,r)})(o,s[o.value.outlet],e,i.concat([o.value]),r),delete s[o.value.outlet]}),Lt(s,(o,a)=>Ol(o,e.getContext(a),r)),r}function Ol(n,t,e){const i=Sl(n),r=n.value;Lt(i,(s,o)=>{Ol(s,r.component?t?t.children.getContext(o):null:t,e)}),e.canDeactivateChecks.push(new Td(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}class RU{}function aS(n){return new Ce(t=>t.error(n))}class PU{constructor(t,e,i,r,s,o){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){const t=Ed(this.urlTree.root,[],[],this.config.filter(o=>void 0===o.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,ve);if(null===e)return null;const i=new bd([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},ve,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ji(i,e),s=new UM(this.url,r);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,i=jM(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=[];for(const s of Object.keys(e.children)){const o=e.children[s],a=eS(t,s),l=this.processSegmentGroup(a,o,s);if(null===l)return null;i.push(...l)}const r=lS(i);return function(n){n.sort((t,e)=>t.value.outlet===ve?-1:e.value.outlet===ve?1:t.value.outlet.localeCompare(e.value.outlet))}(r),r}processSegment(t,e,i,r){for(const s of t){const o=this.processSegmentAgainstRoute(s,e,i,r);if(null!==o)return o}return iS(e,i,r)?[]:null}processSegmentAgainstRoute(t,e,i,r){if(t.redirectTo||!nS(t,e,i,r))return null;let s,o=[],a=[];if("**"===t.path){const f=i.length>0?AM(i).parameters:{};s=new bd(i,f,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,dS(t),Un(t),t.component,t,cS(e),uS(e)+i.length,hS(t))}else{const f=Dd(e,t,i);if(!f.matched)return null;o=f.consumedSegments,a=i.slice(f.lastChild),s=new bd(o,f.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,dS(t),Un(t),t.component,t,cS(e),uS(e)+o.length,hS(t))}const l=function(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:u}=Ed(e,o,a,l.filter(f=>void 0===f.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const f=this.processChildren(l,c);return null===f?null:[new Ji(s,f)]}if(0===l.length&&0===u.length)return[new Ji(s,[])];const d=Un(t)===r,h=this.processSegment(l,c,u,d?ve:r);return null===h?null:[new Ji(s,h)]}}function VU(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function lS(n){const t=[],e=new Set;for(const i of n){if(!VU(i)){t.push(i);continue}const r=t.find(s=>i.value.routeConfig===s.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):t.push(i)}for(const i of e){const r=lS(i.children);t.push(new Ji(i.value,r))}return t.filter(i=>!e.has(i))}function cS(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function uS(n){let t=n,e=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift?t._segmentIndexShift:0;return e-1}function dS(n){return n.data||{}}function hS(n){return n.resolve||{}}function jm(n){return Hn(t=>{const e=n(t);return e?Ot(e).pipe(ge(()=>t)):z(t)})}class zU 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 Um=new j("ROUTES");class fS{constructor(t,e,i,r){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=r}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const r=this.loadModuleFactory(e.loadChildren).pipe(ge(s=>{this.onLoadEndListener&&this.onLoadEndListener(e);const o=s.create(t);return new Bm(NM(o.injector.get(Um,void 0,W.Self|W.Optional)).map(Hm),o)}),us(s=>{throw e._loader$=void 0,s}));return e._loader$=new z_(r,()=>new Y).pipe(sh()),e._loader$}loadModuleFactory(t){return"string"==typeof t?Ot(this.loader.load(t)):Ri(t()).pipe(St(e=>e instanceof P1?z(e):Ot(this.compiler.compileModuleAsync(e))))}}class qU{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Go,this.attachRef=null}}class Go{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}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 qU,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class KU{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function QU(n){throw n}function JU(n,t,e){return t.parse("/")}function pS(n,t){return z(null)}const ZU={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},XU={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let hn=(()=>{class n{constructor(e,i,r,s,o,a,l,c){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=s,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Y,this.errorHandler=QU,this.malformedUriErrorHandler=JU,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:pS,afterPreactivation:pS},this.urlHandlingStrategy=new KU,this.routeReuseStrategy=new zU,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(Ai),this.console=o.get(ou);const h=o.get($);this.isNgZoneEnabled=h instanceof $&&$.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new ds(new De([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new fS(a,l,f=>this.triggerEvent(new DM(f)),f=>this.triggerEvent(new EM(f))),this.routerState=$M(this.currentUrlTree,this.rootComponentType),this.transitions=new _t({id:0,targetPageId: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()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(Ye(r=>0!==r.id),ge(r=>Object.assign(Object.assign({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),Hn(r=>{let s=!1,o=!1;return z(r).pipe(Ft(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Hn(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return Ad(a.source)&&(this.browserUrlTree=a.extractedUrl),z(a).pipe(Hn(d=>{const h=this.transitions.getValue();return i.next(new Tm(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions.getValue()?ts:Promise.resolve(d)}),function(n,t,e,i){return Hn(r=>function(n,t,e,i,r){return new _U(n,t,e,i,r).apply()}(n,t,e,r.extractedUrl,i).pipe(ge(s=>Object.assign(Object.assign({},r),{urlAfterRedirects:s}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Ft(d=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:d.urlAfterRedirects})}),function(n,t,e,i,r){return St(s=>function(n,t,e,i,r="emptyOnly",s="legacy"){try{const o=new PU(n,t,e,i,r,s).recognize();return null===o?aS(new RU):z(o)}catch(o){return aS(o)}}(n,t,s.urlAfterRedirects,e(s.urlAfterRedirects),i,r).pipe(ge(o=>Object.assign(Object.assign({},s),{targetSnapshot:o}))))}(this.rootComponentType,this.config,d=>this.serializeUrl(d),this.paramsInheritanceStrategy,this.relativeLinkResolution),Ft(d=>{"eager"===this.urlUpdateStrategy&&(d.extras.skipLocationChange||this.setBrowserUrl(d.urlAfterRedirects,d),this.browserUrlTree=d.urlAfterRedirects);const h=new f5(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(h)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:f,source:p,restoredState:v,extras:b}=a,D=new Tm(h,this.serializeUrl(f),p,v);i.next(D);const w=$M(f,this.rootComponentType).snapshot;return z(Object.assign(Object.assign({},a),{targetSnapshot:w,urlAfterRedirects:f,extras:Object.assign(Object.assign({},b),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,this.browserUrlTree=a.urlAfterRedirects,a.resolve(null),ts}),jm(a=>{const{targetSnapshot:l,id:c,extractedUrl:u,rawUrl:d,extras:{skipLocationChange:h,replaceUrl:f}}=a;return this.hooks.beforePreactivation(l,{navigationId:c,appliedUrlTree:u,rawUrlTree:d,skipLocationChange:!!h,replaceUrl:!!f})}),Ft(a=>{const l=new p5(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),ge(a=>Object.assign(Object.assign({},a),{guards:vU(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function(n,t){return St(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=e;return 0===o.length&&0===s.length?z(Object.assign(Object.assign({},e),{guardsResult:!0})):function(n,t,e,i){return Ot(n).pipe(St(r=>function(n,t,e,i,r){const s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return s&&0!==s.length?z(s.map(a=>{const l=Nd(a,t,r);let c;if(function(n){return n&&Er(n.canDeactivate)}(l))c=Ri(l.canDeactivate(n,t,e,i));else{if(!Er(l))throw new Error("Invalid CanDeactivate guard");c=Ri(l(n,t,e,i))}return c.pipe($o())})).pipe(Al()):z(!0)}(r.component,r.route,e,t,i)),$o(r=>!0!==r,!0))}(o,i,r,n).pipe(St(a=>a&&function(n){return"boolean"==typeof n}(a)?function(n,t,e,i){return Ot(t).pipe(wl(r=>Lu(function(n,t){return null!==n&&t&&t(new y5(n)),z(!0)}(r.route.parent,i),function(n,t){return null!==n&&t&&t(new v5(n)),z(!0)}(r.route,i),function(n,t,e){const i=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(o=>function(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(o)).filter(o=>null!==o).map(o=>ym(()=>z(o.guards.map(l=>{const c=Nd(l,o.node,e);let u;if(function(n){return n&&Er(n.canActivateChild)}(c))u=Ri(c.canActivateChild(i,n));else{if(!Er(c))throw new Error("Invalid CanActivateChild guard");u=Ri(c(i,n))}return u.pipe($o())})).pipe(Al())));return z(s).pipe(Al())}(n,r.path,e),function(n,t,e){const i=t.routeConfig?t.routeConfig.canActivate:null;return i&&0!==i.length?z(i.map(s=>ym(()=>{const o=Nd(s,t,e);let a;if(function(n){return n&&Er(n.canActivate)}(o))a=Ri(o.canActivate(t,n));else{if(!Er(o))throw new Error("Invalid CanActivate guard");a=Ri(o(t,n))}return a.pipe($o())}))).pipe(Al()):z(!0)}(n,r.route,e))),$o(r=>!0!==r,!0))}(i,s,n,t):z(a)),ge(a=>Object.assign(Object.assign({},e),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Ft(a=>{if(fs(a.guardsResult)){const c=Nm(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw c.url=a.guardsResult,c}const l=new g5(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),Ye(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),jm(a=>{if(a.guards.canActivateChecks.length)return z(a).pipe(Ft(l=>{const c=new m5(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),Hn(l=>{let c=!1;return z(l).pipe(function(n,t){return St(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return z(e);let s=0;return Ot(r).pipe(wl(o=>function(n,t,e,i){return function(n,t,e,i){const r=Object.keys(n);if(0===r.length)return z({});const s={};return Ot(r).pipe(St(o=>function(n,t,e,i){const r=Nd(n,t,i);return Ri(r.resolve?r.resolve(t,e):r(t,e))}(n[o],t,e,i).pipe(Ft(a=>{s[o]=a}))),Sm(1),St(()=>Object.keys(s).length===r.length?z(s):ts))}(n._resolve,n,t,i).pipe(ge(s=>(n._resolvedData=s,n.data=Object.assign(Object.assign({},n.data),jM(n,e).resolve),null)))}(o.route,i,n,t)),Ft(()=>s++),Sm(1),St(o=>s===r.length?z(e):ts))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Ft({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"At least one route resolver didn't emit any value."))}}))}),Ft(l=>{const c=new _5(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),jm(a=>{const{targetSnapshot:l,id:c,extractedUrl:u,rawUrl:d,extras:{skipLocationChange:h,replaceUrl:f}}=a;return this.hooks.afterPreactivation(l,{navigationId:c,appliedUrlTree:u,rawUrlTree:d,skipLocationChange:!!h,replaceUrl:!!f})}),ge(a=>{const l=function(n,t,e){const i=vd(n,t._root,e?e._root:void 0);return new HM(i,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:l})}),Ft(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,t,e)=>ge(i=>(new tU(t,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Ft({next(){s=!0},complete(){s=!0}}),function(n){return t=>t.lift(new u5(n))}(()=>{if(!s&&!o){const a=`Navigation ID ${r.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(r),this.cancelNavigationTransition(r,a)):this.cancelNavigationTransition(r,a)}this.currentNavigation=null}),us(a=>{if(o=!0,function(n){return n&&n[SM]}(a)){const l=fs(a.url);l||(this.navigated=!0,this.restoreHistory(r,!0));const c=new wM(r.id,this.serializeUrl(r.extractedUrl),a.message);i.next(c),l?setTimeout(()=>{const u=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Ad(r.source)};this.scheduleNavigation(u,"imperative",null,d,{resolve:r.resolve,reject:r.reject,promise:r.promise})},0):r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new h5(r.id,this.serializeUrl(r.extractedUrl),a);i.next(l);try{r.resolve(this.errorHandler(a))}catch(c){r.reject(c)}}return ts}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i=this.extractLocationChangeInfoFromEvent(e);this.shouldScheduleNavigation(this.lastLocationChangeInfo,i)&&setTimeout(()=>{const{source:r,state:s,urlTree:o}=i,a={replaceUrl:!0};if(s){const l=Object.assign({},s);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(a.state=l)}this.scheduleNavigation(o,r,s,a)},0),this.lastLocationChangeInfo=i}))}extractLocationChangeInfoFromEvent(e){var i;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(i=e.state)||void 0===i?void 0:i.navigationId)?e.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(e,i){if(!e)return!0;const r=i.urlTree.toString()===e.urlTree.toString();return i.transitionId!==e.transitionId||!r||!("hashchange"===i.source&&"popstate"===e.source||"popstate"===i.source&&"hashchange"===e.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){XM(e),this.config=e.map(Hm),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(e,i={}){const{relativeTo:r,queryParams:s,fragment:o,queryParamsHandling:a,preserveFragment:l}=i,c=r||this.routerState.root,u=l?this.currentUrlTree.fragment:o;let d=null;switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}return null!==d&&(d=this.removeEmptyProps(d)),function(n,t,e,i,r){if(0===e.length)return Fm(t.root,t.root,t,i,r);const s=function(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new qM(!0,0,n);let t=0,e=!1;const i=n.reduce((r,s,o)=>{if("object"==typeof s&&null!=s){if(s.outlets){const a={};return Lt(s.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return"string"!=typeof s?[...r,s]:0===o?(s.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?t++:""!=a&&r.push(a))}),r):[...r,s]},[]);return new qM(e,t,i)}(e);if(s.toRoot())return Fm(t.root,new De([],{}),t,i,r);const o=function(n,t,e){if(n.isAbsolute)return new Lm(t.root,!0,0);if(-1===e.snapshot._lastPathIndex){const s=e.snapshot._urlSegment;return new Lm(s,s===t.root,0)}const i=Cd(n.commands[0])?0:1;return function(n,t,e){let i=n,r=t,s=e;for(;s>r;){if(s-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new Lm(i,!1,r-s)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+i,n.numberOfDoubleDots)}(s,t,n),a=o.processChildren?wd(o.segmentGroup,o.index,s.commands):YM(o.segmentGroup,o.index,s.commands);return Fm(o.segmentGroup,a,t,i,r)}(c,this.currentUrlTree,e,d,null!=u?u:null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=fs(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function(n){for(let t=0;t<n.length;t++){const e=n[t];if(null==e)throw new Error(`The requested path contains ${e} segment at index ${t}`)}}(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let i;try{i=this.urlSerializer.parse(e)}catch(r){i=this.malformedUriErrorHandler(r,this.urlSerializer,e)}return i}isActive(e,i){let r;if(r=!0===i?Object.assign({},ZU):!1===i?Object.assign({},XU):i,fs(e))return kM(this.currentUrlTree,e,r);const s=this.parseUrl(e);return kM(this.currentUrlTree,s,r)}removeEmptyProps(e){return Object.keys(e).reduce((i,r)=>{const s=e[r];return null!=s&&(i[r]=s),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Dl(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,r,s,o){var a,l;if(this.disposed)return Promise.resolve(!1);const c=this.getTransition(),u=Ad(i)&&c&&!Ad(c.source),f=(this.lastSuccessfulId===c.id||this.currentNavigation?c.rawUrl:c.urlAfterRedirects).toString()===e.toString();if(u&&f)return Promise.resolve(!0);let p,v,b;o?(p=o.resolve,v=o.reject,b=o.promise):b=new Promise((R,P)=>{p=R,v=P});const D=++this.navigationId;let w;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),w=r&&r.\u0275routerPageId?r.\u0275routerPageId:s.replaceUrl||s.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(l=this.browserPageId)&&void 0!==l?l:0)+1):w=0,this.setTransition({id:D,targetPageId:w,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:s,resolve:p,reject:v,promise:b,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),b.catch(R=>Promise.reject(R))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),s=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",s):this.location.go(r,"",s)}restoreHistory(e,i=!1){var r,s;if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===o?this.currentUrlTree===(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i){const r=new wM(e.id,this.serializeUrl(e.extractedUrl),i);this.triggerEvent(r),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return n.\u0275fac=function(e){return new(e||n)(C($s),C(Am),C(Go),C(Oo),C(pe),C(lu),C(Kr),C(void 0))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();function Ad(n){return"imperative"!==n}let Id=(()=>{class n{constructor(e,i,r){this.router=e,this.route=i,this.locationStrategy=r,this.commands=[],this.onChanges=new Y,this.subscription=e.events.subscribe(s=>{s instanceof Dl&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,i,r,s,o){if(0!==e||i||r||s||o||"string"==typeof this.target&&"_self"!=this.target)return!0;const a={skipLocationChange:Wo(this.skipLocationChange),replaceUrl:Wo(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!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:Wo(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(g(hn),g(Uo),g(ko))},n.\u0275dir=S({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,i){1&e&&x("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&e&&(Rt("href",i.href,Ys),me("target",i.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[Ee]}),n})();function Wo(n){return""===n||!!n}let Wm=(()=>{class n{constructor(e,i,r,s,o){this.parentContexts=e,this.location=i,this.resolver=r,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new F,this.deactivateEvents=new F,this.name=s||ve,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.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 e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const o=(i=i||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,l=new i6(e,a,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,l),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(g(Go),g(Ct),g(tn),function(n){return function(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r<i;){const s=e[r];if(My(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof e[r];)r++;else{if(s===t)return e[r+1];r+=2}}}return null}(yt(),n)}("name"),g(ct))},n.\u0275dir=S({type:n,selectors:"router-outlet",outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),n})();class i6{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===Uo?this.route:t===Go?this.childContexts:this.parent.get(t,e)}}class gS{}class mS{preload(t,e){return z(null)}}let _S=(()=>{class n{constructor(e,i,r,s,o){this.router=e,this.injector=s,this.preloadingStrategy=o,this.loader=new fS(i,r,c=>e.triggerEvent(new DM(c)),c=>e.triggerEvent(new EM(c)))}setUpPreloading(){this.subscription=this.router.events.pipe(Ye(e=>e instanceof Dl),wl(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(Ai);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const s of i)if(s.loadChildren&&!s.canLoad&&s._loadedConfig){const o=s._loadedConfig;r.push(this.processRoutes(o.module,o.routes))}else s.loadChildren&&!s.canLoad?r.push(this.preloadConfig(e,s)):s.children&&r.push(this.processRoutes(e,s.children));return Ot(r).pipe(ra(),ge(s=>{}))}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>(i._loadedConfig?z(i._loadedConfig):this.loader.load(e.injector,i)).pipe(St(s=>(i._loadedConfig=s,this.processRoutes(s.module,s.routes)))))}}return n.\u0275fac=function(e){return new(e||n)(C(hn),C(lu),C(Kr),C(pe),C(gS))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})(),zm=(()=>{class n{constructor(e,i,r={}){this.router=e,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.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(e=>{e instanceof Tm?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Dl&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof MM&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new MM(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(C(hn),C(Yw),C(void 0))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();const ps=new j("ROUTER_CONFIGURATION"),yS=new j("ROUTER_FORROOT_GUARD"),s6=[Oo,{provide:Am,useClass:PM},{provide:hn,useFactory:function(n,t,e,i,r,s,o,a={},l,c){const u=new hn(null,n,t,e,i,r,s,NM(o));return l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(n,t){n.errorHandler&&(t.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(t.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(t.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(t.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(t.urlUpdateStrategy=n.urlUpdateStrategy)}(a,u),a.enableTracing&&u.events.subscribe(d=>{var h,f;null===(h=console.group)||void 0===h||h.call(console,`Router Event: ${d.constructor.name}`),console.log(d.toString()),console.log(d),null===(f=console.groupEnd)||void 0===f||f.call(console)}),u},deps:[Am,Go,Oo,pe,lu,Kr,Um,ps,[class{},new ln],[class{},new ln]]},Go,{provide:Uo,useFactory:function(n){return n.routerState.root},deps:[hn]},{provide:lu,useClass:jL},_S,mS,class{preload(t,e){return e().pipe(us(()=>z(null)))}},{provide:ps,useValue:{enableTracing:!1}}];function o6(){return new Vp("Router",hn)}let bS=(()=>{class n{constructor(e,i){}static forRoot(e,i){return{ngModule:n,providers:[s6,vS(e),{provide:yS,useFactory:c6,deps:hn,new ln,new dr},{provide:ps,useValue:i||{}},{provide:ko,useFactory:l6,deps:[Zr,[new Ws(tg),new ln],ps]},{provide:zm,useFactory:a6,deps:[hn,Yw,ps]},{provide:gS,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:mS},{provide:Vp,multi:!0,useFactory:o6},[qm,{provide:tl,multi:!0,useFactory:f6,deps:[qm]},{provide:CS,useFactory:p6,deps:[qm]},{provide:BC,multi:!0,useExisting:CS}]]}}static forChild(e){return{ngModule:n,providers:[vS(e)]}}}return n.\u0275fac=function(e){return new(e||n)(C(yS,8),C(hn,8))},n.\u0275mod=ne({type:n}),n.\u0275inj=X({}),n})();function a6(n,t,e){return e.scrollOffset&&t.setOffset(e.scrollOffset),new zm(n,t,e)}function l6(n,t,e={}){return e.useHash?new lB(n,t):new Nw(n,t)}function c6(n){return"guarded"}function vS(n){return[{provide:vI,multi:!0,useValue:n},{provide:Um,multi:!0,useValue:n}]}let qm=(()=>{class n{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Y}appInitializer(){return this.injector.get(sB,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let i=null;const r=new Promise(a=>i=a),s=this.injector.get(hn),o=this.injector.get(ps);return"disabled"===o.initialNavigation?(s.setUpLocationChangeListener(),i(!0)):"enabled"===o.initialNavigation||"enabledBlocking"===o.initialNavigation?(s.hooks.afterPreactivation=()=>this.initNavigation?z(null):(this.initNavigation=!0,i(!0),this.resultOfPreactivationDone),s.initialNavigation()):i(!0),r})}bootstrapListener(e){const i=this.injector.get(ps),r=this.injector.get(_S),s=this.injector.get(zm),o=this.injector.get(hn),a=this.injector.get(Fn);e===a.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&o.initialNavigation(),r.setUpPreloading(),s.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return n.\u0275fac=function(e){return new(e||n)(C(pe))},n.\u0275prov=I({token:n,factory:n.\u0275fac}),n})();function f6(n){return n.appInitializer.bind(n)}function p6(n){return n.bootstrapListener.bind(n)}const CS=new j("Router Initializer");class m6{call(t,e){return e.subscribe(new _6(t))}}class _6 extends Dm{constructor(t){super(t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(t){this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(let i=0;i<e&&!this.hasFirst;i++){const s=Em(this,t[i],void 0,i);this.subscriptions&&this.subscriptions.push(s),this.add(s)}this.observables=null}}notifyNext(t,e,i){if(!this.hasFirst){this.hasFirst=!0;for(let r=0;r<this.subscriptions.length;r++)if(r!==i){let s=this.subscriptions[r];s.unsubscribe(),this.remove(s)}this.subscriptions=null}this.destination.next(e)}}function kd(...n){const t=n[n.length-1];return"function"==typeof t&&n.pop(),sa(n,void 0).lift(new y6(t))}new Ce(Ki);class y6{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new b6(t,this.resultSelector))}}class b6 extends Re{constructor(t,e,i=Object.create(null)){super(t),this.resultSelector=e,this.iterators=[],this.active=0,this.resultSelector="function"==typeof e?e:void 0}_next(t){const e=this.iterators;tr(t)?e.push(new C6(t)):e.push("function"==typeof t[nr]?new v6(t[nr]()):new w6(this.destination,this,t))}_complete(){const t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(let i=0;i<e;i++){let r=t[i];r.stillUnsubscribed?this.destination.add(r.subscribe()):this.active--}}else this.destination.complete()}notifyInactive(){this.active--,0===this.active&&this.destination.complete()}checkIterators(){const t=this.iterators,e=t.length,i=this.destination;for(let o=0;o<e;o++){let a=t[o];if("function"==typeof a.hasValue&&!a.hasValue())return}let r=!1;const s=[];for(let o=0;o<e;o++){let a=t[o],l=a.next();if(a.hasCompleted()&&(r=!0),l.done)return void i.complete();s.push(l.value)}this.resultSelector?this._tryresultSelector(s):i.next(s),r&&i.complete()}_tryresultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}class v6{constructor(t){this.iterator=t,this.nextResult=t.next()}hasValue(){return!0}next(){const t=this.nextResult;return this.nextResult=this.iterator.next(),t}hasCompleted(){const t=this.nextResult;return Boolean(t&&t.done)}}class C6{constructor(t){this.array=t,this.index=0,this.length=0,this.length=t.length}[nr](){return this}next(t){const e=this.index++;return e<this.length?{value:this.array[e],done:!1}:{value:null,done:!0}}hasValue(){return this.array.length>this.index}hasCompleted(){return this.array.length===this.index}}class w6 extends Ss{constructor(t,e,i){super(t),this.parent=e,this.observable=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[nr](){return this}next(){const t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(t){this.buffer.push(t),this.parent.checkIterators()}subscribe(){return Ts(this.observable,new Ms(this))}}function Ym(...n){return t=>{let e;return"function"==typeof n[n.length-1]&&(e=n.pop()),t.lift(new E6(n,e))}}class E6{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new M6(t,this.observables,this.project))}}class M6 extends Dm{constructor(t,e,i){super(t),this.observables=e,this.project=i,this.toRespond=[];const r=e.length;this.values=new Array(r);for(let s=0;s<r;s++)this.toRespond.push(s);for(let s=0;s<r;s++)this.add(Em(this,e[s],void 0,s))}notifyNext(t,e,i){this.values[i]=e;const r=this.toRespond;if(r.length>0){const s=r.indexOf(i);-1!==s&&r.splice(s,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(i){return void this.destination.error(i)}this.destination.next(e)}}let oT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({}),n})(),MT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({imports:oT}),n})(),C7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({imports:[MT]}),n})();const qo=["*"],cG=["dialog"];function Ar(n){return null!=n}function Ko(n){return(n||document.body).getBoundingClientRect()}"undefined"!=typeof Element&&!Element.prototype.closest&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(n){let t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(n))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null});const NT={animation:!0,transitionTimerDelayMs:5};let It=(()=>{class n{constructor(){this.animation=NT.animation}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=I({factory:function(){return new n},token:n,providedIn:"root"}),n})();const CW=()=>{},{transitionTimerDelayMs:wW}=NT,Vl=new Map,Et=(n,t,e,i)=>{let r=i.context||{};const s=Vl.get(t);if(s)switch(i.runningTransition){case"continue":return ts;case"stop":n.run(()=>s.transition$.complete()),r=Object.assign(s.context,r),Vl.delete(t)}const o=e(t,i.animation,r)||CW;if(!i.animation||"none"===window.getComputedStyle(t).transitionProperty)return n.run(()=>o()),z(void 0).pipe(function(n){return t=>new Ce(e=>t.subscribe(o=>n.run(()=>e.next(o)),o=>n.run(()=>e.error(o)),()=>n.run(()=>e.complete())))}(n));const a=new Y,l=new Y,c=a.pipe(function(...n){return t=>Lu(t,z(...n))}(!0));Vl.set(t,{transition$:a,complete:()=>{l.next(),l.complete()},context:r});const u=function(n){const{transitionDelay:t,transitionDuration:e}=window.getComputedStyle(n);return 1e3*(parseFloat(t)+parseFloat(e))}(t);return n.runOutsideAngular(()=>{const d=Dt(t,"transitionend").pipe($e(c),Ye(({target:f})=>f===t));(function(...n){if(1===n.length){if(!tr(n[0]))return n[0];n=n[0]}return sa(n,void 0).lift(new m6)})(Sg(u+wW).pipe($e(c)),d,l).pipe($e(c)).subscribe(()=>{Vl.delete(t),n.run(()=>{o(),a.next(),a.complete()})})}),a.asObservable()};let RT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({imports:un}),n})(),xT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({imports:un}),n})(),FT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({}),n})(),LT=(()=>{class n{constructor(e){this._ngbConfig=e,this.interval=5e3,this.wrap=!0,this.keyboard=!0,this.pauseOnHover=!0,this.pauseOnFocus=!0,this.showNavigationArrows=!0,this.showNavigationIndicators=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return n.\u0275fac=function(e){return new(e||n)(C(It))},n.\u0275prov=I({factory:function(){return new n(C(It))},token:n,providedIn:"root"}),n})(),HT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({imports:un}),n})(),$T=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({}),n})();var ye=(()=>(function(n){n[n.Tab=9]="Tab",n[n.Enter=13]="Enter",n[n.Escape=27]="Escape",n[n.Space=32]="Space",n[n.PageUp=33]="PageUp",n[n.PageDown=34]="PageDown",n[n.End=35]="End",n[n.Home=36]="Home",n[n.ArrowLeft=37]="ArrowLeft",n[n.ArrowUp=38]="ArrowUp",n[n.ArrowRight=39]="ArrowRight",n[n.ArrowDown=40]="ArrowDown"}(ye||(ye={})),ye))();"undefined"!=typeof navigator&&navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));const zT=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function qT(n){const t=Array.from(n.querySelectorAll(zT)).filter(e=>-1!==e.tabIndex);return[t[0],t[t.length-1]]}new class{getAllStyles(t){return window.getComputedStyle(t)}getStyle(t,e){return this.getAllStyles(t)[e]}isStaticPositioned(t){return"static"===(this.getStyle(t,"position")||"static")}offsetParent(t){let e=t.offsetParent||document.documentElement;for(;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement}position(t,e=!0){let i,r={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))i=t.getBoundingClientRect(),i={top:i.top,bottom:i.bottom,left:i.left,right:i.right,height:i.height,width:i.width};else{const s=this.offsetParent(t);i=this.offset(t,!1),s!==document.documentElement&&(r=this.offset(s,!1)),r.top+=s.clientTop,r.left+=s.clientLeft}return i.top-=r.top,i.bottom-=r.top,i.left-=r.left,i.right-=r.left,e&&(i.top=Math.round(i.top),i.bottom=Math.round(i.bottom),i.left=Math.round(i.left),i.right=Math.round(i.right)),i}offset(t,e=!0){const i=t.getBoundingClientRect(),r_top=window.pageYOffset-document.documentElement.clientTop,r_left=window.pageXOffset-document.documentElement.clientLeft;let s={height:i.height||t.offsetHeight,width:i.width||t.offsetWidth,top:i.top+r_top,bottom:i.bottom+r_top,left:i.left+r_left,right:i.right+r_left};return e&&(s.height=Math.round(s.height),s.width=Math.round(s.width),s.top=Math.round(s.top),s.bottom=Math.round(s.bottom),s.left=Math.round(s.left),s.right=Math.round(s.right)),s}positionElements(t,e,i,r){const[s="top",o="center"]=i.split("-"),a=r?this.offset(t,!1):this.position(t,!1),l=this.getAllStyles(e),c=parseFloat(l.marginTop),u=parseFloat(l.marginBottom),d=parseFloat(l.marginLeft),h=parseFloat(l.marginRight);let f=0,p=0;switch(s){case"top":f=a.top-(e.offsetHeight+c+u);break;case"bottom":f=a.top+a.height;break;case"left":p=a.left-(e.offsetWidth+d+h);break;case"right":p=a.left+a.width}switch(o){case"top":f=a.top;break;case"bottom":f=a.top+a.height-e.offsetHeight;break;case"left":p=a.left;break;case"right":p=a.left+a.width-e.offsetWidth;break;case"center":"top"===s||"bottom"===s?p=a.left+a.width/2-e.offsetWidth/2:f=a.top+a.height/2-e.offsetHeight/2}e.style.transform=`translate(${Math.round(p)}px, ${Math.round(f)}px)`;const v=e.getBoundingClientRect(),b=document.documentElement,D=window.innerHeight||b.clientHeight,w=window.innerWidth||b.clientWidth;return v.left>=0&&v.top>=0&&v.right<=w&&v.bottom<=D}},new Date(1882,10,12),new Date(2174,10,25);let iN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({imports:un,C7}),n})(),I_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=S({type:n,selectors:"",8,"navbar"}),n})(),oN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({}),n})(),aN=(()=>{class n{constructor(e){this._ngbConfig=e,this.backdrop=!0,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}}return n.\u0275fac=function(e){return new(e||n)(C(It))},n.\u0275prov=I({factory:function(){return new n(C(It))},token:n,providedIn:"root"}),n})();class vs{constructor(t,e,i){this.nodes=t,this.viewRef=e,this.componentRef=i}}const y9=()=>{};let lN=(()=>{class n{constructor(e){this._document=e}compensate(){const e=this._getWidth();return this._isPresent(e)?this._adjustBody(e):y9}_adjustBody(e){const i=this._document.body,r=i.style.paddingRight,s=parseFloat(window.getComputedStyle(i)["padding-right"]);return i.style["padding-right"]=`${s+e}px`,()=>i.style["padding-right"]=r}_isPresent(e){const i=this._document.body.getBoundingClientRect();return window.innerWidth-(i.left+i.right)>=e-.1*e}_getWidth(){const e=this._document.createElement("div");e.className="modal-scrollbar-measure";const i=this._document.body;i.appendChild(e);const r=e.getBoundingClientRect().width-e.clientWidth;return i.removeChild(e),r}}return n.\u0275fac=function(e){return new(e||n)(C(H))},n.\u0275prov=I({factory:function(){return new n(C(H))},token:n,providedIn:"root"}),n})(),b9=(()=>{class n{constructor(e,i){this._el=e,this._zone=i}ngOnInit(){this._zone.onStable.asObservable().pipe(mt(1)).subscribe(()=>{Et(this._zone,this._el.nativeElement,(e,i)=>{i&&Ko(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return Et(this._zone,this._el.nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return n.\u0275fac=function(e){return new(e||n)(g(U),g($))},n.\u0275cmp=Ne({type:n,selectors:"ngb-modal-backdrop",hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(e,i){2&e&&(Xn("modal-backdrop"+(i.backdropClass?" "+i.backdropClass:"")),te("show",!i.animation)("fade",i.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})();class cN{close(t){}dismiss(t){}}class v9{constructor(t,e,i,r){this._windowCmptRef=t,this._contentRef=e,this._backdropCmptRef=i,this._beforeDismiss=r,this._closed=new Y,this._dismissed=new Y,this._hidden=new Y,t.instance.dismissEvent.subscribe(s=>{this.dismiss(s)}),this.result=new Promise((s,o)=>{this._resolve=s,this._reject=o}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe($e(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe($e(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(t){this._windowCmptRef&&(this._closed.next(t),this._resolve(t),this._removeModalElements())}_dismiss(t){this._dismissed.next(t),this._reject(t),this._removeModalElements()}dismiss(t){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();e&&e.then?e.then(i=>{!1!==i&&this._dismiss(t)},()=>{}):!1!==e&&this._dismiss(t)}else this._dismiss(t)}_removeModalElements(){const t=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():z(void 0);t.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),kd(t,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var Cs=(()=>(function(n){n[n.BACKDROP_CLICK=0]="BACKDROP_CLICK",n[n.ESC=1]="ESC"}(Cs||(Cs={})),Cs))();let C9=(()=>{class n{constructor(e,i,r){this._document=e,this._elRef=i,this._zone=r,this._closed$=new Y,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new F,this.shown=new Y,this.hidden=new Y}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(mt(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"stop"},o=kd(Et(this._zone,e,()=>e.classList.remove("show"),i),Et(this._zone,this._dialogEl.nativeElement,()=>{},i));return o.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),o}_show(){const e={animation:this.animation,runningTransition:"continue"};kd(Et(this._zone,this._elRef.nativeElement,(s,o)=>{o&&Ko(s),s.classList.add("show")},e),Et(this._zone,this._dialogEl.nativeElement,()=>{},e)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{Dt(e,"keydown").pipe($e(this._closed$),Ye(r=>r.which===ye.Escape)).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(Cs.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;Dt(this._dialogEl.nativeElement,"mousedown").pipe($e(this._closed$),Ft(()=>i=!1),Hn(()=>Dt(e,"mouseup").pipe($e(this._closed$),mt(1))),Ye(({target:r})=>e===r)).subscribe(()=>{i=!0}),Dt(e,"click").pipe($e(this._closed$)).subscribe(({target:r})=>{e===r&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(Cs.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const i=e.querySelector("[ngbAutofocus]"),r=qT(e)[0];(i||r||e).focus()}}_restoreFocus(){const e=this._document.body,i=this._elWithFocus;let r;r=i&&i.focus&&e.contains(i)?i:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&Et(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return n.\u0275fac=function(e){return new(e||n)(g(H),g(U),g($))},n.\u0275cmp=Ne({type:n,selectors:"ngb-modal-window",viewQuery:function(e,i){if(1&e&&ri(cG,7),2&e){let r;Se(r=Te())&&(i._dialogEl=r.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,i){2&e&&(me("aria-modal",!0)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy),Xn("modal d-block"+(i.windowClass?" "+i.windowClass:"")),te("fade",i.animation))},inputs:{backdrop:"backdrop",keyboard:"keyboard",animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:qo,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,i){1&e&&(function(n){const t=T()[16][6];if(!t.projection){const i=t.projection=ur(n?n.length:1,null),r=i.slice();let s=t.child;for(;null!==s;){const o=n?ex(s,n):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}(),m(0,"div",0,1),m(2,"div",2),function(n,t=0,e){const i=T(),r=Me(),s=Js(r,20+n,16,null,e||null);null===s.projection&&(s.projection=t),Eh(),64!=(64&s.flags)&&function(n,t,e){Fb(t[11],0,t,e,Sb(n,e,t),Ib(e.parent||t[6],e,t))}(r,i,s)}(3),_(),_()),2&e&&Xn("modal-dialog"+(i.size?" modal-"+i.size:"")+(i.centered?" modal-dialog-centered":"")+(i.scrollable?" modal-dialog-scrollable":"")+(i.modalDialogClass?" "+i.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}"],encapsulation:2}),n})(),uN=(()=>{class n{constructor(e,i,r,s,o,a){this._applicationRef=e,this._injector=i,this._document=r,this._scrollBar=s,this._rendererFactory=o,this._ngZone=a,this._activeWindowCmptHasChanged=new Y,this._ariaHiddenValues=new Map,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new F,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const l=this._windowCmpts[this._windowCmpts.length-1];((n,t,e,i=!1)=>{n.runOutsideAngular(()=>{const r=Dt(t,"focusin").pipe($e(e),ge(s=>s.target));Dt(t,"keydown").pipe($e(e),Ye(s=>s.which===ye.Tab),Ym(r)).subscribe(([s,o])=>{const[a,l]=qT(t);(o===a||o===t)&&s.shiftKey&&(l.focus(),s.preventDefault()),o===l&&!s.shiftKey&&(a.focus(),s.preventDefault())}),i&&Dt(t,"click").pipe($e(e),Ym(r),ge(s=>s[1])).subscribe(s=>s.focus())})})(this._ngZone,l.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(l.location.nativeElement)}})}open(e,i,r,s){const o=s.container instanceof HTMLElement?s.container:Ar(s.container)?this._document.querySelector(s.container):this._document.body,a=this._rendererFactory.createRenderer(null,null),l=this._scrollBar.compensate(),c=()=>{this._modalRefs.length||(a.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!o)throw new Error(`The specified modal container "${s.container||"body"}" was not found in the DOM.`);const u=new cN,d=this._getContentRef(e,s.injector||i,r,u,s);let h=!1!==s.backdrop?this._attachBackdrop(e,o):void 0,f=this._attachWindowComponent(e,o,d),p=new v9(f,d,h,s.beforeDismiss);return this._registerModalRef(p),this._registerWindowCmpt(f),p.result.then(l,l),p.result.then(c,c),u.close=v=>{p.close(v)},u.dismiss=v=>{p.dismiss(v)},this._applyWindowOptions(f.instance,s),1===this._modalRefs.length&&a.addClass(this._document.body,"modal-open"),h&&h.instance&&(this._applyBackdropOptions(h.instance,s),h.changeDetectorRef.detectChanges()),f.changeDetectorRef.detectChanges(),p}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(i=>i.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e,i){let s=e.resolveComponentFactory(b9).create(this._injector);return this._applicationRef.attachView(s.hostView),i.appendChild(s.location.nativeElement),s}_attachWindowComponent(e,i,r){let o=e.resolveComponentFactory(C9).create(this._injector,r.nodes);return this._applicationRef.attachView(o.hostView),i.appendChild(o.location.nativeElement),o}_applyWindowOptions(e,i){this._windowAttributes.forEach(r=>{Ar(i[r])&&(e[r]=i[r])})}_applyBackdropOptions(e,i){this._backdropAttributes.forEach(r=>{Ar(i[r])&&(e[r]=i[r])})}_getContentRef(e,i,r,s,o){return r?r instanceof Pe?this._createFromTemplateRef(r,s):function(n){return"string"==typeof n}(r)?this._createFromString(r):this._createFromComponent(e,i,r,s,o):new vs([])}_createFromTemplateRef(e,i){const s=e.createEmbeddedView({$implicit:i,close(o){i.close(o)},dismiss(o){i.dismiss(o)}});return this._applicationRef.attachView(s),new vs([s.rootNodes],s)}_createFromString(e){const i=this._document.createTextNode(`${e}`);return new vs(i)}_createFromComponent(e,i,r,s,o){const a=e.resolveComponentFactory(r),l=pe.create({providers:[{provide:cN,useValue:s}],parent:i}),c=a.create(l),u=c.location.nativeElement;return o.scrollable&&u.classList.add("component-host-scrollable"),this._applicationRef.attachView(c.hostView),new vs(u,c.hostView,c)}_setAriaHidden(e){const i=e.parentElement;i&&e!==this._document.body&&(Array.from(i.children).forEach(r=>{r!==e&&"SCRIPT"!==r.nodeName&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,i)=>{e?i.setAttribute("aria-hidden",e):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const i=()=>{const r=this._modalRefs.indexOf(e);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(i,i)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const i=this._windowCmpts.indexOf(e);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}}return n.\u0275fac=function(e){return new(e||n)(C(Fn),C(pe),C(H),C(lN),C(Gi),C($))},n.\u0275prov=I({factory:function(){return new n(C(Fn),C(pr),C(H),C(lN),C(Gi),C($))},token:n,providedIn:"root"}),n})(),dN=(()=>{class n{constructor(e,i,r,s){this._moduleCFR=e,this._injector=i,this._modalStack=r,this._config=s}open(e,i={}){const r=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),i);return this._modalStack.open(this._moduleCFR,this._injector,e,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return n.\u0275fac=function(e){return new(e||n)(C(tn),C(pe),C(uN),C(aN))},n.\u0275prov=I({factory:function(){return new n(C(tn),C(pr),C(uN),C(aN))},token:n,providedIn:"root"}),n})(),hN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({providers:[dN]}),n})(),mN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({imports:un}),n})(),EN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({imports:un}),n})(),TN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({imports:un}),n})(),NN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({imports:un}),n})(),AN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({imports:un}),n})(),RN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({imports:un}),n})(),xN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({imports:un}),n})(),PN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({}),n})();new j("live announcer delay",{providedIn:"root",factory:function(){return 100}});let VN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({imports:un}),n})();const rz=[RT,xT,FT,HT,$T,iN,oN,hN,mN,EN,TN,NN,AN,RN,xN,PN,VN];let sz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({imports:[rz,RT,xT,FT,HT,$T,iN,oN,hN,mN,EN,TN,NN,AN,RN,xN,PN,VN]}),n})();const az=["modal_1"],lz=["vc"];function cz(n,t){if(1&n){const e=ke();m(0,"div",35),m(1,"span",36),x("click",function(){return K(e),O().jumpTo("gettingToKnow")}),E(2," GETTING TO KNOW THE PROBLEM"),_(),y(3,"br"),m(4,"span",36),x("click",function(){return K(e),O().jumpTo("multiCentered")}),E(5," MULTI-CENTERED APPROACH"),_(),y(6,"br"),m(7,"span",36),x("click",function(){return K(e),O().jumpTo("integHumanPractices")}),E(8," INTEGRATED HUMAN PRACTICES"),_(),y(9,"br"),E(10," \xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0"),m(11,"span",36),x("click",function(){return K(e),O().jumpTo("affectedComunities")}),E(12,"AFFECTED COMMUNITIES"),_(),y(13,"br"),E(14," \xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0"),m(15,"span",36),x("click",function(){return K(e),O().jumpTo("customersAndUsers")}),E(16,"CUSTOMERS AND USERS"),_(),y(17,"br"),E(18," \xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0"),m(19,"span",36),x("click",function(){return K(e),O().jumpTo("regultatoryAuthorities")}),E(20," REGULATORY AUTHORITIES"),_(),y(21,"br"),E(22," \xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0"),m(23,"span",36),x("click",function(){return K(e),O().jumpTo("experts")}),E(24," EXPERTS"),_(),y(25,"br"),m(26,"span",36),x("click",function(){return K(e),O().jumpTo("studentsPreparations")}),E(27," STUDENT\u2019S PREPARATION / SELF EDUCATION"),_(),y(28,"br"),m(29,"span",36),x("click",function(){return K(e),O().jumpTo("references")}),E(30," REFERENCES"),_(),y(31,"br"),y(32,"br"),_()}}function uz(n,t){if(1&n){const e=ke();m(0,"div",37),y(1,"div",2),m(2,"div",3),y(3,"div",7),m(4,"div",38),m(5,"span",39),E(6," Eng. Arnulfo de la Garza"),_(),_(),_(),m(7,"div",3),y(8,"div",40),m(9,"div",41),y(10,"div",42),m(11,"div",3),m(12,"div",10),y(13,"img",43),_(),y(14,"div",7),y(15,"div",7),m(16,"div",44),E(17," Opinions: Although fire incidents are an imminent danger for everyone working in public lands and surrounding those areas, the combat and prevention techniques are not correctly carried out; the main technique for fire prevention consists of leaving wide extensions of loose soil with no grass surrounding the land sought to protect, which represents a \u201closs\u201d of extensions of land, since neither production nor economic benefit could be obtained from them. In addition, public land managers rarely get help from the authorities or fire department in both preventing and combating fires, unless the fire\u2019s intensity is high. They often combat fires by their own means, using water."),y(18,"br"),y(19,"br"),E(20," Values: Listening (in both directions: to communicate and to learn from others), empathy (we have to try to understand why people and organisations act like they do, even if we think it is not the best), and respect (to each other's opinions and arguments)."),y(21,"br"),y(22,"br"),E(23," Feelings: Eagerness to keep track of the project. In his own words \u201che had used firefighting foams before, but they does not seem to be effective at all\u201d, however, he said he would like to try new alternatives. He was very worried about current methods since he wanted to protect his workers as much as he could, and he expressed the need to have authorities involved in teach public land managers how to prevent and combat fires."),y(24,"br"),y(25,"br"),E(26," Actions: Learn more about the foams that have been used in Mexico and why they were so inefficient "),_(),_(),y(27,"div",2),m(28,"div",3),y(29,"div",13),m(30,"div",15),m(31,"button",45),x("click",function(){return K(e).$implicit.close("Save click")}),E(32,"Close"),_(),_(),y(33,"div",46),_(),y(34,"div",42),_(),y(35,"div",46),_(),_()}}function dz(n,t){if(1&n){const e=ke();m(0,"div",37),m(1,"div",47),m(2,"span",39),E(3,"Mexico Scouts, Group 9"),_(),y(4,"br"),y(5,"h4",48),_(),m(6,"div",49),y(7,"div",2),m(8,"div",3),m(9,"div",15),y(10,"img",50),_(),y(11,"div",7),y(12,"div",7),m(13,"div",51),E(14," Opinions: Humans play a major role in damaging the environment. Hence, efforts to teach the importance of taking care of our ecosystems and raise awareness of fire incidents and their consequences, and how to prevent them is something they would like people to know better. They told us it is very interesting how using synbio we can solve many problems, and our solution could be well received."),y(15,"br"),y(16,"br"),E(17," Values: Responsibility, respect and environmental awareness. For them it is very important to be open when presenting our project, to answer questions and hear people\u2019s opinions and concerns. "),y(18,"br"),y(19,"br"),E(20," Feelings: They showed curiosity in learning more about the environment around our region, and were very interested in how we are going to produce the foam without using frogs. Some comments heard during our activity with them were \u201cyour project is very interesting\u201d \u201cit seems so cool and crazy\u201d. In general, we received good opinions. "),y(21,"br"),y(22,"br"),E(23," Actions: We developed more educational activities to raise awareness about the importance of ecosystems and some actions to prevent fire incidents. "),_(),_(),y(24,"div",2),_(),m(25,"div",52),m(26,"button",53),x("click",function(){return K(e).$implicit.close("Save click")}),E(27,"Close"),_(),_(),_()}}function hz(n,t){if(1&n){const e=ke();m(0,"div",37),m(1,"div",47),m(2,"span",39),E(3,"Brayan Cer\xf3n"),_(),y(4,"br"),y(5,"h4",48),_(),m(6,"div",49),y(7,"div",2),m(8,"div",3),m(9,"div",10),y(10,"img",54),_(),y(11,"div",7),y(12,"div",7),m(13,"div",44),E(14," Opinions: Even though fire incidents are mainly caused because of anthropogenic activities, many people are not interested in taking care of the ecosystem, hence, it could be helpful to focus some of our educational activities for people working in public lands, talking about how to obtain information for fire prevention and combat. He strongly recommended us to learn more about fires to better localize in what type of lands our foam could be used. He also told us that, contrary to general perspective, using foams is cheaper than using water to combat fires due to the costs of extracting and transporting it. Additionally, foams are more effective in terms of people needed to combat a fire incident and time it takes to extinguish fire."),y(15,"br"),y(16,"br"),E(17," Values: He expressed his commitment with preserving the environment and raising awareness about the threats our ecosystems are facing nowadays. Excellence is an important value for him, since it is very important to do your best when working with a social and environmental problem as big as the one we are trying to solve. "),y(18,"br"),y(19,"br"),E(20," Feelings: He expressed his concern about people's disinterest on environmental topics and the lack of accessibility to fire combat tools. In addition, he shared with us the feelings of the population regarding the usage of GMOs and their products; \u201cthe most important thing for us as workers of public lands is to put the fire out, it does not matter a lot the composition of the product as long as it is effective\u201d. "),y(21,"br"),y(22,"br"),E(23," Actions: aqu\xed podemos incluir que tomamos el curso del ing marco SI SE HACE, adem\xe1s de las acts en edu "),_(),_(),y(24,"div",2),_(),m(25,"div",52),m(26,"button",53),x("click",function(){return K(e).$implicit.close("Save click")}),E(27,"Close"),_(),_(),_()}}function fz(n,t){if(1&n){const e=ke();m(0,"div",37),m(1,"div",47),m(2,"span",39),E(3,"Eng. Marco Vergara "),_(),y(4,"br"),y(5,"h4",48),_(),m(6,"div",49),y(7,"div",2),m(8,"div",3),m(9,"div",10),y(10,"img",55),_(),y(11,"div",7),y(12,"div",7),m(13,"div",44),E(14," Opinions:He told us the most important features of a foam is to be affordable and practical, since it is somewhat complicated to enter the market having cheaper alternatives; unfortunately, even when people are concerned about the ecological impact, it is not easy to afford an ecological but more expensive foam. Regarding the properties of the foam, he pointed out that even with the best foam it is very important to know how to dose it, the correct adjustment of the pump, and how to calculate the product dilutions to avoid the misuse and keep its properties."),y(15,"br"),y(16,"br"),E(17," Values: He showed excitement about having people interested on develop new alternatives to help firefighters, and also encouraged us to be perseverant with our project, as it can seem difficult but it is something very necessary in our country to have people working with new alternatives to current combat methods and making people aware of this big problem we are facing with fire incidents. "),y(18,"br"),y(19,"br"),E(20," Feelings: He was a little concerned about our knowledge about fires and how even in the same fire types we can have different fuels or temperatures, so he advised us to go a little bit deeper into our fire comprehension. Nevertheless, he said it is very hopeful to see young people concerned about this problem. "),y(21,"br"),y(22,"br"),E(23," Actions: We started considering the usage of raw material from agricultural waste to reduce costs when scaling up the project. He gave us some materials and information regarding firefighting foams regulations and certifications, that helped us to contact other stakeholders to improve and design our foam tests and proposed implementation section. "),_(),_(),y(24,"div",2),_(),m(25,"div",52),m(26,"button",53),x("click",function(){return K(e).$implicit.close("Save click")}),E(27,"Close"),_(),_(),_()}}function pz(n,t){if(1&n){const e=ke();m(0,"div",37),m(1,"div",47),m(2,"span",39),E(3,"AMEREX"),_(),y(4,"br"),y(5,"h4",48),_(),m(6,"div",49),y(7,"div",2),m(8,"div",3),m(9,"div",10),y(10,"img",56),_(),y(11,"div",7),y(12,"div",7),m(13,"div",44),E(14," Opinions:He told us the main foam buyer is the petrochemical industry, and it is important to consider the fire type and the foam concentration used in each one, as well as the preparation and application techniques. He shared with us some information about the most relevant foam certifications in the market, since they consider it is something very important for customers"),y(15,"br"),y(16,"br"),E(17," Values: They told us honesty is a very important value, since some producers offer their products even when they know they will not be effective on the fire type they are intended to be used. "),y(18,"br"),y(19,"br"),E(20," Feelings: He was concerned about the foams market in Mexico, since the economic and regulation factors may be a difficulty when trying to develop a new foam. Also, he was somewhat worried about the government\u2019s trust in foams, because due to the lack of knowledge on how to use them properly, sometimes foams seem to be not as effective as they should. "),y(21,"br"),y(22,"br"),E(23," Actions: Insight on how to plan the foam tests. We decided to incorporate UL to our stakeholders to receive insight about the certifications and laboratory tests required for our foam, since Eng. Jos\xe9 Luis and Eng. Marco Vergara, another stakeholder, mentioned this organism. We decided to make further theoretical research about our foam components and how they can interact to avoid its misuse. "),_(),_(),y(24,"div",2),_(),m(25,"div",52),m(26,"input",57),x("click",function(){return K(e).$implicit.close("Save click")}),_(),_(),_()}}function gz(n,t){if(1&n){const e=ke();m(0,"div",47),m(1,"span",39),E(2,"BIOEX"),_(),y(3,"br"),y(4,"h4",48),_(),m(5,"div",49),y(6,"div",2),m(7,"div",37),m(8,"div",3),m(9,"div",10),y(10,"img",56),_(),y(11,"div",7),y(12,"div",7),m(13,"div",44),E(14," Opinions: Due to their long expertise working in the firefighting foams market, and developing new products, they recommended us to evaluate how innovative our firefighting foam was. From a business point of view, it doesn't really matter if our product is \u201ca hundred percent environmentally friendly\u201d as it is difficult to compete with other \u201cgreen\u201d products because of the costs. He told us if we can develop an eco-friendly product cheaper and more accessible than the ones already existing that could represent a breakthrough in the market. "),y(15,"br"),y(16,"br"),E(17," Feelings: He was concerned about the foams market in Mexico, since the economic and regulation factors may be a difficulty when trying to develop a new foam. Also, he was somewhat worried about the government\u2019s trust in foams, because due to the lack of knowledge on how to use them properly, sometimes foams seem to be not as effective as they should. "),y(18,"br"),y(19,"br"),E(20," Actions: Insight on how to plan the foam tests. We decided to incorporate UL to our stakeholders to receive insight about the certifications and laboratory tests required for our foam, since Eng. Jos\xe9 Luis and Eng. Marco Vergara, another stakeholder, mentioned this organism. We decided to make further theoretical research about our foam components and how they can interact to avoid its misuse. "),_(),_(),y(21,"div",2),_(),m(22,"div",52),m(23,"div",3),m(24,"div",41),m(25,"input",57),x("click",function(){return K(e).$implicit.close("Save click")}),_(),_(),_(),_(),_()}}const mz=[{path:"",component:(()=>{class n{constructor(e){this.images=[944,1011,984].map(i=>`https://picsum.photos/id/${i}/900/500`),this.videoDanaTheFrog="../assets/danaLaRana.mp4",this.fireInit="../assets/FIGURA_A.svg",this.imgSecondHome="../assets/FIGURA_B.svg",e.wrap=!1,e.keyboard=!1,e.pauseOnHover=!1}ngOnInit(){var e=document.querySelector("video");null!=e&&(e.muted=!0,e.play())}}return n.\u0275fac=function(e){return new(e||n)(g(LT))},n.\u0275cmp=Ne({type:n,selectors:"app-home",decls:31,vars:2,consts:[[1,"spaces"],[2,"text-align","center"],["width","70%",3,"src"],[1,"container"],[1,"row","subHeader"],[1,"spacesText"],[1,"row","textExplained"],[1,"row","borderDivs",2,"background-color","#7EF3B1","height","10px"],[1,"row",2,"display","inline"],[1,"textExplained",2,"margin-left","50%!important","float","right"],["width","100%","height","70%","alt","",2,"float","left","margin-top","-12%",3,"src"]],template:function(e,i){1&e&&(y(0,"div",0),y(1,"div",0),y(2,"div",0),y(3,"div",0),m(4,"div",1),y(5,"img",2),_(),m(6,"div",3),y(7,"div",0),E(8,"> "),m(9,"div",4),E(10," OVERVIEW OF THE PROJECT "),_(),y(11,"div",5),m(12,"div",6),E(13," Frequent forest and periurban fire incidents are an increasing problem in our region, and the ineffectiveness, toxicity, and pollutant character of current combat methods make them worse. We intend to produce the first-ever synbio based firefighting foam using foamy compounds found in nature which won't represent an environmental nor public health threat. "),_(),y(14,"div",5),E(15,"> "),y(16,"div",7),_(),y(17,"div",5),E(18,">\n"),m(19,"div",3),y(20,"div",0),E(21,"> "),m(22,"div",8),m(23,"div",9),E(24," Our main components are ranaspumins, a family of foamy proteins, that along with some bacterial metabolites will be produced using metabolic engineering techniques. "),_(),y(25,"img",10),y(26,"div",5),_(),y(27,"div",0),E(28,"> "),y(29,"div",7),_(),y(30,"div",0)),2&e&&(N(5),M("src",i.fireInit,Ys),N(20),M("src",i.imgSecondHome,Ys))},styles:[""]}),n})()},{path:"HumanPractices",component:(()=>{class n{constructor(e){this.modalService=e,this.closeResult="",this.hideIndex=!1,this.hp3="../../assets/HP-003-DIA.svg",this.timelineJs="../../assets/timeline.js",this.engArnugldo="../../assets/HP-004-FOT_a.svg";var i=document.body,r=document.documentElement,s=document.getElementById("headerNav");if(null!==s){var o=Math.max(i.scrollHeight,i.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight);console.log(o),this.docHeighFrame=(o-s.offsetHeight-80).toString()}}onWindowScroll(e){console.log(e.target.scrollingElement.scrollTop),this.hideIndex=e.target.scrollingElement.scrollTop>=this.docHeighFrame}jumpTo(e){var i=document.getElementById(e);if(null!==i){const s=i.getBoundingClientRect().top+window.pageYOffset+-120;window.scrollTo({top:s,behavior:"smooth"})}}open(e){this.modalService.open(e,{size:"lg",ariaLabelledBy:"modal-basic-title"}).result.then(i=>{this.closeResult=`Closed with: ${i}`},i=>{this.closeResult=`Dismissed ${this.getDismissReason(i)}`})}getDismissReason(e){return e===Cs.ESC?"by pressing ESC":e===Cs.BACKDROP_CLICK?"by clicking on a backdrop":`with: ${e}`}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)(g(dN))},n.\u0275cmp=Ne({type:n,selectors:"app-human-practices",viewQuery:function(e,i){if(1&e&&(ri(az,5),ri(lz,5)),2&e){let r;Se(r=Te())&&(i.modal_1=r.first),Se(r=Te())&&(i.vc=r.first)}},hostBindings:function(e,i){1&e&&x("scroll",function(s){return i.onWindowScroll(s)},!1,_b)},decls:235,vars:3,consts:[[1,"test"],["src","../../assets/timeline.html",2,"width","100%","z-index","5","position","-webkit-sticky"],[1,"spaces"],[1,"row"],[1,"col-sm","px-md-1"],["style","position:fixed;top: 15%;margin-left: 5%;z-index: 0;","class","col-sm-3 textExplainedBackWhiteNavTimeLine shortcutsHP",4,"ngIf"],["id","gettingToKnow",1,"col-sm-8"],[1,"col-sm-1"],[1,"col-sm-10","subHeadersBackWhite"],[1,"col-sm-10","textExplainedBackWhite"],[1,"col-sm-4"],[1,"col-sm-7","textExplainedBackWhite"],["title","Figure 1. Fire types and incidence in Nuevo Le\xf3n","src","https://static.igem.org/mediawiki/2021/0/01/T--FCB-UANL--HP-001-GRA.svg",2,"width","80%","height","80%"],[1,"col-sm-5"],["id","multiCentered",1,"row"],[1,"col-sm-3"],[1,"col-sm-6","textExplainedBackWhite"],["title","Figure 1. Fire types and incidence in Nuevo Le\xf3n","src","https://static.igem.org/mediawiki/2021/e/ed/T--FCB-UANL--HP-002-DIA.svg",2,"width","80%","height","80%"],["id","integHumanPractices",1,"row"],["title","Figure 1. Fire types and incidence in Nuevo Le\xf3n","src","https://static.igem.org/mediawiki/2021/4/41/T--FCB-UANL--HP-003-DIA.svg",2,"width","80%","height","80%"],["id","affectedComunities",1,"row"],[1,"col-sm-8","textExplainedBackWhite"],[1,"spacesFrogs"],["src","https://static.igem.org/mediawiki/2021/3/39/T--FCB-UANL--HP-004-FOT_a.svg",2,"width","60%","height","60%","cursor","pointer",3,"click"],["src","https://static.igem.org/mediawiki/2021/5/5b/T--FCB-UANL--HP-005-FOT_a.svg",2,"width","60%","height","60%","cursor","pointer",3,"click"],["src","https://static.igem.org/mediawiki/2021/c/c7/T--FCB-UANL--HP-006-FOT_a.svg",2,"width","60%","height","60%","cursor","pointer",3,"click"],["id","customersAndUsers",1,"row"],["src","https://static.igem.org/mediawiki/2021/8/8f/T--FCB-UANL--HP-007-FOT_a.svg",2,"width","60%","height","60%","cursor","pointer",3,"click"],["src","https://static.igem.org/mediawiki/2021/5/5b/T--FCB-UANL--HP-008-FOT_a.svg",2,"width","60%","height","60%","cursor","pointer",3,"click"],["modalEngArnulfo",""],["modalMexicoScouts",""],["modalBrayanCeron",""],["modalEngMarcoGevara",""],["modalAMEREX",""],["modalBIOEX",""],[1,"col-sm-3","textExplainedBackWhiteNavTimeLine","shortcutsHP",2,"position","fixed","top","15%","margin-left","5%","z-index","0"],[3,"click"],[1,"container"],[1,"col-sm-11"],[1,"subHeadersBackWhite"],[1,"col-sm-1","px-10"],[1,"col-sm-10"],[1,"spacesModals"],["src","https://static.igem.org/mediawiki/2021/3/39/T--FCB-UANL--HP-004-FOT_a.svg",2,"width","100%","height","100%"],["id","scrollCustomModal",1,"col-sm-6",2,"overflow-y","scroll","height","300px"],["type","button",1,"btn","btnCloseCustom","active",2,"width","100%",3,"click"],[1,"col-sm-1","no-gutters"],[1,"modal-header"],["id","modal-basic-title",1,"modal-title"],[1,"modal-body"],["src","T--FCB-UANL--HP-005-FOT_b.png",2,"width","100%","height","100%"],["id","scrollCustomModal",1,"col-sm-7",2,"overflow-y","scroll","height","300px"],[1,"modal-footer"],["type","button",1,"btn","btnCloseCustom",3,"click"],["src","https://static.igem.org/mediawiki/2021/c/c7/T--FCB-UANL--HP-006-FOT_a.svg",2,"width","100%","height","100%"],["src","https://static.igem.org/mediawiki/2021/8/8f/T--FCB-UANL--HP-007-FOT_a.svg",2,"width","100%","height","100%"],["src","T--FCB-UANL--HP-008-FOT_b.png",2,"width","100%","height","100%"],["type","button","value","Close",1,"btn","btnCloseCustom",3,"click"]],template:function(e,i){if(1&e){const r=ke();y(0,"br"),y(1,"br"),y(2,"br"),y(3,"br"),E(4,"\xa0\n"),m(5,"div",0),y(6,"iframe",1),y(7,"div",2),m(8,"div",3),y(9,"div",4),k(10,cz,33,0,"div",5),m(11,"div",6),m(12,"div",3),y(13,"div",7),m(14,"div",8),E(15,"GETTING TO KNOW THE PROBLEM "),_(),y(16,"div",7),_(),m(17,"div",3),y(18,"div",7),m(19,"div",9),E(20," Fire incidents represent a latent danger to human lives and the environment, and they cause humongous economic losses due to deficient control strategies and the tools consumed during the event. Besides, they are not restricted to a specific geographic region; affected areas can be seen both at international and local levels. Proof of this is Mexico's northern region, which holds the two most important mountain systems in the country: the Sierra Madre Oriental and the Sierra Madre Occidental (L\xf3pez de Llergo, 2003). Insofar in 2021, [insertar info de estad\xedsticas de incendios en NL en 2021], only in the Mexican state of Nuevo Le\xf3n. Therefore, hundreds of species of the fourth most megadiverse country in the world (Jimenez-Sierra, et al., 2014), including endemic species, are exposed to the risks of unnatural patterns of destructive and frequent fires."),y(21,"br"),y(22,"br"),E(23," Even though our main concerns are forest wildfires, we cannot forget the millions of people who live around these ecosystems, in addition to the companies, private lands, and other infrastructure that have established near areas prone to wildfires. In addition to that, there is a concerning lack of efficient tools to combat fires, which makes them a bigger problem, since it is not uncommon to lose control of these incidents. This is the reason why, after talking with stakeholders and learning more about fire incidents, we decided to broaden our approach and also include peri-urban fires on our approach, without neglecting our forestal concerns. "),_(),y(24,"div",7),_(),m(25,"div",3),y(26,"div",10),m(27,"div",11),y(28,"br"),y(29,"img",12),_(),y(30,"div",7),_(),m(31,"div",3),y(32,"div",10),m(33,"div",13),E(34," Figure 1. Fire types and incidence in Nuevo Le\xf3n "),_(),_(),m(35,"div",3),y(36,"div",7),m(37,"div",9),y(38,"br"),E(39," Although extinguishing the fire can ultimately be done, there are more problems that underlie the combat methods. In this case, we will center specifically on the tools used during the process. Some of them are water-based and are extremely ineffective due to its composition, since some fuels -such as hydrocarbons- cannot be mixed with water, as it can spread flammable liquids, increase the amount of unsafe materials to dispose, conduce electricity, it has difficulty penetrating dense fires, its weight is considerably high, and it can disturb or destroy other combat methods (Voelkert, 2009). On the other hand, another important group of these tools are firefighting foams, which typically contain fluorosurfactants. These are synthetic foaming agents with an immense negative impact on the environment. Fluorinated surfactants are toxic and are not biodegradable, and the increasing need for environmentally-friendly surfactants capable of replace them has been reported (Hinnant et al 2019). "),_(),y(40,"div",7),_(),m(41,"div",14),y(42,"div",7),m(43,"div",8),y(44,"br"),E(45," MULTI-CENTERED APPROACH "),_(),y(46,"div",7),_(),m(47,"div",3),y(48,"div",7),m(49,"div",9),y(50,"br"),E(51," To properly lay the foundations of our project, it is necessary to thoroughly analyze each one of the perspectives to determine which fits best with our design. A social and ecological problem, such as the one we are trying to solve, is a complex phenomenon composed of different factors. We believe it is necessary to incorporate them all to design a concrete, achievable solution, thus, we decided to use a multi-centered approach, which would allow us to build a solution by taking into consideration all the interconnected necessities and not only segregated factors (figure 2). "),_(),y(52,"div",7),_(),m(53,"div",3),y(54,"div",15),m(55,"div",16),y(56,"br"),y(57,"img",17),_(),y(58,"div",7),_(),m(59,"div",3),y(60,"div",15),m(61,"div",13),E(62," Figure 2. Factors involved in the problem "),_(),_(),m(63,"div",3),y(64,"div",7),m(65,"div",9),y(66,"br"),E(67," Once we defined the previous point and analyzed the feedback given last year, we started planning the information we wanted to acquire and how we could obtain it, along with an action plan on what to do depending on this year\u2019s feedback. Our stakeholders' contributions have played an essential role to fulfill this goal, by helping us to improve it and propose new activities and components to better match the needs and concerns we identified along the process. "),_(),_(),y(68,"div",7),m(69,"div",18),y(70,"div",7),m(71,"div",8),y(72,"br"),E(73," INTEGRATED HUMAN PRACTICES "),_(),y(74,"div",7),_(),m(75,"div",3),y(76,"div",7),m(77,"div",9),y(78,"br"),E(79," In order to make our project reflexive, responsible and responsive, and based on what we learned during the Human Practices Sessions on last year\u2019s Giant Jamboree, we designed a plan to take as much information as possible from all our stakeholders to change or adapt our project. First, we elaborated a series of questions which would help us center ourselves on the information we wanted to obtain and how we would manage that newly acquired knowledge for improving our project. Thus, we defined two main questions to help us defining our stakeholders: "),y(80,"br"),E(81," [1] What should we be aware of while working on my project?"),y(82,"br"),E(83," [2] Should we adapt, or change, or stop anything about our design following this exercise?"),y(84,"br"),y(85,"br"),E(86," Once taking into consideration these initial questions, we then identified our main stakeholders, and, by using the information we already had and the feedback they gave us, we answered the following questions:"),y(87,"br"),E(88," ** What types of actors or organisations may speak out about our design? "),y(89,"br"),E(90," ** What may be their visions/arguments/opinions? "),y(91,"br"),E(92," ** What values do they have or expect us to represent? "),y(93,"br"),E(94," ** What feelings might they have?"),y(95,"br"),y(96,"br"),E(97," Hence, we have three main concerns of all our identified stakeholders: opinions they have about both the problem and our project, values that are important for them, and feelings about our proposal, and then we took actions for improving our project. As part of the multi-centered approach, we selected the following stakeholders, which are classified into different groups according to their characteristics. The OVF given by each stakeholder, along with the actions we undertook after the communication were documented. "),_(),y(98,"div",7),_(),m(99,"div",3),y(100,"div",15),m(101,"div",16),y(102,"br"),y(103,"img",19),_(),y(104,"div",7),_(),m(105,"div",3),y(106,"div",10),m(107,"div",13),E(108," Figure 3. OVFA model "),_(),_(),m(109,"div",3),y(110,"div",7),m(111,"div",9),y(112,"br"),E(113," Besides the information we wanted to obtain, we are aware that, due to the nature of our research we know the topic can be sensitive to some people. During this iGEM season we attended the iGEM values and risks workshop, where we learned how to contact people and what kind of considerations to take into account while talking with them. Additionally, we used the letter of consent proposed by team FCB-UANL 2020 to establish the purposes of the contact and to make our stakeholders aware of the usage of the information shared with us. "),_(),y(114,"div",7),_(),m(115,"div",20),y(116,"div",7),m(117,"div",8),y(118,"br"),E(119," AFFECTED COMMUNITIES: GETTING TO KNOW THE NECESSITIES "),_(),y(120,"div",7),_(),m(121,"div",3),y(122,"div",7),m(123,"div",9),y(124,"br"),E(125," Our first contact was with people responsible for administering public lands, also known as \u201cejidos\u201d. These are big pieces of land usually located at the outskirts of cities and are mostly used to produce crops. Their size and surroundings make them prone to fire disasters. As a strategy to get in contact with them, we made an official application to a government department to gain access to the necessary information. The application was generated with the help of a legal counselor, and it was submitted to two different departments, the Agrarian Attorneys Office and the Agrarian Registry. Unfortunately, the answer from both departments was that they could not grant access to that type of information since all contact and procedures are made in-person. Due to their location and current sanitary situation, it was far beyond our possibilities to meet in-person. Consequently, we decided to embrace a new plan. Since we live in a big city, there are a lot of ranches with cattle. Therefore, we contacted several of them and successfully got a response. In addition, we also tried to contact groups concerned about our ecosystems preservation. In this case, we used this contact to improve our project and to develop some education and public engagement activities. "),_(),y(126,"div",7),_(),m(127,"div",3),y(128,"div",7),m(129,"div",8),y(130,"br"),E(131," Eng. Arnulfo de la Garza "),_(),y(132,"div",7),_(),m(133,"div",3),y(134,"div",7),m(135,"div",21),y(136,"br"),E(137," He is the manager of the \u201cSan Juan\u201d ranch located on Pesquer\xeda (Nuevo Leon), and he is primarily focused on selling and maintaining cattle. We contacted him due to his experience dealing with combat and prevention of fires, and we discussed the impact it can have in their work and techniques they have learnt to prevent it. "),_(),m(138,"div",15),y(139,"div",22),m(140,"img",23),x("click",function(){K(r);const o=it(224);return i.open(o)}),_(),_(),_(),m(141,"div",3),y(142,"div",7),m(143,"div",8),y(144,"br"),E(145," Mexico Scouts, Group 9 "),_(),y(146,"div",7),_(),m(147,"div",3),y(148,"div",7),m(149,"div",21),y(150,"br"),E(151," Scouts groups are part of an association whose objective is to teach important values to young people, such as respect and responsibility with nature, as well as encourage skills such as leadership, responsibility, and critical thinking in their members. We contacted them because we are sure their values match ours, and their perspective could give us interesting feedback regarding the preservation efforts made in our ecosystems. We made an educational activity (for more details go to our education and public engagement section) and heard their opinions through some questions made to the assistants. "),_(),m(152,"div",15),y(153,"div",22),m(154,"img",24),x("click",function(){K(r);const o=it(226);return i.open(o)}),_(),_(),_(),m(155,"div",3),y(156,"div",7),m(157,"div",8),y(158,"br"),E(159," Brayan Cer\xf3n "),_(),y(160,"div",7),_(),m(161,"div",3),y(162,"div",7),m(163,"div",21),y(164,"br"),E(165," He is a Forest Engineering student from NOMBRE. We contacted him because of his knowledge both studying and working with fire prevention plans; he is actually working on a public land managing fire. We contacted him thanks to the SCIENCOPIC CONCYTEP iGEM Design League team. "),_(),m(166,"div",15),y(167,"div",22),m(168,"img",25),x("click",function(){K(r);const o=it(226);return i.open(o)}),_(),_(),_(),m(169,"div",26),y(170,"div",7),m(171,"div",8),y(172,"br"),E(173," CUSTOMERS AND USERS: GETTING TO KNOW THE MARKET "),_(),y(174,"div",7),_(),m(175,"div",3),y(176,"div",7),m(177,"div",9),y(178,"br"),E(179," The opinions and feedback from potential users and customers are very important whenever it is planned to launch a new product on the market. Thus, besides our market analysis carried out, we contacted several current foam users -or potential users- to acquire information to make a well established plan for upscaling our project. Something we noticed throughout this time were the difficulties to contact foam producer companies, since some of them actually told us they did not have interest in Mexico as a potential customer; this gave us some insight regarding how it is not easy to acquire foams for Mexican firefighters. "),_(),y(180,"div",7),_(),m(181,"div",3),y(182,"div",7),m(183,"div",8),y(184,"br"),E(185," Eng. Marco Vergara "),_(),y(186,"div",7),_(),m(187,"div",3),y(188,"div",7),m(189,"div",21),y(190,"br"),E(191," He has known our project and given us feedback since last year, and we decided to follow up his contact due to his vast experience working with local fire departments and firefighters preparation. Also, he and his team Rescueteam Mx\u2019s social and safety approaches match perfectly our project values and interests, since they develop activities regarding firefighters rescue and fire prevention to raise awareness on the population. "),_(),m(192,"div",15),y(193,"div",22),m(194,"img",27),x("click",function(){K(r);const o=it(230);return i.open(o)}),_(),_(),_(),m(195,"div",3),y(196,"div",7),m(197,"div",8),y(198,"br"),E(199," AMEREX "),_(),y(200,"div",7),_(),m(201,"div",3),y(202,"div",7),m(203,"div",21),y(204,"br"),E(205," We talked with Eng. Jos\xe9 Luis Loaiza from AMEREX, an American company based in Mexico recognized as a world leader in the manufacture of fire control equipment. Since last year, they have been following our project progress and giving us feedback regarding the technical requirements our foam has to have to be offered in the market. Since we have no foam producers in our country, AMEREX has been of vital importance for us as a lead distributor of these tools. "),_(),m(206,"div",15),y(207,"div",22),m(208,"img",28),x("click",function(){K(r);const o=it(232);return i.open(o)}),_(),_(),_(),m(209,"div",3),y(210,"div",7),m(211,"div",8),y(212,"br"),E(213," BIOEX "),_(),y(214,"div",7),_(),m(215,"div",3),y(216,"div",7),m(217,"div",21),y(218,"br"),E(219," BIOEX is a firefighting foam concentrates manufacturer company. For us, BIOEX insights are very important because, due to the lack of foam producers in Mexico, we had a lot of difficulties contacting foreign companies. They are a leading company on foams production, along with the fact that one of their goals is to produce eco-friendly foams, perfectly matches the type of company we want for giving us their opinion about our project. We talked with Oliver Houlbert, BIOEX Managing Director. "),_(),m(220,"div",15),y(221,"div",22),m(222,"img",28),x("click",function(){K(r);const o=it(234);return i.open(o)}),_(),_(),_(),_(),_(),k(223,uz,36,0,"ng-template",null,29,Ze),k(225,dz,28,0,"ng-template",null,30,Ze),k(227,hz,28,0,"ng-template",null,31,Ze),k(229,fz,28,0,"ng-template",null,32,Ze),k(231,pz,27,0,"ng-template",null,33,Ze),k(233,gz,26,0,"ng-template",null,34,Ze),_()}2&e&&(N(6),gr("height",i.docHeighFrame,"px"),N(4),M("ngIf",i.hideIndex))},directives:[zt],styles:['.pointerTimeline[_ngcontent-%COMP%]{cursor:pointer}*[_ngcontent-%COMP%], *[_ngcontent-%COMP%]:before, *[_ngcontent-%COMP%]:after{margin:0;padding:0;box-sizing:border-box}.test[_ngcontent-%COMP%]{font:normal 16px/1.5 "Titillium Web",sans-serif;background:linear-gradient(15deg,#ffff,#ffff,#ffff);color:#3c3f64;overflow-x:hidden;padding-bottom:50px}.timeline[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style-type:none;position:relative;width:6px;margin:0 auto;padding-top:50px;background:#000000}.timeline[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:after{content:"";position:absolute;left:50%;bottom:0;transform:translate(-50%) rotate(45deg);width:20px;height:20px;z-index:2000;background:#000000}.timeline[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:relative;bottom:0;width:400px;padding:20px;background:#fff;box-shadow:4px 13px 30px 1px #fc383833;border-radius:5px;display:flex;align-items:center;z-index:2000}.timeline[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] div[_ngcontent-%COMP%] time[_ngcontent-%COMP%]{position:absolute;background:#f5af19;width:80px;height:30px;top:-15px;border-radius:5px;display:flex;justify-content:center;align-items:center;letter-spacing:2px;z-index:2000}.timeline[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] div[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{height:100px;display:flex;flex-direction:column;justify-content:center;z-index:2000;align-items:center}.timeline[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] div[_ngcontent-%COMP%] div[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:center}.timeline[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] div[_ngcontent-%COMP%] .discovery[_ngcontent-%COMP%]{margin-right:10px}.timeline[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-of-type(odd) > div[_ngcontent-%COMP%]{left:45px}.timeline[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-of-type(even) > div[_ngcontent-%COMP%]{left:439px}.modal-dialog[_ngcontent-%COMP%]{margin:20vh auto 0!important}@font-face{font-family:"latoRegular";src:url(http://localhost:4200/assets/fonts/Lato-Regular.ttf)}.timeline[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{visibility:hidden;opacity:.5;transition:all .5s ease-in-out}.timeline[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-of-type(odd) div[_ngcontent-%COMP%]{transform:translate(100px,-10px) rotate(10deg)}.timeline[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-of-type(even) div[_ngcontent-%COMP%]{transform:translate(-100px,-10px) rotate(10deg)}.timeline[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.in-view[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{transform:none;visibility:visible;opacity:1}@media screen and (max-width: 900px){.timeline[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:250px;flex-direction:column}.timeline[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] div[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:80%;margin:10px}.timeline[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-of-type(even) > div[_ngcontent-%COMP%]{left:-289px}}@media screen and (max-width: 600px){.test[_ngcontent-%COMP%]{background:#8bfff4}.timeline[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-left:20px}.timeline[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:calc(100vw - 91px)}.timeline[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-of-type(even) > div[_ngcontent-%COMP%]{left:45px}}']}),n})()}];let _z=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n}),n.\u0275inj=X({imports:[[bS.forRoot(mz)],bS]}),n})(),yz=(()=>{class n{constructor(){this.headerImg="../assets/SYNBIOFOAM.svg"}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ne({type:n,selectors:"app-header",decls:33,vars:1,consts:[["id","headerNav",1,"underlineMenu","fixed-header"],[1,"navbar","navbar-expand-lg","navbar-custom"],["type","button","data-toggle","collapse","data-target","#navbarTogglerDemo03","aria-controls","navbarTogglerDemo03","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler"],[1,"navbar-toggler-icon"],["href","#",1,"navbar-brand"],["width","200","height","50","alt","",3,"src"],["id","navbarTogglerDemo03",1,"collapse","navbar-collapse"],[1,"navbar-nav","mr-auto","mt-2","mt-lg-0"],[1,"nav-item","active"],["href","#",1,"nav-link"],[1,"sr-only"],[1,"nav-item"],["routerLink","/HumanPractices",1,"nav-link"],[1,"nav-item","nav-itemVertical"]],template:function(e,i){1&e&&(m(0,"div",0),m(1,"nav",1),m(2,"button",2),y(3,"span",3),_(),m(4,"a",4),y(5,"img",5),_(),m(6,"div",6),m(7,"ul",7),m(8,"li",8),m(9,"a",9),E(10,"Home "),m(11,"span",10),E(12,"(current)"),_(),_(),_(),m(13,"li",11),m(14,"a",9),E(15,"Project"),_(),_(),m(16,"li",11),m(17,"a",9),E(18,"Attributions"),_(),_(),m(19,"li",11),m(20,"a",12),E(21,"Human Practices"),_(),_(),m(22,"li",11),m(23,"a",9),E(24,"Math Modeling"),_(),_(),m(25,"li",13),m(26,"a",9),E(27,"Excellence in "),y(28,"br"),E(29," Another Area"),_(),_(),m(30,"li",11),m(31,"a",9),E(32,"Criteria"),_(),_(),_(),_(),_(),_()),2&e&&(N(5),M("src",i.headerImg,Ys))},directives:[I_,Id],styles:[""]}),n})(),bz=(()=>{class n{constructor(){this.headerImg="",this.sponsor1="../assets/SYNBIOFOAMsponsor.svg",this.sponsor2="../assets/iGEM_FCB-UANL_FOOTER.svg"}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ne({type:n,selectors:"app-footer",decls:19,vars:0,consts:[[1,"navbar-custom"],[1,"container-fluid"],[1,"spaces"],[1,"row"],[1,"col-lg-2"],["src","T--FCB-UANL--SPONSOR-001-FIG.png","width","100%","height","60","alt",""],["src","T--FCB-UANL--SPONSOR-002-FIG.png","width","100%","height","60","alt",""],["src","T--FCB-UANL--SPONSOR-003-FIG.png","width","100%","height","60","alt",""],["src","T--FCB-UANL--SPONSOR-004-FIG.png","width","100%","height","60","alt",""],["src","T--FCB-UANL--SPONSOR-005-FIG.png","width","100%","height","60","alt",""],["src","T--FCB-UANL--SPONSOR-006-FIG.png","width","100%","height","60","alt",""],["src","T--FCB-UANL--SPONSOR-007-FIG.png","width","100%","height","60","alt",""],[1,"spacesText"]],template:function(e,i){1&e&&(m(0,"div",0),m(1,"div",1),y(2,"div",2),m(3,"div",3),m(4,"div",4),y(5,"img",5),_(),m(6,"div",4),y(7,"img",6),_(),m(8,"div",4),y(9,"img",7),_(),m(10,"div",4),y(11,"img",8),_(),m(12,"div",4),y(13,"img",9),_(),m(14,"div",4),y(15,"img",10),_(),m(16,"div",4),y(17,"img",11),_(),_(),y(18,"div",12),_(),_())},styles:[""]}),n})(),vz=(()=>{class n{constructor(){this.title="synbiofoam"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Ne({type:n,selectors:"app-root",decls:5,vars:0,consts:1,"fixed-header",template:function(e,i){1&e&&(m(0,"div",0),y(1,"app-header"),_(),m(2,"div"),y(3,"router-outlet"),_(),y(4,"app-footer"))},directives:[yz,Wm,bz],styles:[".container[_ngcontent-%COMP%]{width:80%;margin:0 auto}.fixed-header[_ngcontent-%COMP%], .fixed-footer[_ngcontent-%COMP%]{width:100%;position:fixed;background:#333;padding:10px 0;color:#fff}.fixed-header[_ngcontent-%COMP%]{top:0;z-index:1000}.fixed-footer[_ngcontent-%COMP%]{bottom:0}"]}),n})(),Cz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ne({type:n,bootstrap:[vz]}),n.\u0275inj=X({providers:[],imports:Eg,_z,sz,W4,Zj}),n})();(function(){if(zC)throw new Error("Cannot enable prod mode after platform setup.");WC=!1})(),cH().bootstrapModule(Cz).catch(n=>console.error(n))}},ta=>{ta(ta.s=943)}]);