-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain-BPA3NQM5.js
9 lines (9 loc) · 267 KB
/
main-BPA3NQM5.js
1
2
3
4
5
6
7
8
9
var Pg=Object.defineProperty,Lg=Object.defineProperties;var Vg=Object.getOwnPropertyDescriptors;var pu=Object.getOwnPropertySymbols;var jg=Object.prototype.hasOwnProperty,Bg=Object.prototype.propertyIsEnumerable;var gu=(e,t,n)=>t in e?Pg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,D=(e,t)=>{for(var n in t||={})jg.call(t,n)&&gu(e,n,t[n]);if(pu)for(var n of pu(t))Bg.call(t,n)&&gu(e,n,t[n]);return e},V=(e,t)=>Lg(e,Vg(t));var k=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(l){o(l)}},s=c=>{try{a(n.throw(c))}catch(l){o(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});function Rs(e,t){return Object.is(e,t)}var oe=null,_o=!1,Os=1,Fe=Symbol("SIGNAL");function N(e){let t=oe;return oe=e,t}function ks(){return oe}var Dr={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Cr(e){if(_o)throw new Error("");if(oe===null)return;oe.consumerOnSignalRead(e);let t=oe.nextProducerIndex++;if(Mo(oe),t<oe.producerNode.length&&oe.producerNode[t]!==e&&yr(oe)){let n=oe.producerNode[t];Io(n,oe.producerIndexOfThis[t])}oe.producerNode[t]!==e&&(oe.producerNode[t]=e,oe.producerIndexOfThis[t]=yr(oe)?vu(e,oe,t):0),oe.producerLastReadVersion[t]=e.version}function mu(){Os++}function Fs(e){if(!(yr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Os)){if(!e.producerMustRecompute(e)&&!js(e)){Ns(e);return}e.producerRecomputeValue(e),Ns(e)}}function Ps(e){if(e.liveConsumerNode===void 0)return;let t=_o;_o=!0;try{for(let n of e.liveConsumerNode)n.dirty||Ug(n)}finally{_o=t}}function Ls(){return oe?.consumerAllowSignalWrites!==!1}function Ug(e){e.dirty=!0,Ps(e),e.consumerMarkedDirty?.(e)}function Ns(e){e.dirty=!1,e.lastCleanEpoch=Os}function bo(e){return e&&(e.nextProducerIndex=0),N(e)}function Vs(e,t){if(N(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(yr(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)Io(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function js(e){Mo(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(Fs(n),r!==n.version))return!0}return!1}function Bs(e){if(Mo(e),yr(e))for(let t=0;t<e.producerNode.length;t++)Io(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function vu(e,t,n){if(yu(e),e.liveConsumerNode.length===0&&Du(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=vu(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function Io(e,t){if(yu(e),e.liveConsumerNode.length===1&&Du(e))for(let r=0;r<e.producerNode.length;r++)Io(e.producerNode[r],e.producerIndexOfThis[r]);let n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[t],o=e.liveConsumerNode[t];Mo(o),o.producerIndexOfThis[r]=t}}function yr(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Mo(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function yu(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Du(e){return e.producerNode!==void 0}function Us(e,t){let n=Object.create($g);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Fs(n),Cr(n),n.value===Eo)throw n.error;return n.value};return r[Fe]=n,r}var xs=Symbol("UNSET"),As=Symbol("COMPUTING"),Eo=Symbol("ERRORED"),$g=V(D({},Dr),{value:xs,dirty:!0,error:null,equal:Rs,kind:"computed",producerMustRecompute(e){return e.value===xs||e.value===As},producerRecomputeValue(e){if(e.value===As)throw new Error("Detected cycle in computations.");let t=e.value;e.value=As;let n=bo(e),r,o=!1;try{r=e.computation(),N(null),o=t!==xs&&t!==Eo&&r!==Eo&&e.equal(t,r)}catch(i){r=Eo,e.error=i}finally{Vs(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Hg(){throw new Error}var Cu=Hg;function wu(e){Cu(e)}function $s(e){Cu=e}var zg=null;function Hs(e,t){let n=Object.create(So);n.value=e,t!==void 0&&(n.equal=t);let r=()=>(Cr(n),n.value);return r[Fe]=n,r}function wr(e,t){Ls()||wu(e),e.equal(e.value,t)||(e.value=t,qg(e))}function zs(e,t){Ls()||wu(e),wr(e,t(e.value))}var So=V(D({},Dr),{equal:Rs,value:void 0,kind:"signal"});function qg(e){e.version++,mu(),Ps(e),zg?.()}function qs(e){let t=N(null);try{return e()}finally{N(t)}}var Gs;function _r(){return Gs}function pt(e){let t=Gs;return Gs=e,t}var To=Symbol("NotFound");function M(e){return typeof e=="function"}function vn(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var xo=vn(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
`)}`:"",this.name="UnsubscriptionError",this.errors=n});function Er(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var X=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(M(r))try{r()}catch(i){t=i instanceof xo?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{_u(i)}catch(s){t=t??[],s instanceof xo?t=[...t,...s.errors]:t.push(s)}}if(t)throw new xo(t)}}add(t){var n;if(t&&t!==this)if(this.closed)_u(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Er(n,t)}remove(t){let{_finalizers:n}=this;n&&Er(n,t),t instanceof e&&t._removeParent(this)}};X.EMPTY=(()=>{let e=new X;return e.closed=!0,e})();var Ws=X.EMPTY;function Ao(e){return e instanceof X||e&&"closed"in e&&M(e.remove)&&M(e.add)&&M(e.unsubscribe)}function _u(e){M(e)?e():e.unsubscribe()}var ze={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var yn={setTimeout(e,t,...n){let{delegate:r}=yn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=yn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function No(e){yn.setTimeout(()=>{let{onUnhandledError:t}=ze;if(t)t(e);else throw e})}function br(){}var Eu=Zs("C",void 0,void 0);function bu(e){return Zs("E",void 0,e)}function Iu(e){return Zs("N",e,void 0)}function Zs(e,t,n){return{kind:e,value:t,error:n}}var $t=null;function Dn(e){if(ze.useDeprecatedSynchronousErrorHandling){let t=!$t;if(t&&($t={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=$t;if($t=null,n)throw r}}else e()}function Mu(e){ze.useDeprecatedSynchronousErrorHandling&&$t&&($t.errorThrown=!0,$t.error=e)}var Ht=class extends X{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Ao(t)&&t.add(this)):this.destination=Kg}static create(t,n,r){return new Cn(t,n,r)}next(t){this.isStopped?Ys(Iu(t),this):this._next(t)}error(t){this.isStopped?Ys(bu(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Ys(Eu,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Qg=Function.prototype.bind;function Qs(e,t){return Qg.call(e,t)}var Ks=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Ro(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Ro(r)}else Ro(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Ro(n)}}},Cn=class extends Ht{constructor(t,n,r){super();let o;if(M(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ze.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Qs(t.next,i),error:t.error&&Qs(t.error,i),complete:t.complete&&Qs(t.complete,i)}):o=t}this.destination=new Ks(o)}};function Ro(e){ze.useDeprecatedSynchronousErrorHandling?Mu(e):No(e)}function Yg(e){throw e}function Ys(e,t){let{onStoppedNotification:n}=ze;n&&yn.setTimeout(()=>n(e,t))}var Kg={closed:!0,next:br,error:Yg,complete:br};var wn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function xe(e){return e}function Js(...e){return Xs(e)}function Xs(e){return e.length===0?xe:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var H=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Xg(n)?n:new Cn(n,r,o);return Dn(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Su(r),new r((o,i)=>{let s=new Cn({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[wn](){return this}pipe(...n){return Xs(n)(this)}toPromise(n){return n=Su(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Su(e){var t;return(t=e??ze.Promise)!==null&&t!==void 0?t:Promise}function Jg(e){return e&&M(e.next)&&M(e.error)&&M(e.complete)}function Xg(e){return e&&e instanceof Ht||Jg(e)&&Ao(e)}function ea(e){return M(e?.lift)}function U(e){return t=>{if(ea(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function L(e,t,n,r,o){return new ta(e,t,n,r,o)}var ta=class extends Ht{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function _n(){return U((e,t)=>{let n=null;e._refCount++;let r=L(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var En=class extends H{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,ea(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new X;let n=this.getSubject();t.add(this.source.subscribe(L(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=X.EMPTY)}return t}refCount(){return _n()(this)}};var Tu=vn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ee=(()=>{class e extends H{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Oo(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Tu}next(n){Dn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Dn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Dn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Ws:(this.currentObservers=null,i.push(n),new X(()=>{this.currentObservers=null,Er(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new H;return n.source=this,n}}return e.create=(t,n)=>new Oo(t,n),e})(),Oo=class extends ee{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Ws}};var le=class extends ee{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Ce=new H(e=>e.complete());function xu(e){return e&&M(e.schedule)}function Au(e){return e[e.length-1]}function ko(e){return M(Au(e))?e.pop():void 0}function At(e){return xu(Au(e))?e.pop():void 0}function Ru(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(f){s(f)}}function c(u){try{l(r.throw(u))}catch(f){s(f)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function Nu(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function zt(e){return this instanceof zt?(this.v=e,this):new zt(e)}function Ou(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(d){return function(m){return Promise.resolve(m).then(d,f)}}function a(d,m){r[d]&&(o[d]=function(C){return new Promise(function(G,B){i.push([d,C,G,B])>1||c(d,C)})},m&&(o[d]=m(o[d])))}function c(d,m){try{l(r[d](m))}catch(C){h(i[0][3],C)}}function l(d){d.value instanceof zt?Promise.resolve(d.value.v).then(u,f):h(i[0][2],d)}function u(d){c("next",d)}function f(d){c("throw",d)}function h(d,m){d(m),i.shift(),i.length&&c(i[0][0],i[0][1])}}function ku(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Nu=="function"?Nu(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}var Fo=e=>e&&typeof e.length=="number"&&typeof e!="function";function Po(e){return M(e?.then)}function Lo(e){return M(e[wn])}function Vo(e){return Symbol.asyncIterator&&M(e?.[Symbol.asyncIterator])}function jo(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function em(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Bo=em();function Uo(e){return M(e?.[Bo])}function $o(e){return Ou(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield zt(n.read());if(o)return yield zt(void 0);yield yield zt(r)}}finally{n.releaseLock()}})}function Ho(e){return M(e?.getReader)}function te(e){if(e instanceof H)return e;if(e!=null){if(Lo(e))return tm(e);if(Fo(e))return nm(e);if(Po(e))return rm(e);if(Vo(e))return Fu(e);if(Uo(e))return om(e);if(Ho(e))return im(e)}throw jo(e)}function tm(e){return new H(t=>{let n=e[wn]();if(M(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function nm(e){return new H(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function rm(e){return new H(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,No)})}function om(e){return new H(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Fu(e){return new H(t=>{sm(e,t).catch(n=>t.error(n))})}function im(e){return Fu($o(e))}function sm(e,t){var n,r,o,i;return Ru(this,void 0,void 0,function*(){try{for(n=ku(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function we(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function zo(e,t=0){return U((n,r)=>{n.subscribe(L(r,o=>we(r,e,()=>r.next(o),t),()=>we(r,e,()=>r.complete(),t),o=>we(r,e,()=>r.error(o),t)))})}function qo(e,t=0){return U((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Pu(e,t){return te(e).pipe(qo(t),zo(t))}function Lu(e,t){return te(e).pipe(qo(t),zo(t))}function Vu(e,t){return new H(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function ju(e,t){return new H(n=>{let r;return we(n,t,()=>{r=e[Bo](),we(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>M(r?.return)&&r.return()})}function Go(e,t){if(!e)throw new Error("Iterable cannot be null");return new H(n=>{we(n,t,()=>{let r=e[Symbol.asyncIterator]();we(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Bu(e,t){return Go($o(e),t)}function Uu(e,t){if(e!=null){if(Lo(e))return Pu(e,t);if(Fo(e))return Vu(e,t);if(Po(e))return Lu(e,t);if(Vo(e))return Go(e,t);if(Uo(e))return ju(e,t);if(Ho(e))return Bu(e,t)}throw jo(e)}function K(e,t){return t?Uu(e,t):te(e)}function T(...e){let t=At(e);return K(e,t)}function bn(e,t){let n=M(e)?e:()=>e,r=o=>o.error(n());return new H(t?o=>t.schedule(r,0,o):r)}function na(e){return!!e&&(e instanceof H||M(e.lift)&&M(e.subscribe))}var gt=vn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function j(e,t){return U((n,r)=>{let o=0;n.subscribe(L(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:am}=Array;function cm(e,t){return am(t)?e(...t):e(t)}function Wo(e){return j(t=>cm(e,t))}var{isArray:lm}=Array,{getPrototypeOf:um,prototype:dm,keys:fm}=Object;function Zo(e){if(e.length===1){let t=e[0];if(lm(t))return{args:t,keys:null};if(hm(t)){let n=fm(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function hm(e){return e&&typeof e=="object"&&um(e)===dm}function Qo(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Yo(...e){let t=At(e),n=ko(e),{args:r,keys:o}=Zo(e);if(r.length===0)return K([],t);let i=new H(pm(r,t,o?s=>Qo(o,s):xe));return n?i.pipe(Wo(n)):i}function pm(e,t,n=xe){return r=>{$u(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)$u(t,()=>{let l=K(e[c],t),u=!1;l.subscribe(L(r,f=>{i[c]=f,u||(u=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function $u(e,t,n){e?we(n,e,t):t()}function Hu(e,t,n,r,o,i,s,a){let c=[],l=0,u=0,f=!1,h=()=>{f&&!c.length&&!l&&t.complete()},d=C=>l<r?m(C):c.push(C),m=C=>{i&&t.next(C),l++;let G=!1;te(n(C,u++)).subscribe(L(t,B=>{o?.(B),i?d(B):t.next(B)},()=>{G=!0},void 0,()=>{if(G)try{for(l--;c.length&&l<r;){let B=c.shift();s?we(t,s,()=>m(B)):m(B)}h()}catch(B){t.error(B)}}))};return e.subscribe(L(t,d,()=>{f=!0,h()})),()=>{a?.()}}function ie(e,t,n=1/0){return M(t)?ie((r,o)=>j((i,s)=>t(r,i,o,s))(te(e(r,o))),n):(typeof t=="number"&&(n=t),U((r,o)=>Hu(r,o,e,n)))}function ra(e=1/0){return ie(xe,e)}function zu(){return ra(1)}function In(...e){return zu()(K(e,At(e)))}function Ko(e){return new H(t=>{te(e()).subscribe(t)})}function oa(...e){let t=ko(e),{args:n,keys:r}=Zo(e),o=new H(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u<s;u++){let f=!1;te(n[u]).subscribe(L(i,h=>{f||(f=!0,l--),a[u]=h},()=>c--,void 0,()=>{(!c||!f)&&(l||i.next(r?Qo(r,a):a),i.complete())}))}});return t?o.pipe(Wo(t)):o}function qe(e,t){return U((n,r)=>{let o=0;n.subscribe(L(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Nt(e){return U((t,n)=>{let r=null,o=!1,i;r=t.subscribe(L(n,void 0,void 0,s=>{i=te(e(s,Nt(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function qu(e,t,n,r,o){return(i,s)=>{let a=n,c=t,l=0;i.subscribe(L(s,u=>{let f=l++;c=a?e(c,u,f):(a=!0,u),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function Mn(e,t){return M(t)?ie(e,t,1):ie(e,1)}function Rt(e){return U((t,n)=>{let r=!1;t.subscribe(L(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function mt(e){return e<=0?()=>Ce:U((t,n)=>{let r=0;t.subscribe(L(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Jo(e=gm){return U((t,n)=>{let r=!1;t.subscribe(L(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function gm(){return new gt}function Ir(e){return U((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function vt(e,t){let n=arguments.length>=2;return r=>r.pipe(e?qe((o,i)=>e(o,i,r)):xe,mt(1),n?Rt(t):Jo(()=>new gt))}function Sn(e){return e<=0?()=>Ce:U((t,n)=>{let r=[];t.subscribe(L(n,o=>{r.push(o),e<r.length&&r.shift()},()=>{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function ia(e,t){let n=arguments.length>=2;return r=>r.pipe(e?qe((o,i)=>e(o,i,r)):xe,Sn(1),n?Rt(t):Jo(()=>new gt))}function sa(e,t){return U(qu(e,t,arguments.length>=2,!0))}function aa(...e){let t=At(e);return U((n,r)=>{(t?In(e,n,t):In(e,n)).subscribe(r)})}function Ge(e,t){return U((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(L(r,c=>{o?.unsubscribe();let l=0,u=i++;te(e(c,u)).subscribe(o=L(r,f=>r.next(t?t(c,f,u,l++):f),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function ca(e){return U((t,n)=>{te(e).subscribe(L(n,()=>n.complete(),br)),!n.closed&&t.subscribe(n)})}function ue(e,t,n){let r=M(e)||t||n?{next:e,error:t,complete:n}:e;return r?U((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(L(i,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),i.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):xe}var Od="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",_=class extends Error{code;constructor(t,n){super(yc(t,n)),this.code=t}};function yc(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var kd=Symbol("InputSignalNode#UNSET"),mm=V(D({},So),{transformFn:void 0,applyValueToInputSignal(e,t){wr(e,t)}});function Fd(e,t){let n=Object.create(mm);n.value=e,n.transformFn=t?.transform;function r(){if(Cr(n),n.value===kd){let o=null;throw new _(-950,o)}return n.value}return r[Fe]=n,r}function Ni(e){return{toString:e}.toString()}var ba=globalThis;function Q(e){for(let t in e)if(e[t]===Q)return t;throw Error("Could not find renamed property on target object.")}function vm(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function _e(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(_e).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
`);return r>=0?n.slice(0,r):n}function Gu(e,t){return e?t?`${e} ${t}`:e:t||""}var ym=Q({__forward_ref__:Q});function qn(e){return e.__forward_ref__=qn,e.toString=function(){return _e(this())},e}function ye(e){return Pd(e)?e():e}function Pd(e){return typeof e=="function"&&e.hasOwnProperty(ym)&&e.__forward_ref__===qn}function I(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Gn(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ri(e){return Wu(e,Vd)||Wu(e,jd)}function Ld(e){return Ri(e)!==null}function Wu(e,t){return e.hasOwnProperty(t)?e[t]:null}function Dm(e){let t=e&&(e[Vd]||e[jd]);return t||null}function Zu(e){return e&&(e.hasOwnProperty(Qu)||e.hasOwnProperty(Cm))?e[Qu]:null}var Vd=Q({\u0275prov:Q}),Qu=Q({\u0275inj:Q}),jd=Q({ngInjectableDef:Q}),Cm=Q({ngInjectorDef:Q}),b=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=I({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Bd(e){return e&&!!e.\u0275providers}var wm=Q({\u0275cmp:Q}),_m=Q({\u0275dir:Q}),Em=Q({\u0275pipe:Q}),bm=Q({\u0275mod:Q}),ai=Q({\u0275fac:Q}),xr=Q({__NG_ELEMENT_ID__:Q}),Yu=Q({__NG_ENV_ID__:Q});function Oi(e){return typeof e=="string"?e:e==null?"":String(e)}function Im(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Oi(e)}function Ud(e,t){throw new _(-200,e)}function Dc(e,t){throw new _(-201,!1)}var O=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(O||{}),Ia;function $d(){return Ia}function Pe(e){let t=Ia;return Ia=e,t}function Hd(e,t,n){let r=Ri(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&O.Optional)return null;if(t!==void 0)return t;Dc(e,"Injector")}var Mm={},qt=Mm,Sm="__NG_DI_FLAG__",ci=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=n;return this.injector.get(t,r.optional?To:qt,r)}},li="ngTempTokenPath",Tm="ngTokenPath",xm=/\n/gm,Am="\u0275",Ku="__source";function Nm(e,t=O.Default){if(_r()===void 0)throw new _(-203,!1);if(_r()===null)return Hd(e,void 0,t);{let n=_r(),r;return n instanceof ci?r=n.injector:r=n,r.get(e,t&O.Optional?null:void 0,t)}}function F(e,t=O.Default){return($d()||Nm)(ye(e),t)}function v(e,t=O.Default){return F(e,ki(t))}function ki(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ma(e){let t=[];for(let n=0;n<e.length;n++){let r=ye(e[n]);if(Array.isArray(r)){if(r.length===0)throw new _(900,!1);let o,i=O.Default;for(let s=0;s<r.length;s++){let a=r[s],c=Rm(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(F(o,i))}else t.push(F(r))}return t}function Rm(e){return e[Sm]}function Om(e,t,n,r){let o=e[li];throw t[Ku]&&o.unshift(t[Ku]),e.message=km(`
`+e.message,o,n,r),e[Tm]=o,e[li]=null,e}function km(e,t,n,r=null){e=e&&e.charAt(0)===`
`&&e.charAt(1)==Am?e.slice(2):e;let o=_e(t);if(Array.isArray(t))o=t.map(_e).join(" -> ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):_e(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(xm,`
`)}`}function Rn(e,t){let n=e.hasOwnProperty(ai);return n?e[ai]:null}function Fm(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function Pm(e){return e.flat(Number.POSITIVE_INFINITY)}function Cc(e,t){e.forEach(n=>Array.isArray(n)?Cc(n,t):t(n))}function zd(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ui(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Lm(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function Vm(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function jm(e,t,n){let r=Br(e,t);return r>=0?e[r|1]=n:(r=~r,Vm(e,r,t,n)),r}function la(e,t){let n=Br(e,t);if(n>=0)return e[n|1]}function Br(e,t){return Bm(e,t,1)}function Bm(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var Wt={},Le=[],On=new b(""),qd=new b("",-1),Gd=new b(""),di=class{get(t,n=qt){if(n===qt){let r=new Error(`NullInjectorError: No provider for ${_e(t)}!`);throw r.name="NullInjectorError",r}return n}};function Wd(e,t){let n=e[bm]||null;if(!n&&t===!0)throw new Error(`Type ${_e(e)} does not have '\u0275mod' property.`);return n}function kn(e){return e[wm]||null}function Um(e){return e[_m]||null}function $m(e){return e[Em]||null}function wc(e){return{\u0275providers:e}}function Hm(...e){return{\u0275providers:Zd(!0,e),\u0275fromNgModule:!0}}function Zd(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Cc(t,s=>{let a=s;Sa(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Qd(o,i),n}function Qd(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];_c(o,i=>{t(i,r)})}}function Sa(e,t,n,r){if(e=ye(e),!e)return!1;let o=null,i=Zu(e),s=!i&&kn(e);if(!i&&!s){let c=e.ngModule;if(i=Zu(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)Sa(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;try{Cc(i.imports,u=>{Sa(u,t,n,r)&&(l||=[],l.push(u))})}finally{}l!==void 0&&Qd(l,t)}if(!a){let l=Rn(o)||(()=>new o);t({provide:o,useFactory:l,deps:Le},o),t({provide:Gd,useValue:o,multi:!0},o),t({provide:On,useValue:()=>F(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;_c(c,u=>{t(u,l)})}}else return!1;return o!==e&&e.providers!==void 0}function _c(e,t){for(let n of e)Bd(n)&&(n=n.\u0275providers),Array.isArray(n)?_c(n,t):t(n)}var zm=Q({provide:String,useValue:Q});function Yd(e){return e!==null&&typeof e=="object"&&zm in e}function qm(e){return!!(e&&e.useExisting)}function Gm(e){return!!(e&&e.useFactory)}function Fn(e){return typeof e=="function"}function Wm(e){return!!e.useClass}var Fi=new b(""),ti={},Ju={},ua;function Ec(){return ua===void 0&&(ua=new di),ua}var je=class{},Ar=class extends je{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,xa(t,s=>this.processProvider(s)),this.records.set(qd,Tn(void 0,this)),o.has("environment")&&this.records.set(je,Tn(void 0,this));let i=this.records.get(Fi);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Gd,Le,O.Self))}retrieve(t,n){let r=n;return this.get(t,r.optional?To:qt,r)}destroy(){Sr(this),this._destroyed=!0;let t=N(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),N(t)}}onDestroy(t){return Sr(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Sr(this);let n=pt(this),r=Pe(void 0),o;try{return t()}finally{pt(n),Pe(r)}}get(t,n=qt,r=O.Default){if(Sr(this),t.hasOwnProperty(Yu))return t[Yu](this);r=ki(r);let o,i=pt(this),s=Pe(void 0);try{if(!(r&O.SkipSelf)){let c=this.records.get(t);if(c===void 0){let l=Jm(t)&&Ri(t);l&&this.injectableDefInScope(l)?c=Tn(Ta(t),ti):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&O.Self?Ec():this.parent;return n=r&O.Optional&&n===qt?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[li]=a[li]||[]).unshift(_e(t)),i)throw a;return Om(a,t,"R3InjectorError",this.source)}else throw a}finally{Pe(s),pt(i)}}resolveInjectorInitializers(){let t=N(null),n=pt(this),r=Pe(void 0),o;try{let i=this.get(On,Le,O.Self);for(let s of i)s()}finally{pt(n),Pe(r),N(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(_e(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=ye(t);let n=Fn(t)?t:ye(t&&t.provide),r=Qm(t);if(!Fn(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Tn(void 0,ti,!0),o.factory=()=>Ma(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=N(null);try{return n.value===Ju?Ud(_e(t)):n.value===ti&&(n.value=Ju,n.value=n.factory()),typeof n.value=="object"&&n.value&&Km(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{N(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=ye(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Ta(e){let t=Ri(e),n=t!==null?t.factory:Rn(e);if(n!==null)return n;if(e instanceof b)throw new _(204,!1);if(e instanceof Function)return Zm(e);throw new _(204,!1)}function Zm(e){if(e.length>0)throw new _(204,!1);let n=Dm(e);return n!==null?()=>n.factory(e):()=>new e}function Qm(e){if(Yd(e))return Tn(void 0,e.useValue);{let t=Kd(e);return Tn(t,ti)}}function Kd(e,t,n){let r;if(Fn(e)){let o=ye(e);return Rn(o)||Ta(o)}else if(Yd(e))r=()=>ye(e.useValue);else if(Gm(e))r=()=>e.useFactory(...Ma(e.deps||[]));else if(qm(e))r=()=>F(ye(e.useExisting));else{let o=ye(e&&(e.useClass||e.provide));if(Ym(e))r=()=>new o(...Ma(e.deps));else return Rn(o)||Ta(o)}return r}function Sr(e){if(e.destroyed)throw new _(205,!1)}function Tn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Ym(e){return!!e.deps}function Km(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Jm(e){return typeof e=="function"||typeof e=="object"&&e instanceof b}function xa(e,t){for(let n of e)Array.isArray(n)?xa(n,t):n&&Bd(n)?xa(n.\u0275providers,t):t(n)}function Ye(e,t){let n;e instanceof Ar?(Sr(e),n=e):n=new ci(e);let r,o=pt(n),i=Pe(void 0);try{return t()}finally{pt(o),Pe(i)}}function Xm(){return $d()!==void 0||_r()!=null}function ev(e){return typeof e=="function"}var _t=0,x=1,S=2,me=3,Ze=4,be=5,Pn=6,fi=7,ae=8,Ln=9,yt=10,J=11,Nr=12,Xu=13,Wn=14,Ae=15,Zt=16,xn=17,Dt=18,Pi=19,Jd=20,Ot=21,da=22,hi=23,Ve=24,fa=25,Ee=26,Xd=1;var Qt=7,pi=8,Vn=9,pe=10;function kt(e){return Array.isArray(e)&&typeof e[Xd]=="object"}function Et(e){return Array.isArray(e)&&e[Xd]===!0}function ef(e){return(e.flags&4)!==0}function Zn(e){return e.componentOffset>-1}function bc(e){return(e.flags&1)===1}function it(e){return!!e.template}function gi(e){return(e[S]&512)!==0}function Ur(e){return(e[S]&256)===256}var Aa=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function tf(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var Qn=(()=>{let e=()=>nf;return e.ngInherit=!0,e})();function nf(e){return e.type.prototype.ngOnChanges&&(e.setInput=nv),tv}function tv(){let e=of(this),t=e?.current;if(t){let n=e.previous;if(n===Wt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function nv(e,t,n,r,o){let i=this.declaredInputs[r],s=of(e)||rv(e,{previous:Wt,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new Aa(l&&l.currentValue,n,c===Wt),tf(e,t,o,n)}var rf="__ngSimpleChanges__";function of(e){return e[rf]||null}function rv(e,t){return e[rf]=t}var ed=null;var Y=function(e,t=null,n){ed?.(e,t,n)},ov="svg",iv="math";function st(e){for(;Array.isArray(e);)e=e[_t];return e}function sf(e,t){return st(t[e])}function lt(e,t){return st(t[e.index])}function Ic(e,t){return e.data[t]}function at(e,t){let n=t[e];return kt(n)?n:n[_t]}function sv(e){return(e[S]&4)===4}function Mc(e){return(e[S]&128)===128}function av(e){return Et(e[me])}function jn(e,t){return t==null?null:e[t]}function af(e){e[xn]=0}function cf(e){e[S]&1024||(e[S]|=1024,Mc(e)&&Vi(e))}function cv(e,t){for(;e>0;)t=t[Wn],e--;return t}function Li(e){return!!(e[S]&9216||e[Ve]?.dirty)}function Na(e){e[yt].changeDetectionScheduler?.notify(8),e[S]&64&&(e[S]|=1024),Li(e)&&Vi(e)}function Vi(e){e[yt].changeDetectionScheduler?.notify(0);let t=Yt(e);for(;t!==null&&!(t[S]&8192||(t[S]|=8192,!Mc(t)));)t=Yt(t)}function lf(e,t){if(Ur(e))throw new _(911,!1);e[Ot]===null&&(e[Ot]=[]),e[Ot].push(t)}function lv(e,t){if(e[Ot]===null)return;let n=e[Ot].indexOf(t);n!==-1&&e[Ot].splice(n,1)}function Yt(e){let t=e[me];return Et(t)?t[me]:t}function uf(e){return e[fi]??=[]}function df(e){return e.cleanup??=[]}function uv(e,t,n,r){let o=uf(t);o.push(n),e.firstCreatePass&&df(e).push(r,o.length-1)}var P={lFrame:wf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Ra=!1;function dv(){return P.lFrame.elementDepthCount}function fv(){P.lFrame.elementDepthCount++}function hv(){P.lFrame.elementDepthCount--}function ff(){return P.bindingsEnabled}function hf(){return P.skipHydrationRootTNode!==null}function pv(e){return P.skipHydrationRootTNode===e}function gv(){P.skipHydrationRootTNode=null}function $(){return P.lFrame.lView}function ce(){return P.lFrame.tView}function Ie(e){return P.lFrame.contextLView=e,e[ae]}function Me(e){return P.lFrame.contextLView=null,e}function Ne(){let e=pf();for(;e!==null&&e.type===64;)e=e.parent;return e}function pf(){return P.lFrame.currentTNode}function mv(){let e=P.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function $r(e,t){let n=P.lFrame;n.currentTNode=e,n.isParent=t}function gf(){return P.lFrame.isParent}function mf(){P.lFrame.isParent=!1}function vf(){return Ra}function td(e){let t=Ra;return Ra=e,t}function vv(e){return P.lFrame.bindingIndex=e}function Yn(){return P.lFrame.bindingIndex++}function yv(e){let t=P.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Dv(){return P.lFrame.inI18n}function Cv(e,t){let n=P.lFrame;n.bindingIndex=n.bindingRootIndex=e,Oa(t)}function wv(){return P.lFrame.currentDirectiveIndex}function Oa(e){P.lFrame.currentDirectiveIndex=e}function _v(e){let t=P.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function yf(){return P.lFrame.currentQueryIndex}function Sc(e){P.lFrame.currentQueryIndex=e}function Ev(e){let t=e[x];return t.type===2?t.declTNode:t.type===1?e[be]:null}function Df(e,t,n){if(n&O.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&O.Host);)if(o=Ev(i),o===null||(i=i[Wn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=P.lFrame=Cf();return r.currentTNode=t,r.lView=e,!0}function Tc(e){let t=Cf(),n=e[x];P.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Cf(){let e=P.lFrame,t=e===null?null:e.child;return t===null?wf(e):t}function wf(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function _f(){let e=P.lFrame;return P.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Ef=_f;function xc(){let e=_f();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function bv(e){return(P.lFrame.contextLView=cv(e,P.lFrame.contextLView))[ae]}function en(){return P.lFrame.selectedIndex}function Kt(e){P.lFrame.selectedIndex=e}function ji(){let e=P.lFrame;return Ic(e.tView,e.selectedIndex)}function Iv(){return P.lFrame.currentNamespace}var bf=!0;function Ac(){return bf}function Nc(e){bf=e}function Mv(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=nf(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function If(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function ni(e,t,n){Mf(e,t,3,n)}function ri(e,t,n,r){(e[S]&3)===n&&Mf(e,t,n,r)}function ha(e,t){let n=e[S];(n&3)===t&&(n&=16383,n+=1,e[S]=n)}function Mf(e,t,n,r){let o=r!==void 0?e[xn]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[xn]+=65536),(a<i||i==-1)&&(Sv(e,n,t,c),e[xn]=(e[xn]&4294901760)+c+2),c++}function nd(e,t){Y(4,e,t);let n=N(null);try{t.call(e)}finally{N(n),Y(5,e,t)}}function Sv(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[S]>>14<e[xn]>>16&&(e[S]&3)===t&&(e[S]+=16384,nd(a,i)):nd(a,i)}var Nn=-1,Jt=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function Tv(e){return(e.flags&8)!==0}function xv(e){return(e.flags&16)!==0}function Av(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];Nv(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function Sf(e){return e===3||e===4||e===6}function Nv(e){return e.charCodeAt(0)===64}function Rr(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?rd(e,n,o,null,t[++r]):rd(e,n,o,null,null))}}return e}function rd(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}var pa={},ka=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=ki(r);let o=this.injector.get(t,pa,r);return o!==pa||n===pa?o:this.parentInjector.get(t,n,r)}};function Tf(e){return e!==Nn}function mi(e){return e&32767}function Rv(e){return e>>16}function vi(e,t){let n=Rv(e),r=t;for(;n>0;)r=r[Wn],n--;return r}var Fa=!0;function od(e){let t=Fa;return Fa=e,t}var Ov=256,xf=Ov-1,Af=5,kv=0,ot={};function Fv(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(xr)&&(r=n[xr]),r==null&&(r=n[xr]=kv++);let o=r&xf,i=1<<o;t.data[e+(o>>Af)]|=i}function yi(e,t){let n=Nf(e,t);if(n!==-1)return n;let r=t[x];r.firstCreatePass&&(e.injectorIndex=t.length,ga(r.data,e),ga(t,null),ga(r.blueprint,null));let o=Rc(e,t),i=e.injectorIndex;if(Tf(o)){let s=mi(o),a=vi(o,t),c=a[x].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function ga(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Nf(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Rc(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Pf(o),r===null)return Nn;if(n++,o=o[Wn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Nn}function Pa(e,t,n){Fv(e,t,n)}function Pv(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o<r;){let i=n[o];if(Sf(i))break;if(i===0)o=o+2;else if(typeof i=="number")for(o++;o<r&&typeof n[o]=="string";)o++;else{if(i===t)return n[o+1];o=o+2}}}return null}function Rf(e,t,n){if(n&O.Optional||e!==void 0)return e;Dc(t,"NodeInjector")}function Of(e,t,n,r){if(n&O.Optional&&r===void 0&&(r=null),(n&(O.Self|O.Host))===0){let o=e[Ln],i=Pe(void 0);try{return o?o.get(t,r,n&O.Optional):Hd(t,r,n&O.Optional)}finally{Pe(i)}}return Rf(r,t,n)}function kf(e,t,n,r=O.Default,o){if(e!==null){if(t[S]&2048&&!(r&O.Self)){let s=Bv(e,t,n,r,ot);if(s!==ot)return s}let i=Ff(e,t,n,r,ot);if(i!==ot)return i}return Of(t,n,r,o)}function Ff(e,t,n,r,o){let i=Vv(n);if(typeof i=="function"){if(!Df(t,e,r))return r&O.Host?Rf(o,n,r):Of(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&O.Optional))Dc(n);else return s}finally{Ef()}}else if(typeof i=="number"){let s=null,a=Nf(e,t),c=Nn,l=r&O.Host?t[Ae][be]:null;for((a===-1||r&O.SkipSelf)&&(c=a===-1?Rc(e,t):t[a+8],c===Nn||!sd(r,!1)?a=-1:(s=t[x],a=mi(c),t=vi(c,t)));a!==-1;){let u=t[x];if(id(i,a,u.data)){let f=Lv(a,t,n,s,r,l);if(f!==ot)return f}c=t[a+8],c!==Nn&&sd(r,t[x].data[a+8]===l)&&id(i,a,t)?(s=u,a=mi(c),t=vi(c,t)):a=-1}}return o}function Lv(e,t,n,r,o,i){let s=t[x],a=s.data[e+8],c=r==null?Zn(a)&&Fa:r!=s&&(a.type&3)!==0,l=o&O.Host&&i===a,u=oi(a,s,n,c,l);return u!==null?Or(t,s,u,a):ot}function oi(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,l=e.directiveEnd,u=i>>20,f=r?a:a+u,h=o?a+u:l;for(let d=f;d<h;d++){let m=s[d];if(d<c&&n===m||d>=c&&m.type===n)return d}if(o){let d=s[c];if(d&&it(d)&&d.type===n)return c}return null}function Or(e,t,n,r){let o=e[n],i=t.data;if(o instanceof Jt){let s=o;s.resolving&&Ud(Im(i[n]));let a=od(s.canSeeViewProviders);s.resolving=!0;let c,l=s.injectImpl?Pe(s.injectImpl):null,u=Df(e,r,O.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&Mv(n,i[n],t)}finally{l!==null&&Pe(l),od(a),s.resolving=!1,Ef()}}return o}function Vv(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(xr)?e[xr]:void 0;return typeof t=="number"?t>=0?t&xf:jv:t}function id(e,t,n){let r=1<<e;return!!(n[t+(e>>Af)]&r)}function sd(e,t){return!(e&O.Self)&&!(e&O.Host&&t)}var Gt=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return kf(this._tNode,this._lView,t,ki(r),n)}};function jv(){return new Gt(Ne(),$())}function Kn(e){return Ni(()=>{let t=e.prototype.constructor,n=t[ai]||La(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[ai]||La(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function La(e){return Pd(e)?()=>{let t=La(ye(e));return t&&t()}:Rn(e)}function Bv(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[S]&2048&&!gi(s);){let a=Ff(i,s,n,r|O.Self,ot);if(a!==ot)return a;let c=i.parent;if(!c){let l=s[Jd];if(l){let u=l.get(n,ot,r);if(u!==ot)return u}c=Pf(s),s=s[Wn]}i=c}return o}function Pf(e){let t=e[x],n=t.type;return n===2?t.declTNode:n===1?e[be]:null}function Oc(e){return Pv(Ne(),e)}function ad(e,t=null,n=null,r){let o=Lf(e,t,n,r);return o.resolveInjectorInitializers(),o}function Lf(e,t=null,n=null,r,o=new Set){let i=[n||Le,Hm(e)];return r=r||(typeof e=="object"?void 0:_e(e)),new Ar(i,t||Ec(),r||null,o)}var Qe=class e{static THROW_IF_NOT_FOUND=qt;static NULL=new di;static create(t,n){if(Array.isArray(t))return ad({name:""},n,t,"");{let r=t.name??"";return ad({name:r},t.parent,t.providers,r)}}static \u0275prov=I({token:e,providedIn:"any",factory:()=>F(qd)});static __NG_ELEMENT_ID__=-1};var Uv=new b("");Uv.__NG_ELEMENT_ID__=e=>{let t=Ne();if(t===null)throw new _(204,!1);if(t.type&2)return t.value;if(e&O.Optional)return null;throw new _(204,!1)};var Vf=!1,Bi=(()=>{class e{static __NG_ELEMENT_ID__=$v;static __NG_ENV_ID__=n=>n}return e})(),Va=class extends Bi{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return lf(this._lView,t),()=>lv(this._lView,t)}};function $v(){return new Va($())}var kr=class{},kc=new b("",{providedIn:"root",factory:()=>!1});var jf=new b(""),Bf=new b(""),Jn=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new le(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=I({token:e,providedIn:"root",factory:()=>new e})}return e})();var ja=class extends ee{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Xm()&&(this.destroyRef=v(Bi,{optional:!0})??void 0,this.pendingTasks=v(Jn,{optional:!0})??void 0)}emit(t){let n=N(null);try{super.next(t)}finally{N(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof X&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},se=ja;function Di(...e){}function Uf(e){let t,n;function r(){e=Di;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function cd(e){return queueMicrotask(()=>e()),()=>{e=Di}}var Fc="isAngularZone",Ci=Fc+"_ID",Hv=0,ge=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new se(!1);onMicrotaskEmpty=new se(!1);onStable=new se(!1);onError=new se(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Vf}=t;if(typeof Zone>"u")throw new _(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Gv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Fc)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new _(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new _(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,zv,Di,Di);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},zv={};function Pc(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function qv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Uf(()=>{e.callbackScheduled=!1,Ba(e),e.isCheckStableRunning=!0,Pc(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Ba(e)}function Gv(e){let t=()=>{qv(e)},n=Hv++;e._inner=e._inner.fork({name:"angular",properties:{[Fc]:!0,[Ci]:n,[Ci+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Wv(c))return r.invokeTask(i,s,a,c);try{return ld(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),ud(e)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return ld(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Zv(c)&&t(),ud(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Ba(e),Pc(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Ba(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function ld(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ud(e){e._nesting--,Pc(e)}var Ua=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new se;onMicrotaskEmpty=new se;onStable=new se;onError=new se;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Wv(e){return $f(e,"__ignore_ng_zone__")}function Zv(e){return $f(e,"__scheduler_tick__")}function $f(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Ct=class{_console=console;handleError(t){this._console.error("ERROR",t)}},Qv=new b("",{providedIn:"root",factory:()=>{let e=v(ge),t=v(Ct);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function dd(e,t){return Fd(e,t)}function Yv(e){return Fd(kd,e)}var Hf=(dd.required=Yv,dd);function Kv(){return Xn(Ne(),$())}function Xn(e,t){return new Ke(lt(e,t))}var Ke=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Kv}return e})();function Jv(e){return e instanceof Ke?e.nativeElement:e}function Xv(e){return typeof e=="function"&&e[Fe]!==void 0}function Ui(e,t){let n=Hs(e,t?.equal),r=n[Fe];return n.set=o=>wr(r,o),n.update=o=>zs(r,o),n.asReadonly=ey.bind(n),n}function ey(){let e=this[Fe];if(e.readonlyFn===void 0){let t=()=>this();t[Fe]=e,e.readonlyFn=t}return e.readonlyFn}function zf(e){return Xv(e)&&typeof e.set=="function"}function ty(){return this._results[Symbol.iterator]()}var $a=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new ee}constructor(t=!1){this._emitDistinctChangesOnly=t}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,n){return this._results.reduce(t,n)}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,n){this.dirty=!1;let r=Pm(t);(this._changesDetected=!Fm(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=ty};function qf(e){return(e.flags&128)===128}var Gf=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Gf||{}),Wf=new Map,ny=0;function ry(){return ny++}function oy(e){Wf.set(e[Pi],e)}function Ha(e){Wf.delete(e[Pi])}var fd="__ngContext__";function Hr(e,t){kt(t)?(e[fd]=t[Pi],oy(t)):e[fd]=t}function Zf(e){return Yf(e[Nr])}function Qf(e){return Yf(e[Ze])}function Yf(e){for(;e!==null&&!Et(e);)e=e[Ze];return e}var za;function Kf(e){za=e}function iy(){if(za!==void 0)return za;if(typeof document<"u")return document;throw new _(210,!1)}var Lc=new b("",{providedIn:"root",factory:()=>sy}),sy="ng",Vc=new b(""),zr=new b("",{providedIn:"platform",factory:()=>"unknown"});var jc=new b("",{providedIn:"root",factory:()=>iy().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var ay="h",cy="b";var Jf=!1,ly=new b("",{providedIn:"root",factory:()=>Jf});var Xf=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Xf||{}),$i=new b(""),hd=new Set;function Hi(e){hd.has(e)||(hd.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var uy=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=I({token:e,providedIn:"root",factory:()=>new e})}return e})();var dy=()=>null;function eh(e,t,n=!1){return dy(e,t,n)}function th(e,t){let n=e.contentQueries;if(n!==null){let r=N(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];Sc(i),a.contentQueries(2,t[s],s)}}}finally{N(r)}}}function qa(e,t,n){Sc(0);let r=N(null);try{t(e,n)}finally{N(r)}}function nh(e,t,n){if(ef(t)){let r=N(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{N(r)}}}var ct=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(ct||{});var Xo;function fy(){if(Xo===void 0&&(Xo=null,ba.trustedTypes))try{Xo=ba.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Xo}function pd(e){return fy()?.createScriptURL(e)||e}var wi=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Od})`}};function qr(e){return e instanceof wi?e.changingThisBreaksApplicationSecurity:e}function Bc(e,t){let n=hy(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Od})`)}return n===t}function hy(e){return e instanceof wi&&e.getTypeName()||null}var py=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function rh(e){return e=String(e),e.match(py)?e:"unsafe:"+e}var zi=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(zi||{});function gy(e){let t=ih();return t?t.sanitize(zi.URL,e)||"":Bc(e,"URL")?qr(e):rh(Oi(e))}function my(e){let t=ih();if(t)return pd(t.sanitize(zi.RESOURCE_URL,e)||"");if(Bc(e,"ResourceURL"))return pd(qr(e));throw new _(904,!1)}function vy(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?my:gy}function oh(e,t,n){return vy(t,n)(e)}function ih(){let e=$();return e&&e[yt].sanitizer}function sh(e){return e.ownerDocument.defaultView}function ah(e){return e instanceof Function?e():e}function yy(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var ch="ng-template";function Dy(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&yy(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(Uc(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function Uc(e){return e.type===4&&e.value!==ch}function Cy(e,t,n){let r=e.type===4&&!n?ch:e.value;return t===r}function wy(e,t,n){let r=4,o=e.attrs,i=o!==null?by(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!We(r)&&!We(c))return!1;if(s&&We(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!Cy(e,c,n)||c===""&&t.length===1){if(We(r))return!1;s=!0}}else if(r&8){if(o===null||!Dy(e,o,c,n)){if(We(r))return!1;s=!0}}else{let l=t[++a],u=_y(c,o,Uc(e),n);if(u===-1){if(We(r))return!1;s=!0;continue}if(l!==""){let f;if(u>i?f="":f=o[u+1].toLowerCase(),r&2&&l!==f){if(We(r))return!1;s=!0}}}}return We(r)||s}function We(e){return(e&1)===0}function _y(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return Iy(t,e)}function lh(e,t,n=!1){for(let r=0;r<t.length;r++)if(wy(e,t[r],n))return!0;return!1}function Ey(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function by(e){for(let t=0;t<e.length;t++){let n=e[t];if(Sf(n))return t}return e.length}function Iy(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function My(e,t){e:for(let n=0;n<t.length;n++){let r=t[n];if(e.length===r.length){for(let o=0;o<e.length;o++)if(e[o]!==r[o])continue e;return!0}}return!1}function gd(e,t){return e?":not("+t.trim()+")":t}function Sy(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!We(s)&&(t+=gd(i,o),o=""),r=s,i=i||!We(r);n++}return o!==""&&(t+=gd(i,o)),t}function Ty(e){return e.map(Sy).join(",")}function xy(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!We(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var Pt={};function Ay(e,t){return e.createText(t)}function Ny(e,t,n){e.setValue(t,n)}function uh(e,t,n){return e.createElement(t,n)}function _i(e,t,n,r,o){e.insertBefore(t,n,r,o)}function dh(e,t,n){e.appendChild(t,n)}function md(e,t,n,r,o){r!==null?_i(e,t,n,r,o):dh(e,t,n)}function Ry(e,t,n){e.removeChild(null,t,n)}function Oy(e,t,n){e.setAttribute(t,"style",n)}function ky(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function fh(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&Av(e,t,r),o!==null&&ky(e,t,o),i!==null&&Oy(e,t,i)}function $c(e,t,n,r,o,i,s,a,c,l,u){let f=Ee+r,h=f+o,d=Fy(f,h),m=typeof l=="function"?l():l;return d[x]={type:e,blueprint:d,template:n,queries:null,viewQuery:a,declTNode:t,data:d.slice().fill(null,f),bindingStartIndex:f,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:m,incompleteFirstPass:!1,ssrId:u}}function Fy(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Pt);return n}function Py(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=$c(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Hc(e,t,n,r,o,i,s,a,c,l,u){let f=t.blueprint.slice();return f[_t]=o,f[S]=r|4|128|8|64|1024,(l!==null||e&&e[S]&2048)&&(f[S]|=2048),af(f),f[me]=f[Wn]=e,f[ae]=n,f[yt]=s||e&&e[yt],f[J]=a||e&&e[J],f[Ln]=c||e&&e[Ln]||null,f[be]=i,f[Pi]=ry(),f[Pn]=u,f[Jd]=l,f[Ae]=t.type==2?e[Ae]:f,f}function Ly(e,t,n){let r=lt(t,e),o=Py(n),i=e[yt].rendererFactory,s=zc(e,Hc(e,o,null,hh(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function hh(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function ph(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function zc(e,t){return e[Nr]?e[Xu][Ze]=t:e[Nr]=t,e[Xu]=t,t}function E(e=1){gh(ce(),$(),en()+e,!1)}function gh(e,t,n,r){if(!r)if((t[S]&3)===3){let i=e.preOrderCheckHooks;i!==null&&ni(t,i,n)}else{let i=e.preOrderHooks;i!==null&&ri(t,i,0,n)}Kt(n)}var qi=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(qi||{});function Ga(e,t,n,r){let o=N(null);try{let[i,s,a]=e.inputs[n],c=null;(s&qi.SignalBased)!==0&&(c=t[i][Fe]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):tf(t,c,i,r)}finally{N(o)}}function mh(e,t,n,r,o){let i=en(),s=r&2;try{Kt(-1),s&&t.length>Ee&&gh(e,t,Ee,!1),Y(s?2:0,o),n(r,o)}finally{Kt(i),Y(s?3:1,o)}}function qc(e,t,n){Hy(e,t,n),(n.flags&64)===64&&zy(e,t,n)}function vh(e,t,n=lt){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function Vy(e,t,n,r){let i=r.get(ly,Jf)||n===ct.ShadowDom,s=e.selectRootElement(t,i);return jy(s),s}function jy(e){By(e)}var By=()=>null;function Uy(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Gc(e,t,n,r,o,i,s,a){if(!a&&Wc(t,e,n,r,o)){Zn(t)&&$y(n,t.index);return}if(t.type&3){let c=lt(t,n);r=Uy(r),o=s!=null?s(o,t.value||"",r):o,i.setProperty(c,r,o)}else t.type&12}function $y(e,t){let n=at(t,e);n[S]&16||(n[S]|=64)}function Hy(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Zn(n)&&Ly(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||yi(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Or(t,e,s,n);if(Hr(c,t),i!==null&&Zy(t,s-r,c,a,n,i),it(a)){let l=at(n.index,t);l[ae]=Or(t,e,s,n)}}}function zy(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=wv();try{Kt(i);for(let a=r;a<o;a++){let c=e.data[a],l=t[a];Oa(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&qy(c,l)}}finally{Kt(-1),Oa(s)}}function qy(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function yh(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];lh(t,i.selectors,!1)&&(r??=[],it(i)?r.unshift(i):r.push(i))}return r}function Gy(e,t,n,r,o,i){let s=lt(e,t);Wy(t[J],s,i,e.value,n,r,o)}function Wy(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?Oi(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function Zy(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];Ga(r,n,c,l)}}function Qy(e,t){let n=e[Ln],r=n?n.get(Ct,null):null;r&&r.handleError(t)}function Wc(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let l=s[c],u=s[c+1],f=t.data[l];Ga(f,n[l],u,o),a=!0}if(i)for(let c of i){let l=n[c],u=t.data[c];Ga(u,l,r,o),a=!0}return a}function Yy(e,t){let n=at(t,e),r=n[x];Ky(r,n);let o=n[_t];o!==null&&n[Pn]===null&&(n[Pn]=eh(o,n[Ln])),Y(18),Zc(r,n,n[ae]),Y(19,n[ae])}function Ky(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Zc(e,t,n){Tc(t);try{let r=e.viewQuery;r!==null&&qa(1,r,n);let o=e.template;o!==null&&mh(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Dt]?.finishViewCreation(e),e.staticContentQueries&&th(e,t),e.staticViewQueries&&qa(2,e.viewQuery,n);let i=e.components;i!==null&&Jy(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[S]&=-5,xc()}}function Jy(e,t){for(let n=0;n<t.length;n++)Yy(e,t[n])}function Gr(e,t,n,r){let o=N(null);try{let i=t.tView,a=e[S]&4096?4096:16,c=Hc(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];c[Zt]=l;let u=e[Dt];return u!==null&&(c[Dt]=u.createEmbeddedView(i)),Zc(i,c,n),c}finally{N(o)}}function Bn(e,t){return!t||t.firstChild===null||qf(e)}var Xy;function Qc(e,t){return Xy(e,t)}var wt=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(wt||{});function Yc(e){return(e.flags&32)===32}function An(e,t,n,r,o){if(r!=null){let i,s=!1;Et(r)?i=r:kt(r)&&(s=!0,r=r[_t]);let a=st(r);e===0&&n!==null?o==null?dh(t,n,a):_i(t,n,a,o||null,!0):e===1&&n!==null?_i(t,n,a,o||null,!0):e===2?Ry(t,a,s):e===3&&t.destroyNode(a),i!=null&&lD(t,e,i,n,o)}}function eD(e,t){Dh(e,t),t[_t]=null,t[be]=null}function tD(e,t,n,r,o,i){r[_t]=o,r[be]=t,Wi(e,r,n,1,o,i)}function Dh(e,t){t[yt].changeDetectionScheduler?.notify(9),Wi(e,t,t[J],2,null,null)}function nD(e){let t=e[Nr];if(!t)return ma(e[x],e);for(;t;){let n=null;if(kt(t))n=t[Nr];else{let r=t[pe];r&&(n=r)}if(!n){for(;t&&!t[Ze]&&t!==e;)kt(t)&&ma(t[x],t),t=t[me];t===null&&(t=e),kt(t)&&ma(t[x],t),n=t&&t[Ze]}t=n}}function Kc(e,t){let n=e[Vn],r=n.indexOf(t);n.splice(r,1)}function Gi(e,t){if(Ur(t))return;let n=t[J];n.destroyNode&&Wi(e,t,n,3,null,null),nD(t)}function ma(e,t){if(Ur(t))return;let n=N(null);try{t[S]&=-129,t[S]|=256,t[Ve]&&Bs(t[Ve]),oD(e,t),rD(e,t),t[x].type===1&&t[J].destroy();let r=t[Zt];if(r!==null&&Et(t[me])){r!==t[me]&&Kc(r,t);let o=t[Dt];o!==null&&o.detachView(e)}Ha(t)}finally{N(n)}}function rD(e,t){let n=e.cleanup,r=t[fi];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[fi]=null);let o=t[Ot];if(o!==null){t[Ot]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[hi];if(i!==null){t[hi]=null;for(let s of i)s.destroy()}}function oD(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof Jt)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];Y(4,a,c);try{c.call(a)}finally{Y(5,a,c)}}else{Y(4,o,i);try{i.call(o)}finally{Y(5,o,i)}}}}}function Ch(e,t,n){return iD(e,t.parent,n)}function iD(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[_t];if(Zn(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===ct.None||o===ct.Emulated)return null}return lt(r,n)}function wh(e,t,n){return aD(e,t,n)}function sD(e,t,n){return e.type&40?lt(e,n):null}var aD=sD,vd;function Jc(e,t,n,r){let o=Ch(e,r,t),i=t[J],s=r.parent||t[be],a=wh(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)md(i,o,n[c],a,!1);else md(i,o,n,a,!1);vd!==void 0&&vd(i,r,t,n,o)}function Tr(e,t){if(t!==null){let n=t.type;if(n&3)return lt(t,e);if(n&4)return Wa(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Tr(e,r);{let o=e[t.index];return Et(o)?Wa(-1,o):st(o)}}else{if(n&128)return Tr(e,t.next);if(n&32)return Qc(t,e)()||st(e[t.index]);{let r=_h(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Yt(e[Ae]);return Tr(o,r)}else return Tr(e,t.next)}}}return null}function _h(e,t){if(t!==null){let r=e[Ae][be],o=t.projection;return r.projection[o]}return null}function Wa(e,t){let n=pe+e+1;if(n<t.length){let r=t[n],o=r[x].firstChild;if(o!==null)return Tr(r,o)}return t[Qt]}function Xc(e,t,n,r,o,i,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],c=n.type;if(s&&t===0&&(a&&Hr(st(a),r),n.flags|=2),!Yc(n))if(c&8)Xc(e,t,n.child,r,o,i,!1),An(t,e,o,a,i);else if(c&32){let l=Qc(n,r),u;for(;u=l();)An(t,e,o,u,i);An(t,e,o,a,i)}else c&16?Eh(e,t,r,n,o,i):An(t,e,o,a,i);n=s?n.projectionNext:n.next}}function Wi(e,t,n,r,o,i){Xc(n,r,e.firstChild,t,o,i,!1)}function cD(e,t,n){let r=t[J],o=Ch(e,n,t),i=n.parent||t[be],s=wh(i,n,t);Eh(r,0,t,n,o,s)}function Eh(e,t,n,r,o,i){let s=n[Ae],c=s[be].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let u=c[l];An(t,e,o,u,i)}else{let l=c,u=s[me];qf(r)&&(l.flags|=128),Xc(e,t,l,u,o,i,!0)}}function lD(e,t,n,r,o){let i=n[Qt],s=st(n);i!==s&&An(t,e,r,i,o);for(let a=pe;a<n.length;a++){let c=n[a];Wi(c[x],c,e,t,r,i)}}function uD(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:wt.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=wt.Important),e.setStyle(n,r,o,i))}}function Ei(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(st(i)),Et(i)&&dD(i,r);let s=n.type;if(s&8)Ei(e,t,n.child,r);else if(s&32){let a=Qc(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=_h(t,n);if(Array.isArray(a))r.push(...a);else{let c=Yt(t[Ae]);Ei(c[x],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function dD(e,t){for(let n=pe;n<e.length;n++){let r=e[n],o=r[x].firstChild;o!==null&&Ei(r[x],r,o,t)}e[Qt]!==e[_t]&&t.push(e[Qt])}function bh(e){if(e[fa]!==null){for(let t of e[fa])t.impl.addSequence(t);e[fa].length=0}}var Ih=[];function fD(e){return e[Ve]??hD(e)}function hD(e){let t=Ih.pop()??Object.create(gD);return t.lView=e,t}function pD(e){e.lView[Ve]!==e&&(e.lView=null,Ih.push(e))}var gD=V(D({},Dr),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Vi(e.lView)},consumerOnSignalRead(){this.lView[Ve]=this}});function mD(e){let t=e[Ve]??Object.create(vD);return t.lView=e,t}var vD=V(D({},Dr),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Yt(e.lView);for(;t&&!Mh(t[x]);)t=Yt(t);t&&cf(t)},consumerOnSignalRead(){this.lView[Ve]=this}});function Mh(e){return e.type!==2}function Sh(e){if(e[hi]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[hi])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[S]&8192)}}var yD=100;function Th(e,t=!0,n=0){let o=e[yt].rendererFactory,i=!1;i||o.begin?.();try{DD(e,n)}catch(s){throw t&&Qy(e,s),s}finally{i||o.end?.()}}function DD(e,t){let n=vf();try{td(!0),Za(e,t);let r=0;for(;Li(e);){if(r===yD)throw new _(103,!1);r++,Za(e,1)}}finally{td(n)}}function CD(e,t,n,r){if(Ur(t))return;let o=t[S],i=!1,s=!1;Tc(t);let a=!0,c=null,l=null;i||(Mh(e)?(l=fD(t),c=bo(l)):ks()===null?(a=!1,l=mD(t),c=bo(l)):t[Ve]&&(Bs(t[Ve]),t[Ve]=null));try{af(t),vv(e.bindingStartIndex),n!==null&&mh(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let d=e.preOrderCheckHooks;d!==null&&ni(t,d,null)}else{let d=e.preOrderHooks;d!==null&&ri(t,d,0,null),ha(t,0)}if(s||wD(t),Sh(t),xh(t,0),e.contentQueries!==null&&th(e,t),!i)if(u){let d=e.contentCheckHooks;d!==null&&ni(t,d)}else{let d=e.contentHooks;d!==null&&ri(t,d,1),ha(t,1)}ED(e,t);let f=e.components;f!==null&&Nh(t,f,0);let h=e.viewQuery;if(h!==null&&qa(2,h,r),!i)if(u){let d=e.viewCheckHooks;d!==null&&ni(t,d)}else{let d=e.viewHooks;d!==null&&ri(t,d,2),ha(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[da]){for(let d of t[da])d();t[da]=null}i||(bh(t),t[S]&=-73)}catch(u){throw i||Vi(t),u}finally{l!==null&&(Vs(l,c),a&&pD(l)),xc()}}function xh(e,t){for(let n=Zf(e);n!==null;n=Qf(n))for(let r=pe;r<n.length;r++){let o=n[r];Ah(o,t)}}function wD(e){for(let t=Zf(e);t!==null;t=Qf(t)){if(!(t[S]&2))continue;let n=t[Vn];for(let r=0;r<n.length;r++){let o=n[r];cf(o)}}}function _D(e,t,n){Y(18);let r=at(t,e);Ah(r,n),Y(19,r[ae])}function Ah(e,t){Mc(e)&&Za(e,t)}function Za(e,t){let r=e[x],o=e[S],i=e[Ve],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&js(i)),s||=!1,i&&(i.dirty=!1),e[S]&=-9217,s)CD(r,e,r.template,e[ae]);else if(o&8192){Sh(e),xh(e,1);let a=r.components;a!==null&&Nh(e,a,1),bh(e)}}function Nh(e,t,n){for(let r=0;r<t.length;r++)_D(e,t[r],n)}function ED(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)Kt(~o);else{let i=o,s=n[++r],a=n[++r];Cv(s,i);let c=t[i];Y(24,c),a(2,c),Y(25,c)}}}finally{Kt(-1)}}function el(e,t){let n=vf()?64:1088;for(e[yt].changeDetectionScheduler?.notify(t);e;){e[S]|=n;let r=Yt(e);if(gi(e)&&!r)return e;e=r}return null}function Rh(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Oh(e,t){let n=pe+t;if(n<e.length)return e[n]}function Wr(e,t,n,r=!0){let o=t[x];if(bD(o,t,e,n),r){let s=Wa(n,e),a=t[J],c=a.parentNode(e[Qt]);c!==null&&tD(o,e[be],a,t,c,s)}let i=t[Pn];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function kh(e,t){let n=Fr(e,t);return n!==void 0&&Gi(n[x],n),n}function Fr(e,t){if(e.length<=pe)return;let n=pe+t,r=e[n];if(r){let o=r[Zt];o!==null&&o!==e&&Kc(o,r),t>0&&(e[n-1][Ze]=r[Ze]);let i=ui(e,pe+t);eD(r[x],r);let s=i[Dt];s!==null&&s.detachView(i[x]),r[me]=null,r[Ze]=null,r[S]&=-129}return r}function bD(e,t,n,r){let o=pe+r,i=n.length;r>0&&(n[o-1][Ze]=t),r<i-pe?(t[Ze]=n[o],zd(n,pe+r,t)):(n.push(t),t[Ze]=null),t[me]=n;let s=t[Zt];s!==null&&n!==s&&Fh(s,t);let a=t[Dt];a!==null&&a.insertView(e),Na(t),t[S]|=128}function Fh(e,t){let n=e[Vn],r=t[me];if(kt(r))e[S]|=2;else{let o=r[me][Ae];t[Ae]!==o&&(e[S]|=2)}n===null?e[Vn]=[t]:n.push(t)}var Pr=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let t=this._lView,n=t[x];return Ei(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r}get context(){return this._lView[ae]}set context(t){this._lView[ae]=t}get destroyed(){return Ur(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[me];if(Et(t)){let n=t[pi],r=n?n.indexOf(this):-1;r>-1&&(Fr(t,r),ui(n,r))}this._attachedToViewContainer=!1}Gi(this._lView[x],this._lView)}onDestroy(t){lf(this._lView,t)}markForCheck(){el(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[S]&=-129}reattach(){Na(this._lView),this._lView[S]|=128}detectChanges(){this._lView[S]|=1024,Th(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new _(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=gi(this._lView),n=this._lView[Zt];n!==null&&!t&&Kc(n,this._lView),Dh(this._lView[x],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new _(902,!1);this._appRef=t;let n=gi(this._lView),r=this._lView[Zt];r!==null&&!n&&Fh(r,this._lView),Na(this._lView)}};var Lr=(()=>{class e{static __NG_ELEMENT_ID__=SD}return e})(),ID=Lr,MD=class extends ID{_declarationLView;_declarationTContainer;elementRef;constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=Gr(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Pr(o)}};function SD(){return tl(Ne(),$())}function tl(e,t){return e.type&4?new MD(t,e,Xn(e,t)):null}function Zi(e,t,n,r,o){let i=e.data[t];if(i===null)i=TD(e,t,n,r,o),Dv()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=mv();i.injectorIndex=s===null?-1:s.injectorIndex}return $r(i,!0),i}function TD(e,t,n,r,o){let i=pf(),s=gf(),a=s?i:i&&i.parent,c=e.data[t]=AD(e,a,n,t,r,o);return xD(e,c,i,s),c}function xD(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function AD(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return hf()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev: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}}var Yx=new RegExp(`^(\\d+)*(${cy}|${ay})*(.*)`);var ND=()=>null;function Un(e,t){return ND(e,t)}var RD=class{},Ph=class{},Qa=class{resolveComponentFactory(t){throw Error(`No component factory found for ${_e(t)}.`)}},Qi=class{static NULL=new Qa},$n=class{},tn=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>OD()}return e})();function OD(){let e=$(),t=Ne(),n=at(t.index,e);return(kt(n)?n:e)[J]}var kD=(()=>{class e{static \u0275prov=I({token:e,providedIn:"root",factory:()=>null})}return e})();function yd(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=Gu(o,a);else if(i==2){let c=a,l=t[++s];r=Gu(r,c+": "+l+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function w(e,t=O.Default){let n=$();if(n===null)return F(e,t);let r=Ne();return kf(r,n,ye(e),t)}function Lh(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a,c=null,l=null,u=PD(s);u===null?a=s:[a,c,l]=u,jD(e,t,n,a,i,c,l)}i!==null&&r!==null&&FD(n,r,i)}function FD(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new _(-301,!1);r.push(t[o],i)}}function PD(e){let t=null,n=!1;for(let s=0;s<e.length;s++){let a=e[s];if(s===0&&it(a)&&(t=a),a.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,o=null,i=null;for(let s of e)s.findHostDirectiveDefs!==null&&(r??=[],o??=new Map,i??=new Map,LD(s,r,i,o)),s===t&&(r??=[],r.push(s));return r!==null?(r.push(...t===null?e:e.slice(1)),[r,o,i]):null}function LD(e,t,n,r){let o=t.length;e.findHostDirectiveDefs(e,t,r),n.set(e,[o,t.length-1])}function VD(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function jD(e,t,n,r,o,i,s){let a=r.length,c=!1;for(let h=0;h<a;h++){let d=r[h];!c&&it(d)&&(c=!0,VD(e,n,h)),Pa(yi(n,t),e,d.type)}qD(n,e.data.length,a);for(let h=0;h<a;h++){let d=r[h];d.providersResolver&&d.providersResolver(d)}let l=!1,u=!1,f=ph(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let h=0;h<a;h++){let d=r[h];if(n.mergedAttrs=Rr(n.mergedAttrs,d.hostAttrs),UD(e,n,t,f,d),zD(f,d,o),s!==null&&s.has(d)){let[C,G]=s.get(d);n.directiveToIndex.set(d.type,[f,C+n.directiveStart,G+n.directiveStart])}else(i===null||!i.has(d))&&n.directiveToIndex.set(d.type,f);d.contentQueries!==null&&(n.flags|=4),(d.hostBindings!==null||d.hostAttrs!==null||d.hostVars!==0)&&(n.flags|=64);let m=d.type.prototype;!l&&(m.ngOnChanges||m.ngOnInit||m.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),l=!0),!u&&(m.ngOnChanges||m.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),u=!0),f++}BD(e,n,i)}function BD(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Dd(0,t,o,r),Dd(1,t,o,r),wd(t,r,!1);else{let i=n.get(o);Cd(0,t,i,r),Cd(1,t,i,r),wd(t,r,!0)}}}function Dd(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Vh(t,i)}}function Cd(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Vh(t,s)}}function Vh(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function wd(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Uc(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let l=o[c];for(let u of l)if(u===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let l=i[c];for(let u=0;u<l.length;u+=2)if(l[u]===t){s??=[],s.push(l[u+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function UD(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Rn(o.type,!0)),s=new Jt(i,it(o),w);e.blueprint[r]=s,n[r]=s,$D(e,t,r,ph(e,n,o.hostVars,Pt),o)}function $D(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;HD(s)!=a&&s.push(a),s.push(n,r,i)}}function HD(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function zD(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;it(t)&&(n[""]=e)}}function qD(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function jh(e,t,n,r,o,i,s,a){let c=t.consts,l=jn(c,s),u=Zi(t,e,2,r,l);return i&&Lh(t,n,u,jn(c,a),o),u.mergedAttrs=Rr(u.mergedAttrs,u.attrs),u.attrs!==null&&yd(u,u.attrs,!1),u.mergedAttrs!==null&&yd(u,u.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,u),u}function Bh(e,t){If(e,t),ef(t)&&e.queries.elementEnd(t)}var bi=class extends Qi{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=kn(t);return new Vr(n,this.ngModule)}};function GD(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&qi.SignalBased)!==0};return o&&(i.transform=o),i})}function WD(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function ZD(e,t,n){let r=t instanceof je?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new ka(n,r):n}function QD(e){let t=e.get($n,null);if(t===null)throw new _(407,!1);let n=e.get(kD,null),r=e.get(kr,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function YD(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return uh(t,n,n==="svg"?ov:n==="math"?iv:null)}var Vr=class extends Ph{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=GD(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=WD(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=Ty(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o){Y(22);let i=N(null);try{let s=this.componentDef,a=r?["ng-version","19.2.4"]:xy(this.componentDef.selectors[0]),c=$c(0,null,null,1,0,null,null,null,null,[a],null),l=ZD(s,o||this.ngModule,t),u=QD(l),f=u.rendererFactory.createRenderer(null,s),h=r?Vy(f,r,s.encapsulation,l):YD(s,f),d=Hc(null,c,null,512|hh(s),null,null,u,f,l,null,eh(h,l,!0));d[Ee]=h,Tc(d);let m=null;try{let C=jh(Ee,c,d,"#host",()=>[this.componentDef],!0,0);h&&(fh(f,h,C),Hr(h,d)),qc(c,d,C),nh(c,C,d),Bh(c,C),n!==void 0&&KD(C,this.ngContentSelectors,n),m=at(C.index,d),d[ae]=m[ae],Zc(c,d,null)}catch(C){throw m!==null&&Ha(m),Ha(d),C}finally{Y(23),xc()}return new Ya(this.componentType,d)}finally{N(i)}}},Ya=class extends RD{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n){super(),this._rootLView=n,this._tNode=Ic(n[x],Ee),this.location=Xn(this._tNode,n),this.instance=at(this._tNode.index,n)[ae],this.hostView=this.changeDetectorRef=new Pr(n,void 0,!1),this.componentType=t}setInput(t,n){let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=Wc(r,o[x],o,t,n);this.previousInputValues.set(t,n);let s=at(r.index,o);el(s,1)}get injector(){return new Gt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function KD(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var er=(()=>{class e{static __NG_ELEMENT_ID__=JD}return e})();function JD(){let e=Ne();return $h(e,$())}var XD=er,Uh=class extends XD{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Xn(this._hostTNode,this._hostLView)}get injector(){return new Gt(this._hostTNode,this._hostLView)}get parentInjector(){let t=Rc(this._hostTNode,this._hostLView);if(Tf(t)){let n=vi(t,this._hostLView),r=mi(t),o=n[x].data[r+8];return new Gt(o,n)}else return new Gt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=_d(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-pe}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Un(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Bn(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!ev(t),a;if(s)a=n;else{let m=n||{};a=m.index,r=m.injector,o=m.projectableNodes,i=m.environmentInjector||m.ngModuleRef}let c=s?t:new Vr(kn(t)),l=r||this.parentInjector;if(!i&&c.ngModule==null){let C=(s?l:this.parentInjector).get(je,null);C&&(i=C)}let u=kn(c.componentType??{}),f=Un(this._lContainer,u?.id??null),h=f?.firstChild??null,d=c.create(l,o,h,i);return this.insertImpl(d.hostView,a,Bn(this._hostTNode,f)),d}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(av(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[me],l=new Uh(c,c[be],c[me]);l.detach(l.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Wr(s,o,i,r),t.attachToViewContainerRef(),zd(va(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=_d(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Fr(this._lContainer,n);r&&(ui(va(this._lContainer),n),Gi(r[x],r))}detach(t){let n=this._adjustIndex(t,-1),r=Fr(this._lContainer,n);return r&&ui(va(this._lContainer),n)!=null?new Pr(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function _d(e){return e[pi]}function va(e){return e[pi]||(e[pi]=[])}function $h(e,t){let n,r=t[e.index];return Et(r)?n=r:(n=Rh(r,t,null,e),t[e.index]=n,zc(t,n)),tC(n,t,e,r),new Uh(n,e,t)}function eC(e,t){let n=e[J],r=n.createComment(""),o=lt(t,e),i=n.parentNode(o);return _i(n,i,r,n.nextSibling(o),!1),r}var tC=oC,nC=()=>!1;function rC(e,t,n){return nC(e,t,n)}function oC(e,t,n,r){if(e[Qt])return;let o;n.type&8?o=st(r):o=eC(t,n),e[Qt]=o}var Ka=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Ja=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)nl(t,n).matches!==null&&this.queries[n].setDirty()}},Xa=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=fC(t):this.predicate=t}},ec=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},tc=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,iC(n,i)),this.matchTNodeWithReadOption(t,n,oi(n,t,i,!1,!1))}else r===Lr?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,oi(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Ke||o===er||o===Lr&&n.type&4)this.addMatch(n.index,-2);else{let i=oi(n,t,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function iC(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function sC(e,t){return e.type&11?Xn(e,t):e.type&4?tl(e,t):null}function aC(e,t,n,r){return n===-1?sC(t,e):n===-2?cC(e,t,r):Or(e,e[x],n,t)}function cC(e,t,n){if(n===Ke)return Xn(t,e);if(n===Lr)return tl(t,e);if(n===er)return $h(t,e)}function Hh(e,t,n,r){let o=t[Dt].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let l=s[c];if(l<0)a.push(null);else{let u=i[l];a.push(aC(t,u,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function nc(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Hh(e,t,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else{let l=i[a+1],u=t[-c];for(let f=pe;f<u.length;f++){let h=u[f];h[Zt]===h[me]&&nc(h[x],h,l,r)}if(u[Vn]!==null){let f=u[Vn];for(let h=0;h<f.length;h++){let d=f[h];nc(d[x],d,l,r)}}}}}return r}function lC(e,t){return e[Dt].queries[t].queryList}function uC(e,t,n){let r=new $a((n&4)===4);return uv(e,t,r,r.destroy),(t[Dt]??=new Ja).queries.push(new Ka(r))-1}function dC(e,t,n){let r=ce();return r.firstCreatePass&&(hC(r,new Xa(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),uC(r,$(),t)}function fC(e){return e.split(",").map(t=>t.trim())}function hC(e,t,n){e.queries===null&&(e.queries=new ec),e.queries.track(new tc(t,n))}function nl(e,t){return e.queries.getByIndex(t)}function pC(e,t){let n=e[x],r=nl(n,t);return r.crossesNgTemplate?nc(n,e,t,[]):Hh(n,e,r,t)}var Hn=class{},rl=class{};var rc=class extends Hn{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new bi(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=Wd(t);this._bootstrapComponents=ah(i.bootstrap),this._r3Injector=Lf(t,n,[{provide:Hn,useValue:this},{provide:Qi,useValue:this.componentFactoryResolver},...r],_e(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},oc=class extends rl{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new rc(this.moduleType,t,[])}};var Ii=class extends Hn{injector;componentFactoryResolver=new bi(this);instance=null;constructor(t){super();let n=new Ar([...t.providers,{provide:Hn,useValue:this},{provide:Qi,useValue:this.componentFactoryResolver}],t.parent||Ec(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function ol(e,t,n=null){return new Ii({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var gC=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Zd(!1,n.type),o=r.length>0?ol([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=I({token:e,providedIn:"environment",factory:()=>new e(F(je))})}return e})();function z(e){return Ni(()=>{let t=zh(e),n=V(D({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Gf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(gC).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||ct.Emulated,styles:e.styles||Le,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Hi("NgStandalone"),qh(n);let r=e.dependencies;return n.directiveDefs=Ed(r,!1),n.pipeDefs=Ed(r,!0),n.id=CC(n),n})}function mC(e){return kn(e)||Um(e)}function vC(e){return e!==null}function tr(e){return Ni(()=>({type:e.type,bootstrap:e.bootstrap||Le,declarations:e.declarations||Le,imports:e.imports||Le,exports:e.exports||Le,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function yC(e,t){if(e==null)return Wt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=qi.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function DC(e){if(e==null)return Wt;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Je(e){return Ni(()=>{let t=zh(e);return qh(t),t})}function zh(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Wt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Le,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:yC(e.inputs,t),outputs:DC(e.outputs),debugInfo:null}}function qh(e){e.features?.forEach(t=>t(e))}function Ed(e,t){if(!e)return null;let n=t?$m:mC;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(vC)}function CC(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function wC(e){return Object.getPrototypeOf(e.prototype).constructor}function nn(e){let t=wC(e.type),n=!0,r=[e];for(;t;){let o;if(it(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new _(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=ya(e.inputs),s.declaredInputs=ya(e.declaredInputs),s.outputs=ya(e.outputs);let a=o.hostBindings;a&&MC(e,a);let c=o.viewQuery,l=o.contentQueries;if(c&&bC(e,c),l&&IC(e,l),_C(e,o),vm(e.outputs,o.outputs),it(o)&&o.data.animation){let u=e.data;u.animation=(u.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(e),a===nn&&(n=!1)}}t=Object.getPrototypeOf(t)}EC(r)}function _C(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function EC(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Rr(o.hostAttrs,n=Rr(n,o.hostAttrs))}}function ya(e){return e===Wt?{}:e===Le?[]:e}function bC(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function IC(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function MC(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function rn(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function SC(e,t,n,r,o,i,s,a,c){let l=t.consts,u=Zi(t,e,4,s||null,a||null);ff()&&Lh(t,n,u,jn(l,c),yh),u.mergedAttrs=Rr(u.mergedAttrs,u.attrs),If(t,u);let f=u.tView=$c(2,u,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l,null);return t.queries!==null&&(t.queries.template(t,u),f.queries=t.queries.embeddedTView(u)),u}function Mi(e,t,n,r,o,i,s,a,c,l){let u=n+Ee,f=t.firstCreatePass?SC(u,t,e,r,o,i,s,a,c):t.data[u];$r(f,!1);let h=TC(t,e,f,n);Ac()&&Jc(t,e,h,f),Hr(h,e);let d=Rh(h,e,h,f);return e[u]=d,zc(e,d),rC(d,f,e),bc(f)&&qc(t,e,f),c!=null&&vh(e,f,l),f}function De(e,t,n,r,o,i,s,a){let c=$(),l=ce(),u=jn(l.consts,i);return Mi(c,l,e,t,n,r,o,u,s,a),De}var TC=xC;function xC(e,t,n,r){return Nc(!0),t[J].createComment("")}var il=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var Gh=new b("");var AC=(()=>{class e{static \u0275prov=I({token:e,providedIn:"root",factory:()=>new ic})}return e})(),ic=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),this.queuedEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}};function on(e){return!!e&&typeof e.then=="function"}function Wh(e){return!!e&&typeof e.subscribe=="function"}var Zh=new b("");var Qh=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=v(Zh,{optional:!0})??[];injector=v(Qe);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Ye(this.injector,o);if(on(i))n.push(i);else if(Wh(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),sl=new b("");function NC(){$s(()=>{throw new _(600,!1)})}function RC(e){return e.isBoundToModule}var OC=10;var Ft=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=v(Qv);afterRenderManager=v(uy);zonelessEnabled=v(kc);rootEffectScheduler=v(AC);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new ee;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=v(Jn).hasPendingTasks.pipe(j(n=>!n));constructor(){v($i,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=v(je);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){Y(10);let o=n instanceof Ph;if(!this._injector.get(Qh).done){let h="";throw new _(405,h)}let s;o?s=n:s=this._injector.get(Qi).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=RC(s)?void 0:this._injector.get(Hn),c=r||s.selector,l=s.create(Qe.NULL,[],c,a),u=l.location.nativeElement,f=l.injector.get(Gh,null);return f?.registerApplication(u),l.onDestroy(()=>{this.detachView(l.hostView),ii(this.components,l),f?.unregisterApplication(u)}),this._loadComponent(l),Y(11,l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Y(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Xf.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new _(101,!1);let n=N(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,N(n),this.afterTick.next(),Y(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get($n,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<OC;)Y(14),this.synchronizeOnce(),Y(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:o}of this.allViews)kC(r,o,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Li(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;ii(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(sl,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>ii(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new _(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ii(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function kC(e,t,n,r){if(!n&&!Li(e))return;Th(e,t,n&&!r?0:1)}function Yi(e,t,n,r){let o=$(),i=Yn();if(rn(o,i,t)){let s=ce(),a=ji();Gy(a,o,e,t,n,r)}return Yi}function Yh(e,t,n,r){return rn(e,Yn(),n)?t+Oi(n)+r:Pt}function ei(e,t){return e<<17|t<<2}function Xt(e){return e>>17&32767}function FC(e){return(e&2)==2}function PC(e,t){return e&131071|t<<17}function sc(e){return e|2}function zn(e){return(e&131068)>>2}function Da(e,t){return e&-131069|t<<2}function LC(e){return(e&1)===1}function ac(e){return e|1}function VC(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Xt(s),c=zn(s);e[r]=n;let l=!1,u;if(Array.isArray(n)){let f=n;u=f[1],(u===null||Br(f,u)>0)&&(l=!0)}else u=n;if(o)if(c!==0){let h=Xt(e[a+1]);e[r+1]=ei(h,a),h!==0&&(e[h+1]=Da(e[h+1],r)),e[a+1]=PC(e[a+1],r)}else e[r+1]=ei(a,0),a!==0&&(e[a+1]=Da(e[a+1],r)),a=r;else e[r+1]=ei(c,0),a===0?a=r:e[c+1]=Da(e[c+1],r),c=r;l&&(e[r+1]=sc(e[r+1])),bd(e,u,r,!0),bd(e,u,r,!1),jC(t,u,e,r,i),s=ei(a,c),i?t.classBindings=s:t.styleBindings=s}function jC(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Br(i,t)>=0&&(n[r+1]=ac(n[r+1]))}function bd(e,t,n,r){let o=e[n+1],i=t===null,s=r?Xt(o):zn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],l=e[s+1];BC(c,t)&&(a=!0,e[s+1]=r?ac(l):sc(l)),s=r?Xt(l):zn(l)}a&&(e[n+1]=r?sc(o):ac(o))}function BC(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Br(e,t)>=0:!1}function sn(e,t,n){let r=$(),o=Yn();if(rn(r,o,t)){let i=ce(),s=ji();Gc(i,s,r,e,t,r[J],n,!1)}return sn}function Id(e,t,n,r,o){Wc(t,e,n,o?"class":"style",r)}function ve(e,t){return UC(e,t,null,!0),ve}function UC(e,t,n,r){let o=$(),i=ce(),s=yv(2);if(i.firstUpdatePass&&HC(i,e,s,r),t!==Pt&&rn(o,s,t)){let a=i.data[en()];ZC(i,a,o,o[J],e,o[s+1]=QC(t,n),r,s)}}function $C(e,t){return t>=e.expandoStartIndex}function HC(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[en()],s=$C(e,n);YC(i,r)&&t===null&&!s&&(t=!1),t=zC(o,i,t,r),VC(o,i,t,n,s,r)}}function zC(e,t,n,r){let o=_v(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Ca(null,e,t,n,r),n=jr(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Ca(o,e,t,n,r),i===null){let c=qC(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Ca(null,e,t,c[1],r),c=jr(c,t.attrs,r),GC(e,t,r,c))}else i=WC(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function qC(e,t,n){let r=n?t.classBindings:t.styleBindings;if(zn(r)!==0)return e[Xt(r)]}function GC(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Xt(o)]=r}function WC(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=jr(r,s,n)}return jr(r,t.attrs,n)}function Ca(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=jr(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function jr(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),jm(e,s,n?!0:t[++i]))}return e===void 0?null:e}function ZC(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,l=c[a+1],u=LC(l)?Md(c,t,n,o,zn(l),s):void 0;if(!Si(u)){Si(i)||FC(l)&&(i=Md(c,null,n,o,a,s));let f=sf(en(),n);uD(r,s,f,o,i)}}function Md(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],l=Array.isArray(c),u=l?c[1]:c,f=u===null,h=n[o+1];h===Pt&&(h=f?Le:void 0);let d=f?la(h,r):u===r?h:void 0;if(l&&!Si(d)&&(d=la(c,r)),Si(d)&&(a=d,s))return a;let m=e[o+1];o=s?Xt(m):zn(m)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=la(c,r))}return a}function Si(e){return e!==void 0}function QC(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=_e(qr(e)))),e}function YC(e,t){return(e.flags&(t?8:16))!==0}var cc=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function wa(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function KC(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let c=t.length-1;for(;i<=s&&i<=c;){let l=e.at(i),u=t[i],f=wa(i,l,i,u,n);if(f!==0){f<0&&e.updateValue(i,u),i++;continue}let h=e.at(s),d=t[c],m=wa(s,h,c,d,n);if(m!==0){m<0&&e.updateValue(s,d),s--,c--;continue}let C=n(i,l),G=n(s,h),B=n(i,u);if(Object.is(B,G)){let Te=n(c,d);Object.is(Te,C)?(e.swap(i,s),e.updateValue(s,d),c--,s--):e.move(s,i),e.updateValue(i,u),i++;continue}if(r??=new Ti,o??=Td(e,i,s,n),lc(e,r,i,B))e.updateValue(i,u),i++,s++;else if(o.has(B))r.set(C,e.detach(i)),s--;else{let Te=e.create(i,t[i]);e.attach(i,Te),i++,s++}}for(;i<=c;)Sd(e,r,n,i,t[i]),i++}else if(t!=null){let c=t[Symbol.iterator](),l=c.next();for(;!l.done&&i<=s;){let u=e.at(i),f=l.value,h=wa(i,u,i,f,n);if(h!==0)h<0&&e.updateValue(i,f),i++,l=c.next();else{r??=new Ti,o??=Td(e,i,s,n);let d=n(i,f);if(lc(e,r,i,d))e.updateValue(i,f),i++,s++,l=c.next();else if(!o.has(d))e.attach(i,e.create(i,f)),i++,s++,l=c.next();else{let m=n(i,u);r.set(m,e.detach(i)),s--}}}for(;!l.done;)Sd(e,r,n,e.length,l.value),l=c.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}function lc(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Sd(e,t,n,r,o){if(lc(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function Td(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Ti=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function Se(e,t){Hi("NgControlFlow");let n=$(),r=Yn(),o=n[r]!==Pt?n[r]:-1,i=o!==-1?xi(n,Ee+o):void 0,s=0;if(rn(n,r,e)){let a=N(null);try{if(i!==void 0&&kh(i,s),e!==-1){let c=Ee+e,l=xi(n,c),u=hc(n[x],c),f=Un(l,u.tView.ssrId),h=Gr(n,u,t,{dehydratedView:f});Wr(l,h,s,Bn(u,f))}}finally{N(a)}}else if(i!==void 0){let a=Oh(i,s);a!==void 0&&(a[ae]=t)}}var uc=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-pe}};function Xe(e,t){return t}var dc=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function et(e,t,n,r,o,i,s,a,c,l,u,f,h){Hi("NgControlFlow");let d=$(),m=ce(),C=c!==void 0,G=$(),B=a?s.bind(G[Ae][ae]):s,Te=new dc(C,B);G[Ee+e]=Te,Mi(d,m,e+1,t,n,r,o,jn(m.consts,i)),C&&Mi(d,m,e+2,c,l,u,f,jn(m.consts,h))}var fc=class extends cc{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-pe}at(t){return this.getLView(t)[ae].$implicit}attach(t,n){let r=n[Pn];this.needsIndexUpdate||=t!==this.length,Wr(this.lContainer,n,t,Bn(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,JC(this.lContainer,t)}create(t,n){let r=Un(this.lContainer,this.templateTNode.tView.ssrId),o=Gr(this.hostLView,this.templateTNode,new uc(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){Gi(t[x],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[ae].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[ae].$index=t}getLView(t){return XC(this.lContainer,t)}};function tt(e){let t=N(null),n=en();try{let r=$(),o=r[x],i=r[n],s=n+1,a=xi(r,s);if(i.liveCollection===void 0){let l=hc(o,s);i.liveCollection=new fc(a,r,l)}else i.liveCollection.reset();let c=i.liveCollection;if(KC(c,e,i.trackByFn),c.updateIndexes(),i.hasEmptyBlock){let l=Yn(),u=c.length===0;if(rn(r,l,u)){let f=n+2,h=xi(r,f);if(u){let d=hc(o,f),m=Un(h,d.tView.ssrId),C=Gr(r,d,void 0,{dehydratedView:m});Wr(h,C,0,Bn(d,m))}else kh(h,0)}}}finally{N(t)}}function xi(e,t){return e[t]}function JC(e,t){return Fr(e,t)}function XC(e,t){return Oh(e,t)}function hc(e,t){return Ic(e,t)}function p(e,t,n,r){let o=$(),i=ce(),s=Ee+e,a=o[J],c=i.firstCreatePass?jh(s,i,o,t,yh,ff(),n,r):i.data[s],l=ew(i,o,c,a,t,e);o[s]=l;let u=bc(c);return $r(c,!0),fh(a,l,c),!Yc(c)&&Ac()&&Jc(i,o,l,c),(dv()===0||u)&&Hr(l,o),fv(),u&&(qc(i,o,c),nh(i,c,o)),r!==null&&vh(o,c),p}function g(){let e=Ne();gf()?mf():(e=e.parent,$r(e,!1));let t=e;pv(t)&&gv(),hv();let n=ce();return n.firstCreatePass&&Bh(n,t),t.classesWithoutHost!=null&&Tv(t)&&Id(n,t,$(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&xv(t)&&Id(n,t,$(),t.stylesWithoutHost,!1),g}function W(e,t,n,r){return p(e,t,n,r),g(),W}var ew=(e,t,n,r,o,i)=>(Nc(!0),uh(r,o,Iv()));function Be(){return $()}var Ai="en-US";var tw=Ai;function nw(e){typeof e=="string"&&(tw=e.toLowerCase().replace(/_/g,"-"))}function xd(e,t,n,r){return function o(i){if(i===Function)return r;let s=Zn(e)?at(e.index,t):t;el(s,5);let a=Ad(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=Ad(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function Ad(e,t,n,r){let o=N(null);try{return Y(6,t,n),n(r)!==!1}catch(i){return rw(e,i),!1}finally{Y(7,t,n),N(o)}}function rw(e,t){let n=e[Ln],r=n?n.get(Ct,null):null;r&&r.handleError(t)}function Nd(e,t,n,r,o,i,s,a,c){let l=n[r],f=t.data[r].outputs[o],d=l[f].subscribe(s),m=a.length;a.push(s,d),c&&c.push(i,e.index,m,-(m+1))}var ow=(e,t,n)=>{};function R(e,t,n,r){let o=$(),i=ce(),s=Ne();return Kh(i,o,o[J],s,e,t,r),R}function iw(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[fi],c=o[i+2];return a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Kh(e,t,n,r,o,i,s){let a=bc(r),l=e.firstCreatePass?df(e):null,u=t[ae],f=uf(t),h=!0;if(r.type&3||s){let d=lt(r,t),m=s?s(d):d,C=f.length,G=s?Te=>s(st(Te[r.index])):r.index,B=null;if(!s&&a&&(B=iw(e,t,o,r.index)),B!==null){let Te=B.__ngLastListenerFn__||B;Te.__ngNextListenerFn__=i,B.__ngLastListenerFn__=i,h=!1}else{i=xd(r,t,u,i),ow(m,o,i);let Te=n.listen(m,o,i);f.push(i,Te),l&&l.push(o,G,C,C+1)}}else i=xd(r,t,u,i);if(h){let d=r.outputs?.[o],m=r.hostDirectiveOutputs?.[o];if(m&&m.length)for(let C=0;C<m.length;C+=2){let G=m[C],B=m[C+1];Nd(r,e,t,G,B,o,i,f,l)}if(d&&d.length)for(let C of d)Nd(r,e,t,C,o,o,i,f,l)}}function Z(e=1){return bv(e)}function sw(e,t){let n=null,r=Ey(e);for(let o=0;o<t.length;o++){let i=t[o];if(i==="*"){n=o;continue}if(r===null?lh(e,i,!0):My(r,i))return o}return n}function Jh(e){let t=$()[Ae][be];if(!t.projection){let n=e?e.length:1,r=t.projection=Lm(n,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?sw(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i)}i=i.next}}}function Xh(e,t=0,n,r,o,i){let s=$(),a=ce(),c=r?e+1:null;c!==null&&Mi(s,a,c,r,o,i,null,n);let l=Zi(a,Ee+e,16,null,n||null);l.projection===null&&(l.projection=t),mf();let f=!s[Pn]||hf();s[Ae][be].projection[l.projection]===null&&c!==null?aw(s,a,c):f&&!Yc(l)&&cD(a,s,l)}function aw(e,t,n){let r=Ee+n,o=t.data[r],i=e[r],s=Un(i,o.tView.ssrId),a=Gr(e,o,void 0,{dehydratedView:s});Wr(i,a,0,Bn(o,s))}function Zr(e,t,n,r,o){let i=$(),s=Yh(i,t,n,r);if(s!==Pt){let a=ce(),c=ji();Gc(a,c,i,e,s,i[J],o,!1)}return Zr}function nr(e,t,n){dC(e,t,n)}function an(e){let t=$(),n=ce(),r=yf();Sc(r+1);let o=nl(n,r);if(e.dirty&&sv(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=pC(t,r);e.reset(i,Jv),e.notifyOnChanges()}return!0}return!1}function cn(){return lC($(),yf())}function y(e,t=""){let n=$(),r=ce(),o=e+Ee,i=r.firstCreatePass?Zi(r,o,1,t,null):r.data[o],s=cw(r,n,i,t,e);n[o]=s,Ac()&&Jc(r,n,s,i),$r(i,!1)}var cw=(e,t,n,r,o)=>(Nc(!0),Ay(t[J],r));function de(e){return bt("",e,""),de}function bt(e,t,n){let r=$(),o=Yh(r,e,t,n);return o!==Pt&&lw(r,en(),o),bt}function lw(e,t,n){let r=sf(t,e);Ny(e[J],r,n)}function ut(e,t,n){zf(t)&&(t=t());let r=$(),o=Yn();if(rn(r,o,t)){let i=ce(),s=ji();Gc(i,s,r,e,t,r[J],n,!1)}return ut}function It(e,t){let n=zf(e);return n&&e.set(t),n}function dt(e,t){let n=$(),r=ce(),o=Ne();return Kh(r,n,n[J],o,e,t),dt}function uw(e,t,n){let r=ce();if(r.firstCreatePass){let o=it(e);pc(n,r.data,r.blueprint,o,!0),pc(t,r.data,r.blueprint,o,!1)}}function pc(e,t,n,r,o){if(e=ye(e),Array.isArray(e))for(let i=0;i<e.length;i++)pc(e[i],t,n,r,o);else{let i=ce(),s=$(),a=Ne(),c=Fn(e)?e:ye(e.provide),l=Kd(e),u=a.providerIndexes&1048575,f=a.directiveStart,h=a.providerIndexes>>20;if(Fn(e)||!e.multi){let d=new Jt(l,o,w),m=Ea(c,t,o?u:u+h,f);m===-1?(Pa(yi(a,s),i,c),_a(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(d),s.push(d)):(n[m]=d,s[m]=d)}else{let d=Ea(c,t,u+h,f),m=Ea(c,t,u,u+h),C=d>=0&&n[d],G=m>=0&&n[m];if(o&&!G||!o&&!C){Pa(yi(a,s),i,c);let B=hw(o?fw:dw,n.length,o,r,l);!o&&G&&(n[m].providerFactory=B),_a(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(B),s.push(B)}else{let B=ep(n[o?m:d],l,!o&&r);_a(i,e,d>-1?d:m,B)}!o&&r&&G&&n[m].componentProviders++}}}function _a(e,t,n,r){let o=Fn(t),i=Wm(t);if(o||i){let c=(i?ye(t.useClass):t).prototype.ngOnDestroy;if(c){let l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let u=l.indexOf(n);u===-1?l.push(n,[r,c]):l[u+1].push(r,c)}else l.push(n,c)}}}function ep(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ea(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function dw(e,t,n,r){return gc(this.multi,[])}function fw(e,t,n,r){let o=this.multi,i;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=Or(n,n[x],this.providerFactory.index,r);i=a.slice(0,s),gc(o,i);for(let c=s;c<a.length;c++)i.push(a[c])}else i=[],gc(o,i);return i}function gc(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function hw(e,t,n,r,o){let i=new Jt(e,n,w);return i.multi=[],i.index=t,i.componentProviders=0,ep(i,o,r&&!n),i}function Ki(e,t=[]){return n=>{n.providersResolver=(r,o)=>uw(r,o?o(e):e,t)}}var mc=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},al=(()=>{class e{compileModuleSync(n){return new oc(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=Wd(n),i=ah(o.declarations).reduce((s,a)=>{let c=kn(a);return c&&s.push(new Vr(c)),s},[]);return new mc(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var pw=(()=>{class e{zone=v(ge);changeDetectionScheduler=v(kr);applicationRef=v(Ft);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function gw({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new ge(V(D({},mw()),{scheduleInRootZone:n})),[{provide:ge,useFactory:e},{provide:On,multi:!0,useFactory:()=>{let r=v(pw,{optional:!0});return()=>r.initialize()}},{provide:On,multi:!0,useFactory:()=>{let r=v(vw);return()=>{r.initialize()}}},t===!0?{provide:jf,useValue:!0}:[],{provide:Bf,useValue:n??Vf}]}function mw(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var vw=(()=>{class e{subscription=new X;initialized=!1;zone=v(ge);pendingTasks=v(Jn);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ge.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ge.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var yw=(()=>{class e{appRef=v(Ft);taskService=v(Jn);ngZone=v(ge);zonelessEnabled=v(kc);tracing=v($i,{optional:!0});disableScheduling=v(jf,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new X;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ci):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(v(Bf,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Ua||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?cd:Uf;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Ci+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,cd(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Dw(){return typeof $localize<"u"&&$localize.locale||Ai}var cl=new b("",{providedIn:"root",factory:()=>v(cl,O.Optional|O.SkipSelf)||Dw()});var vc=new b(""),Cw=new b("");function Mr(e){return!e.moduleRef}function ww(e){let t=Mr(e)?e.r3Injector:e.moduleRef.injector,n=t.get(ge);return n.run(()=>{Mr(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Ct,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Mr(e)){let i=()=>t.destroy(),s=e.platformInjector.get(vc);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(vc);s.add(i),e.moduleRef.onDestroy(()=>{ii(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return Ew(r,n,()=>{let i=t.get(Qh);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(cl,Ai);if(nw(s||Ai),!t.get(Cw,!0))return Mr(e)?t.get(Ft):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Mr(e)){let c=t.get(Ft);return e.rootComponent!==void 0&&c.bootstrap(e.rootComponent),c}else return _w(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function _w(e,t){let n=e.injector.get(Ft);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new _(-403,!1);t.push(e)}function Ew(e,t,n){try{let r=n();return on(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var si=null;function bw(e=[],t){return Qe.create({name:t,providers:[{provide:Fi,useValue:"platform"},{provide:vc,useValue:new Set([()=>si=null])},...e]})}function Iw(e=[]){if(si)return si;let t=bw(e);return si=t,NC(),Mw(t),t}function Mw(e){let t=e.get(Vc,null);Ye(e,()=>{t?.forEach(n=>n())})}var ln=(()=>{class e{static __NG_ELEMENT_ID__=Sw}return e})();function Sw(e){return Tw(Ne(),$(),(e&16)===16)}function Tw(e,t,n){if(Zn(e)&&!n){let r=at(e.index,t);return new Pr(r,r)}else if(e.type&175){let r=t[Ae];return new Pr(r,t)}return null}function tp(e){Y(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=Iw(r),i=[gw({}),{provide:kr,useExisting:yw},...n||[]],s=new Ii({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return ww({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}finally{Y(9)}}function Mt(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function Lt(e){return qs(e)}function Ji(e,t){return Us(e,t?.equal)}var Rd=class{[Fe];constructor(t){this[Fe]=t}destroy(){this[Fe].destroy()}};var op=null;function St(){return op}function ip(e){op??=e}var Xi=class{};var Ue=new b(""),sp=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:()=>v(xw),providedIn:"platform"})}return e})();var xw=(()=>{class e extends sp{_location;_history;_doc=v(Ue);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return St().getBaseHref(this._doc)}onPopState(n){let r=St().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=St().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}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(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function ap(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function np(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function un(e){return e&&e[0]!=="?"?`?${e}`:e}var rr=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:()=>v(cp),providedIn:"root"})}return e})(),Aw=new b(""),cp=(()=>{class e extends rr{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??v(Ue).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return ap(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+un(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+un(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+un(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(r){return new(r||e)(F(sp),F(Aw,8))};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Qr=(()=>{class e{_subject=new ee;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=Ow(np(rp(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+un(r))}normalize(n){return e.stripTrailingSlash(Rw(this._basePath,rp(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+un(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+un(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=un;static joinWithSlash=ap;static stripTrailingSlash=np;static \u0275fac=function(r){return new(r||e)(F(rr))};static \u0275prov=I({token:e,factory:()=>Nw(),providedIn:"root"})}return e})();function Nw(){return new Qr(F(rr))}function Rw(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function rp(e){return e.replace(/\/index.html$/,"")}function Ow(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function lp(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var up="browser",kw="server";function ul(e){return e===kw}var es=class{};var fl=class extends Xi{supportsDOMEvents=!0},hl=class e extends fl{static makeCurrent(){ip(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.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,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=Pw();return n==null?null:Lw(n)}resetBaseElement(){Yr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return lp(document.cookie,t)}},Yr=null;function Pw(){return Yr=Yr||document.querySelector("base"),Yr?Yr.getAttribute("href"):null}function Lw(e){return new URL(e,document.baseURI).pathname}var Vw=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac})}return e})(),pl=new b(""),mp=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new _(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(F(pl),F(ge))};static \u0275prov=I({token:e,factory:e.\u0275fac})}return e})(),ns=class{_doc;constructor(t){this._doc=t}manager},ts="ng-app-id";function dp(e){for(let t of e)t.remove()}function fp(e,t){let n=t.createElement("style");return n.textContent=e,n}function jw(e,t,n,r){let o=e.head?.querySelectorAll(`style[${ts}="${t}"],link[${ts}="${t}"]`);if(o)for(let i of o)i.removeAttribute(ts),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function gl(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var vp=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.isServer=ul(i),jw(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,fp);r?.forEach(o=>this.addUsage(o,this.external,gl))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(dp(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])dp(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,fp(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,gl(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(ts,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(F(Ue),F(Lc),F(jc,8),F(zr))};static \u0275prov=I({token:e,factory:e.\u0275fac})}return e})(),dl={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/",math:"http://www.w3.org/1998/Math/MathML"},vl=/%COMP%/g;var yp="%COMP%",Bw=`_nghost-${yp}`,Uw=`_ngcontent-${yp}`,$w=!0,Hw=new b("",{providedIn:"root",factory:()=>$w});function zw(e){return Uw.replace(vl,e)}function qw(e){return Bw.replace(vl,e)}function Dp(e,t){return t.map(n=>n.replace(vl,e))}var hp=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,c,l=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.tracingService=u,this.platformIsServer=ul(a),this.defaultRenderer=new Kr(n,s,c,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===ct.ShadowDom&&(r=V(D({},r),{encapsulation:ct.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof rs?o.applyToHost(n):o instanceof Jr&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,f=this.platformIsServer,h=this.tracingService;switch(r.encapsulation){case ct.Emulated:i=new rs(c,l,r,this.appId,u,s,a,f,h);break;case ct.ShadowDom:return new ml(c,l,n,r,s,a,this.nonce,f,h);default:i=new Jr(c,l,r,u,s,a,f,h);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(F(mp),F(vp),F(Lc),F(Hw),F(Ue),F(zr),F(ge),F(jc),F($i,8))};static \u0275prov=I({token:e,factory:e.\u0275fac})}return e})(),Kr=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.tracingService=i}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(dl[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(pp(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(pp(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new _(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=dl[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=dl[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(wt.DashCase|wt.Important)?t.style.setProperty(n,r,o&wt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&wt.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=St().getGlobalEventTarget(this.doc,t),!t))throw new _(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function pp(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var ml=class extends Kr{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,c,l){super(t,i,s,c,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=o.styles;u=Dp(o.id,u);for(let h of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=h,this.shadowRoot.appendChild(d)}let f=o.getExternalStyles?.();if(f)for(let h of f){let d=gl(h,i);a&&d.setAttribute("nonce",a),this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Jr=class extends Kr{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c,l){super(t,i,s,a,c),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let u=r.styles;this.styles=l?Dp(l,u):u,this.styleUrls=r.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},rs=class extends Jr{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c,l){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,l,u),this.contentAttr=zw(u),this.hostAttr=qw(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},Gw=(()=>{class e extends ns{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(F(Ue))};static \u0275prov=I({token:e,factory:e.\u0275fac})}return e})(),gp=["alt","control","meta","shift"],Ww={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Zw={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Qw=(()=>{class e extends ns{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>St().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),gp.forEach(l=>{let u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=Ww[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),gp.forEach(s=>{if(s!==o){let a=Zw[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(F(Ue))};static \u0275prov=I({token:e,factory:e.\u0275fac})}return e})();function Cp(e,t){return tp(D({rootComponent:e},Yw(t)))}function Yw(e){return{appProviders:[...t_,...e?.providers??[]],platformProviders:e_}}function Kw(){hl.makeCurrent()}function Jw(){return new Ct}function Xw(){return Kf(document),document}var e_=[{provide:zr,useValue:up},{provide:Vc,useValue:Kw,multi:!0},{provide:Ue,useFactory:Xw,deps:[]}];var t_=[{provide:Fi,useValue:"root"},{provide:Ct,useFactory:Jw,deps:[]},{provide:pl,useClass:Gw,multi:!0,deps:[Ue]},{provide:pl,useClass:Qw,multi:!0,deps:[Ue]},hp,vp,mp,{provide:$n,useExisting:hp},{provide:es,useClass:Vw,deps:[]},[]];var wp=(()=>{class e{_doc;constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static \u0275fac=function(r){return new(r||e)(F(Ue))};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var xp=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(r){return new(r||e)(w(tn),w(Ke))};static \u0275dir=Je({type:e})}return e})(),Ap=(()=>{class e extends xp{static \u0275fac=(()=>{let n;return function(o){return(n||(n=Kn(e)))(o||e)}})();static \u0275dir=Je({type:e,features:[nn]})}return e})(),_l=new b(""),r_={provide:_l,useExisting:qn(()=>El),multi:!0},El=(()=>{class e extends Ap{writeValue(n){this.setProperty("checked",n)}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Kn(e)))(o||e)}})();static \u0275dir=Je({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,o){r&1&&R("change",function(s){return o.onChange(s.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[Ki([r_]),nn]})}return e})(),o_={provide:_l,useExisting:qn(()=>Vt),multi:!0};function i_(){let e=St()?St().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var s_=new b(""),Vt=(()=>{class e extends xp{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!i_())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(r){return new(r||e)(w(tn),w(Ke),w(s_,8))};static \u0275dir=Je({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&R("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[Ki([o_]),nn]})}return e})();var a_=new b(""),c_=new b("");function Np(e){return e!=null}function Rp(e){return on(e)?K(e):e}function Op(e){let t={};return e.forEach(n=>{t=n!=null?D(D({},t),n):t}),Object.keys(t).length===0?null:t}function kp(e,t){return t.map(n=>n(e))}function l_(e){return!e.validate}function Fp(e){return e.map(t=>l_(t)?t:n=>t.validate(n))}function u_(e){if(!e)return null;let t=e.filter(Np);return t.length==0?null:function(n){return Op(kp(n,t))}}function Pp(e){return e!=null?u_(Fp(e)):null}function d_(e){if(!e)return null;let t=e.filter(Np);return t.length==0?null:function(n){let r=kp(n,t).map(Rp);return oa(r).pipe(j(Op))}}function Lp(e){return e!=null?d_(Fp(e)):null}function _p(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function f_(e){return e._rawValidators}function h_(e){return e._rawAsyncValidators}function yl(e){return e?Array.isArray(e)?e:[e]:[]}function is(e,t){return Array.isArray(e)?e.includes(t):e===t}function Ep(e,t){let n=yl(t);return yl(e).forEach(o=>{is(n,o)||n.push(o)}),n}function bp(e,t){return yl(t).filter(n=>!is(e,n))}var ss=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Pp(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Lp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},Dl=class extends ss{name;get formDirective(){return null}get path(){return null}},ro=class extends ss{_parent=null;name=null;valueAccessor=null},Cl=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},p_={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},wN=V(D({},p_),{"[class.ng-submitted]":"isSubmitted"}),ar=(()=>{class e extends Cl{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(w(ro,2))};static \u0275dir=Je({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&ve("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[nn]})}return e})();var Xr="VALID",os="INVALID",or="PENDING",eo="DISABLED",sr=class{},as=class extends sr{value;source;constructor(t,n){super(),this.value=t,this.source=n}},to=class extends sr{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},no=class extends sr{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},ir=class extends sr{status;source;constructor(t,n){super(),this.status=t,this.source=n}};function g_(e){return(cs(e)?e.validators:e)||null}function m_(e){return Array.isArray(e)?Pp(e):e||null}function v_(e,t){return(cs(t)?t.asyncValidators:e)||null}function y_(e){return Array.isArray(e)?Lp(e):e||null}function cs(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var wl=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return Lt(this.statusReactive)}set status(t){Lt(()=>this.statusReactive.set(t))}_status=Ji(()=>this.statusReactive());statusReactive=Ui(void 0);get valid(){return this.status===Xr}get invalid(){return this.status===os}get pending(){return this.status==or}get disabled(){return this.status===eo}get enabled(){return this.status!==eo}errors;get pristine(){return Lt(this.pristineReactive)}set pristine(t){Lt(()=>this.pristineReactive.set(t))}_pristine=Ji(()=>this.pristineReactive());pristineReactive=Ui(!0);get dirty(){return!this.pristine}get touched(){return Lt(this.touchedReactive)}set touched(t){Lt(()=>this.touchedReactive.set(t))}_touched=Ji(()=>this.touchedReactive());touchedReactive=Ui(!1);get untouched(){return!this.touched}_events=new ee;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Ep(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Ep(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(bp(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(bp(t,this._rawAsyncValidators))}hasValidator(t){return is(this._rawValidators,t)}hasAsyncValidator(t){return is(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(V(D({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new no(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new no(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(V(D({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new to(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new to(!0,r))}markAsPending(t={}){this.status=or;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new ir(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(V(D({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=eo,this.errors=null,this._forEachChild(o=>{o.disable(V(D({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new as(this.value,r)),this._events.next(new ir(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(V(D({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Xr,this._forEachChild(r=>{r.enable(V(D({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(V(D({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Xr||this.status===or)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new as(this.value,n)),this._events.next(new ir(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(V(D({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?eo:Xr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=or,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=Rp(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new ir(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new se,this.statusChanges=new se}_calculateStatus(){return this._allControlsDisabled()?eo:this.errors?os:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(or)?or:this._anyControlsHaveStatus(os)?os:Xr}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new to(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new no(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){cs(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=m_(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=y_(this._rawAsyncValidators)}};var Vp=new b("",{providedIn:"root",factory:()=>bl}),bl="always";function D_(e,t){return[...t.path,e]}function C_(e,t,n=bl){__(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),E_(e,t),I_(e,t),b_(e,t),w_(e,t)}function Ip(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function w_(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function __(e,t){let n=f_(e);t.validator!==null?e.setValidators(_p(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=h_(e);t.asyncValidator!==null?e.setAsyncValidators(_p(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();Ip(t._rawValidators,o),Ip(t._rawAsyncValidators,o)}function E_(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&jp(e,t)})}function b_(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&jp(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function jp(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function I_(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function M_(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function S_(e){return Object.getPrototypeOf(e.constructor)===Ap}function T_(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===Vt?n=i:S_(i)?r=i:o=i}),o||r||n||null}function Mp(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Sp(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var x_=class extends wl{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(g_(n),v_(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),cs(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Sp(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Mp(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Mp(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Sp(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var A_={provide:ro,useExisting:qn(()=>dn)},Tp=Promise.resolve(),dn=(()=>{class e extends ro{_changeDetectorRef;callSetDisabledState;control=new x_;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new se;constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=T_(this,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),M_(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){C_(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){Tp.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&Mt(r);Tp.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?D_(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(w(Dl,9),w(a_,10),w(c_,10),w(_l,10),w(ln,8),w(Vp,8))};static \u0275dir=Je({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[Ki([A_]),nn,Qn]})}return e})();var N_=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=tr({type:e});static \u0275inj=Gn({})}return e})();var cr=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Vp,useValue:n.callSetDisabledState??bl}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=tr({type:e});static \u0275inj=Gn({imports:[N_]})}return e})();var A="primary",yo=Symbol("RouteTitle"),Al=class{params;constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function pr(e){return new Al(e)}function R_(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.length<e.length))return null;let o={};for(let i=0;i<r.length;i++){let s=r[i],a=e[i];if(s[0]===":")o[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:o}}function O_(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!ft(e[n],t[n]))return!1;return!0}function ft(e,t){let n=e?Nl(e):void 0,r=t?Nl(t):void 0;if(!n||!r||n.length!=r.length)return!1;let o;for(let i=0;i<n.length;i++)if(o=n[i],!Wp(e[o],t[o]))return!1;return!0}function Nl(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function Wp(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;let n=[...e].sort(),r=[...t].sort();return n.every((o,i)=>r[i]===o)}else return e===t}function Zp(e){return e.length>0?e[e.length-1]:null}function Bt(e){return na(e)?e:on(e)?K(Promise.resolve(e)):T(e)}var k_={exact:Yp,subset:Kp},Qp={exact:F_,subset:P_,ignored:()=>!0};function Bp(e,t,n){return k_[n.paths](e.root,t.root,n.matrixParams)&&Qp[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function F_(e,t){return ft(e,t)}function Yp(e,t,n){if(!hn(e.segments,t.segments)||!ds(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!Yp(e.children[r],t.children[r],n))return!1;return!0}function P_(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Wp(e[n],t[n]))}function Kp(e,t,n){return Jp(e,t,t.segments,n)}function Jp(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!hn(o,n)||t.hasChildren()||!ds(o,n,r))}else if(e.segments.length===n.length){if(!hn(e.segments,n)||!ds(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!Kp(e.children[o],t.children[o],r))return!1;return!0}else{let o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!hn(e.segments,o)||!ds(e.segments,o,r)||!e.children[A]?!1:Jp(e.children[A],t,i,r)}}function ds(e,t,n){return t.every((r,o)=>Qp[n](e[o].parameters,r.parameters))}var xt=class{root;queryParams;fragment;_queryParamMap;constructor(t=new q([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=pr(this.queryParams),this._queryParamMap}toString(){return j_.serialize(this)}},q=class{segments;children;parent=null;constructor(t,n){this.segments=t,this.children=n,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return fs(this)}},fn=class{path;parameters;_parameterMap;constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=pr(this.parameters),this._parameterMap}toString(){return eg(this)}};function L_(e,t){return hn(e,t)&&e.every((n,r)=>ft(n.parameters,t[r].parameters))}function hn(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function V_(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===A&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==A&&(n=n.concat(t(o,r)))}),n}var ru=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:()=>new co,providedIn:"root"})}return e})(),co=class{parse(t){let n=new Ol(t);return new xt(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${oo(t.root,!0)}`,r=$_(t.queryParams),o=typeof t.fragment=="string"?`#${B_(t.fragment)}`:"";return`${n}${r}${o}`}},j_=new co;function fs(e){return e.segments.map(t=>eg(t)).join("/")}function oo(e,t){if(!e.hasChildren())return fs(e);if(t){let n=e.children[A]?oo(e.children[A],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==A&&r.push(`${o}:${oo(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=V_(e,(r,o)=>o===A?[oo(e.children[A],!1)]:[`${o}:${oo(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[A]!=null?`${fs(e)}/${n[0]}`:`${fs(e)}/(${n.join("//")})`}}function Xp(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ls(e){return Xp(e).replace(/%3B/gi,";")}function B_(e){return encodeURI(e)}function Rl(e){return Xp(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function hs(e){return decodeURIComponent(e)}function Up(e){return hs(e.replace(/\+/g,"%20"))}function eg(e){return`${Rl(e.path)}${U_(e.parameters)}`}function U_(e){return Object.entries(e).map(([t,n])=>`;${Rl(t)}=${Rl(n)}`).join("")}function $_(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${ls(n)}=${ls(o)}`).join("&"):`${ls(n)}=${ls(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var H_=/^[^\/()?;#]+/;function Ml(e){let t=e.match(H_);return t?t[0]:""}var z_=/^[^\/()?;=#]+/;function q_(e){let t=e.match(z_);return t?t[0]:""}var G_=/^[^=?&#]+/;function W_(e){let t=e.match(G_);return t?t[0]:""}var Z_=/^[^&#]+/;function Q_(e){let t=e.match(Z_);return t?t[0]:""}var Ol=class{url;remaining;constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new q([],{}):new q([],this.parseChildren())}parseQueryParams(){let 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("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[A]=new q(t,n)),r}parseSegment(){let t=Ml(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new _(4009,!1);return this.capture(t),new fn(hs(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=q_(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=Ml(this.remaining);o&&(r=o,this.capture(r))}t[hs(n)]=hs(r)}parseQueryParam(t){let n=W_(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=Q_(this.remaining);s&&(r=s,this.capture(r))}let o=Up(n),i=Up(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Ml(this.remaining),o=this.remaining[r.length];if(o!=="/"&&o!==")"&&o!==";")throw new _(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=A);let s=this.parseChildren();n[i]=Object.keys(s).length===1?s[A]:new q([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new _(4011,!1)}};function tg(e){return e.segments.length>0?new q([],{[A]:e}):e}function ng(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=ng(o);if(r===A&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}let n=new q(e.segments,t);return Y_(n)}function Y_(e){if(e.numberOfChildren===1&&e.children[A]){let t=e.children[A];return new q(e.segments.concat(t.segments),t.children)}return e}function pn(e){return e instanceof xt}function K_(e,t,n=null,r=null){let o=rg(e);return og(o,t,n,r)}function rg(e){let t;function n(i){let s={};for(let c of i.children){let l=n(c);s[c.outlet]=l}let a=new q(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=tg(r);return t??o}function og(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(t.length===0)return Sl(o,o,o,n,r);let i=J_(t);if(i.toRoot())return Sl(o,o,new q([],{}),n,r);let s=X_(i,o,e),a=s.processChildren?so(s.segmentGroup,s.index,i.commands):sg(s.segmentGroup,s.index,i.commands);return Sl(o,s.segmentGroup,a,n,r)}function gs(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function lo(e){return typeof e=="object"&&e!=null&&e.outlets}function Sl(e,t,n,r,o){let i={};r&&Object.entries(r).forEach(([c,l])=>{i[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`});let s;e===t?s=n:s=ig(e,t,n);let a=tg(ng(s));return new xt(a,i,o)}function ig(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=ig(i,t,n)}),new q(e.segments,r)}var ms=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&gs(r[0]))throw new _(4003,!1);let o=r.find(lo);if(o&&o!==Zp(r))throw new _(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function J_(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new ms(!0,0,e);let t=0,n=!1,r=e.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?t++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new ms(n,t,r)}var dr=class{segmentGroup;processChildren;index;constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function X_(e,t,n){if(e.isAbsolute)return new dr(t,!0,0);if(!n)return new dr(t,!1,NaN);if(n.parent===null)return new dr(n,!0,0);let r=gs(e.commands[0])?0:1,o=n.segments.length-1+r;return e0(n,o,e.numberOfDoubleDots)}function e0(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new _(4005,!1);o=r.segments.length}return new dr(r,!1,o-i)}function t0(e){return lo(e[0])?e[0].outlets:{[A]:e}}function sg(e,t,n){if(e??=new q([],{}),e.segments.length===0&&e.hasChildren())return so(e,t,n);let r=n0(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let i=new q(e.segments.slice(0,r.pathIndex),{});return i.children[A]=new q(e.segments.slice(r.pathIndex),e.children),so(i,0,o)}else return r.match&&o.length===0?new q(e.segments,{}):r.match&&!e.hasChildren()?kl(e,t,n):r.match?so(e,0,o):kl(e,t,n)}function so(e,t,n){if(n.length===0)return new q(e.segments,{});{let r=t0(n),o={};if(Object.keys(r).some(i=>i!==A)&&e.children[A]&&e.numberOfChildren===1&&e.children[A].segments.length===0){let i=so(e.children[A],t,n);return new q(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=sg(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new q(e.segments,o)}}function n0(e,t,n){let r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o<e.segments.length;){if(r>=n.length)return i;let s=e.segments[o],a=n[r];if(lo(a))break;let c=`${a}`,l=r<n.length-1?n[r+1]:null;if(o>0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!Hp(c,l,s))return i;r+=2}else{if(!Hp(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function kl(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o<n.length;){let i=n[o];if(lo(i)){let c=r0(i.outlets);return new q(r,c)}if(o===0&&gs(n[0])){let c=e.segments[t];r.push(new fn(c.path,$p(n[0]))),o++;continue}let s=lo(i)?i.outlets[A]:`${i}`,a=o<n.length-1?n[o+1]:null;s&&a&&gs(a)?(r.push(new fn(s,$p(a))),o+=2):(r.push(new fn(s,{})),o++)}return new q(r,{})}function r0(e){let t={};return Object.entries(e).forEach(([n,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=kl(new q([],{}),0,r))}),t}function $p(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function Hp(e,t,n){return e==n.path&&ft(t,n.parameters)}var ps="imperative",fe=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(fe||{}),$e=class{id;url;constructor(t,n){this.id=t,this.url=n}},uo=class extends $e{type=fe.NavigationStart;navigationTrigger;restoredState;constructor(t,n,r="imperative",o=null){super(t,n),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},jt=class extends $e{urlAfterRedirects;type=fe.NavigationEnd;constructor(t,n,r){super(t,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Oe=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(Oe||{}),Fl=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(Fl||{}),Tt=class extends $e{reason;code;type=fe.NavigationCancel;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},gn=class extends $e{reason;code;type=fe.NavigationSkipped;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}},fo=class extends $e{error;target;type=fe.NavigationError;constructor(t,n,r,o){super(t,n),this.error=r,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},vs=class extends $e{urlAfterRedirects;state;type=fe.RoutesRecognized;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Pl=class extends $e{urlAfterRedirects;state;type=fe.GuardsCheckStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ll=class extends $e{urlAfterRedirects;state;shouldActivate;type=fe.GuardsCheckEnd;constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Vl=class extends $e{urlAfterRedirects;state;type=fe.ResolveStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},jl=class extends $e{urlAfterRedirects;state;type=fe.ResolveEnd;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Bl=class{route;type=fe.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ul=class{route;type=fe.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},$l=class{snapshot;type=fe.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Hl=class{snapshot;type=fe.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},zl=class{snapshot;type=fe.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ql=class{snapshot;type=fe.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var ho=class{},gr=class{url;navigationBehaviorOptions;constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function o0(e,t){return e.providers&&!e._injector&&(e._injector=ol(e.providers,t,`Route: ${e.path}`)),e._injector??t}function nt(e){return e.outlet||A}function i0(e,t){let n=e.filter(r=>nt(r)===t);return n.push(...e.filter(r=>nt(r)!==t)),n}function Do(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var Gl=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Do(this.route?.snapshot)??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new bs(this.rootInjector)}},bs=(()=>{class e{rootInjector;contexts=new Map;constructor(n){this.rootInjector=n}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Gl(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static \u0275fac=function(r){return new(r||e)(F(je))};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ys=class{_root;constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=Wl(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Wl(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=Zl(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Zl(t,this._root).map(n=>n.value)}};function Wl(e,t){if(e===t.value)return t;for(let n of t.children){let r=Wl(e,n);if(r)return r}return null}function Zl(e,t){if(e===t.value)return[t];for(let n of t.children){let r=Zl(e,n);if(r.length)return r.unshift(t),r}return[]}var Re=class{value;children;constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function ur(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var Ds=class extends ys{snapshot;constructor(t,n){super(t),this.snapshot=n,ou(this,t)}toString(){return this.snapshot.toString()}};function ag(e){let t=s0(e),n=new le([new fn("",{})]),r=new le({}),o=new le({}),i=new le({}),s=new le(""),a=new rt(n,r,i,s,o,A,e,t.root);return a.snapshot=t.root,new Ds(new Re(a,[]),t)}function s0(e){let t={},n={},r={},o="",i=new fr([],t,r,o,n,A,e,null,{});return new ws("",new Re(i,[]))}var rt=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(t,n,r,o,i,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(j(l=>l[yo]))??T(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}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.params.pipe(j(t=>pr(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(j(t=>pr(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Cs(e,t,n="emptyOnly"){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:D(D({},t.params),e.params),data:D(D({},t.data),e.data),resolve:D(D(D(D({},e.data),t.data),o?.data),e._resolvedData)}:r={params:D({},e.params),data:D({},e.data),resolve:D(D({},e.data),e._resolvedData??{})},o&&lg(o)&&(r.resolve[yo]=o.title),r}var fr=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[yo]}constructor(t,n,r,o,i,s,a,c,l){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}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??=pr(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=pr(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},ws=class extends ys{url;constructor(t,n){super(n),this.url=t,ou(this,n)}toString(){return cg(this._root)}};function ou(e,t){t.value._routerState=e,t.children.forEach(n=>ou(e,n))}function cg(e){let t=e.children.length>0?` { ${e.children.map(cg).join(", ")} } `:"";return`${e.value}${t}`}function Tl(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,ft(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),ft(t.params,n.params)||e.paramsSubject.next(n.params),O_(t.url,n.url)||e.urlSubject.next(n.url),ft(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Ql(e,t){let n=ft(e.params,t.params)&&L_(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||Ql(e.parent,t.parent))}function lg(e){return typeof e.title=="string"||e.title===null}var a0=new b(""),iu=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=A;activateEvents=new se;deactivateEvents=new se;attachEvents=new se;detachEvents=new se;routerOutletData=Hf(void 0);parentContexts=v(bs);location=v(er);changeDetector=v(ln);inputBinder=v(su,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new _(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new _(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new _(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new _(4013,!1);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Yl(n,a,o.injector,this.routerOutletData);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Je({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Qn]})}return e})(),Yl=class e{route;childContexts;parent;outletData;__ngOutletInjector(t){return new e(this.route,this.childContexts,t,this.outletData)}constructor(t,n,r,o){this.route=t,this.childContexts=n,this.parent=r,this.outletData=o}get(t,n){return t===rt?this.route:t===bs?this.childContexts:t===a0?this.outletData:this.parent.get(t,n)}},su=new b("");function c0(e,t,n){let r=po(e,t._root,n?n._root:void 0);return new Ds(r,t)}function po(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=l0(e,t,n);return new Re(r,o)}else{if(e.shouldAttach(t.value)){let i=e.retrieve(t.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>po(e,a)),s}}let r=u0(t.value),o=t.children.map(i=>po(e,i));return new Re(r,o)}}function l0(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return po(e,r,o);return po(e,r)})}function u0(e){return new rt(new le(e.url),new le(e.params),new le(e.queryParams),new le(e.fragment),new le(e.data),e.outlet,e.component,e)}var go=class{redirectTo;navigationBehaviorOptions;constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},ug="ngNavigationCancelingError";function _s(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=pn(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=dg(!1,Oe.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function dg(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[ug]=!0,n.cancellationCode=t,n}function d0(e){return fg(e)&&pn(e.url)}function fg(e){return!!e&&e[ug]}var f0=(e,t,n,r)=>j(o=>(new Kl(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)),Kl=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Tl(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=ur(n);t.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(o===i)if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=ur(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=ur(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let o=ur(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new ql(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Hl(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(Tl(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Tl(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},Es=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},hr=class{component;route;constructor(t,n){this.component=t,this.route=n}};function h0(e,t,n){let r=e._root,o=t?t._root:null;return io(r,o,n,[r.value])}function p0(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function vr(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!Ld(e)?e:t.get(e):r}function io(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=ur(t);return e.children.forEach(s=>{g0(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>ao(a,n.getContext(s),o)),o}function g0(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=m0(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new Es(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?io(e,t,a?a.children:null,r,o):io(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new hr(a.outlet.component,s))}else s&&ao(t,a,o),o.canActivateChecks.push(new Es(r)),i.component?io(e,null,a?a.children:null,r,o):io(e,null,n,r,o);return o}function m0(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!hn(e.url,t.url);case"pathParamsOrQueryParamsChange":return!hn(e.url,t.url)||!ft(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ql(e,t)||!ft(e.queryParams,t.queryParams);case"paramsChange":default:return!Ql(e,t)}}function ao(e,t,n){let r=ur(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?ao(s,t.children.getContext(i),n):ao(s,null,n):ao(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new hr(t.outlet.component,o)):n.canDeactivateChecks.push(new hr(null,o)):n.canDeactivateChecks.push(new hr(null,o))}function Co(e){return typeof e=="function"}function v0(e){return typeof e=="boolean"}function y0(e){return e&&Co(e.canLoad)}function D0(e){return e&&Co(e.canActivate)}function C0(e){return e&&Co(e.canActivateChild)}function w0(e){return e&&Co(e.canDeactivate)}function _0(e){return e&&Co(e.canMatch)}function hg(e){return e instanceof gt||e?.name==="EmptyError"}var us=Symbol("INITIAL_VALUE");function mr(){return Ge(e=>Yo(e.map(t=>t.pipe(mt(1),aa(us)))).pipe(j(t=>{for(let n of t)if(n!==!0){if(n===us)return us;if(n===!1||E0(n))return n}return!0}),qe(t=>t!==us),mt(1)))}function E0(e){return pn(e)||e instanceof go}function b0(e,t){return ie(n=>{let{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return s.length===0&&i.length===0?T(V(D({},n),{guardsResult:!0})):I0(s,r,o,e).pipe(ie(a=>a&&v0(a)?M0(r,i,e,t):T(a)),j(a=>V(D({},n),{guardsResult:a})))})}function I0(e,t,n,r){return K(e).pipe(ie(o=>N0(o.component,o.route,n,t,r)),vt(o=>o!==!0,!0))}function M0(e,t,n,r){return K(t).pipe(Mn(o=>In(T0(o.route.parent,r),S0(o.route,r),A0(e,o.path,n),x0(e,o.route,n))),vt(o=>o!==!0,!0))}function S0(e,t){return e!==null&&t&&t(new zl(e)),T(!0)}function T0(e,t){return e!==null&&t&&t(new $l(e)),T(!0)}function x0(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return T(!0);let o=r.map(i=>Ko(()=>{let s=Do(t)??n,a=vr(i,s),c=D0(a)?a.canActivate(t,e):Ye(s,()=>a(t,e));return Bt(c).pipe(vt())}));return T(o).pipe(mr())}function A0(e,t,n){let r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>p0(s)).filter(s=>s!==null).map(s=>Ko(()=>{let a=s.guards.map(c=>{let l=Do(s.node)??n,u=vr(c,l),f=C0(u)?u.canActivateChild(r,e):Ye(l,()=>u(r,e));return Bt(f).pipe(vt())});return T(a).pipe(mr())}));return T(i).pipe(mr())}function N0(e,t,n,r,o){let i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!i||i.length===0)return T(!0);let s=i.map(a=>{let c=Do(t)??o,l=vr(a,c),u=w0(l)?l.canDeactivate(e,t,n,r):Ye(c,()=>l(e,t,n,r));return Bt(u).pipe(vt())});return T(s).pipe(mr())}function R0(e,t,n,r){let o=t.canLoad;if(o===void 0||o.length===0)return T(!0);let i=o.map(s=>{let a=vr(s,e),c=y0(a)?a.canLoad(t,n):Ye(e,()=>a(t,n));return Bt(c)});return T(i).pipe(mr(),pg(r))}function pg(e){return Js(ue(t=>{if(typeof t!="boolean")throw _s(e,t)}),j(t=>t===!0))}function O0(e,t,n,r){let o=t.canMatch;if(!o||o.length===0)return T(!0);let i=o.map(s=>{let a=vr(s,e),c=_0(a)?a.canMatch(t,n):Ye(e,()=>a(t,n));return Bt(c)});return T(i).pipe(mr(),pg(r))}var mo=class{segmentGroup;constructor(t){this.segmentGroup=t||null}},vo=class extends Error{urlTree;constructor(t){super(),this.urlTree=t}};function lr(e){return bn(new mo(e))}function k0(e){return bn(new _(4e3,!1))}function F0(e){return bn(dg(!1,Oe.GuardRejected))}var Jl=class{urlSerializer;urlTree;constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return T(r);if(o.numberOfChildren>1||!o.children[A])return k0(`${t.redirectTo}`);o=o.children[A]}}applyRedirectCommands(t,n,r,o,i){if(typeof n!="string"){let a=n,{queryParams:c,fragment:l,routeConfig:u,url:f,outlet:h,params:d,data:m,title:C}=o,G=Ye(i,()=>a({params:d,data:m,queryParams:c,fragment:l,routeConfig:u,url:f,outlet:h,title:C}));if(G instanceof xt)throw new vo(G);n=G}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new vo(s);return s}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new xt(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){let i=this.createSegments(t,n.segments,r,o),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,o)}),new q(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new _(4001,!1);return o}findOrReturn(t,n){let r=0;for(let o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}},Xl={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function P0(e,t,n,r,o){let i=gg(e,t,n);return i.matched?(r=o0(t,r),O0(r,t,n,o).pipe(j(s=>s===!0?i:D({},Xl)))):T(i)}function gg(e,t,n){if(t.path==="**")return L0(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?D({},Xl):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||R_)(n,e,t);if(!o)return D({},Xl);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?D(D({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function L0(e){return{matched:!0,parameters:e.length>0?Zp(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function zp(e,t,n,r){return n.length>0&&B0(e,n,r)?{segmentGroup:new q(t,j0(r,new q(n,e.children))),slicedSegments:[]}:n.length===0&&U0(e,n,r)?{segmentGroup:new q(e.segments,V0(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new q(e.segments,e.children),slicedSegments:n}}function V0(e,t,n,r){let o={};for(let i of n)if(Is(e,t,i)&&!r[nt(i)]){let s=new q([],{});o[nt(i)]=s}return D(D({},r),o)}function j0(e,t){let n={};n[A]=t;for(let r of e)if(r.path===""&&nt(r)!==A){let o=new q([],{});n[nt(r)]=o}return n}function B0(e,t,n){return n.some(r=>Is(e,t,r)&&nt(r)!==A)}function U0(e,t,n){return n.some(r=>Is(e,t,r))}function Is(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function $0(e,t,n){return t.length===0&&!e.children[n]}var eu=class{};function H0(e,t,n,r,o,i,s="emptyOnly"){return new tu(e,t,n,r,o,s,i).recognize()}var z0=31,tu=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Jl(this.urlSerializer,this.urlTree)}noMatchError(t){return new _(4002,`'${t.segmentGroup}'`)}recognize(){let t=zp(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(j(({children:n,rootSnapshot:r})=>{let o=new Re(r,n),i=new ws("",o),s=K_(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(t){let n=new fr([],Object.freeze({}),Object.freeze(D({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),A,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,A,n).pipe(j(r=>({children:r,rootSnapshot:n})),Nt(r=>{if(r instanceof vo)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof mo?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,o,i){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,i):this.processSegment(t,n,r,r.segments,o,!0,i).pipe(j(s=>s instanceof Re?[s]:[]))}processChildren(t,n,r,o){let i=[];for(let s of Object.keys(r.children))s==="primary"?i.unshift(s):i.push(s);return K(i).pipe(Mn(s=>{let a=r.children[s],c=i0(n,s);return this.processSegmentGroup(t,c,a,s,o)}),sa((s,a)=>(s.push(...a),s)),Rt(null),ia(),ie(s=>{if(s===null)return lr(r);let a=mg(s);return q0(a),T(a)}))}processSegment(t,n,r,o,i,s,a){return K(n).pipe(Mn(c=>this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a).pipe(Nt(l=>{if(l instanceof mo)return T(null);throw l}))),vt(c=>!!c),Nt(c=>{if(hg(c))return $0(r,o,i)?T(new eu):lr(r);throw c}))}processSegmentAgainstRoute(t,n,r,o,i,s,a,c){return nt(r)!==s&&(s===A||!Is(o,i,r))?lr(o):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,o,r,i,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,c):lr(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){let{matched:c,parameters:l,consumedSegments:u,positionalParamSegments:f,remainingSegments:h}=gg(n,o,i);if(!c)return lr(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>z0&&(this.allowRedirects=!1));let d=new fr(i,l,Object.freeze(D({},this.urlTree.queryParams)),this.urlTree.fragment,qp(o),nt(o),o.component??o._loadedComponent??null,o,Gp(o)),m=Cs(d,a,this.paramsInheritanceStrategy);d.params=Object.freeze(m.params),d.data=Object.freeze(m.data);let C=this.applyRedirects.applyRedirectCommands(u,o.redirectTo,f,d,t);return this.applyRedirects.lineralizeSegments(o,C).pipe(ie(G=>this.processSegment(t,r,n,G.concat(h),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a=P0(n,r,o,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(Ge(c=>c.matched?(t=r._injector??t,this.getChildConfig(t,r,o).pipe(Ge(({routes:l})=>{let u=r._loadedInjector??t,{parameters:f,consumedSegments:h,remainingSegments:d}=c,m=new fr(h,f,Object.freeze(D({},this.urlTree.queryParams)),this.urlTree.fragment,qp(r),nt(r),r.component??r._loadedComponent??null,r,Gp(r)),C=Cs(m,s,this.paramsInheritanceStrategy);m.params=Object.freeze(C.params),m.data=Object.freeze(C.data);let{segmentGroup:G,slicedSegments:B}=zp(n,h,d,l);if(B.length===0&&G.hasChildren())return this.processChildren(u,l,G,m).pipe(j(wo=>new Re(m,wo)));if(l.length===0&&B.length===0)return T(new Re(m,[]));let Te=nt(r)===i;return this.processSegment(u,l,G,B,Te?A:i,!0,m).pipe(j(wo=>new Re(m,wo instanceof Re?[wo]:[])))}))):lr(n)))}getChildConfig(t,n,r){return n.children?T({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?T({routes:n._loadedRoutes,injector:n._loadedInjector}):R0(t,n,r,this.urlSerializer).pipe(ie(o=>o?this.configLoader.loadChildren(t,n).pipe(ue(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):F0(n))):T({routes:[],injector:t})}};function q0(e){e.sort((t,n)=>t.value.outlet===A?-1:n.value.outlet===A?1:t.value.outlet.localeCompare(n.value.outlet))}function G0(e){let t=e.value.routeConfig;return t&&t.path===""}function mg(e){let t=[],n=new Set;for(let r of e){if(!G0(r)){t.push(r);continue}let o=t.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),n.add(o)):t.push(r)}for(let r of n){let o=mg(r.children);t.push(new Re(r.value,o))}return t.filter(r=>!n.has(r))}function qp(e){return e.data||{}}function Gp(e){return e.resolve||{}}function W0(e,t,n,r,o,i){return ie(s=>H0(e,t,n,r,s.extractedUrl,o,i).pipe(j(({state:a,tree:c})=>V(D({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function Z0(e,t){return ie(n=>{let{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return T(n);let i=new Set(o.map(c=>c.route)),s=new Set;for(let c of i)if(!s.has(c))for(let l of vg(c))s.add(l);let a=0;return K(s).pipe(Mn(c=>i.has(c)?Q0(c,r,e,t):(c.data=Cs(c,c.parent,e).resolve,T(void 0))),ue(()=>a++),Sn(1),ie(c=>a===s.size?T(n):Ce))})}function vg(e){let t=e.children.map(n=>vg(n)).flat();return[e,...t]}function Q0(e,t,n,r){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!lg(o)&&(i[yo]=o.title),Y0(i,e,t,r).pipe(j(s=>(e._resolvedData=s,e.data=Cs(e,e.parent,n).resolve,null)))}function Y0(e,t,n,r){let o=Nl(e);if(o.length===0)return T({});let i={};return K(o).pipe(ie(s=>K0(e[s],t,n,r).pipe(vt(),ue(a=>{if(a instanceof go)throw _s(new co,a);i[s]=a}))),Sn(1),j(()=>i),Nt(s=>hg(s)?Ce:bn(s)))}function K0(e,t,n,r){let o=Do(t)??r,i=vr(e,o),s=i.resolve?i.resolve(t,n):Ye(o,()=>i(t,n));return Bt(s)}function xl(e){return Ge(t=>{let n=e(t);return n?K(n).pipe(j(()=>t)):T(t)})}var yg=(()=>{class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===A);return r}getResolvedTitleForRoute(n){return n.data[yo]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:()=>v(J0),providedIn:"root"})}return e})(),J0=(()=>{class e extends yg{title;constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||e)(F(wp))};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),au=new b("",{providedIn:"root",factory:()=>({})}),X0=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=z({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,o){r&1&&W(0,"router-outlet")},dependencies:[iu],encapsulation:2})}return e})();function cu(e){let t=e.children&&e.children.map(cu),n=t?V(D({},e),{children:t}):D({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==A&&(n.component=X0),n}var lu=new b(""),eE=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=v(al);loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return T(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=Bt(n.loadComponent()).pipe(j(Dg),ue(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),Ir(()=>{this.componentLoaders.delete(n)})),o=new En(r,()=>new ee).pipe(_n());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return T({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=tE(r,this.compiler,n,this.onLoadEndListener).pipe(Ir(()=>{this.childrenLoaders.delete(r)})),s=new En(i,()=>new ee).pipe(_n());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function tE(e,t,n,r){return Bt(e.loadChildren()).pipe(j(Dg),ie(o=>o instanceof rl||Array.isArray(o)?T(o):K(t.compileModuleAsync(o))),j(o=>{r&&r(e);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(n).injector,s=i.get(lu,[],{optional:!0,self:!0}).flat()),{routes:s.map(cu),injector:i}}))}function nE(e){return e&&typeof e=="object"&&"default"in e}function Dg(e){return nE(e)?e.default:e}var uu=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:()=>v(rE),providedIn:"root"})}return e})(),rE=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),oE=new b("");var iE=new b(""),sE=(()=>{class e{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new ee;transitionAbortSubject=new ee;configLoader=v(eE);environmentInjector=v(je);destroyRef=v(Bi);urlSerializer=v(ru);rootContexts=v(bs);location=v(Qr);inputBindingEnabled=v(su,{optional:!0})!==null;titleStrategy=v(yg);options=v(au,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=v(uu);createViewTransition=v(oE,{optional:!0});navigationErrorHandler=v(iE,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>T(void 0);rootComponentType=null;destroyed=!1;constructor(){let n=o=>this.events.next(new Bl(o)),r=o=>this.events.next(new Ul(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(V(D({},n),{extractedUrl:this.urlHandlingStrategy.extract(n.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r}))}setupNavigations(n){return this.transitions=new le(null),this.transitions.pipe(qe(r=>r!==null),Ge(r=>{let o=!1,i=!1;return T(r).pipe(Ge(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",Oe.SupersededByNewNavigation),Ce;this.currentTransition=r,this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?V(D({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let a=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),c=s.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!a&&c!=="reload"){let l="";return this.events.next(new gn(s.id,this.urlSerializer.serialize(s.rawUrl),l,Fl.IgnoredSameUrlNavigation)),s.resolve(!1),Ce}if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return T(s).pipe(Ge(l=>(this.events.next(new uo(l.id,this.urlSerializer.serialize(l.extractedUrl),l.source,l.restoredState)),l.id!==this.navigationId?Ce:Promise.resolve(l))),W0(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),ue(l=>{r.targetSnapshot=l.targetSnapshot,r.urlAfterRedirects=l.urlAfterRedirects,this.currentNavigation=V(D({},this.currentNavigation),{finalUrl:l.urlAfterRedirects});let u=new vs(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:l,extractedUrl:u,source:f,restoredState:h,extras:d}=s,m=new uo(l,this.urlSerializer.serialize(u),f,h);this.events.next(m);let C=ag(this.rootComponentType).snapshot;return this.currentTransition=r=V(D({},s),{targetSnapshot:C,urlAfterRedirects:u,extras:V(D({},d),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=u,T(r)}else{let l="";return this.events.next(new gn(s.id,this.urlSerializer.serialize(s.extractedUrl),l,Fl.IgnoredByUrlHandlingStrategy)),s.resolve(!1),Ce}}),ue(s=>{let a=new Pl(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),j(s=>(this.currentTransition=r=V(D({},s),{guards:h0(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r)),b0(this.environmentInjector,s=>this.events.next(s)),ue(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw _s(this.urlSerializer,s.guardsResult);let a=new Ll(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),qe(s=>s.guardsResult?!0:(this.cancelNavigationTransition(s,"",Oe.GuardRejected),!1)),xl(s=>{if(s.guards.canActivateChecks.length!==0)return T(s).pipe(ue(a=>{let c=new Vl(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),Ge(a=>{let c=!1;return T(a).pipe(Z0(this.paramsInheritanceStrategy,this.environmentInjector),ue({next:()=>c=!0,complete:()=>{c||this.cancelNavigationTransition(a,"",Oe.NoDataFromResolver)}}))}),ue(a=>{let c=new jl(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}))}),xl(s=>{let a=c=>{let l=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&l.push(this.configLoader.loadComponent(c.routeConfig).pipe(ue(u=>{c.component=u}),j(()=>{})));for(let u of c.children)l.push(...a(u));return l};return Yo(a(s.targetSnapshot.root)).pipe(Rt(null),mt(1))}),xl(()=>this.afterPreactivation()),Ge(()=>{let{currentSnapshot:s,targetSnapshot:a}=r,c=this.createViewTransition?.(this.environmentInjector,s.root,a.root);return c?K(c).pipe(j(()=>r)):T(r)}),j(s=>{let a=c0(n.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=V(D({},s),{targetRouterState:a}),this.currentNavigation.targetRouterState=a,r}),ue(()=>{this.events.next(new ho)}),f0(this.rootContexts,n.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),mt(1),ue({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new jt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),ca(this.transitionAbortSubject.pipe(ue(s=>{throw s}))),Ir(()=>{!o&&!i&&this.cancelNavigationTransition(r,"",Oe.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation=null,this.currentTransition=null)}),Nt(s=>{if(this.destroyed)return r.resolve(!1),Ce;if(i=!0,fg(s))this.events.next(new Tt(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),d0(s)?this.events.next(new gr(s.url,s.navigationBehaviorOptions)):r.resolve(!1);else{let a=new fo(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let c=Ye(this.environmentInjector,()=>this.navigationErrorHandler?.(a));if(c instanceof go){let{message:l,cancellationCode:u}=_s(this.urlSerializer,c);this.events.next(new Tt(r.id,this.urlSerializer.serialize(r.extractedUrl),l,u)),this.events.next(new gr(c.redirectTo,c.navigationBehaviorOptions))}else throw this.events.next(a),s}catch(c){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(c)}}return Ce}))}))}cancelNavigationTransition(n,r,o){let i=new Tt(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function aE(e){return e!==ps}var cE=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:()=>v(lE),providedIn:"root"})}return e})(),nu=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},lE=(()=>{class e extends nu{static \u0275fac=(()=>{let n;return function(o){return(n||(n=Kn(e)))(o||e)}})();static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Cg=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:()=>v(uE),providedIn:"root"})}return e})(),uE=(()=>{class e extends Cg{location=v(Qr);urlSerializer=v(ru);options=v(au,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=v(uu);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new xt;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=ag(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof uo)this.stateMemento=this.createStateMemento();else if(n instanceof gn)this.rawUrlTree=r.initialUrl;else if(n instanceof vs){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??o,r)}}else n instanceof ho?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):n instanceof Tt&&(n.code===Oe.GuardRejected||n.code===Oe.NoDataFromResolver)?this.restoreHistory(r):n instanceof fo?this.restoreHistory(r,!0):n instanceof jt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let o=n instanceof xt?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let i=this.browserPageId,s=D(D({},r.extras.state),this.generateNgRouterState(r.id,i));this.location.replaceState(o,"",s)}else{let i=D(D({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",i)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.currentUrlTree===n.finalUrl&&i===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Kn(e)))(o||e)}})();static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function dE(e,t){e.events.pipe(qe(n=>n instanceof jt||n instanceof Tt||n instanceof fo||n instanceof gn),j(n=>n instanceof jt||n instanceof gn?0:(n instanceof Tt?n.code===Oe.Redirect||n.code===Oe.SupersededByNewNavigation:!1)?2:1),qe(n=>n!==2),mt(1)).subscribe(()=>{t()})}var fE={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},hE={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ke=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=v(il);stateManager=v(Cg);options=v(au,{optional:!0})||{};pendingTasks=v(Jn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=v(sE);urlSerializer=v(ru);location=v(Qr);urlHandlingStrategy=v(uu);_events=new ee;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=v(cE);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=v(lu,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!v(su,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}eventsSubscription=new X;subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=this.navigationTransitions.currentNavigation;if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof Tt&&r.code!==Oe.Redirect&&r.code!==Oe.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof jt)this.navigated=!0;else if(r instanceof gr){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=D({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||aE(o.source)},s);this.scheduleNavigation(a,ps,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}gE(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ps,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,o){let i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){let c=D({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(i.state=c)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(cu),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,l=c?this.currentUrlTree.fragment:s,u=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":u=D(D({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}u!==null&&(u=this.removeEmptyProps(u));let f;try{let h=o?o.snapshot:this.routerState.snapshot.root;f=rg(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),f=this.currentUrlTree.root}return og(f,n,u,l??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=pn(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,ps,null,r)}navigate(n,r={skipLocationChange:!1}){return pE(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=D({},fE):r===!1?o=D({},hE):o=r,pn(n))return Bp(this.currentUrlTree,n,o);let i=this.parseUrl(n);return Bp(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((f,h)=>{a=f,c=h});let u=this.pendingTasks.add();return dE(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function pE(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new _(4008,!1)}function gE(e){return!(e instanceof ho)&&!(e instanceof gr)}var Ms=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new ee;constructor(n,r,o,i,s,a){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof jt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(n){n==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(pn(n)?this.routerLinkInput=n:this.routerLinkInput=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,r,o,i,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(n!==0||r||o||i||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let r=this.href===null?null:oh(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){let o=this.renderer,i=this.el.nativeElement;r!==null?o.setAttribute(i,n,r):o.removeAttribute(i,n)}get urlTree(){return this.routerLinkInput===null?null:pn(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||e)(w(ke),w(rt),Oc("tabindex"),w(tn),w(Ke),w(rr))};static \u0275dir=Je({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&R("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Yi("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Mt],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Mt],replaceUrl:[2,"replaceUrl","replaceUrl",Mt],routerLink:"routerLink"},features:[Qn]})}return e})();var mE=new b("");function wg(e,...t){return wc([{provide:lu,multi:!0,useValue:e},[],{provide:rt,useFactory:vE,deps:[ke]},{provide:sl,multi:!0,useFactory:yE},t.map(n=>n.\u0275providers)])}function vE(e){return e.routerState.root}function yE(){let e=v(Qe);return t=>{let n=e.get(Ft);if(t!==n.components[0])return;let r=e.get(ke),o=e.get(DE);e.get(CE)===1&&r.initialNavigation(),e.get(wE,null,O.Optional)?.setUpPreloading(),e.get(mE,null,O.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var DE=new b("",{factory:()=>new ee}),CE=new b("",{providedIn:"root",factory:()=>1});var wE=new b("");var Ut=function(e){return e.Delete="DELETE",e.Get="GET",e.Patch="PATCH",e.Post="POST",e.Put="PUT",e}(Ut||{});var Ss=class{get auth(){let t=localStorage.getItem("auth")??sessionStorage.getItem("auth");return t===null?null:JSON.parse(t)}delete(t,n){return this.request(Ut.Delete,t,n)}get(t,n){return this.request(Ut.Get,t,n)}patch(t,n){return this.request(Ut.Patch,t,n)}post(t,n){return this.request(Ut.Post,t,n)}put(t,n){return this.request(Ut.Put,t,n)}removeAuth(){localStorage.removeItem("auth"),sessionStorage.removeItem("auth")}request(t,n,r){return k(this,null,function*(){let o=new URLSearchParams(r),i=new Headers,s=new URL(n,"http://localhost:3000");this.auth!==null&&i.set("Authorization",`Bearer ${this.auth.token}`);let a;t===Ut.Get?(s.search=o.toString(),a=yield fetch(s,{headers:i,method:t})):a=yield fetch(s,{body:o,headers:i,method:t});let c=yield a.json();if(typeof c=="object"&&c!==null&&"message"in c)throw new TypeError(c.message);return c})}setAuth(t,n){this.removeAuth(),n?localStorage.setItem("auth",JSON.stringify(t)):sessionStorage.setItem("auth",JSON.stringify(t))}};var re=(()=>{class e{client;constructor(){this.client=new Ss}get id(){return this.client.auth?.user_id??null}get loggedIn(){return this.client.auth!==null}acceptRequest(n){return this.client.put(`/users/@me/requests/${n}/accept`,{})}authorizeUser(n,r,o){return k(this,null,function*(){let i=yield this.client.post("/users/authorize",{password:n,username:o});return this.client.setAuth(i,r),i})}createRequest(n){return this.client.post("/users/@me/requests",{recipient_id:n.toString()})}createScore(n,r,o,i){let s={guesses:n.toString(),solution:r,time:o.toString()};return i!==void 0&&(s.date=i),this.client.post("/users/@me/scores",s)}createUser(n,r){return this.client.post("/users",{password:n,username:r})}deleteRequest(n){return this.client.delete(`/users/@me/requests/${n}`,{})}deleteSession(n){return this.client.delete(`/users/@me/sessions/${n}`,{})}endSession(){return k(this,null,function*(){let n=yield this.client.delete("/users/@me/sessions/@me",{});return this.client.removeAuth(),n})}getDaily(n){return this.client.get("/words/daily",{language:n})}getRequest(n){return this.client.get(`/users/@me/requests/${n}`,{})}getUser(n){return this.client.get(`/users/${n}`,{})}getWords(n){return this.client.get("/words",{language:n})}listRequests(n){return this.client.get("/users/@me/requests",{status:n})}listScores(n){return this.client.get("/users/@me/scores",{mode:n})}listSessions(){return this.client.get("/users/@me/sessions",{})}searchUsers(n){return this.client.get("/users",{query:n})}updateUser(n,r){let o={};return n!==void 0&&(o.password=n),r!==void 0&&(o.username=r),this.client.patch("/users/@me",o)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function _E(e,t){if(e&1&&(p(0,"li",11),y(1),g()),e&2){let n=t.$implicit;Zr("routerLink","users/",n.user_id,""),E(),de(n.username)}}function EE(e,t){e&1&&(p(0,"span"),y(1,"No users found!"),g())}function bE(e,t){if(e&1&&(p(0,"ul"),et(1,_E,2,3,"li",11,Xe,!1,EE,2,0,"span"),g()),e&2){let n=Z();E(),tt(n.users)}}function IE(e,t){e&1&&(p(0,"a",12),y(1,"Profile"),g(),p(2,"a",13),y(3,"Logout"),g())}function ME(e,t){e&1&&(p(0,"a",5),y(1,"Login"),g())}var _g=(()=>{class e{http;query="";searched=!1;users=[];get dark(){return localStorage.getItem("dark")!==null}constructor(n,r){this.http=n,r.events.subscribe(()=>{this.query="",this.searchUsers()})}searchUsers(){return k(this,null,function*(){if(this.query.trim()==="")this.searched=!1;else try{this.users=yield this.http.searchUsers(this.query),this.searched=!0}catch{alert("Could not search users!")}})}toggleMode(){this.dark?localStorage.removeItem("dark"):localStorage.setItem("dark","")}static \u0275fac=function(r){return new(r||e)(w(re),w(ke))};static \u0275cmp=z({type:e,selectors:[["app-root"]],decls:20,vars:11,consts:[[1,"left"],["routerLink",""],["src","images/icon.png",1,"icon"],[1,"search"],["placeholder","Search users...",3,"input","ngModelChange","ngModel"],["routerLink","login"],[3,"click"],["src","images/dark.png",1,"mode"],["src","images/light.png",1,"mode"],["href","https://github.com/racele"],["src","images/github.png",1,"external"],[3,"routerLink"],["routerLink","profile"],["routerLink","logout"]],template:function(r,o){r&1&&(p(0,"header")(1,"div",0)(2,"a",1),W(3,"img",2),p(4,"h1"),y(5,"Racele"),g()()(),p(6,"div",3)(7,"input",4),R("input",function(){return o.searchUsers()}),dt("ngModelChange",function(s){return It(o.query,s)||(o.query=s),s}),g(),De(8,bE,4,1,"ul"),g(),p(9,"nav"),De(10,IE,4,0)(11,ME,2,0,"a",5),p(12,"a",6),R("click",function(){return o.toggleMode()}),W(13,"img",7),g(),p(14,"a",6),R("click",function(){return o.toggleMode()}),W(15,"img",8),g(),p(16,"a",9),W(17,"img",10),g()()(),p(18,"main"),W(19,"router-outlet"),g()),r&2&&(E(7),ut("ngModel",o.query),E(),Se(o.searched?8:-1),E(2),Se(o.http.loggedIn?10:11),E(2),ve("hidden",!o.dark),E(2),ve("hidden",o.dark),E(4),ve("dark",o.dark)("light",!o.dark))},dependencies:[cr,Vt,ar,dn,Ms,iu],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}.external[_ngcontent-%COMP%]{height:18px}.hidden[_ngcontent-%COMP%]{display:none}.icon[_ngcontent-%COMP%]{border-radius:50%;height:40px;margin:10px;overflow:hidden}.left[_ngcontent-%COMP%]{width:35%}.mode[_ngcontent-%COMP%]{height:24px}.search[_ngcontent-%COMP%]{padding:10px;width:30%}a[_ngcontent-%COMP%]{align-items:center;color:#fff;cursor:pointer;display:inline-flex;font-size:large;font-weight:700;margin-right:30px}a[_ngcontent-%COMP%]:hover{color:#bbb}h1[_ngcontent-%COMP%]{font-size:x-large}header[_ngcontent-%COMP%]{background-color:#222;display:flex;height:60px}input[_ngcontent-%COMP%]{background-color:#444;border-radius:20px;color:#ddd;height:100%;padding:20px;width:100%}li[_ngcontent-%COMP%]{cursor:pointer;padding:10px}li[_ngcontent-%COMP%]:hover{background-color:#ddd}main[_ngcontent-%COMP%]{background-color:var(--main);border-top:2px solid var(--border);color:var(--inverted);flex:1;overflow:auto;scrollbar-color:var(--layer) var(--main)}nav[_ngcontent-%COMP%]{display:flex;justify-content:right;width:35%}span[_ngcontent-%COMP%]{padding:10px;text-align:center}ul[_ngcontent-%COMP%]{background-color:#fff;border:2px solid #222;border-radius:10px;display:flex;flex-direction:column;overflow:hidden;position:relative}"]})}return e})();var He=function(e){return e.Daily="daily",e.Practice="practice",e.Unknown="unknown",e}(He||{}),he=function(e){return e.Initial="initial",e.Loss="loss",e.Running="running",e.Victory="victory",e}(he||{});function SE(e,t){e&1&&(p(0,"span",0),y(1,"Loading..."),g())}function TE(e,t){e&1&&(p(0,"span",0),y(1,"Could not load user!"),g())}function xE(e,t){if(e&1&&(p(0,"div",1),W(1,"img",2),p(2,"span",3),y(3),g()()),e&2){let n=Z();Zr("routerLink","/users/",n.user.user_id,""),E(3),de(n.user.username)}}var Eg=(()=>{class e{http;loaded=!1;user=null;request;status;constructor(n){this.http=n}ngOnInit(){return k(this,null,function*(){try{this.request.recipient_id===this.http.id?this.user=yield this.http.getUser(this.request.sender_id):this.user=yield this.http.getUser(this.request.recipient_id)}catch{this.user=null}this.loaded=!0})}static \u0275fac=function(r){return new(r||e)(w(re))};static \u0275cmp=z({type:e,selectors:[["app-entry"]],inputs:{request:"request",status:"status"},decls:3,vars:1,consts:[[1,"info"],[3,"routerLink"],["src","images/avatar.png"],[1,"username"]],template:function(r,o){r&1&&De(0,SE,2,0,"span",0)(1,TE,2,0,"span",0)(2,xE,4,3,"div",1),r&2&&Se(o.loaded?o.user===null?1:2:0)},dependencies:[Ms],styles:["[_nghost-%COMP%]{width:100%}.info[_ngcontent-%COMP%]{display:flex;font-size:large;justify-content:center;padding:10px;width:100%}.username[_ngcontent-%COMP%]{font-size:larger}div[_ngcontent-%COMP%]{align-items:center;border-top:2px solid #666;cursor:pointer;display:flex;margin:-2px 0 0}img[_ngcontent-%COMP%]{border-radius:20px;height:40px;margin:10px 20px;overflow:hidden}"]})}return e})();function AE(e,t){if(e&1&&W(0,"app-entry",5),e&2){let n=t.$implicit,r=Z();sn("request",n)("status",r.status)}}function NE(e,t){e&1&&(p(0,"span"),y(1,"No entries to show!"),g())}var bg=(()=>{class e{http;status="accepted";accepted=[];received=[];sent=[];get requests(){return this.showAccepted?this.accepted:this.showReceived?this.received:this.sent}get showAccepted(){return this.status==="accepted"}get showReceived(){return this.status==="received"}get showSent(){return this.status==="sent"}constructor(n){this.http=n}ngOnInit(){return k(this,null,function*(){try{this.accepted=yield this.http.listRequests("accepted"),this.received=yield this.http.listRequests("received"),this.sent=yield this.http.listRequests("sent")}catch{alert("Could not load requests!")}})}setStatus(n){this.status=n}static \u0275fac=function(r){return new(r||e)(w(re))};static \u0275cmp=z({type:e,selectors:[["app-friends"]],decls:14,vars:7,consts:[[1,"status"],[3,"change"],["name","status","type","radio","checked",""],["name","status","type","radio"],[1,"list"],[3,"request","status"]],template:function(r,o){r&1&&(p(0,"div",0)(1,"label",1),R("change",function(){return o.setStatus("accepted")}),W(2,"input",2),y(3," Friend List "),g(),p(4,"label",1),R("change",function(){return o.setStatus("received")}),W(5,"input",3),y(6," Received Requests "),g(),p(7,"label",1),R("change",function(){return o.setStatus("sent")}),W(8,"input",3),y(9," Sent Requests "),g()(),p(10,"div",4),et(11,AE,1,2,"app-entry",5,Xe,!1,NE,2,0,"span"),g()),r&2&&(E(),ve("active",o.showAccepted),E(3),ve("active",o.showReceived),E(3),ve("active",o.showSent),E(4),tt(o.requests))},dependencies:[Eg],styles:["[_nghost-%COMP%]{align-items:center;display:flex;flex-direction:column;gap:20px;padding:20px}.active[_ngcontent-%COMP%]{background-color:#666;color:#fff}.list[_ngcontent-%COMP%]{background-color:var(--light);border:2px solid #666;border-radius:10px;overflow:hidden;width:80%}.status[_ngcontent-%COMP%]{background-color:#666;border:2px solid #666;border-radius:10px;display:flex;overflow:hidden}input[_ngcontent-%COMP%]{display:none}label[_ngcontent-%COMP%]{background-color:var(--light);cursor:pointer;font-weight:700;padding:10px 20px}span[_ngcontent-%COMP%]{display:flex;font-size:large;justify-content:center;padding:10px;width:100%}"]})}return e})();var Ts=(()=>{class e{http;mode=He.Unknown;daily=null;last=null;words=null;constructor(n){this.http=n}get language(){return localStorage.getItem("language")??"en"}get default(){return{date:null,guesses:[""],posted:!1,solution:null,state:he.Initial,time:{}}}get progress(){let n=localStorage.getItem(this.mode);return n===null?this.default:JSON.parse(n)}get time(){let r=Date.now(),o=this.progress.time.end??r,i=this.progress.time.start??r;return Math.min(o-i,3599999)}addLetter(n){let r=this.progress;r.state===he.Loss||r.state===he.Victory||(r.guesses[0]=(r.guesses[0]+n).slice(0,5),this.setProgress(r))}enterGuess(){let n=this.progress,r=n.guesses[0];if(!this.words?.guessable.includes(r)&&!this.words?.solutions.includes(r))return;let o=Date.now();n.state=he.Running,n.time.start??=o,r===n.solution?(n.state=he.Victory,n.time.end=o):n.guesses.length===6&&(n.state=he.Loss,n.time.end=o),n.guesses.unshift(""),this.setProgress(n)}load(){return k(this,null,function*(){this.mode===He.Daily&&(yield this.loadDaily()),this.words===null&&(this.words=yield this.http.getWords(this.language))})}loadDaily(){return k(this,null,function*(){this.daily=yield this.http.getDaily(this.language),this.daily.solution!==this.progress?.solution&&this.reset()})}postScore(){return k(this,null,function*(){let n=this.progress;if(!this.http.loggedIn||n.posted||n.solution===null||n.state!==he.Victory)return;let r=n.guesses.length-1;this.mode===He.Daily?yield this.http.createScore(r,n.solution,this.time,this.daily?.date):yield this.http.createScore(r,n.solution,this.time),n.posted=!0,this.setProgress(n)})}removeLetter(){let n=this.progress;n.state===he.Loss||n.state===he.Victory||(n.guesses[0]=n.guesses[0].slice(0,-1),this.setProgress(n))}reset(){let n=this.default;this.progress.state===he.Initial&&(n.guesses=this.progress.guesses),this.mode===He.Daily&&this.daily!==null&&(n.date=this.daily.date,n.solution=this.daily.solution),this.mode===He.Practice&&this.words!==null&&(n.solution=this.words.solutions[Math.floor(Math.random()*this.words.solutions.length)]),this.progress.state===he.Running&&(this.last=this.progress),this.setProgress(n)}toggleLanguage(){return k(this,null,function*(){this.language==="en"?localStorage.setItem("language","de"):localStorage.setItem("language","en");let n=this.default;n.posted=this.progress.posted,this.setProgress(n),yield this.load(),this.words=yield this.http.getWords(this.language),this.reset()})}setProgress(n){localStorage.setItem(this.mode,JSON.stringify(n))}static \u0275fac=function(r){return new(r||e)(F(re))};static \u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function RE(e,t){if(e&1){let n=Be();p(0,"button",1),R("click",function(){let o=Ie(n).$implicit,i=Z(2);return Me(i.onclick(o))}),y(1),g()}if(e&2){let n=t.$implicit,r=Z(2);sn("className",r.classes(n)),E(),de(n)}}function OE(e,t){if(e&1&&(p(0,"div"),et(1,RE,2,2,"button",0,Xe),g()),e&2){let n=t.$implicit;E(),tt(n)}}var du=(()=>{class e{words;colors={};rows=[[..."QWERTYUIOP"],[..."ASDFGHJKL"],["Enter",..."ZXCVBNM\u232B"]];press=new se;constructor(n){this.words=n}classes(n){let r=[],o=n.toLowerCase();return(n==="Enter"||n==="\u232B")&&r.push("big"),o in this.colors&&r.push(this.colors[o]),r}onclick(n){n==="\u232B"?this.press.emit("Backspace"):this.press.emit(n)}update(){if(this.colors={},this.words.progress.solution!==null)for(let n of this.words.progress.guesses.slice(1))for(let r=0;r<n.length;r++)this.updateLetter(r,n[r],this.words.progress.solution)}updateLetter(n,r,o){if(r===o[n]){this.colors[r]="green";return}if(o.includes(r)&&this.colors[r]!=="green"){this.colors[r]="yellow";return}r in this.colors||(this.colors[r]="gray")}static \u0275fac=function(r){return new(r||e)(w(Ts))};static \u0275cmp=z({type:e,selectors:[["app-keyboard"]],outputs:{press:"press"},decls:2,vars:0,consts:[[3,"className"],[3,"click","className"]],template:function(r,o){r&1&&et(0,OE,3,0,"div",null,Xe),r&2&&tt(o.rows)},styles:["[_nghost-%COMP%]{align-items:center;display:flex;flex-direction:column;height:20%}.big[_ngcontent-%COMP%]{aspect-ratio:2}.gray[_ngcontent-%COMP%]{background-color:#666;border:none;color:#fff}.green[_ngcontent-%COMP%]{background-color:#282;border:none;color:#fff}.yellow[_ngcontent-%COMP%]{background-color:#b82;border:none;color:#fff}button[_ngcontent-%COMP%]{aspect-ratio:1;font-size:larger;font-weight:700;height:100%;margin:2px}div[_ngcontent-%COMP%]{display:flex;flex:1;margin:2px}"]})}return e})();var kE=["span"],fu=(()=>{class e{spans;setWord(n,r,o){let i=Array(5).fill(""),s=Array.from(n);if(r&&o!==null){let a=Array.from(o);for(let c=0;c<n.length;c++)n[c]===o[c]?(i[c]="green",a[c]=""):i[c]="gray";for(let c=0;c<n.length;c++)i[c]==="gray"&&a.includes(n[c])&&(i[c]="yellow",a[a.indexOf(n[c])]="")}for(let a of this.spans){let c=s.shift()??"";a.nativeElement.className=i.shift(),a.nativeElement.innerHTML=c.toUpperCase()}}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=z({type:e,selectors:[["app-word"]],viewQuery:function(r,o){if(r&1&&nr(kE,5),r&2){let i;an(i=cn())&&(o.spans=i)}},decls:10,vars:0,consts:[["span",""]],template:function(r,o){r&1&&W(0,"span",null,0)(2,"span",null,0)(4,"span",null,0)(6,"span",null,0)(8,"span",null,0)},styles:["[_nghost-%COMP%]{align-items:center;display:flex;flex:1;margin:2px}.gray[_ngcontent-%COMP%]{background-color:#666;border:none;color:#fff}.green[_ngcontent-%COMP%]{background-color:#282;border:none;color:#fff}.yellow[_ngcontent-%COMP%]{background-color:#b82;border:none;color:#fff}span[_ngcontent-%COMP%]{align-items:center;aspect-ratio:1;border:3px solid #666;border-radius:10px;display:flex;font-size:xx-large;font-weight:700;height:100%;justify-content:center;margin:2px}"]})}return e})();var FE=["timer"];function PE(e,t){if(e&1){let n=Be();p(0,"button",4),R("click",function(){Ie(n);let o=Z();return Me(o.reset())}),y(1,"Reset ("),p(2,"kbd"),y(3,"Del"),g(),y(4,")"),g()}if(e&2){let n=Z();sn("disabled",n.initial)}}function LE(e,t){if(e&1&&(p(0,"span"),y(1),g()),e&2){let n=Z();E(),bt("Current Daily: ",n.date,"")}}var hu=(()=>{class e{interval;route;words;grid;keyboard;timer;constructor(n,r){this.route=n,this.words=r,this.interval=setInterval(()=>{this.timer.nativeElement.innerHTML=this.time})}get date(){let n=this.words.last?.date??this.words.progress.date;return n===null?"Unknown":new Date(n).toLocaleDateString(void 0,{day:"2-digit",month:"2-digit",year:"numeric"})}get initial(){return this.words.progress.state===he.Initial}get practice(){return this.words.mode===He.Practice}get time(){return new Date(this.words.time).toLocaleTimeString(void 0,{fractionalSecondDigits:3,minute:"2-digit",second:"2-digit"})}ngAfterViewInit(){return k(this,null,function*(){this.update();try{yield this.words.load()}catch{alert("Could not load word list!")}this.initial&&this.reset()})}ngOnDestroy(){clearInterval(this.interval)}ngOnInit(){this.route.data.subscribe(n=>{this.words.mode=n.mode})}onkeydown(n){n.target instanceof HTMLInputElement||this.onpress(n.key)}onpress(n){return k(this,null,function*(){let r=n.toLowerCase();if(/^[a-z]$/.test(r))this.words.addLetter(r);else if(r==="backspace")this.words.removeLetter();else if(r==="delete"&&this.practice)this.reset();else if(r==="enter"){this.words.enterGuess();try{yield this.words.postScore()}catch{alert("Could not post score to the scoreboard!")}this.words.progress.state===he.Loss?setTimeout(alert,20,`The solution was: ${this.words.progress.solution?.toUpperCase()}`):this.words.progress.state===he.Victory&&setTimeout(alert,20,`Congratulations! Your time: ${this.time}`)}this.update()})}reset(){this.words.reset(),this.words.last!==null&&(alert(`The solution was: ${this.words.last.solution?.toUpperCase()}`),this.words.last=null),this.update()}toggleLanguage(n){return k(this,null,function*(){confirm(`Are you sure you want to change the language?
This will reset your progress!
Only one Daily will be saved in your scores`)&&(yield this.words.toggleLanguage(),this.update(),n.target instanceof HTMLButtonElement&&n.target.blur())})}update(){let n=this.words.progress;for(let r of this.grid){let o=n.guesses.pop()??"",i=n.guesses.length>0;r.setWord(o,i,n.solution)}this.keyboard.update()}static \u0275fac=function(r){return new(r||e)(w(rt),w(Ts))};static \u0275cmp=z({type:e,selectors:[["app-game"]],viewQuery:function(r,o){if(r&1&&(nr(du,5),nr(FE,5),nr(fu,5)),r&2){let i;an(i=cn())&&(o.keyboard=i.first),an(i=cn())&&(o.timer=i.first),an(i=cn())&&(o.grid=i)}},hostBindings:function(r,o){r&1&&R("keydown",function(s){return o.onkeydown(s)},!1,sh)},decls:14,vars:2,consts:[["timer",""],[1,"language",3,"click"],[3,"press"],[3,"disabled"],[3,"click","disabled"]],template:function(r,o){if(r&1){let i=Be();W(0,"time",null,0),p(2,"button",1),R("click",function(a){return Ie(i),Me(o.toggleLanguage(a))}),y(3),g(),p(4,"div"),W(5,"app-word")(6,"app-word")(7,"app-word")(8,"app-word")(9,"app-word")(10,"app-word"),g(),p(11,"app-keyboard",2),R("press",function(a){return Ie(i),Me(o.onpress(a))}),g(),De(12,PE,5,1,"button",3)(13,LE,2,1,"span")}r&2&&(E(3),de(o.words.language.toUpperCase()),E(9),Se(o.practice?12:13))},dependencies:[du,fu],styles:["[_nghost-%COMP%]{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:space-evenly}button[_ngcontent-%COMP%]{padding:10px;width:30%}div[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:column;height:50%}kbd[_ngcontent-%COMP%]{border:1px solid var(--inverted);border-radius:5px;box-shadow:0 2px var(--inverted);font-size:x-small;font-weight:700;padding:2px 5px}span[_ngcontent-%COMP%], .language[_ngcontent-%COMP%]{font-size:x-large;font-weight:700}time[_ngcontent-%COMP%]{background-color:var(--layer);border:3px solid var(--inverted);border-radius:10px;font-family:digital,monospace;font-size:xxx-large;font-weight:700;padding:0 20px}.language[_ngcontent-%COMP%]{position:absolute;top:70px;right:10px;width:10%}"]})}return e})();var VE=["*"],Mg=(()=>{class e{http;router;route="";unlocked=!1;constructor(n,r){this.http=n,this.router=r}get disabled(){return!this.http.loggedIn&&!this.unlocked}onclick(){this.disabled?alert("Login required!"):this.router.navigateByUrl(this.route)}static \u0275fac=function(r){return new(r||e)(w(re),w(ke))};static \u0275cmp=z({type:e,selectors:[["app-tile"]],inputs:{route:"route",unlocked:[2,"unlocked","unlocked",Mt]},ngContentSelectors:VE,decls:2,vars:2,consts:[[3,"click"]],template:function(r,o){r&1&&(Jh(),p(0,"button",0),R("click",function(){return o.onclick()}),Xh(1),g()),r&2&&ve("disabled",o.disabled)},styles:["[_nghost-%COMP%]{width:30%}.disabled[_ngcontent-%COMP%]{cursor:not-allowed;filter:brightness(60%)}button[_ngcontent-%COMP%]{background-image:linear-gradient(300deg,transparent,var(--light) 30%),url(/images/tile.webp);background-size:cover;border-radius:20px;display:flex;font-size:x-large;font-weight:700;height:100%;padding:20px;width:100%}button[_ngcontent-%COMP%]:hover{transform:translateY(5px)}"]})}return e})();var Sg=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=z({type:e,selectors:[["app-home"]],decls:20,vars:0,consts:[[1,"menu"],[1,"row"],["route","daily","unlocked",""],["route","practice","unlocked",""],["route","scoreboard"],["route","create"],["route","join"],["route","friends"]],template:function(r,o){r&1&&(p(0,"div",0)(1,"h2"),y(2,"Singleplayer"),g(),p(3,"div",1)(4,"app-tile",2),y(5,"Daily Racele"),g(),p(6,"app-tile",3),y(7,"Practice"),g(),p(8,"app-tile",4),y(9,"Scoreboard"),g()()(),p(10,"div",0)(11,"h2"),y(12,"Multiplayer"),g(),p(13,"div",1)(14,"app-tile",5),y(15,"Create Lobby"),g(),p(16,"app-tile",6),y(17,"Join Lobby"),g(),p(18,"app-tile",7),y(19,"Manage Friends"),g()()())},dependencies:[Mg],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;justify-content:space-evenly}.menu[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:column;height:30%}.row[_ngcontent-%COMP%]{display:flex;flex:1;justify-content:space-between;width:80%}h2[_ngcontent-%COMP%]{font-size:xx-large;font-weight:700;margin-bottom:20px}"]})}return e})();function jE(e,t){e&1&&(p(0,"th"),y(1,"Date"),g())}function BE(e,t){if(e&1&&(p(0,"td"),y(1),g()),e&2){let n=Z().$implicit,r=Z();E(),de(r.formatDate(n.date))}}function UE(e,t){if(e&1&&(p(0,"tr"),De(1,BE,2,1,"td"),p(2,"td"),y(3),g(),p(4,"td"),y(5),g(),p(6,"td"),y(7),g()()),e&2){let n=t.$implicit,r=Z();E(),Se(r.showDaily?1:-1),E(2),de(n.guesses),E(2),de(n.solution.toUpperCase()),E(2),de(r.formatTime(n.time))}}var Tg=(()=>{class e{http;daily=[];practice=[];showDaily=!0;constructor(n){this.http=n}get scores(){return this.showDaily?this.daily:this.practice}formatDate(n){return n===null?"Unknown":new Date(n).toLocaleDateString(void 0,{day:"2-digit",month:"2-digit",year:"numeric"})}formatTime(n){return new Date(n).toLocaleTimeString(void 0,{fractionalSecondDigits:3,minute:"2-digit",second:"2-digit"})}ngOnInit(){return k(this,null,function*(){try{this.daily=yield this.http.listScores("daily"),this.practice=yield this.http.listScores("practice")}catch{alert("Could not load scores!")}})}toggleMode(){this.showDaily=!this.showDaily}static \u0275fac=function(r){return new(r||e)(w(re))};static \u0275cmp=z({type:e,selectors:[["app-scoreboard"]],decls:19,vars:5,consts:[[1,"mode",3,"change"],["name","mode","type","radio","checked",""],["name","mode","type","radio"],[1,"table"]],template:function(r,o){r&1&&(p(0,"div",0),R("change",function(){return o.toggleMode()}),p(1,"label"),W(2,"input",1),y(3," Daily "),g(),p(4,"label"),W(5,"input",2),y(6," Practice "),g()(),p(7,"div",3)(8,"table")(9,"tr"),De(10,jE,2,0,"th"),p(11,"th"),y(12,"Guesses"),g(),p(13,"th"),y(14,"Solution"),g(),p(15,"th"),y(16,"Time"),g()(),et(17,UE,8,4,"tr",null,Xe),g()()),r&2&&(E(),ve("active",o.showDaily),E(3),ve("active",!o.showDaily),E(6),Se(o.showDaily?10:-1),E(7),tt(o.scores))},styles:["[_nghost-%COMP%]{align-items:center;display:flex;flex-direction:column;gap:20px;padding:20px}.active[_ngcontent-%COMP%]{background-color:#666;color:#fff}.mode[_ngcontent-%COMP%]{background-color:#666;border:2px solid #666;border-radius:10px;display:flex;overflow:hidden}.table[_ngcontent-%COMP%]{background-color:#666;border:2px solid #666;border-radius:10px;overflow:hidden;width:80%}input[_ngcontent-%COMP%]{display:none}label[_ngcontent-%COMP%]{background-color:var(--light);cursor:pointer;font-weight:700;padding:10px 20px}table[_ngcontent-%COMP%]{border-spacing:2px;font-size:larger;margin:-2px;table-layout:fixed;text-align:center;width:calc(100% + 4px)}td[_ngcontent-%COMP%]{background-color:var(--light);padding:10px}th[_ngcontent-%COMP%]{color:#fff;font-weight:700;padding:10px}"]})}return e})();var xg=(()=>{class e{http;router;password="";remember=!1;username="";constructor(n,r){this.http=n,this.router=r}login(){return k(this,null,function*(){try{yield this.http.authorizeUser(this.password,this.remember,this.username),alert("Login successful!"),this.router.navigateByUrl("")}catch(n){n instanceof TypeError&&alert(`${n.message}!`)}})}register(){return k(this,null,function*(){try{yield this.http.createUser(this.password,this.username),yield this.login()}catch(n){n instanceof TypeError&&alert(`${n.message}!`)}})}static \u0275fac=function(r){return new(r||e)(w(re),w(ke))};static \u0275cmp=z({type:e,selectors:[["app-login"]],decls:12,vars:3,consts:[[1,"box"],[1,"inputs"],["placeholder","Username",1,"input",3,"ngModelChange","ngModel"],["placeholder","Password","type","password",1,"input",3,"ngModelChange","ngModel"],["type","checkbox",1,"checkbox",3,"ngModelChange","ngModel"],[1,"buttons"],[3,"click"]],template:function(r,o){r&1&&(p(0,"div",0)(1,"div",1)(2,"input",2),dt("ngModelChange",function(s){return It(o.username,s)||(o.username=s),s}),g(),p(3,"input",3),dt("ngModelChange",function(s){return It(o.password,s)||(o.password=s),s}),g(),p(4,"label")(5,"input",4),dt("ngModelChange",function(s){return It(o.remember,s)||(o.remember=s),s}),g(),y(6," Remember login on this device "),g()(),p(7,"div",5)(8,"button",6),R("click",function(){return o.login()}),y(9,"Login"),g(),p(10,"button",6),R("click",function(){return o.register()}),y(11,"Register"),g()()()),r&2&&(E(2),ut("ngModel",o.username),E(),ut("ngModel",o.password),E(2),ut("ngModel",o.remember))},dependencies:[cr,Vt,El,ar,dn],styles:["[_nghost-%COMP%]{align-items:center;display:flex;height:100%;justify-content:center}.box[_ngcontent-%COMP%]{background-color:var(--layer);border-radius:50px;height:80%;justify-content:space-evenly;width:60%}.buttons[_ngcontent-%COMP%]{height:20%;justify-content:space-between;width:100%}.checkbox[_ngcontent-%COMP%]{appearance:auto;margin-right:10px}.input[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;color:#222;padding:10px;width:40%}.inputs[_ngcontent-%COMP%]{height:30%;justify-content:space-between;width:100%}button[_ngcontent-%COMP%]{background-color:var(--lighter);padding:10px;width:50%}div[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:column}"]})}return e})();var Ag=(()=>{class e{http;router;constructor(n,r){this.http=n,this.router=r}cancel(){alert("Logout cancelled!"),this.router.navigateByUrl("")}confirm(){return k(this,null,function*(){try{yield this.http.endSession()}catch{alert("Could not log out!");return}alert("Logout successful!"),this.router.navigateByUrl("")})}static \u0275fac=function(r){return new(r||e)(w(re),w(ke))};static \u0275cmp=z({type:e,selectors:[["app-logout"]],decls:8,vars:0,consts:[[1,"box"],[1,"buttons"],[3,"click"]],template:function(r,o){r&1&&(p(0,"div",0)(1,"span"),y(2,"Do you really want to log out?"),g(),p(3,"div",1)(4,"button",2),R("click",function(){return o.confirm()}),y(5,"Confirm"),g(),p(6,"button",2),R("click",function(){return o.cancel()}),y(7,"Cancel"),g()()())},styles:["[_nghost-%COMP%]{align-items:center;display:flex;height:100%;justify-content:center}.box[_ngcontent-%COMP%]{background-color:var(--layer);border-radius:50px;height:80%;justify-content:space-evenly;width:60%}.buttons[_ngcontent-%COMP%]{height:20%;justify-content:space-between;width:100%}button[_ngcontent-%COMP%]{background-color:var(--lighter);padding:10px;width:50%}div[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:column}span[_ngcontent-%COMP%]{font-size:x-large;font-weight:700}"]})}return e})();function $E(e,t){e&1&&(p(0,"h2"),y(1,"Loading..."),g())}function HE(e,t){e&1&&(p(0,"h2"),y(1,"User Not Found"),g(),W(2,"img",1))}function zE(e,t){if(e&1&&(p(0,"span"),y(1),g()),e&2){let n=Z(2);E(),de(n.requestInfo)}}function qE(e,t){if(e&1){let n=Be();p(0,"button",5),R("click",function(){Ie(n);let o=Z(2);return Me(o.deleteRequest())}),y(1,"Remove Friend"),g()}}function GE(e,t){if(e&1){let n=Be();p(0,"button",5),R("click",function(){Ie(n);let o=Z(2);return Me(o.acceptRequest())}),y(1,"Accept Request"),g(),p(2,"button",5),R("click",function(){Ie(n);let o=Z(2);return Me(o.deleteRequest())}),y(3,"Decline Request"),g()}}function WE(e,t){if(e&1){let n=Be();p(0,"button",5),R("click",function(){Ie(n);let o=Z(2);return Me(o.deleteRequest())}),y(1,"Cancel Friend Request"),g()}}function ZE(e,t){if(e&1){let n=Be();p(0,"button",5),R("click",function(){Ie(n);let o=Z(2);return Me(o.createRequest())}),y(1,"Send Friend Request"),g()}}function QE(e,t){if(e&1&&(W(0,"img",2),p(1,"div",3)(2,"h2"),y(3),g(),p(4,"span"),y(5),g(),De(6,zE,2,1,"span"),g(),p(7,"div",4),De(8,qE,2,0,"button")(9,GE,4,0)(10,WE,2,0,"button")(11,ZE,2,0,"button"),g()),e&2){let n=Z();E(3),de(n.user.username),E(2),bt("Joined Racele: ",n.formatTimestamp(n.user.created_at),""),E(),Se(n.request!==null?6:-1),E(2),Se(n.showRemove?8:n.showAccept?9:n.showCancel?10:n.showSend?11:-1)}}var Ng=(()=>{class e{http;loaded=!1;request=null;user=null;get requestInfo(){return this.request===null?"":this.request.accepted_at===null?`Friend request sent: ${this.formatTimestamp(this.request.created_at)}`:`Friends since: ${this.formatTimestamp(this.request.accepted_at)}`}get showAccept(){return this.http.loggedIn&&this.request!==null&&this.request.recipient_id===this.http.id}get showCancel(){return this.http.loggedIn&&this.request!==null&&this.request.sender_id===this.http.id}get showRemove(){return this.http.loggedIn&&this.request!==null&&this.request.accepted_at!==null}get showSend(){return this.http.loggedIn&&this.user!==null&&this.user.user_id!==this.http.id}constructor(n,r){this.http=n,r.paramMap.subscribe(o=>{this.load(Number(o.get("id")))})}acceptRequest(){return k(this,null,function*(){if(this.user!==null)try{this.request=yield this.http.acceptRequest(this.user.user_id),alert("Friend request accepted!")}catch{alert("Could not accept friend request!")}})}createRequest(){return k(this,null,function*(){if(this.user!==null)try{this.request=yield this.http.createRequest(this.user.user_id),alert("Friend request created!")}catch{alert("Could not create friend request!")}})}deleteRequest(){return k(this,null,function*(){if(this.user!==null)try{yield this.http.deleteRequest(this.user.user_id),this.request=null,alert("Friend request deleted!")}catch{alert("Could not delete friend request!")}})}formatTimestamp(n){return new Date(n*1e3).toLocaleString(void 0,{day:"2-digit",hour:"2-digit",minute:"2-digit",month:"2-digit",second:"2-digit",year:"numeric"})}load(n){return k(this,null,function*(){try{this.request=yield this.http.getRequest(n)}catch{this.request=null}try{this.user=yield this.http.getUser(n)}catch{this.user=null}this.loaded=!0})}static \u0275fac=function(r){return new(r||e)(w(re),w(rt))};static \u0275cmp=z({type:e,selectors:[["app-user"]],decls:4,vars:1,consts:[[1,"box"],["src","images/question.gif",1,"question"],["src","images/avatar.png",1,"avatar"],[1,"user"],[1,"buttons"],[3,"click"]],template:function(r,o){r&1&&(p(0,"div",0),De(1,$E,2,0,"h2")(2,HE,3,0)(3,QE,12,4),g()),r&2&&(E(),Se(o.loaded?o.user===null?2:3:1))},styles:["[_nghost-%COMP%]{align-items:center;display:flex;height:100%;justify-content:center}.avatar[_ngcontent-%COMP%]{border-radius:50%;height:30%;overflow:hidden}.box[_ngcontent-%COMP%]{align-items:center;background-color:var(--layer);border-radius:50px;display:flex;flex-direction:column;height:80%;justify-content:space-evenly;width:60%}.buttons[_ngcontent-%COMP%]{display:flex;gap:20px;width:60%}.buttons[_ngcontent-%COMP%]:empty{display:none}.question[_ngcontent-%COMP%]{height:50%}.user[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:column}button[_ngcontent-%COMP%]{background-color:var(--lighter);padding:10px;width:100%}h2[_ngcontent-%COMP%]{font-size:xx-large;font-weight:700}span[_ngcontent-%COMP%]{font-size:larger;margin-top:10px}"]})}return e})();var Rg=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=z({type:e,selectors:[["app-wip"]],decls:4,vars:0,consts:[["src","images/wip.gif"]],template:function(r,o){r&1&&(p(0,"div")(1,"h2"),y(2,"Under Construction"),g(),W(3,"img",0),g())},styles:["[_nghost-%COMP%]{align-items:center;display:flex;height:100%;justify-content:center}div[_ngcontent-%COMP%]{align-items:center;background-color:var(--layer);border-radius:50px;display:flex;flex-direction:column;height:80%;justify-content:space-evenly;width:60%}h2[_ngcontent-%COMP%]{font-size:xx-large;font-weight:700}img[_ngcontent-%COMP%]{height:50%}"]})}return e})();function YE(e,t){if(e&1){let n=Be();p(0,"div",7)(1,"span",9),y(2),g(),p(3,"span",9),y(4),g(),p(5,"button",10),R("click",function(){let o=Ie(n).$implicit,i=Z();return Me(i.deleteSession(o.session_id))}),y(6,"Delete Session"),g()()}if(e&2){let n=t.$implicit,r=Z();E(2),bt("Created: ",r.formatTimestamp(n.created_at),""),E(2),bt("Last used: ",r.formatTimestamp(n.last_used_at),"")}}function KE(e,t){e&1&&(p(0,"span",8),y(1,"No sessions to show!"),g())}var Og=(()=>{class e{http;router;password="";sessions=[];username="";constructor(n,r){this.http=n,this.router=r}deleteSession(n){return k(this,null,function*(){try{yield this.http.deleteSession(n),alert("Session deleted!"),yield this.ngOnInit()}catch{alert("Could not delete session!")}})}formatTimestamp(n){return new Date(n*1e3).toLocaleString(void 0,{day:"2-digit",hour:"2-digit",minute:"2-digit",month:"2-digit",second:"2-digit",year:"numeric"})}ngOnInit(){return k(this,null,function*(){try{this.sessions=yield this.http.listSessions()}catch{this.sessions=[]}})}update(){return k(this,null,function*(){let n=this.password.trim(),r=this.username.trim();if(n===""&&r===""){alert("Nothing to update!");return}try{this.password===""?yield this.http.updateUser(void 0,r):this.username===""?yield this.http.updateUser(n,void 0):yield this.http.updateUser(n,r),alert("Update successful!")}catch(o){o instanceof TypeError&&alert(`${o.message}!`)}})}static \u0275fac=function(r){return new(r||e)(w(re),w(ke))};static \u0275cmp=z({type:e,selectors:[["app-profile"]],decls:13,vars:3,consts:[[1,"box"],[1,"inputs"],["placeholder","New Username (optional)",1,"input",3,"ngModelChange","ngModel"],["placeholder","New Password (optional)","type","password",1,"input",3,"ngModelChange","ngModel"],[3,"click"],[1,"box2"],[1,"list"],[1,"session"],[1,"info"],[1,"date"],[1,"delete",3,"click"]],template:function(r,o){r&1&&(p(0,"div",0)(1,"div",1)(2,"input",2),dt("ngModelChange",function(s){return It(o.username,s)||(o.username=s),s}),g(),p(3,"input",3),dt("ngModelChange",function(s){return It(o.password,s)||(o.password=s),s}),g()(),p(4,"button",4),R("click",function(){return o.update()}),y(5,"Update User"),g()(),p(6,"div",5)(7,"h2"),y(8,"Manage Sessions"),g(),p(9,"div",6),et(10,YE,7,2,"div",7,Xe,!1,KE,2,0,"span",8),g()()),r&2&&(E(2),ut("ngModel",o.username),E(),ut("ngModel",o.password),E(7),tt(o.sessions))},dependencies:[cr,Vt,ar,dn],styles:["[_nghost-%COMP%]{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:space-around}.box[_ngcontent-%COMP%]{background-color:var(--layer);border-radius:50px;height:40%;justify-content:space-around;width:80%}.input[_ngcontent-%COMP%]{background-color:#fff;border-radius:10px;color:#222;margin:10px;padding:10px;width:40%}.inputs[_ngcontent-%COMP%]{height:30%;justify-content:space-between;width:100%}button[_ngcontent-%COMP%]{background-color:var(--lighter);padding:10px;width:50%}div[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:column}.info[_ngcontent-%COMP%]{display:flex;font-size:large;justify-content:center;padding:10px;width:100%}.username[_ngcontent-%COMP%]{font-size:larger}.session[_ngcontent-%COMP%]{align-items:center;border-top:2px solid #666;display:flex;margin:-2px 0 0;background-color:var(--layer);width:100%;justify-content:space-between;flex-direction:row}img[_ngcontent-%COMP%]{border-radius:20px;height:40px;margin:10px 20px;overflow:hidden}.list[_ngcontent-%COMP%]{background-color:var(--light);border:2px solid #666;border-radius:10px;overflow:hidden;width:80%}.delete[_ngcontent-%COMP%]{margin:10px;width:20%}.date[_ngcontent-%COMP%]{font-size:large;margin:0 20px}h2[_ngcontent-%COMP%]{font-size:x-large;font-weight:700;margin-bottom:20px}.box2[_ngcontent-%COMP%]{width:100%}"]})}return e})();var kg=[{component:Sg,path:"",title:"Racele"},{component:hu,data:{mode:He.Daily},path:"daily",title:"Daily Racele"},{component:bg,path:"friends",title:"Friends"},{component:Tg,path:"scoreboard",title:"Scoreboard"},{component:xg,path:"login",title:"Login"},{component:Ag,path:"logout",title:"Logout"},{component:hu,data:{mode:He.Practice},path:"practice",title:"Practice"},{component:Og,path:"profile",title:"Your Profile"},{component:Ng,path:"users/:id",title:"User Information"},{component:Rg,path:"**",title:"Under Construction"}];var Fg={providers:[wg(kg)]};Cp(_g,Fg).catch(console.error);