diff --git a/404.html b/404.html index e1ecc49..c86bdb5 100644 --- a/404.html +++ b/404.html @@ -12,5 +12,5 @@
Loading ...
- + diff --git a/index.html b/index.html index e1ecc49..c86bdb5 100644 --- a/index.html +++ b/index.html @@ -12,5 +12,5 @@
Loading ...
- + diff --git a/main-465X47KQ.js b/main-465X47KQ.js deleted file mode 100644 index 9f384b5..0000000 --- a/main-465X47KQ.js +++ /dev/null @@ -1,9 +0,0 @@ -var Lm=Object.defineProperty,Vm=Object.defineProperties;var jm=Object.getOwnPropertyDescriptors;var Pl=Object.getOwnPropertySymbols;var Bm=Object.prototype.hasOwnProperty,Um=Object.prototype.propertyIsEnumerable;var kl=(t,e,r)=>e in t?Lm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,g=(t,e)=>{for(var r in e||={})Bm.call(e,r)&&kl(t,r,e[r]);if(Pl)for(var r of Pl(e))Um.call(e,r)&&kl(t,r,e[r]);return t},z=(t,e)=>Vm(t,jm(e));var Ll=null;var Zs=1,Vl=Symbol("SIGNAL");function B(t){let e=Ll;return Ll=t,e}var jl={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,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function $m(t){if(!(Ks(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Zs)){if(!t.producerMustRecompute(t)&&!Ys(t)){t.dirty=!1,t.lastCleanEpoch=Zs;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Zs}}function Bl(t){return t&&(t.nextProducerIndex=0),B(t)}function Ul(t,e){if(B(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Ks(t))for(let r=t.nextProducerIndex;rt.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Ys(t){bi(t);for(let e=0;e0}function bi(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Hm(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function zm(){throw new Error}var Gm=zm;function Hl(t){Gm=t}function x(t){return typeof t=="function"}function xn(t){let r=t(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Ii=xn(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription: -${r.map((n,i)=>`${i+1}) ${n.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=r});function sn(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var ne=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let o of r)o.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(x(n))try{n()}catch(o){e=o instanceof Ii?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{zl(o)}catch(s){e=e??[],s instanceof Ii?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Ii(e)}}add(e){var r;if(e&&e!==this)if(this.closed)zl(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&sn(r,e)}remove(e){let{_finalizers:r}=this;r&&sn(r,e),e instanceof t&&e._removeParent(this)}};ne.EMPTY=(()=>{let t=new ne;return t.closed=!0,t})();var Js=ne.EMPTY;function Ei(t){return t instanceof ne||t&&"closed"in t&&x(t.remove)&&x(t.add)&&x(t.unsubscribe)}function zl(t){x(t)?t():t.unsubscribe()}var He={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Nn={setTimeout(t,e,...r){let{delegate:n}=Nn;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=Nn;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Mi(t){Nn.setTimeout(()=>{let{onUnhandledError:e}=He;if(e)e(t);else throw t})}function Cr(){}var Gl=Xs("C",void 0,void 0);function Wl(t){return Xs("E",void 0,t)}function ql(t){return Xs("N",t,void 0)}function Xs(t,e,r){return{kind:t,value:e,error:r}}var an=null;function Rn(t){if(He.useDeprecatedSynchronousErrorHandling){let e=!an;if(e&&(an={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:n}=an;if(an=null,r)throw n}}else t()}function Zl(t){He.useDeprecatedSynchronousErrorHandling&&an&&(an.errorThrown=!0,an.error=t)}var un=class extends ne{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Ei(e)&&e.add(this)):this.destination=Zm}static create(e,r,n){return new On(e,r,n)}next(e){this.isStopped?ta(ql(e),this):this._next(e)}error(e){this.isStopped?ta(Wl(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?ta(Gl,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Wm=Function.prototype.bind;function ea(t,e){return Wm.call(t,e)}var na=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(n){_i(n)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(n){_i(n)}else _i(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){_i(r)}}},On=class extends un{constructor(e,r,n){super();let i;if(x(e)||!e)i={next:e??void 0,error:r??void 0,complete:n??void 0};else{let o;this&&He.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&ea(e.next,o),error:e.error&&ea(e.error,o),complete:e.complete&&ea(e.complete,o)}):i=e}this.destination=new na(i)}};function _i(t){He.useDeprecatedSynchronousErrorHandling?Zl(t):Mi(t)}function qm(t){throw t}function ta(t,e){let{onStoppedNotification:r}=He;r&&Nn.setTimeout(()=>r(t,e))}var Zm={closed:!0,next:Cr,error:qm,complete:Cr};var Fn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function De(t){return t}function ra(...t){return ia(t)}function ia(t){return t.length===0?De:t.length===1?t[0]:function(r){return t.reduce((n,i)=>i(n),r)}}var U=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new t;return n.source=this,n.operator=r,n}subscribe(r,n,i){let o=Qm(r)?r:new On(r,n,i);return Rn(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=Yl(n),new n((i,o)=>{let s=new On({next:a=>{try{r(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[Fn](){return this}pipe(...r){return ia(r)(this)}toPromise(r){return r=Yl(r),new r((n,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>n(o))})}}return t.create=e=>new t(e),t})();function Yl(t){var e;return(e=t??He.Promise)!==null&&e!==void 0?e:Promise}function Ym(t){return t&&x(t.next)&&x(t.error)&&x(t.complete)}function Qm(t){return t&&t instanceof un||Ym(t)&&Ei(t)}function oa(t){return x(t?.lift)}function k(t){return e=>{if(oa(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function R(t,e,r,n,i){return new sa(t,e,r,n,i)}var sa=class extends un{constructor(e,r,n,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(u){e.error(u)}}:super._next,this._error=i?function(a){try{i(a)}catch(u){e.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function Pn(){return k((t,e)=>{let r=null;t._refCount++;let n=R(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let i=t._connection,o=r;r=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(r=t.connect())})}var kn=class extends U{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,oa(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new ne;let r=this.getSubject();e.add(this.source.subscribe(R(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=ne.EMPTY)}return e}refCount(){return Pn()(this)}};var Ql=xn(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var le=(()=>{class t extends U{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new Si(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new Ql}next(r){Rn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){Rn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){Rn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:i,observers:o}=this;return n||i?Js:(this.currentObservers=null,o.push(r),new ne(()=>{this.currentObservers=null,sn(o,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:i,isStopped:o}=this;n?r.error(i):o&&r.complete()}asObservable(){let r=new U;return r.source=this,r}}return t.create=(e,r)=>new Si(e,r),t})(),Si=class extends le{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)}error(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:Js}};var ue=class extends le{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:n}=this;if(e)throw r;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var aa={now(){return(aa.delegate||Date).now()},delegate:void 0};var Ti=class extends ne{constructor(e,r){super()}schedule(e,r=0){return this}};var br={setInterval(t,e,...r){let{delegate:n}=br;return n?.setInterval?n.setInterval(t,e,...r):setInterval(t,e,...r)},clearInterval(t){let{delegate:e}=br;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var Ai=class extends Ti{constructor(e,r){super(e,r),this.scheduler=e,this.work=r,this.pending=!1}schedule(e,r=0){var n;if(this.closed)return this;this.state=e;let i=this.id,o=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(o,i,r)),this.pending=!0,this.delay=r,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(o,this.id,r),this}requestAsyncId(e,r,n=0){return br.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,r,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return r;r!=null&&br.clearInterval(r)}execute(e,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,r);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,r){let n=!1,i;try{this.work(e)}catch(o){n=!0,i=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){let{id:e,scheduler:r}=this,{actions:n}=r;this.work=this.state=this.scheduler=null,this.pending=!1,sn(n,this),e!=null&&(this.id=this.recycleAsyncId(r,e,null)),this.delay=null,super.unsubscribe()}}};var Ln=class t{constructor(e,r=t.now){this.schedulerActionCtor=e,this.now=r}schedule(e,r=0,n){return new this.schedulerActionCtor(this,e).schedule(n,r)}};Ln.now=aa.now;var xi=class extends Ln{constructor(e,r=Ln.now){super(e,r),this.actions=[],this._active=!1}flush(e){let{actions:r}=this;if(this._active){r.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,n){for(;e=r.shift();)e.unsubscribe();throw n}}};var Kl=new xi(Ai);var Re=new U(t=>t.complete());function Jl(t){return t&&x(t.schedule)}function Xl(t){return t[t.length-1]}function Ni(t){return x(Xl(t))?t.pop():void 0}function kt(t){return Jl(Xl(t))?t.pop():void 0}function td(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(l){try{c(n.next(l))}catch(d){s(d)}}function u(l){try{c(n.throw(l))}catch(d){s(d)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((n=n.apply(t,e||[])).next())})}function ed(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function cn(t){return this instanceof cn?(this.v=t,this):new cn(t)}function nd(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(f){n[f]&&(i[f]=function(h){return new Promise(function(I,V){o.push([f,h,I,V])>1||a(f,h)})})}function a(f,h){try{u(n[f](h))}catch(I){d(o[0][3],I)}}function u(f){f.value instanceof cn?Promise.resolve(f.value.v).then(c,l):d(o[0][2],f)}function c(f){a("next",f)}function l(f){a("throw",f)}function d(f,h){f(h),o.shift(),o.length&&a(o[0][0],o[0][1])}}function rd(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof ed=="function"?ed(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(s){return new Promise(function(a,u){s=t[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(c){o({value:c,done:a})},s)}}var Ri=t=>t&&typeof t.length=="number"&&typeof t!="function";function Oi(t){return x(t?.then)}function Fi(t){return x(t[Fn])}function Pi(t){return Symbol.asyncIterator&&x(t?.[Symbol.asyncIterator])}function ki(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Km(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Li=Km();function Vi(t){return x(t?.[Li])}function ji(t){return nd(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:n,done:i}=yield cn(r.read());if(i)return yield cn(void 0);yield yield cn(n)}}finally{r.releaseLock()}})}function Bi(t){return x(t?.getReader)}function oe(t){if(t instanceof U)return t;if(t!=null){if(Fi(t))return Jm(t);if(Ri(t))return Xm(t);if(Oi(t))return ev(t);if(Pi(t))return id(t);if(Vi(t))return tv(t);if(Bi(t))return nv(t)}throw ki(t)}function Jm(t){return new U(e=>{let r=t[Fn]();if(x(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Xm(t){return new U(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,Mi)})}function tv(t){return new U(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function id(t){return new U(e=>{rv(t,e).catch(r=>e.error(r))})}function nv(t){return id(ji(t))}function rv(t,e){var r,n,i,o;return td(this,void 0,void 0,function*(){try{for(r=rd(t);n=yield r.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){i={error:s}}finally{try{n&&!n.done&&(o=r.return)&&(yield o.call(r))}finally{if(i)throw i.error}}e.complete()})}function Me(t,e,r,n=0,i=!1){let o=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!i)return o}function Ui(t,e=0){return k((r,n)=>{r.subscribe(R(n,i=>Me(n,t,()=>n.next(i),e),()=>Me(n,t,()=>n.complete(),e),i=>Me(n,t,()=>n.error(i),e)))})}function $i(t,e=0){return k((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function od(t,e){return oe(t).pipe($i(e),Ui(e))}function sd(t,e){return oe(t).pipe($i(e),Ui(e))}function ad(t,e){return new U(r=>{let n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function ud(t,e){return new U(r=>{let n;return Me(r,e,()=>{n=t[Li](),Me(r,e,()=>{let i,o;try{({value:i,done:o}=n.next())}catch(s){r.error(s);return}o?r.complete():r.next(i)},0,!0)}),()=>x(n?.return)&&n.return()})}function Hi(t,e){if(!t)throw new Error("Iterable cannot be null");return new U(r=>{Me(r,e,()=>{let n=t[Symbol.asyncIterator]();Me(r,e,()=>{n.next().then(i=>{i.done?r.complete():r.next(i.value)})},0,!0)})})}function cd(t,e){return Hi(ji(t),e)}function ld(t,e){if(t!=null){if(Fi(t))return od(t,e);if(Ri(t))return ad(t,e);if(Oi(t))return sd(t,e);if(Pi(t))return Hi(t,e);if(Vi(t))return ud(t,e);if(Bi(t))return cd(t,e)}throw ki(t)}function q(t,e){return e?ld(t,e):oe(t)}function E(...t){let e=kt(t);return q(t,e)}function Vn(t,e){let r=x(t)?t:()=>t,n=i=>i.error(r());return new U(e?i=>e.schedule(n,0,i):n)}function ua(t){return!!t&&(t instanceof U||x(t.lift)&&x(t.subscribe))}var Ct=xn(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function A(t,e){return k((r,n)=>{let i=0;r.subscribe(R(n,o=>{n.next(t.call(e,o,i++))}))})}var{isArray:iv}=Array;function ov(t,e){return iv(e)?t(...e):t(e)}function zi(t){return A(e=>ov(t,e))}var{isArray:sv}=Array,{getPrototypeOf:av,prototype:uv,keys:cv}=Object;function Gi(t){if(t.length===1){let e=t[0];if(sv(e))return{args:e,keys:null};if(lv(e)){let r=cv(e);return{args:r.map(n=>e[n]),keys:r}}}return{args:t,keys:null}}function lv(t){return t&&typeof t=="object"&&av(t)===uv}function Wi(t,e){return t.reduce((r,n,i)=>(r[n]=e[i],r),{})}function Ir(...t){let e=kt(t),r=Ni(t),{args:n,keys:i}=Gi(t);if(n.length===0)return q([],e);let o=new U(dv(n,e,i?s=>Wi(i,s):De));return r?o.pipe(zi(r)):o}function dv(t,e,r=De){return n=>{dd(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let u=0;u{let c=q(t[u],e),l=!1;c.subscribe(R(n,d=>{o[u]=d,l||(l=!0,a--),a||n.next(r(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function dd(t,e,r){t?Me(r,t,e):e()}function fd(t,e,r,n,i,o,s,a){let u=[],c=0,l=0,d=!1,f=()=>{d&&!u.length&&!c&&e.complete()},h=V=>c{o&&e.next(V),c++;let T=!1;oe(r(V,l++)).subscribe(R(e,M=>{i?.(M),o?h(M):e.next(M)},()=>{T=!0},void 0,()=>{if(T)try{for(c--;u.length&&cI(M)):I(M)}f()}catch(M){e.error(M)}}))};return t.subscribe(R(e,h,()=>{d=!0,f()})),()=>{a?.()}}function se(t,e,r=1/0){return x(e)?se((n,i)=>A((o,s)=>e(n,o,i,s))(oe(t(n,i))),r):(typeof e=="number"&&(r=e),k((n,i)=>fd(n,i,t,r)))}function Lt(t=1/0){return se(De,t)}function hd(){return Lt(1)}function jn(...t){return hd()(q(t,kt(t)))}function qi(t){return new U(e=>{oe(t()).subscribe(e)})}function ca(...t){let e=Ni(t),{args:r,keys:n}=Gi(t),i=new U(o=>{let{length:s}=r;if(!s){o.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=f},()=>u--,void 0,()=>{(!u||!d)&&(c||o.next(n?Wi(n,a):a),o.complete())}))}});return e?i.pipe(zi(e)):i}function pe(t,e){return k((r,n)=>{let i=0;r.subscribe(R(n,o=>t.call(e,o,i++)&&n.next(o)))})}function ke(t){return k((e,r)=>{let n=null,i=!1,o;n=e.subscribe(R(r,void 0,void 0,s=>{o=oe(t(s,ke(t)(e))),n?(n.unsubscribe(),n=null,o.subscribe(r)):i=!0})),i&&(n.unsubscribe(),n=null,o.subscribe(r))})}function pd(t,e,r,n,i){return(o,s)=>{let a=r,u=e,c=0;o.subscribe(R(s,l=>{let d=c++;u=a?t(u,l,d):(a=!0,l),n&&s.next(u)},i&&(()=>{a&&s.next(u),s.complete()})))}}function bt(t,e){return x(e)?se(t,e,1):se(t,1)}function la(t,e=Kl){return k((r,n)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let c=o;o=null,n.next(c)}};function u(){let c=s+t,l=e.now();if(l{o=c,s=e.now(),i||(i=e.schedule(u,t),n.add(i))},()=>{a(),n.complete()},void 0,()=>{o=i=null}))})}function Vt(t){return k((e,r)=>{let n=!1;e.subscribe(R(r,i=>{n=!0,r.next(i)},()=>{n||r.next(t),r.complete()}))})}function It(t){return t<=0?()=>Re:k((e,r)=>{let n=0;e.subscribe(R(r,i=>{++n<=t&&(r.next(i),t<=n&&r.complete())}))})}function da(t){return A(()=>t)}function fa(t,e=De){return t=t??fv,k((r,n)=>{let i,o=!0;r.subscribe(R(n,s=>{let a=e(s);(o||!t(i,a))&&(o=!1,i=a,n.next(s))}))})}function fv(t,e){return t===e}function Zi(t=hv){return k((e,r)=>{let n=!1;e.subscribe(R(r,i=>{n=!0,r.next(i)},()=>n?r.complete():r.error(t())))})}function hv(){return new Ct}function jt(t){return k((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function it(t,e){let r=arguments.length>=2;return n=>n.pipe(t?pe((i,o)=>t(i,o,n)):De,It(1),r?Vt(e):Zi(()=>new Ct))}function Bn(t){return t<=0?()=>Re:k((e,r)=>{let n=[];e.subscribe(R(r,i=>{n.push(i),t{for(let i of n)r.next(i);r.complete()},void 0,()=>{n=null}))})}function ha(t,e){let r=arguments.length>=2;return n=>n.pipe(t?pe((i,o)=>t(i,o,n)):De,Bn(1),r?Vt(e):Zi(()=>new Ct))}function pa(t,e){return k(pd(t,e,arguments.length>=2,!0))}function ga(...t){let e=kt(t);return k((r,n)=>{(e?jn(t,r,e):jn(t,r)).subscribe(n)})}function ce(t,e){return k((r,n)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&n.complete();r.subscribe(R(n,u=>{i?.unsubscribe();let c=0,l=o++;oe(t(u,l)).subscribe(i=R(n,d=>n.next(e?e(u,d,l,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function ma(t){return k((e,r)=>{oe(t).subscribe(R(r,()=>r.complete(),Cr)),!r.closed&&e.subscribe(r)})}function ee(t,e,r){let n=x(t)||e||r?{next:t,error:e,complete:r}:t;return n?k((i,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;i.subscribe(R(o,u=>{var c;(c=n.next)===null||c===void 0||c.call(n,u),o.next(u)},()=>{var u;a=!1,(u=n.complete)===null||u===void 0||u.call(n),o.complete()},u=>{var c;a=!1,(c=n.error)===null||c===void 0||c.call(n,u),o.error(u)},()=>{var u,c;a&&((u=n.unsubscribe)===null||u===void 0||u.call(n)),(c=n.finalize)===null||c===void 0||c.call(n)}))}):De}var Xd="https://g.co/ng/security#xss",w=class extends Error{constructor(e,r){super(xo(e,r)),this.code=e}};function xo(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function kr(t){return{toString:t}.toString()}var Yi="__parameters__";function gv(t){return function(...r){if(t){let n=t(...r);for(let i in n)this[i]=n[i]}}}function ef(t,e,r){return kr(()=>{let n=gv(e);function i(...o){if(this instanceof i)return n.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(Yi)?u[Yi]:Object.defineProperty(u,Yi,{value:[]})[Yi];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return r&&(i.prototype=Object.create(r.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}var Ce=globalThis;function W(t){for(let e in t)if(t[e]===W)return e;throw Error("Could not find renamed property on target object.")}function mv(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function be(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(be).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(` -`);return r===-1?e:e.substring(0,r)}function gd(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var vv=W({__forward_ref__:W});function dt(t){return t.__forward_ref__=dt,t.toString=function(){return be(this())},t}function we(t){return tf(t)?t():t}function tf(t){return typeof t=="function"&&t.hasOwnProperty(vv)&&t.__forward_ref__===dt}function D(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Z(t){return{providers:t.providers||[],imports:t.imports||[]}}function No(t){return md(t,rf)||md(t,of)}function nf(t){return No(t)!==null}function md(t,e){return t.hasOwnProperty(e)?t[e]:null}function yv(t){let e=t&&(t[rf]||t[of]);return e||null}function vd(t){return t&&(t.hasOwnProperty(yd)||t.hasOwnProperty(Dv))?t[yd]:null}var rf=W({\u0275prov:W}),yd=W({\u0275inj:W}),of=W({ngInjectableDef:W}),Dv=W({ngInjectorDef:W}),b=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=D({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function sf(t){return t&&!!t.\u0275providers}var wv=W({\u0275cmp:W}),Cv=W({\u0275dir:W}),bv=W({\u0275pipe:W}),Iv=W({\u0275mod:W}),so=W({\u0275fac:W}),Er=W({__NG_ELEMENT_ID__:W}),Dd=W({__NG_ENV_ID__:W});function Ro(t){return typeof t=="string"?t:t==null?"":String(t)}function Ev(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Ro(t)}function Mv(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new w(-200,t)}function Mu(t,e){throw new w(-201,!1)}var L=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(L||{}),Na;function af(){return Na}function _e(t){let e=Na;return Na=t,e}function uf(t,e,r){let n=No(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&L.Optional)return null;if(e!==void 0)return e;Mu(t,"Injector")}var _v={},_r=_v,Ra="__NG_DI_FLAG__",ao="ngTempTokenPath",Sv="ngTokenPath",Tv=/\n/gm,Av="\u0275",wd="__source",Gn;function xv(){return Gn}function Bt(t){let e=Gn;return Gn=t,e}function Nv(t,e=L.Default){if(Gn===void 0)throw new w(-203,!1);return Gn===null?uf(t,void 0,e):Gn.get(t,e&L.Optional?null:void 0,e)}function C(t,e=L.Default){return(af()||Nv)(we(t),e)}function p(t,e=L.Default){return C(t,Oo(e))}function Oo(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Oa(t){let e=[];for(let r=0;r ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):be(a)))}i=`{${o.join(", ")}}`}return`${r}${n?"("+n+")":""}[${i}]: ${t.replace(Tv,` - `)}`}var Fo=cf(ef("Optional"),8);var _u=cf(ef("SkipSelf"),4);function fn(t,e){let r=t.hasOwnProperty(so);return r?t[so]:null}function Pv(t,e,r){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(r)?Su(r,e):e(r))}function lf(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function uo(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Lv(t,e,r,n){let i=t.length;if(i==e)t.push(r,n);else if(i===1)t.push(n,t[0]),t[0]=r;else{for(i--,t.push(t[i-1],t[i]);i>e;){let o=i-2;t[i]=t[o],i--}t[e]=r,t[e+1]=n}}function Vv(t,e,r){let n=Lr(t,e);return n>=0?t[n|1]=r:(n=~n,Lv(t,n,e,r)),n}function va(t,e){let r=Lr(t,e);if(r>=0)return t[r|1]}function Lr(t,e){return jv(t,e,1)}function jv(t,e,r){let n=0,i=t.length>>r;for(;i!==n;){let o=n+(i-n>>1),s=t[o<e?i=o:n=o+1}return~(i<e){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[l+1].toLowerCase(),n&2&&c!==d){if(ze(n))return!1;s=!0}}}}return ze(n)||s}function ze(t){return(t&1)===0}function Gv(t,e,r,n){if(e===null)return-1;let i=0;if(n||!r){let o=!1;for(;i-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?i+="."+s:n&4&&(i+=" "+s);else i!==""&&!ze(s)&&(e+=bd(o,i),i=""),n=s,o=o||!ze(n);r++}return i!==""&&(e+=bd(o,i)),e}function Qv(t){return t.map(Yv).join(",")}function Kv(t){let e=[],r=[],n=1,i=2;for(;n{let e=Cf(t),r=z(g({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===hf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||at.Emulated,styles:t.styles||Le,_:null,schemas:t.schemas||null,tView:null,id:""});bf(r);let n=t.dependencies;return r.directiveDefs=Ed(n,!1),r.pipeDefs=Ed(n,!0),r.id=ey(r),r})}function Jv(t){return $t(t)||vf(t)}function Xv(t){return t!==null}function Y(t){return kr(()=>({type:t.type,bootstrap:t.bootstrap||Le,declarations:t.declarations||Le,imports:t.imports||Le,exports:t.exports||Le,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Id(t,e){if(t==null)return qn;let r={};for(let n in t)if(t.hasOwnProperty(n)){let i=t[n],o,s,a=de.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),e?(r[o]=a!==de.None?[n,a]:n,e[o]=s):r[o]=n}return r}function re(t){return kr(()=>{let e=Cf(t);return bf(e),e})}function mf(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function $t(t){return t[wv]||null}function vf(t){return t[Cv]||null}function yf(t){return t[bv]||null}function Df(t){let e=$t(t)||vf(t)||yf(t);return e!==null?e.standalone:!1}function wf(t,e){let r=t[Iv]||null;if(!r&&e===!0)throw new Error(`Type ${be(t)} does not have '\u0275mod' property.`);return r}function Cf(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||qn,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Le,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Id(t.inputs,e),outputs:Id(t.outputs),debugInfo:null}}function bf(t){t.features?.forEach(e=>e(t))}function Ed(t,e){if(!t)return null;let r=e?yf:Jv;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(Xv)}function ey(t){let e=0,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let i of r)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function Po(t){return{\u0275providers:t}}function ty(...t){return{\u0275providers:If(!0,t),\u0275fromNgModule:!0}}function If(t,...e){let r=[],n=new Set,i,o=s=>{r.push(s)};return Su(e,s=>{let a=s;Pa(a,o,[],n)&&(i||=[],i.push(a))}),i!==void 0&&Ef(i,o),r}function Ef(t,e){for(let r=0;r{e(o,n)})}}function Pa(t,e,r,n){if(t=we(t),!t)return!1;let i=null,o=vd(t),s=!o&&$t(t);if(!o&&!s){let u=t.ngModule;if(o=vd(u),o)i=u;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=n.has(i);if(s){if(a)return!1;if(n.add(i),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)Pa(c,e,r,n)}}else if(o){if(o.imports!=null&&!a){n.add(i);let c;try{Su(o.imports,l=>{Pa(l,e,r,n)&&(c||=[],c.push(l))})}finally{}c!==void 0&&Ef(c,e)}if(!a){let c=fn(i)||(()=>new i);e({provide:i,useFactory:c,deps:Le},i),e({provide:ff,useValue:i,multi:!0},i),e({provide:Zn,useValue:()=>C(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let c=t;Au(u,l=>{e(l,c)})}}else return!1;return i!==t&&t.providers!==void 0}function Au(t,e){for(let r of t)sf(r)&&(r=r.\u0275providers),Array.isArray(r)?Au(r,e):e(r)}var ny=W({provide:String,useValue:W});function Mf(t){return t!==null&&typeof t=="object"&&ny in t}function ry(t){return!!(t&&t.useExisting)}function iy(t){return!!(t&&t.useFactory)}function Yn(t){return typeof t=="function"}function oy(t){return!!t.useClass}var ko=new b(""),eo={},sy={},ya;function xu(){return ya===void 0&&(ya=new co),ya}var Ie=class{},Tr=class extends Ie{get destroyed(){return this._destroyed}constructor(e,r,n,i){super(),this.parent=r,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,La(e,s=>this.processProvider(s)),this.records.set(df,Un(void 0,this)),i.has("environment")&&this.records.set(Ie,Un(void 0,this));let o=this.records.get(ko);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(ff,Le,L.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=B(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of r)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),B(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=Bt(this),n=_e(void 0),i;try{return e()}finally{Bt(r),_e(n)}}get(e,r=_r,n=L.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Dd))return e[Dd](this);n=Oo(n);let i,o=Bt(this),s=_e(void 0);try{if(!(n&L.SkipSelf)){let u=this.records.get(e);if(u===void 0){let c=dy(e)&&No(e);c&&this.injectableDefInScope(c)?u=Un(ka(e),eo):u=null,this.records.set(e,u)}if(u!=null)return this.hydrate(e,u)}let a=n&L.Self?xu():this.parent;return r=n&L.Optional&&r===_r?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[ao]=a[ao]||[]).unshift(be(e)),o)throw a;return Ov(a,e,"R3InjectorError",this.source)}else throw a}finally{_e(s),Bt(o)}}resolveInjectorInitializers(){let e=B(null),r=Bt(this),n=_e(void 0),i;try{let o=this.get(Zn,Le,L.Self);for(let s of o)s()}finally{Bt(r),_e(n),B(e)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push(be(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new w(205,!1)}processProvider(e){e=we(e);let r=Yn(e)?e:we(e&&e.provide),n=uy(e);if(!Yn(e)&&e.multi===!0){let i=this.records.get(r);i||(i=Un(void 0,eo,!0),i.factory=()=>Oa(i.multi),this.records.set(r,i)),r=e,i.multi.push(e)}this.records.set(r,n)}hydrate(e,r){let n=B(null);try{return r.value===eo&&(r.value=sy,r.value=r.factory()),typeof r.value=="object"&&r.value&&ly(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{B(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=we(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function ka(t){let e=No(t),r=e!==null?e.factory:fn(t);if(r!==null)return r;if(t instanceof b)throw new w(204,!1);if(t instanceof Function)return ay(t);throw new w(204,!1)}function ay(t){if(t.length>0)throw new w(204,!1);let r=yv(t);return r!==null?()=>r.factory(t):()=>new t}function uy(t){if(Mf(t))return Un(void 0,t.useValue);{let e=_f(t);return Un(e,eo)}}function _f(t,e,r){let n;if(Yn(t)){let i=we(t);return fn(i)||ka(i)}else if(Mf(t))n=()=>we(t.useValue);else if(iy(t))n=()=>t.useFactory(...Oa(t.deps||[]));else if(ry(t))n=()=>C(we(t.useExisting));else{let i=we(t&&(t.useClass||t.provide));if(cy(t))n=()=>new i(...Oa(t.deps));else return fn(i)||ka(i)}return n}function Un(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function cy(t){return!!t.deps}function ly(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function dy(t){return typeof t=="function"||typeof t=="object"&&t instanceof b}function La(t,e){for(let r of t)Array.isArray(r)?La(r,e):r&&sf(r)?La(r.\u0275providers,e):e(r)}function Ye(t,e){t instanceof Tr&&t.assertNotDestroyed();let r,n=Bt(t),i=_e(void 0);try{return e()}finally{Bt(n),_e(i)}}function Sf(){return af()!==void 0||xv()!=null}function fy(t){if(!Sf())throw new w(-203,!1)}function hy(t){let e=Ce.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function py(t){return typeof t=="function"}var _t=0,O=1,S=2,ge=3,Ge=4,Qe=5,lo=6,Ar=7,We=8,Qn=9,qe=10,me=11,xr=12,Md=13,er=14,ut=15,Vr=16,$n=17,Et=18,Lo=19,Tf=20,Ut=21,Da=22,hn=23,Ze=25,Af=1;var pn=7,fo=8,Kn=9,Oe=10,Nu=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Nu||{});function ln(t){return Array.isArray(t)&&typeof t[Af]=="object"}function St(t){return Array.isArray(t)&&t[Af]===!0}function xf(t){return(t.flags&4)!==0}function Vo(t){return t.componentOffset>-1}function Ru(t){return(t.flags&1)===1}function Ht(t){return!!t.template}function gy(t){return(t[S]&512)!==0}var Va=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function Nf(t,e,r,n){e!==null?e.applyValueToInputSignal(e,n):t[r]=n}function Ke(){return Rf}function Rf(t){return t.type.prototype.ngOnChanges&&(t.setInput=vy),my}Ke.ngInherit=!0;function my(){let t=Ff(this),e=t?.current;if(e){let r=t.previous;if(r===qn)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function vy(t,e,r,n,i){let o=this.declaredInputs[n],s=Ff(t)||yy(t,{previous:qn,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[o];a[o]=new Va(c&&c.currentValue,r,u===qn),Nf(t,e,i,r)}var Of="__ngSimpleChanges__";function Ff(t){return t[Of]||null}function yy(t,e){return t[Of]=e}var _d=null;var ot=function(t,e,r){_d?.(t,e,r)},Dy="svg",wy="math",Cy=!1;function by(){return Cy}function ct(t){for(;Array.isArray(t);)t=t[_t];return t}function Pf(t,e){return ct(e[t])}function Ve(t,e){return ct(e[t.index])}function kf(t,e){return t.data[e]}function Lf(t,e){return t[e]}function Gt(t,e){let r=e[t];return ln(r)?r:r[_t]}function Iy(t){return(t[S]&4)===4}function Ou(t){return(t[S]&128)===128}function Ey(t){return St(t[ge])}function ho(t,e){return e==null?null:t[e]}function Vf(t){t[$n]=0}function My(t){t[S]&1024||(t[S]|=1024,Ou(t)&&Nr(t))}function _y(t,e){for(;t>0;)e=e[er],t--;return e}function Fu(t){return!!(t[S]&9216||t[hn]?.dirty)}function ja(t){t[qe].changeDetectionScheduler?.notify(1),Fu(t)?Nr(t):t[S]&64&&(by()?(t[S]|=1024,Nr(t)):t[qe].changeDetectionScheduler?.notify())}function Nr(t){t[qe].changeDetectionScheduler?.notify();let e=Rr(t);for(;e!==null&&!(e[S]&8192||(e[S]|=8192,!Ou(e)));)e=Rr(e)}function jf(t,e){if((t[S]&256)===256)throw new w(911,!1);t[Ut]===null&&(t[Ut]=[]),t[Ut].push(e)}function Sy(t,e){if(t[Ut]===null)return;let r=t[Ut].indexOf(e);r!==-1&&t[Ut].splice(r,1)}function Rr(t){let e=t[ge];return St(e)?e[ge]:e}var P={lFrame:qf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Ty(){return P.lFrame.elementDepthCount}function Ay(){P.lFrame.elementDepthCount++}function xy(){P.lFrame.elementDepthCount--}function Bf(){return P.bindingsEnabled}function Ny(){return P.skipHydrationRootTNode!==null}function Ry(t){return P.skipHydrationRootTNode===t}function Oy(){P.skipHydrationRootTNode=null}function H(){return P.lFrame.lView}function Se(){return P.lFrame.tView}function Tt(t){return P.lFrame.contextLView=t,t[We]}function At(t){return P.lFrame.contextLView=null,t}function Te(){let t=Uf();for(;t!==null&&t.type===64;)t=t.parent;return t}function Uf(){return P.lFrame.currentTNode}function Fy(){let t=P.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function jr(t,e){let r=P.lFrame;r.currentTNode=t,r.isParent=e}function $f(){return P.lFrame.isParent}function Py(){P.lFrame.isParent=!1}function ky(){return P.lFrame.contextLView}function Hf(){let t=P.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Ly(t){return P.lFrame.bindingIndex=t}function Pu(){return P.lFrame.bindingIndex++}function Vy(t){let e=P.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function jy(){return P.lFrame.inI18n}function By(t,e){let r=P.lFrame;r.bindingIndex=r.bindingRootIndex=t,Ba(e)}function Uy(){return P.lFrame.currentDirectiveIndex}function Ba(t){P.lFrame.currentDirectiveIndex=t}function $y(t){let e=P.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function zf(){return P.lFrame.currentQueryIndex}function ku(t){P.lFrame.currentQueryIndex=t}function Hy(t){let e=t[O];return e.type===2?e.declTNode:e.type===1?t[Qe]:null}function Gf(t,e,r){if(r&L.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(r&L.Host);)if(i=Hy(o),i===null||(o=o[er],i.type&10))break;if(i===null)return!1;e=i,t=o}let n=P.lFrame=Wf();return n.currentTNode=e,n.lView=t,!0}function Lu(t){let e=Wf(),r=t[O];P.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function Wf(){let t=P.lFrame,e=t===null?null:t.child;return e===null?qf(t):e}function qf(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Zf(){let t=P.lFrame;return P.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Yf=Zf;function Vu(){let t=Zf();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function zy(t){return(P.lFrame.contextLView=_y(t,P.lFrame.contextLView))[We]}function tr(){return P.lFrame.selectedIndex}function gn(t){P.lFrame.selectedIndex=t}function Qf(){let t=P.lFrame;return kf(t.tView,t.selectedIndex)}function Gy(){return P.lFrame.currentNamespace}var Kf=!0;function ju(){return Kf}function Bu(t){Kf=t}function Wy(t,e,r){let{ngOnChanges:n,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(n){let s=Rf(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}i&&(r.preOrderHooks??=[]).push(0-t,i),o&&((r.preOrderHooks??=[]).push(t,o),(r.preOrderCheckHooks??=[]).push(t,o))}function Uu(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r=n)break}else e[u]<0&&(t[$n]+=65536),(a>14>16&&(t[S]&3)===e&&(t[S]+=16384,Sd(a,o)):Sd(a,o)}var Wn=-1,mn=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function Zy(t){return t instanceof mn}function Yy(t){return(t.flags&8)!==0}function Qy(t){return(t.flags&16)!==0}function Xf(t){return t!==Wn}function po(t){return t&32767}function Ky(t){return t>>16}function go(t,e){let r=Ky(t),n=e;for(;r>0;)n=n[er],r--;return n}var Ua=!0;function mo(t){let e=Ua;return Ua=t,e}var Jy=256,eh=Jy-1,th=5,Xy=0,st={};function eD(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(Er)&&(n=r[Er]),n==null&&(n=r[Er]=Xy++);let i=n&eh,o=1<>th)]|=o}function vo(t,e){let r=nh(t,e);if(r!==-1)return r;let n=e[O];n.firstCreatePass&&(t.injectorIndex=e.length,Ca(n.data,t),Ca(e,null),Ca(n.blueprint,null));let i=$u(t,e),o=t.injectorIndex;if(Xf(i)){let s=po(i),a=go(i,e),u=a[O].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|u[s+c]}return e[o+8]=i,o}function Ca(t,e){t.push(0,0,0,0,0,0,0,0,e)}function nh(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function $u(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,i=e;for(;i!==null;){if(n=ah(i),n===null)return Wn;if(r++,i=i[er],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return Wn}function $a(t,e,r){eD(t,e,r)}function tD(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let n=r.length,i=0;for(;i>20,d=n?a:a+l,f=i?a+l:c;for(let h=d;h=u&&I.type===r)return h}if(i){let h=s[u];if(h&&Ht(h)&&h.type===r)return u}return null}function vn(t,e,r,n){let i=t[r],o=e.data;if(Zy(i)){let s=i;s.resolving&&Mv(Ev(o[r]));let a=mo(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?_e(s.injectImpl):null,l=Gf(t,n,L.Default);try{i=t[r]=s.factory(void 0,o,t,n),e.firstCreatePass&&r>=n.directiveStart&&Wy(r,o[r],e)}finally{c!==null&&_e(c),mo(a),s.resolving=!1,Yf()}}return i}function rD(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Er)?t[Er]:void 0;return typeof e=="number"?e>=0?e&eh:iD:e}function Td(t,e,r){let n=1<>th)]&n)}function Ad(t,e){return!(t&L.Self)&&!(t&L.Host&&e)}var dn=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return oh(this._tNode,this._lView,e,Oo(n),r)}};function iD(){return new dn(Te(),H())}function nr(t){return kr(()=>{let e=t.prototype.constructor,r=e[so]||Ha(e),n=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==n;){let o=i[so]||Ha(i);if(o&&o!==r)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Ha(t){return tf(t)?()=>{let e=Ha(we(t));return e&&e()}:fn(t)}function oD(t,e,r,n,i){let o=t,s=e;for(;o!==null&&s!==null&&s[S]&2048&&!(s[S]&512);){let a=sh(o,s,r,n|L.Self,st);if(a!==st)return a;let u=o.parent;if(!u){let c=s[Tf];if(c){let l=c.get(r,st,n);if(l!==st)return l}u=ah(s),s=s[er]}o=u}return i}function ah(t){let e=t[O],r=e.type;return r===2?e.declTNode:r===1?t[Qe]:null}function Hu(t){return tD(Te(),t)}function xd(t,e=null,r=null,n){let i=uh(t,e,r,n);return i.resolveInjectorInitializers(),i}function uh(t,e=null,r=null,n,i=new Set){let o=[r||Le,ty(t)];return n=n||(typeof t=="object"?void 0:be(t)),new Tr(o,e||xu(),n||null,i)}var Je=(()=>{let e=class e{static create(n,i){if(Array.isArray(n))return xd({name:""},i,n,"");{let o=n.name??"";return xd({name:o},n.parent,n.providers,o)}}};e.THROW_IF_NOT_FOUND=_r,e.NULL=new co,e.\u0275prov=D({token:e,providedIn:"any",factory:()=>C(df)}),e.__NG_ELEMENT_ID__=-1;let t=e;return t})();var sD="ngOriginalError";function ba(t){return t[sD]}var lt=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&ba(e);for(;r&&ba(r);)r=ba(r);return r||null}},ch=new b("",{providedIn:"root",factory:()=>p(lt).handleError.bind(void 0)}),zu=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=aD,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),za=class extends zu{constructor(e){super(),this._lView=e}onDestroy(e){return jf(this._lView,e),()=>Sy(this._lView,e)}};function aD(){return new za(H())}function uD(){return rr(Te(),H())}function rr(t,e){return new Ae(Ve(t,e))}var Ae=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=uD;let t=e;return t})();function cD(t){return t instanceof Ae?t.nativeElement:t}var Ga=class extends le{constructor(e=!1){super(),this.destroyRef=void 0,this.__isAsync=e,Sf()&&(this.destroyRef=p(zu,{optional:!0})??void 0)}emit(e){let r=B(null);try{super.next(e)}finally{B(r)}}subscribe(e,r,n){let i=e,o=r||(()=>null),s=n;if(e&&typeof e=="object"){let u=e;i=u.next?.bind(u),o=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(o=Ia(o),i&&(i=Ia(i)),s&&(s=Ia(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof ne&&e.add(a),a}};function Ia(t){return e=>{setTimeout(t,void 0,e)}}var K=Ga;function lD(){return this._results[Symbol.iterator]()}var Wa=class t{get changes(){return this._changes??=new K}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let r=t.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=lD)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,r){return this._results.reduce(e,r)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,r){this.dirty=!1;let n=kv(e);(this._changesDetected=!Pv(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function lh(t){return(t.flags&128)===128}var qa;function dh(t){qa=t}function dD(){if(qa!==void 0)return qa;if(typeof document<"u")return document;throw new w(210,!1)}var jo=new b("",{providedIn:"root",factory:()=>fD}),fD="ng",Gu=new b(""),ft=new b("",{providedIn:"platform",factory:()=>"unknown"});var Wu=new b("",{providedIn:"root",factory:()=>dD().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var hD="h",pD="b";var gD=()=>null;function qu(t,e,r=!1){return gD(t,e,r)}var fh=!1,mD=new b("",{providedIn:"root",factory:()=>fh});var Qi;function vD(){if(Qi===void 0&&(Qi=null,Ce.trustedTypes))try{Qi=Ce.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Qi}function Nd(t){return vD()?.createScriptURL(t)||t}var yo=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Xd})`}};function Br(t){return t instanceof yo?t.changingThisBreaksApplicationSecurity:t}function Zu(t,e){let r=yD(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${Xd})`)}return r===e}function yD(t){return t instanceof yo&&t.getTypeName()||null}var DD=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function hh(t){return t=String(t),t.match(DD)?t:"unsafe:"+t}var Bo=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Bo||{});function Ur(t){let e=gh();return e?e.sanitize(Bo.URL,t)||"":Zu(t,"URL")?Br(t):hh(Ro(t))}function wD(t){let e=gh();if(e)return Nd(e.sanitize(Bo.RESOURCE_URL,t)||"");if(Zu(t,"ResourceURL"))return Nd(Br(t));throw new w(904,!1)}function CD(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?wD:Ur}function ph(t,e,r){return CD(e,r)(t)}function gh(){let t=H();return t&&t[qe].sanitizer}var mh=new Map,bD=0;function ID(){return bD++}function ED(t){mh.set(t[Lo],t)}function MD(t){mh.delete(t[Lo])}var Rd="__ngContext__";function yn(t,e){ln(e)?(t[Rd]=e[Lo],ED(e)):t[Rd]=e}function vh(t){return t instanceof Function?t():t}function _D(t){return(t??p(Je)).get(ft)==="browser"}var Mt=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Mt||{}),SD;function Yu(t,e){return SD(t,e)}function Hn(t,e,r,n,i){if(n!=null){let o,s=!1;St(n)?o=n:ln(n)&&(s=!0,n=n[_t]);let a=ct(n);t===0&&r!==null?i==null?bh(e,r,a):Do(e,r,a,i||null,!0):t===1&&r!==null?Do(e,r,a,i||null,!0):t===2?zD(e,a,s):t===3&&e.destroyNode(a),o!=null&&WD(e,t,o,r,i)}}function TD(t,e){return t.createText(e)}function AD(t,e,r){t.setValue(e,r)}function yh(t,e,r){return t.createElement(e,r)}function xD(t,e){Dh(t,e),e[_t]=null,e[Qe]=null}function ND(t,e,r,n,i,o){n[_t]=i,n[Qe]=e,Uo(t,n,r,1,i,o)}function Dh(t,e){e[qe].changeDetectionScheduler?.notify(1),Uo(t,e,e[me],2,null,null)}function RD(t){let e=t[xr];if(!e)return Ea(t[O],t);for(;e;){let r=null;if(ln(e))r=e[xr];else{let n=e[Oe];n&&(r=n)}if(!r){for(;e&&!e[Ge]&&e!==t;)ln(e)&&Ea(e[O],e),e=e[ge];e===null&&(e=t),ln(e)&&Ea(e[O],e),r=e&&e[Ge]}e=r}}function OD(t,e,r,n){let i=Oe+n,o=r.length;n>0&&(r[i-1][Ge]=e),n0&&(t[r-1][Ge]=n[Ge]);let o=uo(t,Oe+e);xD(n[O],n);let s=o[Et];s!==null&&s.detachView(o[O]),n[ge]=null,n[Ge]=null,n[S]&=-129}return n}function Ch(t,e){if(!(e[S]&256)){let r=e[me];r.destroyNode&&Uo(t,e,r,3,null,null),RD(e)}}function Ea(t,e){if(e[S]&256)return;let r=B(null);try{e[S]&=-129,e[S]|=256,e[hn]&&$l(e[hn]),kD(t,e),PD(t,e),e[O].type===1&&e[me].destroy();let n=e[Vr];if(n!==null&&St(e[ge])){n!==e[ge]&&wh(n,e);let i=e[Et];i!==null&&i.detachView(t)}MD(e)}finally{B(r)}}function PD(t,e){let r=t.cleanup,n=e[Ar];if(r!==null)for(let o=0;o=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[r[o+1]];r[o].call(s)}n!==null&&(e[Ar]=null);let i=e[Ut];if(i!==null){e[Ut]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[n.directiveStart+i];if(o===at.None||o===at.Emulated)return null}return Ve(n,r)}}function Do(t,e,r,n,i){t.insertBefore(e,r,n,i)}function bh(t,e,r){t.appendChild(e,r)}function Od(t,e,r,n,i){n!==null?Do(t,e,r,n,i):bh(t,e,r)}function jD(t,e,r,n){t.removeChild(e,r,n)}function Qu(t,e){return t.parentNode(e)}function BD(t,e){return t.nextSibling(e)}function UD(t,e,r){return HD(t,e,r)}function $D(t,e,r){return t.type&40?Ve(t,r):null}var HD=$D,Fd;function Ku(t,e,r,n){let i=LD(t,n,e),o=e[me],s=n.parent||e[Qe],a=UD(s,n,e);if(i!=null)if(Array.isArray(r))for(let u=0;uZe&&_h(t,e,Ze,!1),ot(s?2:0,i),r(n,i)}finally{gn(o),ot(s?3:1,i)}}function Nh(t,e,r){if(xf(e)){let n=B(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;snull;function tw(t,e,r,n){let i=Bh(e);i.push(r),t.firstCreatePass&&Uh(t).push(n,i.length-1)}function nw(t,e,r,n,i,o){let s=e?e.injectorIndex:-1,a=0;return Ny()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Pd(t,e,r,n,i){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;n??={};let a,u=de.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=o;if(i!==null){if(!i.hasOwnProperty(o))continue;c=i[o]}t===0?kd(n,r,c,a,u):kd(n,r,c,a)}return n}function kd(t,e,r,n,i){let o;t.hasOwnProperty(r)?(o=t[r]).push(e,n):o=t[r]=[e,n],i!==void 0&&o.push(i)}function rw(t,e,r){let n=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],u=null,c=null;for(let l=n;l0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function cw(t,e,r,n){let i=r.directiveStart,o=r.directiveEnd;Vo(r)&&mw(e,r,t.data[i+r.componentOffset]),t.firstCreatePass||vo(r,e),yn(n,e);let s=r.initialInputs;for(let a=i;a{Nr(t.lView)},consumerOnSignalRead(){this.lView[hn]=this}});function zh(t){return Wh(t[xr])}function Gh(t){return Wh(t[Ge])}function Wh(t){for(;t!==null&&!St(t);)t=t[Ge];return t}var qh=100;function Zh(t,e=!0,r=0){let n=t[qe],i=n.rendererFactory,o=!1;o||i.begin?.();try{Rw(t,r)}catch(s){throw e&&$h(t,s),s}finally{o||(i.end?.(),n.inlineEffectRunner?.flush())}}function Rw(t,e){Ja(t,e);let r=0;for(;Fu(t);){if(r===qh)throw new w(103,!1);r++,Ja(t,1)}}function Ow(t,e,r,n){let i=e[S];if((i&256)===256)return;let o=!1;!o&&e[qe].inlineEffectRunner?.flush(),Lu(e);let s=null,a=null;!o&&Fw(t)&&(a=Tw(e),s=Bl(a));try{Vf(e),Ly(t.bindingStartIndex),r!==null&&xh(t,e,r,2,n);let u=(i&3)===3;if(!o)if(u){let d=t.preOrderCheckHooks;d!==null&&to(e,d,null)}else{let d=t.preOrderHooks;d!==null&&no(e,d,0,null),wa(e,0)}if(Pw(e),Yh(e,0),t.contentQueries!==null&&jh(t,e),!o)if(u){let d=t.contentCheckHooks;d!==null&&to(e,d)}else{let d=t.contentHooks;d!==null&&no(e,d,1),wa(e,1)}YD(t,e);let c=t.components;c!==null&&Kh(e,c,0);let l=t.viewQuery;if(l!==null&&Ka(2,l,n),!o)if(u){let d=t.viewCheckHooks;d!==null&&to(e,d)}else{let d=t.viewHooks;d!==null&&no(e,d,2),wa(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Da]){for(let d of e[Da])d();e[Da]=null}o||(e[S]&=-73)}catch(u){throw Nr(e),u}finally{a!==null&&(Ul(a,s),xw(a)),Vu()}}function Fw(t){return t.type!==2}function Yh(t,e){for(let r=zh(t);r!==null;r=Gh(r))for(let n=Oe;n-1&&(Za(e,n),uo(r,n))}this._attachedToViewContainer=!1}Ch(this._lView[O],this._lView)}onDestroy(e){jf(this._lView,e)}markForCheck(){nc(this._cdRefInjectingView||this._lView)}detach(){this._lView[S]&=-129}reattach(){ja(this._lView),this._lView[S]|=128}detectChanges(){this._lView[S]|=1024,Zh(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Dh(this._lView[O],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=e,ja(this._lView)}},wn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=jw;let t=e;return t})(),Lw=wn,Vw=class extends Lw{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let i=Mw(this._declarationLView,this._declarationTContainer,e,{injector:r,dehydratedView:n});return new Dn(i)}};function jw(){return rc(Te(),H())}function rc(t,e){return t.type&4?new Vw(e,t,rr(t,e)):null}var SR=new RegExp(`^(\\d+)*(${pD}|${hD})*(.*)`);var Bw=()=>null;function Vd(t,e){return Bw(t,e)}var Co=class{},Xa=class{},bo=class{};function Uw(t){let e=Error(`No component factory found for ${be(t)}.`);return e[$w]=t,e}var $w="ngComponent";var eu=class{resolveComponentFactory(e){throw Uw(e)}},Go=(()=>{let e=class e{};e.NULL=new eu;let t=e;return t})(),Or=class{},ht=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>Hw();let t=e;return t})();function Hw(){let t=H(),e=Te(),r=Gt(e.index,t);return(ln(r)?r:t)[me]}var zw=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),Ma={};var jd=new Set;function Wo(t){jd.has(t)||(jd.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function Bd(...t){}function Gw(){let t=typeof Ce.requestAnimationFrame=="function",e=Ce[t?"requestAnimationFrame":"setTimeout"],r=Ce[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&e&&r){let n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);let i=r[Zone.__symbol__("OriginalDelegate")];i&&(r=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:r}}var G=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new K(!1),this.onMicrotaskEmpty=new K(!1),this.onStable=new K(!1),this.onError=new K(!1),typeof Zone>"u")throw new w(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&r,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=Gw().nativeRequestAnimationFrame,Zw(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new w(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new w(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,Ww,Bd,Bd);try{return o.runTask(s,r,n)}finally{o.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},Ww={};function ic(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function qw(t){t.isCheckStableRunning||t.lastRequestAnimationFrameId!==-1||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Ce,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,tu(t),t.isCheckStableRunning=!0,ic(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),tu(t))}function Zw(t){let e=()=>{qw(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,i,o,s,a)=>{if(Yw(a))return r.invokeTask(i,o,s,a);try{return Ud(t),r.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),$d(t)}},onInvoke:(r,n,i,o,s,a,u)=>{try{return Ud(t),r.invoke(i,o,s,a,u)}finally{t.shouldCoalesceRunChangeDetection&&e(),$d(t)}},onHasTask:(r,n,i,o)=>{r.hasTask(i,o),n===i&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,tu(t),ic(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,n,i,o)=>(r.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function tu(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.lastRequestAnimationFrameId!==-1?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Ud(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function $d(t){t._nesting--,ic(t)}var nu=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new K,this.onMicrotaskEmpty=new K,this.onStable=new K,this.onError=new K}run(e,r,n){return e.apply(r,n)}runGuarded(e,r,n){return e.apply(r,n)}runOutsideAngular(e){return e()}runTask(e,r,n,i){return e.apply(r,n)}};function Yw(t){return!Array.isArray(t)||t.length!==1?!1:t[0].data?.__ignore_ng_zone__===!0}function Qw(t="zone.js",e){return t==="noop"?new nu:t==="zone.js"?new G(e):t}var zn=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(zn||{}),Kw={destroy(){}};function oc(t,e){!e&&fy(oc);let r=e?.injector??p(Je);if(!_D(r))return Kw;Wo("NgAfterNextRender");let n=r.get(sc),i=n.handler??=new iu,o=e?.phase??zn.MixedReadWrite,s=()=>{i.unregister(u),a()},a=r.get(zu).onDestroy(s),u=Ye(r,()=>new ru(o,()=>{s(),t()}));return i.register(u),{destroy:s}}var ru=class{constructor(e,r){this.phase=e,this.callbackFn=r,this.zone=p(G),this.errorHandler=p(lt,{optional:!0}),p(Co,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(e){this.errorHandler?.handleError(e)}}},iu=class{constructor(){this.executingCallbacks=!1,this.buckets={[zn.EarlyRead]:new Set,[zn.Write]:new Set,[zn.MixedReadWrite]:new Set,[zn.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let r of e)r.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},sc=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let i of n)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function ou(t,e,r){let n=r?t.styles:null,i=r?t.classes:null,o=0;if(e!==null)for(let s=0;s0&&Eh(t,r,o.join(" "))}}function iC(t,e,r){let n=t.projection=[];for(let i=0;i{let e=class e{};e.__NG_ELEMENT_ID__=sC;let t=e;return t})();function sC(){let t=Te();return Xh(t,H())}var aC=Wt,Jh=class extends aC{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return rr(this._hostTNode,this._hostLView)}get injector(){return new dn(this._hostTNode,this._hostLView)}get parentInjector(){let e=$u(this._hostTNode,this._hostLView);if(Xf(e)){let r=go(e,this._hostLView),n=po(e),i=r[O].data[n+8];return new dn(i,r)}else return new dn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=zd(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-Oe}createEmbeddedView(e,r,n){let i,o;typeof n=="number"?i=n:n!=null&&(i=n.index,o=n.injector);let s=Vd(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},o,s);return this.insertImpl(a,i,Ld(this._hostTNode,s)),a}createComponent(e,r,n,i,o){let s=e&&!py(e),a;if(s)a=r;else{let I=r||{};a=I.index,n=I.injector,i=I.projectableNodes,o=I.environmentInjector||I.ngModuleRef}let u=s?e:new Jn($t(e)),c=n||this.parentInjector;if(!o&&u.ngModule==null){let V=(s?c:this.parentInjector).get(Ie,null);V&&(o=V)}let l=$t(u.componentType??{}),d=Vd(this._lContainer,l?.id??null),f=d?.firstChild??null,h=u.create(c,i,f,o);return this.insertImpl(h.hostView,a,Ld(this._hostTNode,d)),h}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let i=e._lView;if(Ey(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let u=i[ge],c=new Jh(u,u[Qe],u[ge]);c.detach(c.indexOf(e))}}let o=this._adjustIndex(r),s=this._lContainer;return _w(s,i,o,n),e.attachToViewContainerRef(),lf(_a(s),o,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=zd(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=Za(this._lContainer,r);n&&(uo(_a(this._lContainer),r),Ch(n[O],n))}detach(e){let r=this._adjustIndex(e,-1),n=Za(this._lContainer,r);return n&&uo(_a(this._lContainer),r)!=null?new Dn(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function zd(t){return t[fo]}function _a(t){return t[fo]||(t[fo]=[])}function Xh(t,e){let r,n=e[t.index];return St(n)?r=n:(r=Vh(n,e,null,t),e[t.index]=r,zo(e,r)),cC(r,e,t,n),new Jh(r,t,e)}function uC(t,e){let r=t[me],n=r.createComment(""),i=Ve(e,t),o=Qu(r,i);return Do(r,o,n,BD(r,i),!1),n}var cC=fC,lC=()=>!1;function dC(t,e,r){return lC(t,e,r)}function fC(t,e,r,n){if(t[pn])return;let i;r.type&8?i=ct(n):i=uC(e,r),t[pn]=i}var uu=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},cu=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let n=e.contentQueries!==null?e.contentQueries[0]:r.length,i=[];for(let o=0;o0)n.push(s[a/2]);else{let c=o[a+1],l=e[-u];for(let d=Oe;de.trim())}function CC(t,e,r){t.queries===null&&(t.queries=new du),t.queries.track(new fu(e,r))}function bC(t,e){let r=t.contentQueries||(t.contentQueries=[]),n=r.length?r[r.length-1]:-1;e!==n&&r.push(t.queries.length-1,e)}function ac(t,e){return t.queries.getByIndex(e)}function IC(t,e){let r=t[O],n=ac(r,e);return n.crossesNgTemplate?hu(r,t,e,[]):ep(r,t,n,e)}function EC(t){let e=[],r=new Map;function n(i){let o=r.get(i);if(!o){let s=t(i);r.set(i,o=s.then(TC))}return o}return Eo.forEach((i,o)=>{let s=[];i.templateUrl&&s.push(n(i.templateUrl).then(c=>{i.template=c}));let a=typeof i.styles=="string"?[i.styles]:i.styles||[];if(i.styles=a,i.styleUrl&&i.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(i.styleUrls?.length){let c=i.styles.length,l=i.styleUrls;i.styleUrls.forEach((d,f)=>{a.push(""),s.push(n(d).then(h=>{a[c+f]=h,l.splice(l.indexOf(d),1),l.length==0&&(i.styleUrls=void 0)}))})}else i.styleUrl&&s.push(n(i.styleUrl).then(c=>{a.push(c),i.styleUrl=void 0}));let u=Promise.all(s).then(()=>AC(o));e.push(u)}),_C(),Promise.all(e).then(()=>{})}var Eo=new Map,MC=new Set;function _C(){let t=Eo;return Eo=new Map,t}function SC(){return Eo.size===0}function TC(t){return typeof t=="string"?t:t.text()}function AC(t){MC.delete(t)}function xC(t){return Object.getPrototypeOf(t.prototype).constructor}function Xe(t){let e=xC(t.type),r=!0,n=[t];for(;e;){let i;if(Ht(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new w(903,!1);i=e.\u0275dir}if(i){if(r){n.push(i);let s=t;s.inputs=Ki(t.inputs),s.inputTransforms=Ki(t.inputTransforms),s.declaredInputs=Ki(t.declaredInputs),s.outputs=Ki(t.outputs);let a=i.hostBindings;a&&PC(t,a);let u=i.viewQuery,c=i.contentQueries;if(u&&OC(t,u),c&&FC(t,c),NC(t,i),mv(t.outputs,i.outputs),Ht(i)&&i.data.animation){let l=t.data;l.animation=(l.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;n--){let i=t[n];i.hostVars=e+=i.hostVars,i.hostAttrs=Sr(i.hostAttrs,r=Sr(r,i.hostAttrs))}}function Ki(t){return t===qn?{}:t===Le?[]:t}function OC(t,e){let r=t.viewQuery;r?t.viewQuery=(n,i)=>{e(n,i),r(n,i)}:t.viewQuery=e}function FC(t,e){let r=t.contentQueries;r?t.contentQueries=(n,i,o)=>{e(n,i,o),r(n,i,o)}:t.contentQueries=e}function PC(t,e){let r=t.hostBindings;r?t.hostBindings=(n,i)=>{e(n,i),r(n,i)}:t.hostBindings=e}function uc(t){let e=t.inputConfig,r={};for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];Array.isArray(i)&&i[3]&&(r[n]=i[3])}t.inputTransforms=r}var zt=class{},Fr=class{};var Mo=class extends zt{constructor(e,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Io(this);let i=wf(e);this._bootstrapComponents=vh(i.bootstrap),this._r3Injector=uh(e,r,[{provide:zt,useValue:this},{provide:Go,useValue:this.componentFactoryResolver},...n],be(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},_o=class extends Fr{constructor(e){super(),this.moduleType=e}create(e){return new Mo(this.moduleType,e,[])}};function kC(t,e,r){return new Mo(t,e,r)}var pu=class extends zt{constructor(e){super(),this.componentFactoryResolver=new Io(this),this.instance=null;let r=new Tr([...e.providers,{provide:zt,useValue:this},{provide:Go,useValue:this.componentFactoryResolver}],e.parent||xu(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function qo(t,e,r=null){return new pu({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}var In=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ue(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),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)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function tp(t){return VC(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function LC(t,e){if(Array.isArray(t))for(let r=0;r>17&32767}function GC(t){return(t&2)==2}function WC(t,e){return t&131071|e<<17}function gu(t){return t|2}function Xn(t){return(t&131068)>>2}function Sa(t,e){return t&-131069|e<<2}function qC(t){return(t&1)===1}function mu(t){return t|1}function ZC(t,e,r,n,i,o){let s=o?e.classBindings:e.styleBindings,a=Cn(s),u=Xn(s);t[n]=r;let c=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||Lr(d,l)>0)&&(c=!0)}else l=r;if(i)if(u!==0){let f=Cn(t[a+1]);t[n+1]=Ji(f,a),f!==0&&(t[f+1]=Sa(t[f+1],n)),t[a+1]=WC(t[a+1],n)}else t[n+1]=Ji(a,0),a!==0&&(t[a+1]=Sa(t[a+1],n)),a=n;else t[n+1]=Ji(u,0),a===0?a=n:t[u+1]=Sa(t[u+1],n),u=n;c&&(t[n+1]=gu(t[n+1])),Gd(t,l,n,!0),Gd(t,l,n,!1),YC(e,l,t,n,o),s=Ji(a,u),o?e.classBindings=s:e.styleBindings=s}function YC(t,e,r,n,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&Lr(o,e)>=0&&(r[n+1]=mu(r[n+1]))}function Gd(t,e,r,n){let i=t[r+1],o=e===null,s=n?Cn(i):Xn(i),a=!1;for(;s!==0&&(a===!1||o);){let u=t[s],c=t[s+1];QC(u,e)&&(a=!0,t[s+1]=n?mu(c):gu(c)),s=n?Cn(c):Xn(c)}a&&(t[r+1]=n?gu(i):mu(i))}function QC(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Lr(t,e)>=0:!1}function j(t,e,r){let n=H(),i=Pu();if($r(n,i,e)){let o=Se(),s=Qf();ow(o,s,n,t,e,n[me],r,!1)}return j}function Wd(t,e,r,n,i){let o=e.inputs,s=i?"class":"style";ec(t,r,o[s],s,n)}function or(t,e){return KC(t,e,null,!0),or}function KC(t,e,r,n){let i=H(),o=Se(),s=Vy(2);if(o.firstUpdatePass&&XC(o,t,s,n),e!==bn&&$r(i,s,e)){let a=o.data[tr()];ib(o,a,i,i[me],t,i[s+1]=ob(e,r),n,s)}}function JC(t,e){return e>=t.expandoStartIndex}function XC(t,e,r,n){let i=t.data;if(i[r+1]===null){let o=i[tr()],s=JC(t,r);sb(o,n)&&e===null&&!s&&(e=!1),e=eb(i,o,e,n),ZC(i,o,e,r,s,n)}}function eb(t,e,r,n){let i=$y(t),o=n?e.residualClasses:e.residualStyles;if(i===null)(n?e.classBindings:e.styleBindings)===0&&(r=Ta(null,t,e,r,n),r=Pr(r,e.attrs,n),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(r=Ta(i,t,e,r,n),o===null){let u=tb(t,e,n);u!==void 0&&Array.isArray(u)&&(u=Ta(null,t,e,u[1],n),u=Pr(u,e.attrs,n),nb(t,e,n,u))}else o=rb(t,e,n)}return o!==void 0&&(n?e.residualClasses=o:e.residualStyles=o),r}function tb(t,e,r){let n=r?e.classBindings:e.styleBindings;if(Xn(n)!==0)return t[Cn(n)]}function nb(t,e,r,n){let i=r?e.classBindings:e.styleBindings;t[Cn(i)]=n}function rb(t,e,r){let n,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let u=t[i],c=Array.isArray(u),l=c?u[1]:u,d=l===null,f=r[i+1];f===bn&&(f=d?Le:void 0);let h=d?va(f,n):l===n?f:void 0;if(c&&!So(h)&&(h=va(u,n)),So(h)&&(a=h,s))return a;let I=t[i+1];i=s?Cn(I):Xn(I)}if(e!==null){let u=o?e.residualClasses:e.residualStyles;u!=null&&(a=va(u,n))}return a}function So(t){return t!==void 0}function ob(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=be(Br(t)))),t}function sb(t,e){return(t.flags&(e?8:16))!==0}function ab(t,e,r,n,i,o){let s=e.consts,a=ho(s,i),u=Ho(e,t,2,n,a);return Ph(e,r,u,ho(s,o)),u.attrs!==null&&ou(u,u.attrs,!1),u.mergedAttrs!==null&&ou(u,u.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,u),u}function v(t,e,r,n){let i=H(),o=Se(),s=Ze+t,a=i[me],u=o.firstCreatePass?ab(s,o,i,e,r,n):o.data[s],c=ub(o,i,u,a,e,t);i[s]=c;let l=Ru(u);return jr(u,!0),Mh(a,c,u),!BC(u)&&ju()&&Ku(o,i,c,u),Ty()===0&&yn(c,i),Ay(),l&&(Rh(o,i,u),Nh(o,u,i)),n!==null&&Oh(i,u),v}function y(){let t=Te();$f()?Py():(t=t.parent,jr(t,!1));let e=t;Ry(e)&&Oy(),xy();let r=Se();return r.firstCreatePass&&(Uu(r,t),xf(t)&&r.queries.elementEnd(t)),e.classesWithoutHost!=null&&Yy(e)&&Wd(r,e,H(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&Qy(e)&&Wd(r,e,H(),e.stylesWithoutHost,!1),y}function ie(t,e,r,n){return v(t,e,r,n),y(),ie}var ub=(t,e,r,n,i,o)=>(Bu(!0),yh(n,i,Gy()));function xt(){return H()}var To="en-US";var cb=To;function lb(t){typeof t=="string"&&(cb=t.toLowerCase().replace(/_/g,"-"))}function te(t,e,r,n){let i=H(),o=Se(),s=Te();return fb(o,i,i[me],s,t,e,n),te}function db(t,e,r,n){let i=t.cleanup;if(i!=null)for(let o=0;ou?a[u]:null}typeof s=="string"&&(o+=2)}return null}function fb(t,e,r,n,i,o,s){let a=Ru(n),c=t.firstCreatePass&&Uh(t),l=e[We],d=Bh(e),f=!0;if(n.type&3||s){let V=Ve(n,e),T=s?s(V):V,M=d.length,ve=s?Q=>s(ct(Q[n.index])):n.index,he=null;if(!s&&a&&(he=db(t,e,i,n.index)),he!==null){let Q=he.__ngLastListenerFn__||he;Q.__ngNextListenerFn__=o,he.__ngLastListenerFn__=o,f=!1}else{o=Yd(n,e,l,o,!1);let Q=r.listen(T,i,o);d.push(o,Q),c&&c.push(i,ve,M,M+1)}}else o=Yd(n,e,l,o,!1);let h=n.outputs,I;if(f&&h!==null&&(I=h[i])){let V=I.length;if(V)for(let T=0;T-1?Gt(t.index,e):e;nc(a);let u=Zd(e,r,n,s),c=o.__ngNextListenerFn__;for(;c;)u=Zd(e,r,c,s)&&u,c=c.__ngNextListenerFn__;return i&&u===!1&&s.preventDefault(),u}}function xe(t=1){return zy(t)}function np(t,e,r,n){DC(t,e,r,n)}function rp(t){let e=H(),r=Se(),n=zf();ku(n+1);let i=ac(r,n);if(t.dirty&&Iy(e)===((i.metadata.flags&2)===2)){if(i.matches===null)t.reset([]);else{let o=IC(e,n);t.reset(o,cD),t.notifyOnChanges()}return!0}return!1}function ip(){return vC(H(),zf())}function hb(t,e,r,n){r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=n}function op(t){let e=ky();return Lf(e,Ze+t)}function _(t,e=""){let r=H(),n=Se(),i=t+Ze,o=n.firstCreatePass?Ho(n,i,1,e,null):n.data[i],s=pb(n,r,o,e,t);r[i]=s,ju()&&Ku(n,r,s,o),jr(o,!1)}var pb=(t,e,r,n,i)=>(Bu(!0),TD(e[me],n));function pt(t){return et("",t,""),pt}function et(t,e,r){let n=H(),i=zC(n,t,e,r);return i!==bn&&Cw(n,tr(),i),et}function gb(t,e,r){let n=Se();if(n.firstCreatePass){let i=Ht(t);vu(r,n.data,n.blueprint,i,!0),vu(e,n.data,n.blueprint,i,!1)}}function vu(t,e,r,n,i){if(t=we(t),Array.isArray(t))for(let o=0;o>20;if(Yn(t)||!t.multi){let h=new mn(c,i,m),I=xa(u,e,i?l:l+f,d);I===-1?($a(vo(a,s),o,u),Aa(o,t,e.length),e.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(h),s.push(h)):(r[I]=h,s[I]=h)}else{let h=xa(u,e,l+f,d),I=xa(u,e,l,l+f),V=h>=0&&r[h],T=I>=0&&r[I];if(i&&!T||!i&&!V){$a(vo(a,s),o,u);let M=yb(i?vb:mb,r.length,i,n,c);!i&&T&&(r[I].providerFactory=M),Aa(o,t,e.length,0),e.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(M),s.push(M)}else{let M=sp(r[i?I:h],c,!i&&n);Aa(o,t,h>-1?h:I,M)}!i&&n&&T&&r[I].componentProviders++}}}function Aa(t,e,r,n){let i=Yn(e),o=oy(e);if(i||o){let u=(o?we(e.useClass):e).prototype.ngOnDestroy;if(u){let c=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let l=c.indexOf(r);l===-1?c.push(r,[n,u]):c[l+1].push(n,u)}else c.push(r,u)}}}function sp(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function xa(t,e,r,n){for(let i=r;i{r.providersResolver=(n,i)=>gb(n,i?i(t):t,e)}}var Db=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let i=If(!1,n.type),o=i.length>0?qo([i],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()}}};e.\u0275prov=D({token:e,providedIn:"environment",factory:()=>new e(C(Ie))});let t=e;return t})();function ap(t){Wo("NgStandalone"),t.getStandaloneInjector=e=>e.get(Db).getOrCreateStandaloneInjector(t)}function Zo(t,e,r,n){return up(H(),Hf(),t,e,r,n)}function wb(t,e){let r=t[e];return r===bn?void 0:r}function up(t,e,r,n,i,o){let s=e+r;return $r(t,s,i)?jC(t,s+1,o?n.call(o,i):n(i)):wb(t,s+1)}function Zt(t,e){let r=Se(),n,i=t+Ze;r.firstCreatePass?(n=Cb(e,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks??=[]).push(i,n.onDestroy)):n=r.data[i];let o=n.factory||(n.factory=fn(n.type,!0)),s,a=_e(m);try{let u=mo(!1),c=o();return mo(u),hb(r,H(),i,c),c}finally{_e(a)}}function Cb(t,e){if(e)for(let r=e.length-1;r>=0;r--){let n=e[r];if(t===n.name)return n}}function Yt(t,e,r){let n=t+Ze,i=H(),o=Lf(i,n);return bb(i,n)?up(i,Hf(),e,o.transform,r,o):o.transform(r)}function bb(t,e){return t[O].data[e].pure}var Xi=null;function Ib(t){Xi!==null&&(t.defaultEncapsulation!==Xi.defaultEncapsulation||t.preserveWhitespaces!==Xi.preserveWhitespaces)||(Xi=t)}var Yo=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var cc=new b(""),Hr=new b(""),Qo=(()=>{let e=class e{constructor(n,i,o){this._ngZone=n,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,lc||(Eb(o),o.addToWindow(i)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{G.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&this._pendingCount===0&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(n)?(clearTimeout(i.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n()},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:o})}whenStable(n,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,o){return[]}};e.\u0275fac=function(i){return new(i||e)(C(G),C(Ko),C(Hr))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Ko=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return lc?.findTestabilityInTree(this,n,i)??null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function Eb(t){lc=t}var lc;function Qt(t){return!!t&&typeof t.then=="function"}function dc(t){return!!t&&typeof t.subscribe=="function"}var Jo=new b(""),cp=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=p(Jo,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(Qt(s))n.push(s);else if(dc(s)){let a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});n.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),n.length===0&&i(),this.initialized=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Xo=new b("");function Mb(){Hl(()=>{throw new w(600,!1)})}function _b(t){return t.isBoundToModule}function Sb(t,e,r){try{let n=r();return Qt(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}function lp(t,e){return Array.isArray(e)?e.reduce(lp,t):g(g({},t),e)}var En=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p(ch),this.afterRenderEffectManager=p(sc),this.externalTestViews=new Set,this.beforeRender=new le,this.afterTick=new le,this.componentTypes=[],this.components=[],this.isStable=p(In).hasPendingTasks.pipe(A(n=>!n)),this._injector=p(Ie)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){let o=n instanceof bo;if(!this._injector.get(cp).done){let h=!o&&Df(n),I=!1;throw new w(405,I)}let a;o?a=n:a=this._injector.get(Go).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let u=_b(a)?void 0:this._injector.get(zt),c=i||a.selector,l=a.create(Je.NULL,[],c,u),d=l.location.nativeElement,f=l.injector.get(cc,null);return f?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),oo(this.components,l),f?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new w(101,!1);let i=B(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,B(i)}}detectChangesInAttachedViews(n){let i=0,o=this.afterRenderEffectManager;for(;;){if(i===qh)throw new w(103,!1);if(n){let s=i===0;this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:u}of this._views)Tb(a,s,u)}if(i++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Du(s))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Du(s))))break}}attachView(n){let i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){let i=n;oo(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let i=this._injector.get(Xo,[]);[...this._bootstrapListeners,...i].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._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>oo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new w(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function oo(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function Tb(t,e,r){!e&&!Du(t)||Ab(t,r,e)}function Du(t){return Fu(t)}function Ab(t,e,r){let n;r?(n=0,t[S]|=1024):t[S]&64?n=0:n=1,Zh(t,e,n)}var wu=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},es=(()=>{let e=class e{compileModuleSync(n){return new _o(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let i=this.compileModuleSync(n),o=wf(n),s=vh(o.declarations).reduce((a,u)=>{let c=$t(u);return c&&a.push(new Jn(c)),a},[]);return new wu(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),xb=new b("");function Nb(t,e,r){let n=new _o(r);return Promise.resolve(n)}function Qd(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var Rb=(()=>{let e=class e{constructor(){this.zone=p(G),this.applicationRef=p(En)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Ob(t){return[{provide:G,useFactory:t},{provide:Zn,multi:!0,useFactory:()=>{let e=p(Rb,{optional:!0});return()=>e.initialize()}},{provide:Zn,multi:!0,useFactory:()=>{let e=p(kb);return()=>{e.initialize()}}},{provide:ch,useFactory:Fb}]}function Fb(){let t=p(G),e=p(lt);return r=>t.runOutsideAngular(()=>e.handleError(r))}function Pb(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var kb=(()=>{let e=class e{constructor(){this.subscription=new ne,this.initialized=!1,this.zone=p(G),this.pendingTasks=p(In)}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(()=>{G.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{G.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Lb(){return typeof $localize<"u"&&$localize.locale||To}var fc=new b("",{providedIn:"root",factory:()=>p(fc,L.Optional|L.SkipSelf)||Lb()});var dp=new b(""),fp=(()=>{let e=class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){let o=Qw(i?.ngZone,Pb({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{let s=kC(n.moduleType,this.injector,Ob(()=>o)),a=s.injector.get(lt,null);return o.runOutsideAngular(()=>{let u=o.onError.subscribe({next:c=>{a.handleError(c)}});s.onDestroy(()=>{oo(this._modules,s),u.unsubscribe()})}),Sb(a,o,()=>{let u=s.injector.get(cp);return u.runInitializers(),u.donePromise.then(()=>{let c=s.injector.get(fc,To);return lb(c||To),this._moduleDoBootstrap(s),s})})})}bootstrapModule(n,i=[]){let o=lp({},i);return Nb(this.injector,o,n).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(n){let i=n.injector.get(En);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>i.bootstrap(o));else if(n.instance.ngDoBootstrap)n.instance.ngDoBootstrap(i);else throw new w(-403,!1);this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new w(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());let n=this._injector.get(dp,null);n&&(n.forEach(i=>i()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(i){return new(i||e)(C(Je))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),Mr=null,hp=new b("");function Vb(t){if(Mr&&!Mr.get(hp,!1))throw new w(400,!1);Mb(),Mr=t;let e=t.get(fp);return Ub(t),e}function hc(t,e,r=[]){let n=`Platform: ${e}`,i=new b(n);return(o=[])=>{let s=pp();if(!s||s.injector.get(hp,!1)){let a=[...r,...o,{provide:i,useValue:!0}];t?t(a):Vb(jb(a,n))}return Bb(i)}}function jb(t=[],e){return Je.create({name:e,providers:[{provide:ko,useValue:"platform"},{provide:dp,useValue:new Set([()=>Mr=null])},...t]})}function Bb(t){let e=pp();if(!e)throw new w(401,!1);return e}function pp(){return Mr?.get(fp)??null}function Ub(t){t.get(Gu,null)?.forEach(r=>r())}var Kt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=$b;let t=e;return t})();function $b(t){return Hb(Te(),H(),(t&16)===16)}function Hb(t,e,r){if(Vo(t)&&!r){let n=Gt(t.index,e);return new Dn(n,n)}else if(t.type&47){let n=e[ut];return new Dn(n,e)}return null}var Cu=class{constructor(){}supports(e){return tp(e)}create(e){return new bu(e)}},zb=(t,e)=>e,bu=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||zb}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,n=this._removalsHead,i=0,o=null;for(;r||n;){let s=!n||r&&r.currentIndex{s=this._trackByFn(i,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,i),n=!0):(n&&(r=this._verifyReinsertion(r,a,s,i)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,i++}),this.length=i;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,n,i){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,o,i)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,i),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,o,i)):e=this._addAfter(new Iu(r,n),o,i)),e}_verifyReinsertion(e,r,n,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,r,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let i=e._prevRemoved,o=e._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,r,n),this._addToMoves(e,n),e}_moveAfter(e,r,n){return this._unlink(e),this._insertAfter(e,r,n),this._addToMoves(e,n),e}_addAfter(e,r,n){return this._insertAfter(e,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,n){let i=r===null?this._itHead:r._next;return e._next=i,e._prev=r,i===null?this._itTail=e:i._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new Ao),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,n=e._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Ao),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Iu=class{constructor(e,r){this.item=e,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},Eu=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let r=e._prevDup,n=e._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},Ao=class{constructor(){this.map=new Map}put(e){let r=e.trackById,n=this.map.get(r);n||(n=new Eu,this.map.set(r,n)),n.add(e)}get(e,r){let n=e,i=this.map.get(n);return i?i.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Kd(t,e,r){let n=t.previousIndex;if(n===null)return n;let i=0;return r&&n{let e=class e{constructor(n){this.factories=n}static create(n,i){if(i!=null){let o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Jd()),deps:[[e,new _u,new Fo]]}}find(n){let i=this.factories.find(o=>o.supports(n));if(i!=null)return i;throw new w(901,!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:Jd});let t=e;return t})();var gp=hc(null,"core",[]),mp=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(i){return new(i||e)(C(En))},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({});let t=e;return t})();function sr(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function gc(t){let e=B(null);try{return t()}finally{B(e)}}function vp(t){let e=$t(t);if(!e)return null;let r=new Jn(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var bp=null;function gt(){return bp}function Ip(t){bp??=t}var ts=class{};var ye=new b(""),Ic=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>p(Gb),providedIn:"platform"});let t=e;return t})(),Ep=new b(""),Gb=(()=>{let e=class e extends Ic{constructor(){super(),this._doc=p(ye),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return gt().getBaseHref(this._doc)}onPopState(n){let i=gt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){let i=gt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",n,!1),()=>i.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,i,o){this._history.pushState(n,i,o)}replaceState(n,i,o){this._history.replaceState(n,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function Ec(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function yp(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function Nt(t){return t&&t[0]!=="?"?"?"+t:t}var Rt=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>p(Mc),providedIn:"root"});let t=e;return t})(),Mp=new b(""),Mc=(()=>{let e=class e extends Rt{constructor(n,i){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??p(ye).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 Ec(this._baseHref,n)}path(n=!1){let i=this._platformLocation.pathname+Nt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${i}${o}`:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Nt(s));this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Nt(s));this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(C(Ic),C(Mp,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),_p=(()=>{let e=class e extends Rt{constructor(n,i){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}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}path(n=!1){let i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(n){let i=Ec(this._baseHref,n);return i.length>0?"#"+i:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Nt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Nt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(C(Ic),C(Mp,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),ur=(()=>{let e=class e{constructor(n){this._subject=new K,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let i=this._locationStrategy.getBaseHref();this._basePath=Zb(yp(Dp(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({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,i=""){return this.path()==this.normalize(n+Nt(i))}normalize(n){return e.stripTrailingSlash(qb(this._basePath,Dp(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,i="",o=null){this._locationStrategy.pushState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Nt(i)),o)}replaceState(n,i="",o=null){this._locationStrategy.replaceState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Nt(i)),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(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",i){this._urlChangeListeners.forEach(o=>o(n,i))}subscribe(n,i,o){return this._subject.subscribe({next:n,error:i,complete:o})}};e.normalizeQueryParams=Nt,e.joinWithSlash=Ec,e.stripTrailingSlash=yp,e.\u0275fac=function(i){return new(i||e)(C(Rt))},e.\u0275prov=D({token:e,factory:()=>Wb(),providedIn:"root"});let t=e;return t})();function Wb(){return new ur(C(Rt))}function qb(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function Dp(t){return t.replace(/\/index.html$/,"")}function Zb(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}function ns(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[i,o]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var mc=class{constructor(e,r,n,i){this.$implicit=e,this.ngForOf=r,this.index=n,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},mt=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,i,o){this._viewContainer=n,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let i=this._viewContainer;n.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new mc(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(s===null?void 0:s);else if(s!==null){let u=i.get(s);i.move(u,a),wp(u,o)}});for(let o=0,s=i.length;o{let s=i.get(o.currentIndex);wp(s,o)})}static ngTemplateContextGuard(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(m(Wt),m(wn),m(pc))},e.\u0275dir=re({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function wp(t,e){t.context.$implicit=e.item}var je=(()=>{let e=class e{constructor(n,i){this._viewContainer=n,this._context=new vc,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Cp("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Cp("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(m(Wt),m(wn))},e.\u0275dir=re({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),vc=class{constructor(){this.$implicit=null,this.ngIf=null}};function Cp(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${be(e)}'.`)}function Yb(t,e){return new w(2100,!1)}var yc=class{createSubscription(e,r){return gc(()=>e.subscribe({next:r,error:n=>{throw n}}))}dispose(e){gc(()=>e.unsubscribe())}},Dc=class{createSubscription(e,r){return e.then(r,n=>{throw n})}dispose(e){}},Qb=new Dc,Kb=new yc,Jt=(()=>{let e=class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,i=>this._updateLatestValue(n,i))}_selectStrategy(n){if(Qt(n))return Qb;if(dc(n))return Kb;throw Yb(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,i){n===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(i){return new(i||e)(m(Kt,16))},e.\u0275pipe=mf({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var cr=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({});let t=e;return t})(),_c="browser",Jb="server";function Xb(t){return t===_c}function Sc(t){return t===Jb}var Sp=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>Xb(p(ft))?new wc(p(ye),window):new Cc});let t=e;return t})(),wc=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let r=e0(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let r=e.getBoundingClientRect(),n=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],i-o[1])}};function e0(t,e){let r=t.getElementById(e)||t.getElementsByName(e)[0];if(r)return r;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=n.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}i=n.nextNode()}}return null}var Cc=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},ar=class{};var Gr=class{},is=class{},Mn=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` -`).forEach(r=>{let n=r.indexOf(":");if(n>0){let i=r.slice(0,n),o=i.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,r);let i=(e.op==="a"?this.headers.get(r):void 0)||[];i.push(...n),this.headers.set(r,i);break;case"d":let o=e.value;if(!o)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(e,r){let n=(Array.isArray(r)?r:[r]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var Ac=class{encodeKey(e){return Tp(e)}encodeValue(e){return Tp(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function r0(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],u=r.get(s)||[];u.push(a),r.set(s,u)}),r}var i0=/%(\d[a-f0-9])/gi,o0={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Tp(t){return encodeURIComponent(t).replace(i0,(e,r)=>o0[r]??e)}function rs(t){return`${t}`}var Xt=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Ac,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=r0(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let n=e.fromObject[r],i=Array.isArray(n)?n.map(rs):[rs(n)];this.map.set(r,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(n=>{let i=e[n];Array.isArray(i)?i.forEach(o=>{r.push({param:n,value:o,op:"a"})}):r.push({param:n,value:i,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new t({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(rs(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],i=n.indexOf(rs(e.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var xc=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function s0(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Ap(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function xp(t){return typeof Blob<"u"&&t instanceof Blob}function Np(t){return typeof FormData<"u"&&t instanceof FormData}function a0(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var zr=class t{constructor(e,r,n,i){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(s0(this.method)||i?(this.body=n!==void 0?n:null,o=i):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new Mn,this.context??=new xc,!this.params)this.params=new Xt,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),u=a===-1?"?":ad.set(f,e.setHeaders[f]),u)),e.setParams&&(c=Object.keys(e.setParams).reduce((d,f)=>d.set(f,e.setParams[f]),c)),new t(r,n,o,{params:c,headers:u,context:l,reportProgress:a,responseType:i,withCredentials:s})}},lr=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(lr||{}),Wr=class{constructor(e,r=as.Ok,n="OK"){this.headers=e.headers||new Mn,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Nc=class t extends Wr{constructor(e={}){super(e),this.type=lr.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},os=class t extends Wr{constructor(e={}){super(e),this.type=lr.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},ss=class extends Wr{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},as=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(as||{});function Tc(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Rc=(()=>{let e=class e{constructor(n){this.handler=n}request(n,i,o={}){let s;if(n instanceof zr)s=n;else{let c;o.headers instanceof Mn?c=o.headers:c=new Mn(o.headers);let l;o.params&&(o.params instanceof Xt?l=o.params:l=new Xt({fromObject:o.params})),s=new zr(n,i,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=E(s).pipe(bt(c=>this.handler.handle(c)));if(n instanceof zr||o.observe==="events")return a;let u=a.pipe(pe(c=>c instanceof os));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return u.pipe(A(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return u.pipe(A(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return u.pipe(A(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return u.pipe(A(c=>c.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,i={}){return this.request("DELETE",n,i)}get(n,i={}){return this.request("GET",n,i)}head(n,i={}){return this.request("HEAD",n,i)}jsonp(n,i){return this.request("JSONP",n,{params:new Xt().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,i={}){return this.request("OPTIONS",n,i)}patch(n,i,o={}){return this.request("PATCH",n,Tc(o,i))}post(n,i,o={}){return this.request("POST",n,Tc(o,i))}put(n,i,o={}){return this.request("PUT",n,Tc(o,i))}};e.\u0275fac=function(i){return new(i||e)(C(Gr))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function Pp(t,e){return e(t)}function u0(t,e){return(r,n)=>e.intercept(r,{handle:i=>t(i,n)})}function c0(t,e,r){return(n,i)=>Ye(r,()=>e(n,o=>t(o,i)))}var Oc=new b(""),Fc=new b(""),l0=new b(""),d0=new b("");function f0(){let t=null;return(e,r)=>{t===null&&(t=(p(Oc,{optional:!0})??[]).reduceRight(u0,Pp));let n=p(In),i=n.add();return t(e,r).pipe(jt(()=>n.remove(i)))}}var Rp=(()=>{let e=class e extends Gr{constructor(n,i){super(),this.backend=n,this.injector=i,this.chain=null,this.pendingTasks=p(In);let o=p(d0,{optional:!0});this.backend=o??n}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(Fc),...this.injector.get(l0,[])]));this.chain=o.reduceRight((s,a)=>c0(s,a,this.injector),Pp)}let i=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(jt(()=>this.pendingTasks.remove(i)))}};e.\u0275fac=function(i){return new(i||e)(C(is),C(Ie))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var h0=/^\)\]\}',?\n/;function p0(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var Op=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new w(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?q(i.\u0275loadImpl()):E(null)).pipe(ce(()=>new U(s=>{let a=i.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((T,M)=>a.setRequestHeader(T,M.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let T=n.detectContentTypeHeader();T!==null&&a.setRequestHeader("Content-Type",T)}if(n.responseType){let T=n.responseType.toLowerCase();a.responseType=T!=="json"?T:"text"}let u=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let T=a.statusText||"OK",M=new Mn(a.getAllResponseHeaders()),ve=p0(a)||n.url;return c=new Nc({headers:M,status:a.status,statusText:T,url:ve}),c},d=()=>{let{headers:T,status:M,statusText:ve,url:he}=l(),Q=null;M!==as.NoContent&&(Q=typeof a.response>"u"?a.responseText:a.response),M===0&&(M=Q?as.Ok:0);let rt=M>=200&&M<300;if(n.responseType==="json"&&typeof Q=="string"){let Ne=Q;Q=Q.replace(h0,"");try{Q=Q!==""?JSON.parse(Q):null}catch(Pt){Q=Ne,rt&&(rt=!1,Q={error:Pt,text:Q})}}rt?(s.next(new os({body:Q,headers:T,status:M,statusText:ve,url:he||void 0})),s.complete()):s.error(new ss({error:Q,headers:T,status:M,statusText:ve,url:he||void 0}))},f=T=>{let{url:M}=l(),ve=new ss({error:T,status:a.status||0,statusText:a.statusText||"Unknown Error",url:M||void 0});s.error(ve)},h=!1,I=T=>{h||(s.next(l()),h=!0);let M={type:lr.DownloadProgress,loaded:T.loaded};T.lengthComputable&&(M.total=T.total),n.responseType==="text"&&a.responseText&&(M.partialText=a.responseText),s.next(M)},V=T=>{let M={type:lr.UploadProgress,loaded:T.loaded};T.lengthComputable&&(M.total=T.total),s.next(M)};return a.addEventListener("load",d),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),n.reportProgress&&(a.addEventListener("progress",I),u!==null&&a.upload&&a.upload.addEventListener("progress",V)),a.send(u),s.next({type:lr.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",d),a.removeEventListener("timeout",f),n.reportProgress&&(a.removeEventListener("progress",I),u!==null&&a.upload&&a.upload.removeEventListener("progress",V)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(C(ar))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),kp=new b(""),g0="XSRF-TOKEN",m0=new b("",{providedIn:"root",factory:()=>g0}),v0="X-XSRF-TOKEN",y0=new b("",{providedIn:"root",factory:()=>v0}),us=class{},D0=(()=>{let e=class e{constructor(n,i,o){this.doc=n,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=ns(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(C(ye),C(ft),C(m0))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function w0(t,e){let r=t.url.toLowerCase();if(!p(kp)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let n=p(us).getToken(),i=p(y0);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),e(t)}var Lp=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Lp||{});function C0(t,e){return{\u0275kind:t,\u0275providers:e}}function b0(...t){let e=[Rc,Op,Rp,{provide:Gr,useExisting:Rp},{provide:is,useExisting:Op},{provide:Fc,useValue:w0,multi:!0},{provide:kp,useValue:!0},{provide:us,useClass:D0}];for(let r of t)e.push(...r.\u0275providers);return Po(e)}var Fp=new b("");function I0(){return C0(Lp.LegacyInterceptors,[{provide:Fp,useFactory:f0},{provide:Fc,useExisting:Fp,multi:!0}])}var Vp=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({providers:[b0(I0())]});let t=e;return t})();var Lc=class extends ts{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Vc=class t extends Lc{static makeCurrent(){Ip(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=M0();return r==null?null:_0(r)}resetBaseElement(){qr=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return ns(document.cookie,e)}},qr=null;function M0(){return qr=qr||document.querySelector("base"),qr?qr.getAttribute("href"):null}function _0(t){return new URL(t,document.baseURI).pathname}var jc=class{addToWindow(e){Ce.getAngularTestability=(n,i=!0)=>{let o=e.findTestabilityInTree(n,i);if(o==null)throw new w(5103,!1);return o},Ce.getAllAngularTestabilities=()=>e.getAllTestabilities(),Ce.getAllAngularRootElements=()=>e.getAllRootElements();let r=n=>{let i=Ce.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&n()};i.forEach(a=>{a.whenStable(s)})};Ce.frameworkStabilizers||(Ce.frameworkStabilizers=[]),Ce.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,n){if(r==null)return null;let i=e.getTestability(r);return i??(n?gt().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},S0=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Bc=new b(""),$p=(()=>{let e=class e{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,o){return this._findPluginFor(i).addEventListener(n,i,o)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(s=>s.supports(n)),!i)throw new w(5101,!1);return this._eventNameToPlugin.set(n,i),i}};e.\u0275fac=function(i){return new(i||e)(C(Bc),C(G))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),cs=class{constructor(e){this._doc=e}},Pc="ng-app-id",Hp=(()=>{let e=class e{constructor(n,i,o,s={}){this.doc=n,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Sc(s),this.resetHostNodes()}addStyles(n){for(let i of n)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(n){for(let i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){let i=this.styleRef;i.get(n)?.elements?.forEach(o=>o.remove()),i.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Pc}="${this.appId}"]`);if(n?.length){let i=new Map;return n.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(n,i){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=i,s.usage}return o.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===n)return o.delete(i),s.removeAttribute(Pc),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Pc,this.appId),n.appendChild(a),a}}addStyleToHost(n,i){let o=this.getStyleElement(n,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(C(ye),C(jo),C(Wu,8),C(ft))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),kc={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/MathML/"},$c=/%COMP%/g,zp="%COMP%",T0=`_nghost-${zp}`,A0=`_ngcontent-${zp}`,x0=!0,N0=new b("",{providedIn:"root",factory:()=>x0});function R0(t){return A0.replace($c,t)}function O0(t){return T0.replace($c,t)}function Gp(t,e){return e.map(r=>r.replace($c,t))}var jp=(()=>{let e=class e{constructor(n,i,o,s,a,u,c,l=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=u,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Sc(u),this.defaultRenderer=new Zr(n,a,c,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===at.ShadowDom&&(i=z(g({},i),{encapsulation:at.Emulated}));let o=this.getOrCreateRenderer(n,i);return o instanceof ls?o.applyToHost(n):o instanceof Yr&&o.applyStyles(),o}getOrCreateRenderer(n,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,u=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(i.encapsulation){case at.Emulated:s=new ls(c,l,i,this.appId,d,a,u,f);break;case at.ShadowDom:return new Uc(c,l,n,i,a,u,this.nonce,f);default:s=new Yr(c,l,i,d,a,u,f);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(C($p),C(Hp),C(jo),C(N0),C(ye),C(ft),C(G),C(Wu))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Zr=class{constructor(e,r,n,i){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(kc[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(Bp(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(Bp(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new w(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,i){if(i){r=i+":"+r;let o=kc[i];o?e.setAttributeNS(o,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let i=kc[n];i?e.removeAttributeNS(i,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,i){i&(Mt.DashCase|Mt.Important)?e.style.setProperty(r,n,i&Mt.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&Mt.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=gt().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function Bp(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Uc=class extends Zr{constructor(e,r,n,i,o,s,a,u){super(e,o,s,u),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Gp(i.id,i.styles);for(let l of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Yr=class extends Zr{constructor(e,r,n,i,o,s,a,u){super(e,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=u?Gp(u,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},ls=class extends Yr{constructor(e,r,n,i,o,s,a,u){let c=i+"-"+n.id;super(e,r,n,o,s,a,u,c),this.contentAttr=R0(c),this.hostAttr=O0(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},F0=(()=>{let e=class e extends cs{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,o){return n.addEventListener(i,o,!1),()=>this.removeEventListener(n,i,o)}removeEventListener(n,i,o){return n.removeEventListener(i,o)}};e.\u0275fac=function(i){return new(i||e)(C(ye))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Up=["alt","control","meta","shift"],P0={"\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"},k0={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},L0=(()=>{let e=class e extends cs{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,i,o){let s=e.parseEventName(i),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>gt().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let i=n.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(i.pop()),a="",u=i.indexOf("code");if(u>-1&&(i.splice(u,1),a="code."),Up.forEach(l=>{let d=i.indexOf(l);d>-1&&(i.splice(d,1),a+=l+".")}),a+=s,i.length!=0||s.length===0)return null;let c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(n,i){let o=P0[n.key]||n.key,s="";return i.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Up.forEach(a=>{if(a!==o){let u=k0[a];u(n)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(n,i,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>i(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(i){return new(i||e)(C(ye))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function V0(){Vc.makeCurrent()}function j0(){return new lt}function B0(){return dh(document),document}var U0=[{provide:ft,useValue:_c},{provide:Gu,useValue:V0,multi:!0},{provide:ye,useFactory:B0,deps:[]}],Wp=hc(gp,"browser",U0),$0=new b(""),H0=[{provide:Hr,useClass:jc,deps:[]},{provide:cc,useClass:Qo,deps:[G,Ko,Hr]},{provide:Qo,useClass:Qo,deps:[G,Ko,Hr]}],z0=[{provide:ko,useValue:"root"},{provide:lt,useFactory:j0,deps:[]},{provide:Bc,useClass:F0,multi:!0,deps:[ye,G,ft]},{provide:Bc,useClass:L0,multi:!0,deps:[ye]},jp,Hp,$p,{provide:Or,useExisting:jp},{provide:ar,useClass:S0,deps:[]},[]],qp=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:jo,useValue:n.appId}]}}};e.\u0275fac=function(i){return new(i||e)(C($0,12))},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({providers:[...z0,...H0],imports:[cr,mp]});let t=e;return t})();var Zp=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(i){return new(i||e)(C(ye))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var N="primary",li=Symbol("RouteTitle"),qc=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function gr(t){return new qc(t)}function G0(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[o]===i)}else return t===e}function og(t){return t.length>0?t[t.length-1]:null}function rn(t){return ua(t)?t:Qt(t)?q(Promise.resolve(t)):E(t)}var q0={exact:ag,subset:ug},sg={exact:Z0,subset:Y0,ignored:()=>!0};function Qp(t,e,r){return q0[r.paths](t.root,e.root,r.matrixParams)&&sg[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function Z0(t,e){return vt(t,e)}function ag(t,e,r){if(!Sn(t.segments,e.segments)||!hs(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!ag(t.children[n],e.children[n],r))return!1;return!0}function Y0(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>ig(t[r],e[r]))}function ug(t,e,r){return cg(t,e,e.segments,r)}function cg(t,e,r,n){if(t.segments.length>r.length){let i=t.segments.slice(0,r.length);return!(!Sn(i,r)||e.hasChildren()||!hs(i,r,n))}else if(t.segments.length===r.length){if(!Sn(t.segments,r)||!hs(t.segments,r,n))return!1;for(let i in e.children)if(!t.children[i]||!ug(t.children[i],e.children[i],n))return!1;return!0}else{let i=r.slice(0,t.segments.length),o=r.slice(t.segments.length);return!Sn(t.segments,i)||!hs(t.segments,i,n)||!t.children[N]?!1:cg(t.children[N],e,o,n)}}function hs(t,e,r){return e.every((n,i)=>sg[r](t[i].parameters,n.parameters))}var en=class{constructor(e=new $([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=gr(this.queryParams),this._queryParamMap}toString(){return J0.serialize(this)}},$=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ps(this)}},_n=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=gr(this.parameters),this._parameterMap}toString(){return dg(this)}};function Q0(t,e){return Sn(t,e)&&t.every((r,n)=>vt(r.parameters,e[n].parameters))}function Sn(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function K0(t,e){let r=[];return Object.entries(t.children).forEach(([n,i])=>{n===N&&(r=r.concat(e(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==N&&(r=r.concat(e(i,n)))}),r}var di=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>new ni,providedIn:"root"});let t=e;return t})(),ni=class{parse(e){let r=new Qc(e);return new en(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${Qr(e.root,!0)}`,n=tI(e.queryParams),i=typeof e.fragment=="string"?`#${X0(e.fragment)}`:"";return`${r}${n}${i}`}},J0=new ni;function ps(t){return t.segments.map(e=>dg(e)).join("/")}function Qr(t,e){if(!t.hasChildren())return ps(t);if(e){let r=t.children[N]?Qr(t.children[N],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==N&&n.push(`${i}:${Qr(o,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=K0(t,(n,i)=>i===N?[Qr(t.children[N],!1)]:[`${i}:${Qr(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[N]!=null?`${ps(t)}/${r[0]}`:`${ps(t)}/(${r.join("//")})`}}function lg(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ds(t){return lg(t).replace(/%3B/gi,";")}function X0(t){return encodeURI(t)}function Yc(t){return lg(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function gs(t){return decodeURIComponent(t)}function Kp(t){return gs(t.replace(/\+/g,"%20"))}function dg(t){return`${Yc(t.path)}${eI(t.parameters)}`}function eI(t){return Object.entries(t).map(([e,r])=>`;${Yc(e)}=${Yc(r)}`).join("")}function tI(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(i=>`${ds(r)}=${ds(i)}`).join("&"):`${ds(r)}=${ds(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var nI=/^[^\/()?;#]+/;function Hc(t){let e=t.match(nI);return e?e[0]:""}var rI=/^[^\/()?;=#]+/;function iI(t){let e=t.match(rI);return e?e[0]:""}var oI=/^[^=?&#]+/;function sI(t){let e=t.match(oI);return e?e[0]:""}var aI=/^[^&#]+/;function uI(t){let e=t.match(aI);return e?e[0]:""}var Qc=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new $([],{}):new $([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[N]=new $(e,r)),n}parseSegment(){let e=Hc(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(e),new _n(gs(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=iI(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let i=Hc(this.remaining);i&&(n=i,this.capture(n))}e[gs(r)]=gs(n)}parseQueryParam(e){let r=sI(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=uI(this.remaining);s&&(n=s,this.capture(n))}let i=Kp(r),o=Kp(n);if(e.hasOwnProperty(i)){let s=e[i];Array.isArray(s)||(s=[s],e[i]=s),s.push(o)}else e[i]=o}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Hc(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new w(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=N);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[N]:new $([],s),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new w(4011,!1)}};function fg(t){return t.segments.length>0?new $([],{[N]:t}):t}function hg(t){let e={};for(let[n,i]of Object.entries(t.children)){let o=hg(i);if(n===N&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[n]=o)}let r=new $(t.segments,e);return cI(r)}function cI(t){if(t.numberOfChildren===1&&t.children[N]){let e=t.children[N];return new $(t.segments.concat(e.segments),e.children)}return t}function mr(t){return t instanceof en}function lI(t,e,r=null,n=null){let i=pg(t);return gg(i,e,r,n)}function pg(t){let e;function r(o){let s={};for(let u of o.children){let c=r(u);s[u.outlet]=c}let a=new $(o.url,s);return o===t&&(e=a),a}let n=r(t.root),i=fg(n);return e??i}function gg(t,e,r,n){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return zc(i,i,i,r,n);let o=dI(e);if(o.toRoot())return zc(i,i,new $([],{}),r,n);let s=fI(o,i,t),a=s.processChildren?Xr(s.segmentGroup,s.index,o.commands):vg(s.segmentGroup,s.index,o.commands);return zc(i,s.segmentGroup,a,r,n)}function ms(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ri(t){return typeof t=="object"&&t!=null&&t.outlets}function zc(t,e,r,n,i){let o={};n&&Object.entries(n).forEach(([u,c])=>{o[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let s;t===e?s=r:s=mg(t,e,r);let a=fg(hg(s));return new en(a,o,i)}function mg(t,e,r){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===e?n[i]=r:n[i]=mg(o,e,r)}),new $(t.segments,n)}var vs=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&ms(n[0]))throw new w(4003,!1);let i=n.find(ri);if(i&&i!==og(n))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function dI(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new vs(!0,0,t);let e=0,r=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?r=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new vs(r,e,n)}var hr=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function fI(t,e,r){if(t.isAbsolute)return new hr(e,!0,0);if(!r)return new hr(e,!1,NaN);if(r.parent===null)return new hr(r,!0,0);let n=ms(t.commands[0])?0:1,i=r.segments.length-1+n;return hI(r,i,t.numberOfDoubleDots)}function hI(t,e,r){let n=t,i=e,o=r;for(;o>i;){if(o-=i,n=n.parent,!n)throw new w(4005,!1);i=n.segments.length}return new hr(n,!1,i-o)}function pI(t){return ri(t[0])?t[0].outlets:{[N]:t}}function vg(t,e,r){if(t??=new $([],{}),t.segments.length===0&&t.hasChildren())return Xr(t,e,r);let n=gI(t,e,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndexo!==N)&&t.children[N]&&t.numberOfChildren===1&&t.children[N].segments.length===0){let o=Xr(t.children[N],e,r);return new $(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=vg(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new $(t.segments,i)}}function gI(t,e,r){let n=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return o;let s=t.segments[i],a=r[n];if(ri(a))break;let u=`${a}`,c=n0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!Xp(u,c,s))return o;n+=2}else{if(!Xp(u,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function Kc(t,e,r){let n=t.segments.slice(0,e),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=Kc(new $([],{}),0,n))}),e}function Jp(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function Xp(t,e,r){return t==r.path&&vt(e,r.parameters)}var ei="imperative",fe=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(fe||{}),Be=class{constructor(e,r){this.id=e,this.url=r}},vr=class extends Be{constructor(e,r,n="imperative",i=null){super(e,r),this.type=fe.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},tt=class extends Be{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=fe.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Pe=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Pe||{}),ys=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(ys||{}),tn=class extends Be{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=fe.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},nn=class extends Be{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=fe.NavigationSkipped}},ii=class extends Be{constructor(e,r,n,i){super(e,r),this.error=n,this.target=i,this.type=fe.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ds=class extends Be{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=fe.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Jc=class extends Be{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=fe.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Xc=class extends Be{constructor(e,r,n,i,o){super(e,r),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o,this.type=fe.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},el=class extends Be{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=fe.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},tl=class extends Be{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=fe.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},nl=class{constructor(e){this.route=e,this.type=fe.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},rl=class{constructor(e){this.route=e,this.type=fe.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},il=class{constructor(e){this.snapshot=e,this.type=fe.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ol=class{constructor(e){this.snapshot=e,this.type=fe.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},sl=class{constructor(e){this.snapshot=e,this.type=fe.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},al=class{constructor(e){this.snapshot=e,this.type=fe.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ws=class{constructor(e,r,n){this.routerEvent=e,this.position=r,this.anchor=n,this.type=fe.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},oi=class{},si=class{constructor(e){this.url=e}};var ul=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new fi,this.attachRef=null}},fi=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,i){let o=this.getOrCreateContext(n);o.outlet=i,this.contexts.set(n,o)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new ul,this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Cs=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=cl(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=cl(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=ll(e,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return ll(e,this._root).map(r=>r.value)}};function cl(t,e){if(t===e.value)return e;for(let r of e.children){let n=cl(t,r);if(n)return n}return null}function ll(t,e){if(t===e.value)return[e];for(let r of e.children){let n=ll(t,r);if(n.length)return n.unshift(e),n}return[]}var Fe=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function fr(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var bs=class extends Cs{constructor(e,r){super(e),this.snapshot=r,wl(this,e)}toString(){return this.snapshot.toString()}};function yg(t){let e=vI(t),r=new ue([new _n("",{})]),n=new ue({}),i=new ue({}),o=new ue({}),s=new ue(""),a=new nt(r,n,o,s,i,N,t,e.root);return a.snapshot=e.root,new bs(new Fe(a,[]),e)}function vI(t){let e={},r={},n={},i="",o=new ai([],e,n,i,r,N,t,null,{});return new Is("",new Fe(o,[]))}var nt=class{constructor(e,r,n,i,o,s,a,u){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(A(c=>c[li]))??E(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o}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(A(e=>gr(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(A(e=>gr(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Dl(t,e,r="emptyOnly"){let n,{routeConfig:i}=t;return e!==null&&(r==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:g(g({},e.params),t.params),data:g(g({},e.data),t.data),resolve:g(g(g(g({},t.data),e.data),i?.data),t._resolvedData)}:n={params:g({},t.params),data:g({},t.data),resolve:g(g({},t.data),t._resolvedData??{})},i&&wg(i)&&(n.resolve[li]=i.title),n}var ai=class{get title(){return this.data?.[li]}constructor(e,r,n,i,o,s,a,u,c){this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}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??=gr(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=gr(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},Is=class extends Cs{constructor(e,r){super(r),this.url=e,wl(this,r)}toString(){return Dg(this._root)}};function wl(t,e){e.value._routerState=t,e.children.forEach(r=>wl(t,r))}function Dg(t){let e=t.children.length>0?` { ${t.children.map(Dg).join(", ")} } `:"";return`${t.value}${e}`}function Gc(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,vt(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),vt(e.params,r.params)||t.paramsSubject.next(r.params),W0(e.url,r.url)||t.urlSubject.next(r.url),vt(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function dl(t,e){let r=vt(t.params,e.params)&&Q0(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||dl(t.parent,e.parent))}function wg(t){return typeof t.title=="string"||t.title===null}var Cl=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=N,this.activateEvents=new K,this.deactivateEvents=new K,this.attachEvents=new K,this.detachEvents=new K,this.parentContexts=p(fi),this.location=p(Wt),this.changeDetector=p(Kt),this.environmentInjector=p(Ie),this.inputBinder=p(Ts,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:o}=n.name;if(i)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 w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,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,i){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,c=new fl(n,u,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=re({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ke]});let t=e;return t})(),fl=class{constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===nt?this.route:e===fi?this.childContexts:this.parent.get(e,r)}},Ts=new b(""),eg=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:i}=n,o=Ir([i.queryParams,i.params,i.data]).pipe(ce(([s,a,u],c)=>(u=g(g(g({},s),a),u),c===0?E(u):Promise.resolve(u)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(n);return}let a=vp(i.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:u}of a.inputs)n.activatedComponentRef.setInput(u,s[u])});this.outletDataSubscriptions.set(n,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function yI(t,e,r){let n=ui(t,e._root,r?r._root:void 0);return new bs(n,e)}function ui(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let i=DI(t,e,r);return new Fe(n,i)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>ui(t,a)),s}}let n=wI(e.value),i=e.children.map(o=>ui(t,o));return new Fe(n,i)}}function DI(t,e,r){return e.children.map(n=>{for(let i of r.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return ui(t,n,i);return ui(t,n)})}function wI(t){return new nt(new ue(t.url),new ue(t.params),new ue(t.queryParams),new ue(t.fragment),new ue(t.data),t.outlet,t.component,t)}var Cg="ngNavigationCancelingError";function bg(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=mr(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=Ig(!1,Pe.Redirect);return i.url=r,i.navigationBehaviorOptions=n,i}function Ig(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[Cg]=!0,r.cancellationCode=e,r}function CI(t){return Eg(t)&&mr(t.url)}function Eg(t){return!!t&&t[Cg]}var bI=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ae({type:e,selectors:[["ng-component"]],standalone:!0,features:[ap],decls:1,vars:0,template:function(i,o){i&1&&ie(0,"router-outlet")},dependencies:[Cl],encapsulation:2});let t=e;return t})();function II(t,e){return t.providers&&!t._injector&&(t._injector=qo(t.providers,e,`Route: ${t.path}`)),t._injector??e}function bl(t){let e=t.children&&t.children.map(bl),r=e?z(g({},t),{children:e}):g({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==N&&(r.component=bI),r}function yt(t){return t.outlet||N}function EI(t,e){let r=t.filter(n=>yt(n)===e);return r.push(...t.filter(n=>yt(n)!==e)),r}function hi(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var MI=(t,e,r,n)=>A(i=>(new hl(e,i.targetRouterState,i.currentRouterState,r,n).activate(t),i)),hl=class{constructor(e,r,n,i,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),Gc(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let i=fr(r);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else o&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=fr(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=fr(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let i=fr(r);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new al(o.value.snapshot))}),e.children.length&&this.forwardEvent(new ol(e.value.snapshot))}activateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(Gc(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),Gc(a.route.value),this.activateChildRoutes(e,null,s.children)}else{let a=hi(i.snapshot);s.attachRef=null,s.route=i,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,n)}},Es=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},pr=class{constructor(e,r){this.component=e,this.route=r}};function _I(t,e,r){let n=t._root,i=e?e._root:null;return Kr(n,i,r,[n.value])}function SI(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Dr(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!nf(t)?t:e.get(t):n}function Kr(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=fr(e);return t.children.forEach(s=>{TI(s,o[s.value.outlet],r,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>ti(a,r.getContext(s),i)),i}function TI(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=AI(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Es(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Kr(t,e,a?a.children:null,n,i):Kr(t,e,r,n,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new pr(a.outlet.component,s))}else s&&ti(e,a,i),i.canActivateChecks.push(new Es(n)),o.component?Kr(t,null,a?a.children:null,n,i):Kr(t,null,r,n,i);return i}function AI(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!Sn(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Sn(t.url,e.url)||!vt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!dl(t,e)||!vt(t.queryParams,e.queryParams);case"paramsChange":default:return!dl(t,e)}}function ti(t,e,r){let n=fr(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?e?ti(s,e.children.getContext(o),r):ti(s,null,r):ti(s,e,r)}),i.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new pr(e.outlet.component,i)):r.canDeactivateChecks.push(new pr(null,i)):r.canDeactivateChecks.push(new pr(null,i))}function pi(t){return typeof t=="function"}function xI(t){return typeof t=="boolean"}function NI(t){return t&&pi(t.canLoad)}function RI(t){return t&&pi(t.canActivate)}function OI(t){return t&&pi(t.canActivateChild)}function FI(t){return t&&pi(t.canDeactivate)}function PI(t){return t&&pi(t.canMatch)}function Mg(t){return t instanceof Ct||t?.name==="EmptyError"}var fs=Symbol("INITIAL_VALUE");function yr(){return ce(t=>Ir(t.map(e=>e.pipe(It(1),ga(fs)))).pipe(A(e=>{for(let r of e)if(r!==!0){if(r===fs)return fs;if(r===!1||r instanceof en)return r}return!0}),pe(e=>e!==fs),It(1)))}function kI(t,e){return se(r=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?E(z(g({},r),{guardsResult:!0})):LI(s,n,i,t).pipe(se(a=>a&&xI(a)?VI(n,o,t,e):E(a)),A(a=>z(g({},r),{guardsResult:a})))})}function LI(t,e,r,n){return q(t).pipe(se(i=>HI(i.component,i.route,r,e,n)),it(i=>i!==!0,!0))}function VI(t,e,r,n){return q(e).pipe(bt(i=>jn(BI(i.route.parent,n),jI(i.route,n),$I(t,i.path,r),UI(t,i.route,r))),it(i=>i!==!0,!0))}function jI(t,e){return t!==null&&e&&e(new sl(t)),E(!0)}function BI(t,e){return t!==null&&e&&e(new il(t)),E(!0)}function UI(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return E(!0);let i=n.map(o=>qi(()=>{let s=hi(e)??r,a=Dr(o,s),u=RI(a)?a.canActivate(e,t):Ye(s,()=>a(e,t));return rn(u).pipe(it())}));return E(i).pipe(yr())}function $I(t,e,r){let n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>SI(s)).filter(s=>s!==null).map(s=>qi(()=>{let a=s.guards.map(u=>{let c=hi(s.node)??r,l=Dr(u,c),d=OI(l)?l.canActivateChild(n,t):Ye(c,()=>l(n,t));return rn(d).pipe(it())});return E(a).pipe(yr())}));return E(o).pipe(yr())}function HI(t,e,r,n,i){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return E(!0);let s=o.map(a=>{let u=hi(e)??i,c=Dr(a,u),l=FI(c)?c.canDeactivate(t,e,r,n):Ye(u,()=>c(t,e,r,n));return rn(l).pipe(it())});return E(s).pipe(yr())}function zI(t,e,r,n){let i=e.canLoad;if(i===void 0||i.length===0)return E(!0);let o=i.map(s=>{let a=Dr(s,t),u=NI(a)?a.canLoad(e,r):Ye(t,()=>a(e,r));return rn(u)});return E(o).pipe(yr(),_g(n))}function _g(t){return ra(ee(e=>{if(mr(e))throw bg(t,e)}),A(e=>e===!0))}function GI(t,e,r,n){let i=e.canMatch;if(!i||i.length===0)return E(!0);let o=i.map(s=>{let a=Dr(s,t),u=PI(a)?a.canMatch(e,r):Ye(t,()=>a(e,r));return rn(u)});return E(o).pipe(yr(),_g(n))}var ci=class{constructor(e){this.segmentGroup=e||null}},Ms=class extends Error{constructor(e){super(),this.urlTree=e}};function dr(t){return Vn(new ci(t))}function WI(t){return Vn(new w(4e3,!1))}function qI(t){return Vn(Ig(!1,Pe.GuardRejected))}var pl=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return E(n);if(i.numberOfChildren>1||!i.children[N])return WI(e.redirectTo);i=i.children[N]}}applyRedirectCommands(e,r,n){let i=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r.startsWith("/"))throw new Ms(i);return i}applyRedirectCreateUrlTree(e,r,n,i){let o=this.createSegmentGroup(e,r.root,n,i);return new en(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([i,o])=>{if(typeof o=="string"&&o.startsWith(":")){let a=o.substring(1);n[i]=r[a]}else n[i]=o}),n}createSegmentGroup(e,r,n,i){let o=this.createSegments(e,r.segments,n,i),s={};return Object.entries(r.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(e,u,n,i)}),new $(o,s)}createSegments(e,r,n,i){return r.map(o=>o.path.startsWith(":")?this.findPosParam(e,o,i):this.findOrReturn(o,n))}findPosParam(e,r,n){let i=n[r.path.substring(1)];if(!i)throw new w(4001,!1);return i}findOrReturn(e,r){let n=0;for(let i of r){if(i.path===e.path)return r.splice(n),i;n++}return e}},gl={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ZI(t,e,r,n,i){let o=Il(t,e,r);return o.matched?(n=II(e,n),GI(n,e,r,i).pipe(A(s=>s===!0?o:g({},gl)))):E(o)}function Il(t,e,r){if(e.path==="**")return YI(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?g({},gl):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(e.matcher||G0)(r,t,e);if(!i)return g({},gl);let o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=i.consumed.length>0?g(g({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function YI(t){return{matched:!0,parameters:t.length>0?og(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function tg(t,e,r,n){return r.length>0&&JI(t,r,n)?{segmentGroup:new $(e,KI(n,new $(r,t.children))),slicedSegments:[]}:r.length===0&&XI(t,r,n)?{segmentGroup:new $(t.segments,QI(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new $(t.segments,t.children),slicedSegments:r}}function QI(t,e,r,n){let i={};for(let o of r)if(As(t,e,o)&&!n[yt(o)]){let s=new $([],{});i[yt(o)]=s}return g(g({},n),i)}function KI(t,e){let r={};r[N]=e;for(let n of t)if(n.path===""&&yt(n)!==N){let i=new $([],{});r[yt(n)]=i}return r}function JI(t,e,r){return r.some(n=>As(t,e,n)&&yt(n)!==N)}function XI(t,e,r){return r.some(n=>As(t,e,n))}function As(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function eE(t,e,r,n){return yt(t)!==n&&(n===N||!As(e,r,t))?!1:Il(e,t,r).matched}function tE(t,e,r){return e.length===0&&!t.children[r]}var ml=class{};function nE(t,e,r,n,i,o,s="emptyOnly"){return new vl(t,e,r,n,i,s,o).recognize()}var rE=31,vl=class{constructor(e,r,n,i,o,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new pl(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new w(4002,`'${e.segmentGroup}'`)}recognize(){let e=tg(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(A(r=>{let n=new ai([],Object.freeze({}),Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,{},N,this.rootComponentType,null,{}),i=new Fe(n,r),o=new Is("",i),s=lI(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,N).pipe(ke(n=>{if(n instanceof Ms)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof ci?this.noMatchError(n):n}))}inheritParamsAndData(e,r){let n=e.value,i=Dl(n,r,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(o=>this.inheritParamsAndData(o,n))}processSegmentGroup(e,r,n,i){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n):this.processSegment(e,r,n,n.segments,i,!0).pipe(A(o=>o instanceof Fe?[o]:[]))}processChildren(e,r,n){let i=[];for(let o of Object.keys(n.children))o==="primary"?i.unshift(o):i.push(o);return q(i).pipe(bt(o=>{let s=n.children[o],a=EI(r,o);return this.processSegmentGroup(e,a,s,o)}),pa((o,s)=>(o.push(...s),o)),Vt(null),ha(),se(o=>{if(o===null)return dr(n);let s=Sg(o);return iE(s),E(s)}))}processSegment(e,r,n,i,o,s){return q(r).pipe(bt(a=>this.processSegmentAgainstRoute(a._injector??e,r,a,n,i,o,s).pipe(ke(u=>{if(u instanceof ci)return E(null);throw u}))),it(a=>!!a),ke(a=>{if(Mg(a))return tE(n,i,o)?E(new ml):dr(n);throw a}))}processSegmentAgainstRoute(e,r,n,i,o,s,a){return eE(n,i,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,n,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,r,n,o,s):dr(i):dr(i)}expandSegmentAgainstRouteUsingRedirect(e,r,n,i,o,s){let{matched:a,consumedSegments:u,positionalParamSegments:c,remainingSegments:l}=Il(r,i,o);if(!a)return dr(r);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>rE&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(u,i.redirectTo,c);return this.applyRedirects.lineralizeSegments(i,d).pipe(se(f=>this.processSegment(e,n,r,f.concat(l),s,!1)))}matchSegmentAgainstRoute(e,r,n,i,o){let s=ZI(r,n,i,e,this.urlSerializer);return n.path==="**"&&(r.children={}),s.pipe(ce(a=>a.matched?(e=n._injector??e,this.getChildConfig(e,n,i).pipe(ce(({routes:u})=>{let c=n._loadedInjector??e,{consumedSegments:l,remainingSegments:d,parameters:f}=a,h=new ai(l,f,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,sE(n),yt(n),n.component??n._loadedComponent??null,n,aE(n)),{segmentGroup:I,slicedSegments:V}=tg(r,l,d,u);if(V.length===0&&I.hasChildren())return this.processChildren(c,u,I).pipe(A(M=>M===null?null:new Fe(h,M)));if(u.length===0&&V.length===0)return E(new Fe(h,[]));let T=yt(n)===o;return this.processSegment(c,u,I,V,T?N:o,!0).pipe(A(M=>new Fe(h,M instanceof Fe?[M]:[])))}))):dr(r)))}getChildConfig(e,r,n){return r.children?E({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?E({routes:r._loadedRoutes,injector:r._loadedInjector}):zI(e,r,n,this.urlSerializer).pipe(se(i=>i?this.configLoader.loadChildren(e,r).pipe(ee(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):qI(r))):E({routes:[],injector:e})}};function iE(t){t.sort((e,r)=>e.value.outlet===N?-1:r.value.outlet===N?1:e.value.outlet.localeCompare(r.value.outlet))}function oE(t){let e=t.value.routeConfig;return e&&e.path===""}function Sg(t){let e=[],r=new Set;for(let n of t){if(!oE(n)){e.push(n);continue}let i=e.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),r.add(i)):e.push(n)}for(let n of r){let i=Sg(n.children);e.push(new Fe(n.value,i))}return e.filter(n=>!r.has(n))}function sE(t){return t.data||{}}function aE(t){return t.resolve||{}}function uE(t,e,r,n,i,o){return se(s=>nE(t,e,r,n,s.extractedUrl,i,o).pipe(A(({state:a,tree:u})=>z(g({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function cE(t,e){return se(r=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return E(r);let o=new Set(i.map(u=>u.route)),s=new Set;for(let u of o)if(!s.has(u))for(let c of Tg(u))s.add(c);let a=0;return q(s).pipe(bt(u=>o.has(u)?lE(u,n,t,e):(u.data=Dl(u,u.parent,t).resolve,E(void 0))),ee(()=>a++),Bn(1),se(u=>a===s.size?E(r):Re))})}function Tg(t){let e=t.children.map(r=>Tg(r)).flat();return[t,...e]}function lE(t,e,r,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!wg(i)&&(o[li]=i.title),dE(o,t,e,n).pipe(A(s=>(t._resolvedData=s,t.data=Dl(t,t.parent,r).resolve,null)))}function dE(t,e,r,n){let i=Zc(t);if(i.length===0)return E({});let o={};return q(i).pipe(se(s=>fE(t[s],e,r,n).pipe(it(),ee(a=>{o[s]=a}))),Bn(1),da(o),ke(s=>Mg(s)?Re:Vn(s)))}function fE(t,e,r,n){let i=hi(e)??n,o=Dr(t,i),s=o.resolve?o.resolve(e,r):Ye(i,()=>o(e,r));return rn(s)}function Wc(t){return ce(e=>{let r=t(e);return r?q(r).pipe(A(()=>e)):E(e)})}var Ag=(()=>{let e=class e{buildTitle(n){let i,o=n.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===N);return i}getResolvedTitleForRoute(n){return n.data[li]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>p(hE),providedIn:"root"});let t=e;return t})(),hE=(()=>{let e=class e extends Ag{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(C(Zp))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),gi=new b("",{providedIn:"root",factory:()=>({})}),_s=new b(""),El=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(es)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return E(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=rn(n.loadComponent()).pipe(A(xg),ee(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),jt(()=>{this.componentLoaders.delete(n)})),o=new kn(i,()=>new le).pipe(Pn());return this.componentLoaders.set(n,o),o}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return E({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=pE(i,this.compiler,n,this.onLoadEndListener).pipe(jt(()=>{this.childrenLoaders.delete(i)})),a=new kn(s,()=>new le).pipe(Pn());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function pE(t,e,r,n){return rn(t.loadChildren()).pipe(A(xg),se(i=>i instanceof Fr||Array.isArray(i)?E(i):q(e.compileModuleAsync(i))),A(i=>{n&&n(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(r).injector,s=o.get(_s,[],{optional:!0,self:!0}).flat()),{routes:s.map(bl),injector:o}}))}function gE(t){return t&&typeof t=="object"&&"default"in t}function xg(t){return gE(t)?t.default:t}var Ml=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>p(mE),providedIn:"root"});let t=e;return t})(),mE=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ng=new b(""),Rg=new b("");function vE(t,e,r){let n=t.get(Rg),i=t.get(ye);return t.get(G).runOutsideAngular(()=>{if(!i.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,Promise.resolve();let o,s=new Promise(c=>{o=c}),a=i.startViewTransition(()=>(o(),yE(t))),{onViewTransitionCreated:u}=n;return u&&Ye(t,()=>u({transition:a,from:e,to:r})),s})}function yE(t){return new Promise(e=>{oc(e,{injector:t})})}var _l=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new le,this.transitionAbortSubject=new le,this.configLoader=p(El),this.environmentInjector=p(Ie),this.urlSerializer=p(di),this.rootContexts=p(fi),this.location=p(ur),this.inputBindingEnabled=p(Ts,{optional:!0})!==null,this.titleStrategy=p(Ag),this.options=p(gi,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(Ml),this.createViewTransition=p(Ng,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>E(void 0),this.rootComponentType=null;let n=o=>this.events.next(new nl(o)),i=o=>this.events.next(new rl(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(z(g(g({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,o){return this.transitions=new ue({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ei,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(pe(s=>s.id!==0),A(s=>z(g({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),ce(s=>{let a=!1,u=!1;return E(s).pipe(ce(c=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",Pe.SupersededByNewNavigation),Re;this.currentTransition=s,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?z(g({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let f="";return this.events.next(new nn(c.id,this.urlSerializer.serialize(c.rawUrl),f,ys.IgnoredSameUrlNavigation)),c.resolve(null),Re}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return E(c).pipe(ce(f=>{let h=this.transitions?.getValue();return this.events.next(new vr(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?Re:Promise.resolve(f)}),uE(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),ee(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=z(g({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let h=new Ds(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(h)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:f,extractedUrl:h,source:I,restoredState:V,extras:T}=c,M=new vr(f,this.urlSerializer.serialize(h),I,V);this.events.next(M);let ve=yg(this.rootComponentType).snapshot;return this.currentTransition=s=z(g({},c),{targetSnapshot:ve,urlAfterRedirects:h,extras:z(g({},T),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,E(s)}else{let f="";return this.events.next(new nn(c.id,this.urlSerializer.serialize(c.extractedUrl),f,ys.IgnoredByUrlHandlingStrategy)),c.resolve(null),Re}}),ee(c=>{let l=new Jc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),A(c=>(this.currentTransition=s=z(g({},c),{guards:_I(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),s)),kI(this.environmentInjector,c=>this.events.next(c)),ee(c=>{if(s.guardsResult=c.guardsResult,mr(c.guardsResult))throw bg(this.urlSerializer,c.guardsResult);let l=new Xc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),pe(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",Pe.GuardRejected),!1)),Wc(c=>{if(c.guards.canActivateChecks.length)return E(c).pipe(ee(l=>{let d=new el(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),ce(l=>{let d=!1;return E(l).pipe(cE(this.paramsInheritanceStrategy,this.environmentInjector),ee({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",Pe.NoDataFromResolver)}}))}),ee(l=>{let d=new tl(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),Wc(c=>{let l=d=>{let f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(ee(h=>{d.component=h}),A(()=>{})));for(let h of d.children)f.push(...l(h));return f};return Ir(l(c.targetSnapshot.root)).pipe(Vt(null),It(1))}),Wc(()=>this.afterPreactivation()),ce(()=>{let{currentSnapshot:c,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return d?q(d).pipe(A(()=>s)):E(s)}),A(c=>{let l=yI(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=s=z(g({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),ee(()=>{this.events.next(new oi)}),MI(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),It(1),ee({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new tt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),ma(this.transitionAbortSubject.pipe(ee(c=>{throw c}))),jt(()=>{!a&&!u&&this.cancelNavigationTransition(s,"",Pe.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),ke(c=>{if(u=!0,Eg(c))this.events.next(new tn(s.id,this.urlSerializer.serialize(s.extractedUrl),c.message,c.cancellationCode)),CI(c)?this.events.next(new si(c.url)):s.resolve(!1);else{this.events.next(new ii(s.id,this.urlSerializer.serialize(s.extractedUrl),c,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(c))}catch(l){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(l)}}return Re}))}))}cancelNavigationTransition(n,i,o){let s=new tn(n.id,this.urlSerializer.serialize(n.extractedUrl),i,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function DE(t){return t!==ei}var wE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>p(CE),providedIn:"root"});let t=e;return t})(),yl=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},CE=(()=>{let e=class e extends yl{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=nr(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Og=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>p(bE),providedIn:"root"});let t=e;return t})(),bE=(()=>{let e=class e extends Og{constructor(){super(...arguments),this.location=p(ur),this.urlSerializer=p(di),this.options=p(gi,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(Ml),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new en,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=yg(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof vr)this.stateMemento=this.createStateMemento();else if(n instanceof nn)this.rawUrlTree=i.initialUrl;else if(n instanceof Ds){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else n instanceof oi?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):n instanceof tn&&(n.code===Pe.GuardRejected||n.code===Pe.NoDataFromResolver)?this.restoreHistory(i):n instanceof ii?this.restoreHistory(i,!0):n instanceof tt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=g(g({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=g(g({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&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,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=nr(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Jr=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Jr||{});function Fg(t,e){t.events.pipe(pe(r=>r instanceof tt||r instanceof tn||r instanceof ii||r instanceof nn),A(r=>r instanceof tt||r instanceof nn?Jr.COMPLETE:(r instanceof tn?r.code===Pe.Redirect||r.code===Pe.SupersededByNewNavigation:!1)?Jr.REDIRECTING:Jr.FAILED),pe(r=>r!==Jr.REDIRECTING),It(1)).subscribe(()=>{e()})}function IE(t){throw t}var EE={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ME={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ee=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=p(Yo),this.stateManager=p(Og),this.options=p(gi,{optional:!0})||{},this.pendingTasks=p(In),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(_l),this.urlSerializer=p(di),this.location=p(ur),this.urlHandlingStrategy=p(Ml),this._events=new le,this.errorHandler=this.options.errorHandler||IE,this.navigated=!1,this.routeReuseStrategy=p(wE),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=p(_s,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!p(Ts,{optional:!0}),this.eventsSubscription=new ne,this.isNgZoneEnabled=p(G)instanceof G&&G.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof tn&&i.code!==Pe.Redirect&&i.code!==Pe.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof tt)this.navigated=!0;else if(i instanceof si){let a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),u={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||DE(o.source)};this.scheduleNavigation(a,ei,null,u,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}SE(i)&&this._events.next(i)}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),ei,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)})}navigateToSyncWithBrowser(n,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let c=g({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(s.state=c)}let u=this.parseUrl(n);this.scheduleNavigation(u,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(bl),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:u,preserveFragment:c}=i,l=c?this.currentUrlTree.fragment:a,d=null;switch(u){case"merge":d=g(g({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let h=o?o.snapshot:this.routerState.snapshot.root;f=pg(h)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),f=this.currentUrlTree.root}return gg(f,n,d,l??null)}navigateByUrl(n,i={skipLocationChange:!1}){let o=mr(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,ei,null,i)}navigate(n,i={skipLocationChange:!1}){return _E(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let o;if(i===!0?o=g({},EE):i===!1?o=g({},ME):o=i,mr(n))return Qp(this.currentUrlTree,n,o);let s=this.parseUrl(n);return Qp(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((i,[o,s])=>(s!=null&&(i[o]=s),i),{})}scheduleNavigation(n,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let u,c,l;a?(u=a.resolve,c=a.reject,l=a.promise):l=new Promise((f,h)=>{u=f,c=h});let d=this.pendingTasks.add();return Fg(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:u,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function _E(t){for(let e=0;e{let e=class e{constructor(n,i,o,s,a,u){this.router=n,this.route=i,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=u,this.href=null,this.commands=null,this.onChanges=new le,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof tt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n!=null?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,i,o,s,a){let u=this.urlTree;if(u===null||this.isAnchorElement&&(n!==0||i||o||s||a||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(u,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 i=this.href===null?null:ph(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(n,i){let o=this.renderer,s=this.el.nativeElement;i!==null?o.setAttribute(s,n,i):o.removeAttribute(s,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(i){return new(i||e)(m(Ee),m(nt),Hu("tabindex"),m(ht),m(Ae),m(Rt))},e.\u0275dir=re({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){i&1&&te("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&ir("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[de.HasDecoratorInputTransform,"preserveFragment","preserveFragment",sr],skipLocationChange:[de.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",sr],replaceUrl:[de.HasDecoratorInputTransform,"replaceUrl","replaceUrl",sr],routerLink:"routerLink"},standalone:!0,features:[uc,Ke]});let t=e;return t})(),Pg=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,i,o,s,a){this.router=n,this.element=i,this.renderer=o,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new K,this.routerEventsSubscription=n.events.subscribe(u=>{u instanceof tt&&this.update()})}ngAfterContentInit(){E(this.links.changes,E(null)).pipe(Lt()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=q(n).pipe(Lt()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(n){let i=Array.isArray(n)?n:n.split(" ");this.classes=i.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.classes.forEach(i=>{n?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(n))})}isLinkActive(n){let i=TE(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let s=o.urlTree;return s?n.isActive(s,i):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};e.\u0275fac=function(i){return new(i||e)(m(Ee),m(Ae),m(ht),m(Kt),m(Ue,8))},e.\u0275dir=re({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(i,o,s){if(i&1&&np(s,Ue,5),i&2){let a;rp(a=ip())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Ke]});let t=e;return t})();function TE(t){return!!t.paths}var Ss=class{};var AE=(()=>{let e=class e{constructor(n,i,o,s,a){this.router=n,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(pe(n=>n instanceof tt),bt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,i){let o=[];for(let s of i){s.providers&&!s._injector&&(s._injector=qo(s.providers,n,`Route: ${s.path}`));let a=s._injector??n,u=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(u,s.children??s._loadedRoutes))}return q(o).pipe(Lt())}preloadConfig(n,i){return this.preloadingStrategy.preload(i,()=>{let o;i.loadChildren&&i.canLoad===void 0?o=this.loader.loadChildren(n,i):o=E(null);let s=o.pipe(se(a=>a===null?E(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(i);return q([s,a]).pipe(Lt())}else return s})}};e.\u0275fac=function(i){return new(i||e)(C(Ee),C(es),C(Ie),C(Ss),C(El))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),kg=new b(""),xE=(()=>{let e=class e{constructor(n,i,o,s,a={}){this.urlSerializer=n,this.transitions=i,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof vr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof tt?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof nn&&n.code===ys.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof ws&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new ws(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(i){Sh()},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function NE(t){return t.routerState.root}function mi(t,e){return{\u0275kind:t,\u0275providers:e}}function RE(){let t=p(Je);return e=>{let r=t.get(En);if(e!==r.components[0])return;let n=t.get(Ee),i=t.get(Lg);t.get(Sl)===1&&n.initialNavigation(),t.get(Vg,null,L.Optional)?.setUpPreloading(),t.get(kg,null,L.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Lg=new b("",{factory:()=>new le}),Sl=new b("",{providedIn:"root",factory:()=>1});function OE(){return mi(2,[{provide:Sl,useValue:0},{provide:Jo,multi:!0,deps:[Je],useFactory:e=>{let r=e.get(Ep,Promise.resolve());return()=>r.then(()=>new Promise(n=>{let i=e.get(Ee),o=e.get(Lg);Fg(i,()=>{n(!0)}),e.get(_l).afterPreactivation=()=>(n(!0),o.closed?E(void 0):o),i.initialNavigation()}))}}])}function FE(){return mi(3,[{provide:Jo,multi:!0,useFactory:()=>{let e=p(Ee);return()=>{e.setUpLocationChangeListener()}}},{provide:Sl,useValue:2}])}var Vg=new b("");function PE(t){return mi(0,[{provide:Vg,useExisting:AE},{provide:Ss,useExisting:t}])}function kE(){return mi(8,[eg,{provide:Ts,useExisting:eg}])}function LE(t){let e=[{provide:Ng,useValue:vE},{provide:Rg,useValue:g({skipNextTransition:!!t?.skipInitialTransition},t)}];return mi(9,e)}var ng=new b("ROUTER_FORROOT_GUARD"),VE=[ur,{provide:di,useClass:ni},Ee,fi,{provide:nt,useFactory:NE,deps:[Ee]},El,[]],Ft=(()=>{let e=class e{constructor(n){}static forRoot(n,i){return{ngModule:e,providers:[VE,[],{provide:_s,multi:!0,useValue:n},{provide:ng,useFactory:$E,deps:[[Ee,new Fo,new _u]]},{provide:gi,useValue:i||{}},i?.useHash?BE():UE(),jE(),i?.preloadingStrategy?PE(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?HE(i):[],i?.bindToComponentInputs?kE().\u0275providers:[],i?.enableViewTransitions?LE().\u0275providers:[],zE()]}}static forChild(n){return{ngModule:e,providers:[{provide:_s,multi:!0,useValue:n}]}}};e.\u0275fac=function(i){return new(i||e)(C(ng,8))},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({});let t=e;return t})();function jE(){return{provide:kg,useFactory:()=>{let t=p(Sp),e=p(G),r=p(gi),n=p(_l),i=p(di);return r.scrollOffset&&t.setOffset(r.scrollOffset),new xE(i,n,t,e,r)}}}function BE(){return{provide:Rt,useClass:_p}}function UE(){return{provide:Rt,useClass:Mc}}function $E(t){return"guarded"}function HE(t){return[t.initialNavigation==="disabled"?FE().\u0275providers:[],t.initialNavigation==="enabledBlocking"?OE().\u0275providers:[]]}var rg=new b("");function zE(){return[{provide:rg,useFactory:RE},{provide:Xo,multi:!0,useExisting:rg}]}var Dt=(()=>{let e=class e{constructor(n){this.http=n,this.apiUrl="https://api5.angular-buch.com"}getAll(){return this.http.get(`${this.apiUrl}/books`).pipe(ke(n=>(console.error(n),E([]))))}getSingle(n){return this.http.get(`${this.apiUrl}/books/${n}`)}remove(n){return this.http.delete(`${this.apiUrl}/books/${n}`)}getAllSearch(n){return this.http.get(`${this.apiUrl}/books/search/${n}`).pipe(ke(i=>(console.error(i),E([]))))}create(n){return this.http.post(`${this.apiUrl}/books`,n)}update(n){return this.http.put(`${this.apiUrl}/books/${n.isbn}`,n)}};e.\u0275fac=function(i){return new(i||e)(C(Rc))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var GE=t=>["/books",t];function WE(t,e){if(t&1&&(v(0,"li")(1,"a",6),_(2),v(3,"p",7),_(4),y()()()),t&2){let r=e.$implicit;F(),j("routerLink",Zo(3,GE,r.isbn)),F(),et(" ",r.title," "),F(2),pt(r.subtitle)}}function qE(t,e){t&1&&(v(0,"li"),_(1,"No results"),y())}function ZE(t,e){if(t&1&&(v(0,"ul",3),J(1,WE,5,5,"li",4)(2,qE,2,0,"li",5),y()),t&2){let r=e.ngIf;F(),j("ngForOf",r),F(),j("ngIf",!r.length)}}var jg=(()=>{let e=class e{constructor(n){this.service=n,this.input$=new le,this.isLoading=!1,this.results$=this.input$.pipe(pe(i=>i.length>=3),la(500),fa(),ee(()=>this.isLoading=!0),ce(i=>this.service.getAllSearch(i)),ee(()=>this.isLoading=!1))}};e.\u0275fac=function(i){return new(i||e)(m(Dt))},e.\u0275cmp=ae({type:e,selectors:[["bm-search"]],decls:4,vars:5,consts:[["searchInput",""],["type","search","autocomplete","off","aria-label","Search",3,"input"],["class","search-results",4,"ngIf"],[1,"search-results"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"routerLink"],["role","doc-subtitle"]],template:function(i,o){if(i&1){let s=xt();v(0,"input",1,0),te("input",function(){Tt(s);let u=op(1);return At(o.input$.next(u.value))}),y(),J(2,ZE,3,2,"ul",2),Zt(3,"async")}i&2&&(or("loading",o.isLoading),F(2),j("ngIf",Yt(3,3,o.results$)))},dependencies:[mt,je,Ue,Jt]});let t=e;return t})();var Bg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ae({type:e,selectors:[["bm-home"]],decls:7,vars:0,consts:[["routerLink","/books",1,"button","red"]],template:function(i,o){i&1&&(v(0,"h1"),_(1,"Home"),y(),v(2,"a",0),_(3,` Show book list -`),y(),v(4,"h2"),_(5,"Search"),y(),ie(6,"bm-search"))},dependencies:[Ue,jg]});let t=e;return t})();var QE=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:Bg}],Ug=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({imports:[Ft.forRoot(QE),Ft]});let t=e;return t})();var xs=(()=>{let e=class e{constructor(){this._isAuthenticated$=new ue(!0),this.isAuthenticated$=this._isAuthenticated$.asObservable()}get isAuthenticated(){return this._isAuthenticated$.value}login(){this._isAuthenticated$.next(!0)}logout(){this._isAuthenticated$.next(!1)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function KE(t,e){if(t&1){let r=xt();v(0,"button",6),te("click",function(){Tt(r);let i=xe();return At(i.auth.login())}),_(1,"Login"),y()}}function JE(t,e){if(t&1){let r=xt();v(0,"button",7),te("click",function(){Tt(r);let i=xe();return At(i.auth.logout())}),_(1,"Logout"),y()}}var Hg=(()=>{let e=class e{constructor(n){this.auth=n}};e.\u0275fac=function(i){return new(i||e)(m(xs))},e.\u0275cmp=ae({type:e,selectors:[["bm-root"]],decls:12,vars:2,consts:[["routerLink","/home","routerLinkActive","active","ariaCurrentWhenActive","page"],["routerLink","/books","routerLinkActive","active","ariaCurrentWhenActive","page"],["routerLink","/admin","routerLinkActive","active","ariaCurrentWhenActive","page"],[1,"actions"],["class","green",3,"click",4,"ngIf"],["class","red",3,"click",4,"ngIf"],[1,"green",3,"click"],[1,"red",3,"click"]],template:function(i,o){i&1&&(v(0,"nav")(1,"a",0),_(2,"Home"),y(),v(3,"a",1),_(4,"Books"),y(),v(5,"a",2),_(6,"Administration"),y(),v(7,"div",3),J(8,KE,2,0,"button",4)(9,JE,2,0,"button",5),y()(),v(10,"main"),ie(11,"router-outlet"),y()),i&2&&(F(8),j("ngIf",!o.auth.isAuthenticated),F(),j("ngIf",o.auth.isAuthenticated))},dependencies:[je,Cl,Ue,Pg]});let t=e;return t})();var XE=t=>["/admin/edit",t];function eM(t,e){if(t&1&&(v(0,"p",10),_(1),y()),t&2){let r=xe().ngIf;F(),pt(r.subtitle)}}function tM(t,e){if(t&1&&(v(0,"li"),_(1),y()),t&2){let r=e.$implicit;F(),pt(r)}}function nM(t,e){if(t&1&&(v(0,"div")(1,"h2"),_(2,"Published"),y(),_(3),y()),t&2){let r=xe().ngIf;F(3),et(" ",r.published," ")}}function rM(t,e){if(t&1&&ie(0,"img",11),t&2){let r=xe().ngIf;j("src",r.thumbnailUrl,Ur)}}function iM(t,e){if(t&1){let r=xt();v(0,"div",1)(1,"h1"),_(2),y(),J(3,eM,2,1,"p",2),v(4,"div",3)(5,"div")(6,"h2"),_(7,"Authors"),y(),v(8,"ul"),J(9,tM,2,1,"li",4),y()(),v(10,"div")(11,"h2"),_(12,"ISBN"),y(),_(13),y(),J(14,nM,4,1,"div",5),y(),v(15,"h2"),_(16,"Description"),y(),v(17,"p"),_(18),y(),J(19,rM,1,1,"img",6),v(20,"a",7),_(21,"Back to list"),y(),v(22,"button",8),te("click",function(){let i=Tt(r).ngIf,o=xe();return At(o.removeBook(i.isbn))}),_(23," Remove book "),y(),v(24,"a",9),_(25," Edit book "),y()()}if(t&2){let r=e.ngIf;F(2),pt(r.title),F(),j("ngIf",r.subtitle),F(6),j("ngForOf",r.authors),F(4),et(" ",r.isbn," "),F(),j("ngIf",r.published),F(4),pt(r.description),F(),j("ngIf",r.thumbnailUrl),F(5),j("routerLink",Zo(8,XE,r.isbn))}}var zg=(()=>{let e=class e{constructor(n,i,o){this.service=n,this.route=i,this.router=o;let s=this.route.snapshot.paramMap.get("isbn");this.book$=this.service.getSingle(s)}removeBook(n){window.confirm("Remove book?")&&this.service.remove(n).subscribe(()=>{this.router.navigateByUrl("/books")})}};e.\u0275fac=function(i){return new(i||e)(m(Dt),m(nt),m(Ee))},e.\u0275cmp=ae({type:e,selectors:[["bm-book-details"]],decls:2,vars:3,consts:[["class","details",4,"ngIf"],[1,"details"],["role","doc-subtitle",4,"ngIf"],[1,"header"],[4,"ngFor","ngForOf"],[4,"ngIf"],["alt","Cover",3,"src",4,"ngIf"],["routerLink","..",1,"button","arrow-left"],[1,"red",3,"click"],[1,"button",3,"routerLink"],["role","doc-subtitle"],["alt","Cover",3,"src"]],template:function(i,o){i&1&&(J(0,iM,26,10,"div",0),Zt(1,"async")),i&2&&j("ngIf",Yt(1,1,o.book$))},dependencies:[mt,je,Ue,Jt]});let t=e;return t})();function oM(t,e){if(t&1&&ie(0,"img",6),t&2){let r=xe(2);j("src",r.book.thumbnailUrl,Ur)}}function sM(t,e){if(t&1&&(v(0,"p",7),_(1),y()),t&2){let r=xe(2);F(),et(" ",r.book.subtitle," ")}}function aM(t,e){if(t&1&&(v(0,"li"),_(1),y()),t&2){let r=e.$implicit;F(),et(" ",r," ")}}function uM(t,e){if(t&1&&(v(0,"a",1),J(1,oM,1,1,"img",2),v(2,"h2"),_(3),y(),J(4,sM,2,1,"p",3),v(5,"ul",4),J(6,aM,2,1,"li",5),y(),v(7,"div"),_(8),y()()),t&2){let r=xe();j("routerLink",r.book.isbn),F(),j("ngIf",r.book.thumbnailUrl),F(2),pt(r.book.title),F(),j("ngIf",r.book.subtitle),F(2),j("ngForOf",r.book.authors),F(2),et("ISBN ",r.book.isbn,"")}}var Gg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ae({type:e,selectors:[["bm-book-list-item"]],inputs:{book:"book"},decls:1,vars:1,consts:[["class","list-item",3,"routerLink",4,"ngIf"],[1,"list-item",3,"routerLink"],["alt","Cover",3,"src",4,"ngIf"],["role","doc-subtitle",4,"ngIf"],[1,"comma-list"],[4,"ngFor","ngForOf"],["alt","Cover",3,"src"],["role","doc-subtitle"]],template:function(i,o){i&1&&J(0,uM,9,6,"a",0),i&2&&j("ngIf",o.book)},dependencies:[mt,je,Ue]});let t=e;return t})();function lM(t,e){if(t&1&&(v(0,"li"),ie(1,"bm-book-list-item",4),y()),t&2){let r=e.$implicit;F(),j("book",r)}}function dM(t,e){t&1&&(v(0,"li"),_(1," No books available. "),y())}function fM(t,e){if(t&1&&(v(0,"ul",1),J(1,lM,2,1,"li",2)(2,dM,2,0,"li",3),y()),t&2){let r=e.ngIf;F(),j("ngForOf",r),F(),j("ngIf",!r.length)}}var Wg=(()=>{let e=class e{constructor(n){this.service=n,this.books$=this.service.getAll()}};e.\u0275fac=function(i){return new(i||e)(m(Dt))},e.\u0275cmp=ae({type:e,selectors:[["bm-book-list"]],decls:4,vars:3,consts:[["class","book-list",4,"ngIf"],[1,"book-list"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"book"]],template:function(i,o){i&1&&(v(0,"h1"),_(1,"Books"),y(),J(2,fM,3,2,"ul",0),Zt(3,"async")),i&2&&(F(2),j("ngIf",Yt(3,1,o.books$)))},dependencies:[mt,je,Gg,Jt]});let t=e;return t})();var hM=[{path:"books",component:Wg},{path:"books/:isbn",component:zg}],qg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({imports:[Ft.forChild(hM),Ft]});let t=e;return t})();var Zg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({imports:[cr,qg]});let t=e;return t})();var Yg=(()=>{let e=class e{constructor(n){this.authService=n}intercept(n,i){let o="1234567890";if(this.authService.isAuthenticated){let s=n.clone({setHeaders:{Authorization:`Bearer ${o}`}});return i.handle(s)}else return i.handle(n)}};e.\u0275fac=function(i){return new(i||e)(C(xs))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var rm=(()=>{let e=class e{constructor(n,i){this._renderer=n,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(i){return new(i||e)(m(ht),m(Ae))},e.\u0275dir=re({type:e});let t=e;return t})(),pM=(()=>{let e=class e extends rm{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=nr(e)))(o||e)}})(),e.\u0275dir=re({type:e,features:[Xe]});let t=e;return t})(),js=new b("");var gM={provide:js,useExisting:dt(()=>Bs),multi:!0};function mM(){let t=gt()?gt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var vM=new b(""),Bs=(()=>{let e=class e extends rm{constructor(n,i,o){super(n,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!mM())}writeValue(n){let i=n??"";this.setProperty("value",i)}_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)}};e.\u0275fac=function(i){return new(i||e)(m(ht),m(Ae),m(vM,8))},e.\u0275dir=re({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(i,o){i&1&&te("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[qt([gM]),Xe]});let t=e;return t})();function on(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function im(t){return t!=null&&typeof t.length=="number"}var Us=new b(""),$s=new b(""),yM=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,An=class{static min(e){return DM(e)}static max(e){return wM(e)}static required(e){return CM(e)}static requiredTrue(e){return bM(e)}static email(e){return IM(e)}static minLength(e){return EM(e)}static maxLength(e){return MM(e)}static pattern(e){return _M(e)}static nullValidator(e){return om(e)}static compose(e){return dm(e)}static composeAsync(e){return hm(e)}};function DM(t){return e=>{if(on(e.value)||on(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r{if(on(e.value)||on(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>t?{max:{max:t,actual:e.value}}:null}}function CM(t){return on(t.value)?{required:!0}:null}function bM(t){return t.value===!0?null:{required:!0}}function IM(t){return on(t.value)||yM.test(t.value)?null:{email:!0}}function EM(t){return e=>on(e.value)||!im(e.value)?null:e.value.lengthim(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function _M(t){if(!t)return om;let e,r;return typeof t=="string"?(r="",t.charAt(0)!=="^"&&(r+="^"),r+=t,t.charAt(t.length-1)!=="$"&&(r+="$"),e=new RegExp(r)):(r=t.toString(),e=t),n=>{if(on(n.value))return null;let i=n.value;return e.test(i)?null:{pattern:{requiredPattern:r,actualValue:i}}}}function om(t){return null}function sm(t){return t!=null}function am(t){return Qt(t)?q(t):t}function um(t){let e={};return t.forEach(r=>{e=r!=null?g(g({},e),r):e}),Object.keys(e).length===0?null:e}function cm(t,e){return e.map(r=>r(t))}function SM(t){return!t.validate}function lm(t){return t.map(e=>SM(e)?e:r=>e.validate(r))}function dm(t){if(!t)return null;let e=t.filter(sm);return e.length==0?null:function(r){return um(cm(r,e))}}function fm(t){return t!=null?dm(lm(t)):null}function hm(t){if(!t)return null;let e=t.filter(sm);return e.length==0?null:function(r){let n=cm(r,e).map(am);return ca(n).pipe(A(um))}}function pm(t){return t!=null?hm(lm(t)):null}function Qg(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function gm(t){return t._rawValidators}function mm(t){return t._rawAsyncValidators}function Tl(t){return t?Array.isArray(t)?t:[t]:[]}function Rs(t,e){return Array.isArray(t)?t.includes(e):t===e}function Kg(t,e){let r=Tl(e);return Tl(t).forEach(i=>{Rs(r,i)||r.push(i)}),r}function Jg(t,e){return Tl(e).filter(r=>!Rs(t,r))}var Os=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=fm(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=pm(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},$e=class extends Os{get formDirective(){return null}get path(){return null}},wi=class extends Os{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Fs=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},TM={"[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"},NF=z(g({},TM),{"[class.ng-submitted]":"isSubmitted"}),vm=(()=>{let e=class e extends Fs{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(m(wi,2))},e.\u0275dir=re({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&or("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)},features:[Xe]});let t=e;return t})(),ym=(()=>{let e=class e extends Fs{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(m($e,10))},e.\u0275dir=re({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){i&2&&or("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)("ng-submitted",o.isSubmitted)},features:[Xe]});let t=e;return t})();var yi="VALID",Ns="INVALID",wr="PENDING",Di="DISABLED";function Al(t){return(Hs(t)?t.validators:t)||null}function AM(t){return Array.isArray(t)?fm(t):t||null}function xl(t,e){return(Hs(e)?e.asyncValidators:t)||null}function xM(t){return Array.isArray(t)?pm(t):t||null}function Hs(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function Dm(t,e,r){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new w(1e3,"");if(!n[r])throw new w(1001,"")}function wm(t,e,r){t._forEachChild((n,i)=>{if(r[i]===void 0)throw new w(1002,"")})}var Ci=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===yi}get invalid(){return this.status===Ns}get pending(){return this.status==wr}get disabled(){return this.status===Di}get enabled(){return this.status!==Di}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Kg(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Kg(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Jg(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Jg(e,this._rawAsyncValidators))}hasValidator(e){return Rs(this._rawValidators,e)}hasAsyncValidator(e){return Rs(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(r=>{r.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=wr,e.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=Di,this.errors=null,this._forEachChild(n=>{n.disable(z(g({},e),{onlySelf:!0}))}),this._updateValue(),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(z(g({},e),{skipPristineCheck:r})),this._onDisabledChange.forEach(n=>n(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=yi,this._forEachChild(n=>{n.enable(z(g({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(z(g({},e),{skipPristineCheck:r})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===yi||this.status===wr)&&this._runAsyncValidator(e.emitEvent)),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Di:yi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=wr,this._hasOwnPendingAsyncValidator=!0;let r=am(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((n,i)=>n&&n._find(i),this)}getError(e,r){let n=r?this.get(r):this;return n&&n.errors?n.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new K,this.statusChanges=new K}_calculateStatus(){return this._allControlsDisabled()?Di:this.errors?Ns:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(wr)?wr:this._anyControlsHaveStatus(Ns)?Ns:yi}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Hs(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=AM(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=xM(this._rawAsyncValidators)}},Ps=class extends Ci{constructor(e,r,n){super(Al(r),xl(n,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,n={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){wm(this,!0,e),Object.keys(e).forEach(n=>{Dm(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(n=>{let i=this.controls[n];i&&i.patchValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((n,i)=>{n.reset(e?e[i]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r),this._updateTouched(r),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,n)=>(e[n]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,n)=>n._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let n=this.controls[r];n&&e(n,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,n]of Object.entries(this.controls))if(this.contains(r)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,n,i)=>((n.enabled||this.disabled)&&(r[i]=n.value),r))}_reduceChildren(e,r){let n=e;return this._forEachChild((i,o)=>{n=r(n,i,o)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Cm=new b("CallSetDisabledState",{providedIn:"root",factory:()=>Nl}),Nl="always";function Rl(t,e){return[...e.path,t]}function Xg(t,e,r=Nl){Ol(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),RM(t,e),FM(t,e),OM(t,e),NM(t,e)}function em(t,e,r=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),Ls(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function ks(t,e){t.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function NM(t,e){if(e.valueAccessor.setDisabledState){let r=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(r),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(r)})}}function Ol(t,e){let r=gm(t);e.validator!==null?t.setValidators(Qg(r,e.validator)):typeof r=="function"&&t.setValidators([r]);let n=mm(t);e.asyncValidator!==null?t.setAsyncValidators(Qg(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let i=()=>t.updateValueAndValidity();ks(e._rawValidators,i),ks(e._rawAsyncValidators,i)}function Ls(t,e){let r=!1;if(t!==null){if(e.validator!==null){let i=gm(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.validator);o.length!==i.length&&(r=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let i=mm(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.asyncValidator);o.length!==i.length&&(r=!0,t.setAsyncValidators(o))}}}let n=()=>{};return ks(e._rawValidators,n),ks(e._rawAsyncValidators,n),r}function RM(t,e){e.valueAccessor.registerOnChange(r=>{t._pendingValue=r,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&bm(t,e)})}function OM(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&bm(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function bm(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function FM(t,e){let r=(n,i)=>{e.valueAccessor.writeValue(n),i&&e.viewToModelUpdate(n)};t.registerOnChange(r),e._registerOnDestroy(()=>{t._unregisterOnChange(r)})}function PM(t,e){t==null,Ol(t,e)}function kM(t,e){return Ls(t,e)}function LM(t,e){if(!t.hasOwnProperty("model"))return!1;let r=t.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function VM(t){return Object.getPrototypeOf(t.constructor)===pM}function jM(t,e){t._syncPendingControls(),e.forEach(r=>{let n=r.control;n.updateOn==="submit"&&n._pendingChange&&(r.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function BM(t,e){if(!e)return null;Array.isArray(e);let r,n,i;return e.forEach(o=>{o.constructor===Bs?r=o:VM(o)?n=o:i=o}),i||n||r||null}function UM(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function tm(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function nm(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var wt=class extends Ci{constructor(e=null,r,n){super(Al(r),xl(n,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Hs(r)&&(r.nonNullable||r.initialValueIsDefault)&&(nm(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){tm(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){tm(this._onDisabledChange,e)}_forEachChild(e){}_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(e){nm(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var $M=t=>t instanceof wt,HM=(()=>{let e=class e extends $e{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Rl(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=nr(e)))(o||e)}})(),e.\u0275dir=re({type:e,features:[Xe]});let t=e;return t})();var Im=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=re({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})();var Em=new b("");var zM={provide:$e,useExisting:dt(()=>zs)},zs=(()=>{let e=class e extends $e{constructor(n,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new K,this._setValidators(n),this._setAsyncValidators(i)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ls(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let i=this.form.get(n.path);return Xg(i,n,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),i}getControl(n){return this.form.get(n.path)}removeControl(n){em(n.control||null,n,!1),UM(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,i){this.form.get(n.path).setValue(i)}onSubmit(n){return this.submitted=!0,jM(this.form,this.directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_updateDomValue(){this.directives.forEach(n=>{let i=n.control,o=this.form.get(n.path);i!==o&&(em(i||null,n),$M(o)&&(Xg(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let i=this.form.get(n.path);PM(i,n),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let i=this.form.get(n.path);i&&kM(i,n)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ol(this.form,this),this._oldForm&&Ls(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(i){return new(i||e)(m(Us,10),m($s,10),m(Cm,8))},e.\u0275dir=re({type:e,selectors:[["","formGroup",""]],hostBindings:function(i,o){i&1&&te("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[de.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[qt([zM]),Xe,Ke]});let t=e;return t})(),GM={provide:$e,useExisting:dt(()=>Mm)},Mm=(()=>{let e=class e extends HM{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}_checkParentType(){_m(this._parent)}};e.\u0275fac=function(i){return new(i||e)(m($e,13),m(Us,10),m($s,10))},e.\u0275dir=re({type:e,selectors:[["","formGroupName",""]],inputs:{name:[de.None,"formGroupName","name"]},features:[qt([GM]),Xe]});let t=e;return t})(),WM={provide:$e,useExisting:dt(()=>Gs)},Gs=(()=>{let e=class e extends $e{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Rl(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){_m(this._parent)}};e.\u0275fac=function(i){return new(i||e)(m($e,13),m(Us,10),m($s,10))},e.\u0275dir=re({type:e,selectors:[["","formArrayName",""]],inputs:{name:[de.None,"formArrayName","name"]},features:[qt([WM]),Xe]});let t=e;return t})();function _m(t){return!(t instanceof Mm)&&!(t instanceof zs)&&!(t instanceof Gs)}var qM={provide:wi,useExisting:dt(()=>Fl)},Fl=(()=>{let e=class e extends wi{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new K,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=BM(this,s)}ngOnChanges(n){this._added||this._setUpControl(),LM(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return Rl(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(i){return new(i||e)(m($e,13),m(Us,10),m($s,10),m(js,10),m(Em,8))},e.\u0275dir=re({type:e,selectors:[["","formControlName",""]],inputs:{name:[de.None,"formControlName","name"],isDisabled:[de.None,"disabled","isDisabled"],model:[de.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[qt([qM]),Xe,Ke]});let t=e;return t})();var ZM=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({});let t=e;return t})(),Vs=class extends Ci{constructor(e,r,n){super(Al(r),xl(n,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,r={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}insert(e,r,n={}){this.controls.splice(e,0,r),this._registerControl(r),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,r={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:r.emitEvent})}setControl(e,r,n={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),r&&(this.controls.splice(i,0,r),this._registerControl(r)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,r={}){wm(this,!1,e),e.forEach((n,i)=>{Dm(this,!1,i),this.at(i).setValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(e.forEach((n,i)=>{this.at(i)&&this.at(i).patchValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e=[],r={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r),this._updateTouched(r),this.updateValueAndValidity(r)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(r=>r._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((r,n)=>n._syncPendingControls()?!0:r,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((r,n)=>{e(r,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(r=>r.enabled&&e(r))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};var Sm=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:Em,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Cm,useValue:n.callSetDisabledState??Nl}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({imports:[ZM]});let t=e;return t})();var Tm=(()=>{class t{constructor(r,n){this.renderer=r,this.elementRef=n,this.onInput=i=>{let o=i?new Date(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()):null,s=o?o.toISOString():null;this.onChange(s)},this.onChange=()=>{},this.onTouched=()=>{}}writeValue(r){let n=r?new Date(r):null,i=n?new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())):null;this.renderer.setProperty(this.elementRef.nativeElement,"valueAsDate",i)}registerOnChange(r){this.onChange=r}registerOnTouched(r){this.onTouched=r}setDisabledState(r){this.renderer.setProperty(this.elementRef.nativeElement,"disabled",r)}}return t.\u0275fac=function(r){return new(r||t)(m(ht),m(Ae))},t.\u0275dir=re({type:t,selectors:[["","useValueAsLocalIso",""]],hostBindings:function(r,n){r&1&&te("input",function(o){return n.onInput(o.target.valueAsDate)})("blur",function(){return n.onTouched()})},standalone:!0,features:[qt([{provide:js,useExisting:dt(()=>t),multi:!0}])]}),t})();function KM(t,e){if(t&1&&ie(0,"input",17),t&2){let r=e.index;j("formControlName",r),ir("aria-label","Author "+r)}}var Ws=(()=>{let e=class e{constructor(){this.submitBook=new K,this.form=new Ps({title:new wt("",{nonNullable:!0,validators:An.required}),subtitle:new wt("",{nonNullable:!0}),isbn:new wt("",{nonNullable:!0,validators:[An.required,An.minLength(10),An.maxLength(13)]}),description:new wt("",{nonNullable:!0}),published:new wt("",{nonNullable:!0}),authors:this.buildAuthorsArray([""]),thumbnailUrl:new wt("",{nonNullable:!0})})}ngOnChanges(){this.book?(this.setFormValues(this.book),this.setEditMode(!0)):this.setEditMode(!1)}setFormValues(n){this.form.patchValue(n),this.form.setControl("authors",this.buildAuthorsArray(n.authors))}setEditMode(n){let i=this.form.controls.isbn;n?i.disable():i.enable()}buildAuthorsArray(n){return new Vs(n.map(i=>new wt(i,{nonNullable:!0})))}get authors(){return this.form.controls.authors}addAuthorControl(){this.authors.push(new wt("",{nonNullable:!0}))}submitForm(){let n=this.form.getRawValue(),i=n.authors.filter(s=>!!s),o=z(g({},n),{authors:i});this.submitBook.emit(o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ae({type:e,selectors:[["bm-book-form"]],inputs:{book:"book"},outputs:{submitBook:"submitBook"},features:[Ke],decls:27,vars:3,consts:[[3,"ngSubmit","formGroup"],["for","title"],["id","title","formControlName","title"],["for","subtitle"],["id","subtitle","formControlName","subtitle"],["for","isbn"],["id","isbn","formControlName","isbn"],["type","button",1,"add",3,"click"],["formArrayName","authors"],[3,"formControlName",4,"ngFor","ngForOf"],["for","description"],["id","description","formControlName","description"],["for","published"],["type","date","useValueAsLocalIso","","id","published","formControlName","published"],["for","thumbnailUrl"],["type","url","id","thumbnailUrl","formControlName","thumbnailUrl"],["type","submit",3,"disabled"],[3,"formControlName"]],template:function(i,o){i&1&&(v(0,"form",0),te("ngSubmit",function(){return o.submitForm()}),v(1,"label",1),_(2,"Title"),y(),ie(3,"input",2),v(4,"label",3),_(5,"Subtitle"),y(),ie(6,"input",4),v(7,"label",5),_(8,"ISBN"),y(),ie(9,"input",6),v(10,"label"),_(11,"Authors"),y(),v(12,"button",7),te("click",function(){return o.addAuthorControl()}),_(13," + Author "),y(),v(14,"fieldset",8),J(15,KM,1,2,"input",9),y(),v(16,"label",10),_(17,"Description"),y(),ie(18,"textarea",11),v(19,"label",12),_(20,"Published"),y(),ie(21,"input",13),v(22,"label",14),_(23,"Thumbnail URL"),y(),ie(24,"input",15),v(25,"button",16),_(26," Save "),y()()),i&2&&(j("formGroup",o.form),F(15),j("ngForOf",o.authors.controls),F(10),j("disabled",o.form.invalid))},dependencies:[mt,Im,Bs,vm,ym,zs,Fl,Gs,Tm]});let t=e;return t})();var xm=(()=>{let e=class e{constructor(n,i){this.service=n,this.router=i}create(n){this.service.create(n).subscribe(i=>{this.router.navigate(["/books",i.isbn])})}};e.\u0275fac=function(i){return new(i||e)(m(Dt),m(Ee))},e.\u0275cmp=ae({type:e,selectors:[["bm-book-create"]],decls:3,vars:0,consts:[[3,"submitBook"]],template:function(i,o){i&1&&(v(0,"h1"),_(1,"Create Book"),y(),v(2,"bm-book-form",0),te("submitBook",function(a){return o.create(a)}),y())},dependencies:[Ws]});let t=e;return t})();function JM(t,e){if(t&1){let r=xt();v(0,"bm-book-form",1),te("submitBook",function(i){Tt(r);let o=xe();return At(o.update(i))}),y()}if(t&2){let r=e.ngIf;j("book",r)}}var Nm=(()=>{let e=class e{constructor(n,i,o){this.service=n,this.route=i,this.router=o,this.book$=this.route.paramMap.pipe(A(s=>s.get("isbn")),ce(s=>this.service.getSingle(s)))}update(n){this.service.update(n).subscribe(i=>{this.router.navigate(["/books",i.isbn])})}};e.\u0275fac=function(i){return new(i||e)(m(Dt),m(nt),m(Ee))},e.\u0275cmp=ae({type:e,selectors:[["bm-book-edit"]],decls:4,vars:3,consts:[[3,"book","submitBook",4,"ngIf"],[3,"submitBook","book"]],template:function(i,o){i&1&&(v(0,"h1"),_(1,"Edit Book"),y(),J(2,JM,1,1,"bm-book-form",0),Zt(3,"async")),i&2&&(F(2),j("ngIf",Yt(3,1,o.book$)))},dependencies:[je,Ws,Jt]});let t=e;return t})();var XM=[{path:"admin",redirectTo:"admin/create"},{path:"admin/create",component:xm},{path:"admin/edit/:isbn",component:Nm}],Rm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({imports:[Ft.forChild(XM),Ft]});let t=e;return t})();var Om=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({imports:[cr,Rm,Sm]});let t=e;return t})();var Fm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e,bootstrap:[Hg]}),e.\u0275inj=Z({providers:[{provide:Oc,useClass:Yg,multi:!0}],imports:[qp,Ug,Vp,Zg,Om]});let t=e;return t})();Wp().bootstrapModule(Fm).catch(t=>console.error(t)); diff --git a/main-QUC4IFPQ.js b/main-QUC4IFPQ.js new file mode 100644 index 0000000..51f0e20 --- /dev/null +++ b/main-QUC4IFPQ.js @@ -0,0 +1,9 @@ +var Lm=Object.defineProperty,Vm=Object.defineProperties;var jm=Object.getOwnPropertyDescriptors;var Pl=Object.getOwnPropertySymbols;var Bm=Object.prototype.hasOwnProperty,Um=Object.prototype.propertyIsEnumerable;var kl=(t,e,r)=>e in t?Lm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,g=(t,e)=>{for(var r in e||={})Bm.call(e,r)&&kl(t,r,e[r]);if(Pl)for(var r of Pl(e))Um.call(e,r)&&kl(t,r,e[r]);return t},z=(t,e)=>Vm(t,jm(e));var Ll=null;var Ys=1,Vl=Symbol("SIGNAL");function B(t){let e=Ll;return Ll=t,e}var jl={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,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function $m(t){if(!(Js(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Ys)){if(!t.producerMustRecompute(t)&&!Qs(t)){t.dirty=!1,t.lastCleanEpoch=Ys;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Ys}}function Bl(t){return t&&(t.nextProducerIndex=0),B(t)}function Ul(t,e){if(B(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Js(t))for(let r=t.nextProducerIndex;rt.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Qs(t){bi(t);for(let e=0;e0}function bi(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Hm(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function zm(){throw new Error}var Gm=zm;function Hl(t){Gm=t}function x(t){return typeof t=="function"}function xn(t){let r=t(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Ii=xn(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription: +${r.map((n,i)=>`${i+1}) ${n.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=r});function sn(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var ne=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let o of r)o.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(x(n))try{n()}catch(o){e=o instanceof Ii?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{zl(o)}catch(s){e=e??[],s instanceof Ii?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Ii(e)}}add(e){var r;if(e&&e!==this)if(this.closed)zl(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&sn(r,e)}remove(e){let{_finalizers:r}=this;r&&sn(r,e),e instanceof t&&e._removeParent(this)}};ne.EMPTY=(()=>{let t=new ne;return t.closed=!0,t})();var Xs=ne.EMPTY;function Ei(t){return t instanceof ne||t&&"closed"in t&&x(t.remove)&&x(t.add)&&x(t.unsubscribe)}function zl(t){x(t)?t():t.unsubscribe()}var He={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Nn={setTimeout(t,e,...r){let{delegate:n}=Nn;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=Nn;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Mi(t){Nn.setTimeout(()=>{let{onUnhandledError:e}=He;if(e)e(t);else throw t})}function Cr(){}var Gl=ea("C",void 0,void 0);function ql(t){return ea("E",void 0,t)}function Wl(t){return ea("N",t,void 0)}function ea(t,e,r){return{kind:t,value:e,error:r}}var an=null;function Rn(t){if(He.useDeprecatedSynchronousErrorHandling){let e=!an;if(e&&(an={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:n}=an;if(an=null,r)throw n}}else t()}function Zl(t){He.useDeprecatedSynchronousErrorHandling&&an&&(an.errorThrown=!0,an.error=t)}var un=class extends ne{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Ei(e)&&e.add(this)):this.destination=Zm}static create(e,r,n){return new On(e,r,n)}next(e){this.isStopped?na(Wl(e),this):this._next(e)}error(e){this.isStopped?na(ql(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?na(Gl,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},qm=Function.prototype.bind;function ta(t,e){return qm.call(t,e)}var ra=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(n){_i(n)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(n){_i(n)}else _i(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){_i(r)}}},On=class extends un{constructor(e,r,n){super();let i;if(x(e)||!e)i={next:e??void 0,error:r??void 0,complete:n??void 0};else{let o;this&&He.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&ta(e.next,o),error:e.error&&ta(e.error,o),complete:e.complete&&ta(e.complete,o)}):i=e}this.destination=new ra(i)}};function _i(t){He.useDeprecatedSynchronousErrorHandling?Zl(t):Mi(t)}function Wm(t){throw t}function na(t,e){let{onStoppedNotification:r}=He;r&&Nn.setTimeout(()=>r(t,e))}var Zm={closed:!0,next:Cr,error:Wm,complete:Cr};var Fn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function De(t){return t}function ia(...t){return oa(t)}function oa(t){return t.length===0?De:t.length===1?t[0]:function(r){return t.reduce((n,i)=>i(n),r)}}var U=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new t;return n.source=this,n.operator=r,n}subscribe(r,n,i){let o=Qm(r)?r:new On(r,n,i);return Rn(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=Yl(n),new n((i,o)=>{let s=new On({next:a=>{try{r(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[Fn](){return this}pipe(...r){return oa(r)(this)}toPromise(r){return r=Yl(r),new r((n,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>n(o))})}}return t.create=e=>new t(e),t})();function Yl(t){var e;return(e=t??He.Promise)!==null&&e!==void 0?e:Promise}function Ym(t){return t&&x(t.next)&&x(t.error)&&x(t.complete)}function Qm(t){return t&&t instanceof un||Ym(t)&&Ei(t)}function sa(t){return x(t?.lift)}function k(t){return e=>{if(sa(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function R(t,e,r,n,i){return new aa(t,e,r,n,i)}var aa=class extends un{constructor(e,r,n,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(u){e.error(u)}}:super._next,this._error=i?function(a){try{i(a)}catch(u){e.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function Pn(){return k((t,e)=>{let r=null;t._refCount++;let n=R(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let i=t._connection,o=r;r=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(r=t.connect())})}var kn=class extends U{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,sa(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new ne;let r=this.getSubject();e.add(this.source.subscribe(R(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=ne.EMPTY)}return e}refCount(){return Pn()(this)}};var Ql=xn(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var le=(()=>{class t extends U{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new Si(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new Ql}next(r){Rn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){Rn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){Rn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:i,observers:o}=this;return n||i?Xs:(this.currentObservers=null,o.push(r),new ne(()=>{this.currentObservers=null,sn(o,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:i,isStopped:o}=this;n?r.error(i):o&&r.complete()}asObservable(){let r=new U;return r.source=this,r}}return t.create=(e,r)=>new Si(e,r),t})(),Si=class extends le{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)}error(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:Xs}};var ue=class extends le{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:n}=this;if(e)throw r;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var ua={now(){return(ua.delegate||Date).now()},delegate:void 0};var Ti=class extends ne{constructor(e,r){super()}schedule(e,r=0){return this}};var br={setInterval(t,e,...r){let{delegate:n}=br;return n?.setInterval?n.setInterval(t,e,...r):setInterval(t,e,...r)},clearInterval(t){let{delegate:e}=br;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var Ai=class extends Ti{constructor(e,r){super(e,r),this.scheduler=e,this.work=r,this.pending=!1}schedule(e,r=0){var n;if(this.closed)return this;this.state=e;let i=this.id,o=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(o,i,r)),this.pending=!0,this.delay=r,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(o,this.id,r),this}requestAsyncId(e,r,n=0){return br.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,r,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return r;r!=null&&br.clearInterval(r)}execute(e,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,r);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,r){let n=!1,i;try{this.work(e)}catch(o){n=!0,i=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){let{id:e,scheduler:r}=this,{actions:n}=r;this.work=this.state=this.scheduler=null,this.pending=!1,sn(n,this),e!=null&&(this.id=this.recycleAsyncId(r,e,null)),this.delay=null,super.unsubscribe()}}};var Ln=class t{constructor(e,r=t.now){this.schedulerActionCtor=e,this.now=r}schedule(e,r=0,n){return new this.schedulerActionCtor(this,e).schedule(n,r)}};Ln.now=ua.now;var xi=class extends Ln{constructor(e,r=Ln.now){super(e,r),this.actions=[],this._active=!1}flush(e){let{actions:r}=this;if(this._active){r.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,n){for(;e=r.shift();)e.unsubscribe();throw n}}};var Kl=new xi(Ai);var Re=new U(t=>t.complete());function Jl(t){return t&&x(t.schedule)}function Xl(t){return t[t.length-1]}function Ni(t){return x(Xl(t))?t.pop():void 0}function kt(t){return Jl(Xl(t))?t.pop():void 0}function td(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(l){try{c(n.next(l))}catch(d){s(d)}}function u(l){try{c(n.throw(l))}catch(d){s(d)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((n=n.apply(t,e||[])).next())})}function ed(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function cn(t){return this instanceof cn?(this.v=t,this):new cn(t)}function nd(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(f){n[f]&&(i[f]=function(h){return new Promise(function(I,V){o.push([f,h,I,V])>1||a(f,h)})})}function a(f,h){try{u(n[f](h))}catch(I){d(o[0][3],I)}}function u(f){f.value instanceof cn?Promise.resolve(f.value.v).then(c,l):d(o[0][2],f)}function c(f){a("next",f)}function l(f){a("throw",f)}function d(f,h){f(h),o.shift(),o.length&&a(o[0][0],o[0][1])}}function rd(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof ed=="function"?ed(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(s){return new Promise(function(a,u){s=t[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(c){o({value:c,done:a})},s)}}var Ri=t=>t&&typeof t.length=="number"&&typeof t!="function";function Oi(t){return x(t?.then)}function Fi(t){return x(t[Fn])}function Pi(t){return Symbol.asyncIterator&&x(t?.[Symbol.asyncIterator])}function ki(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Km(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Li=Km();function Vi(t){return x(t?.[Li])}function ji(t){return nd(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:n,done:i}=yield cn(r.read());if(i)return yield cn(void 0);yield yield cn(n)}}finally{r.releaseLock()}})}function Bi(t){return x(t?.getReader)}function oe(t){if(t instanceof U)return t;if(t!=null){if(Fi(t))return Jm(t);if(Ri(t))return Xm(t);if(Oi(t))return ev(t);if(Pi(t))return id(t);if(Vi(t))return tv(t);if(Bi(t))return nv(t)}throw ki(t)}function Jm(t){return new U(e=>{let r=t[Fn]();if(x(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Xm(t){return new U(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,Mi)})}function tv(t){return new U(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function id(t){return new U(e=>{rv(t,e).catch(r=>e.error(r))})}function nv(t){return id(ji(t))}function rv(t,e){var r,n,i,o;return td(this,void 0,void 0,function*(){try{for(r=rd(t);n=yield r.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){i={error:s}}finally{try{n&&!n.done&&(o=r.return)&&(yield o.call(r))}finally{if(i)throw i.error}}e.complete()})}function Me(t,e,r,n=0,i=!1){let o=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!i)return o}function Ui(t,e=0){return k((r,n)=>{r.subscribe(R(n,i=>Me(n,t,()=>n.next(i),e),()=>Me(n,t,()=>n.complete(),e),i=>Me(n,t,()=>n.error(i),e)))})}function $i(t,e=0){return k((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function od(t,e){return oe(t).pipe($i(e),Ui(e))}function sd(t,e){return oe(t).pipe($i(e),Ui(e))}function ad(t,e){return new U(r=>{let n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function ud(t,e){return new U(r=>{let n;return Me(r,e,()=>{n=t[Li](),Me(r,e,()=>{let i,o;try{({value:i,done:o}=n.next())}catch(s){r.error(s);return}o?r.complete():r.next(i)},0,!0)}),()=>x(n?.return)&&n.return()})}function Hi(t,e){if(!t)throw new Error("Iterable cannot be null");return new U(r=>{Me(r,e,()=>{let n=t[Symbol.asyncIterator]();Me(r,e,()=>{n.next().then(i=>{i.done?r.complete():r.next(i.value)})},0,!0)})})}function cd(t,e){return Hi(ji(t),e)}function ld(t,e){if(t!=null){if(Fi(t))return od(t,e);if(Ri(t))return ad(t,e);if(Oi(t))return sd(t,e);if(Pi(t))return Hi(t,e);if(Vi(t))return ud(t,e);if(Bi(t))return cd(t,e)}throw ki(t)}function W(t,e){return e?ld(t,e):oe(t)}function E(...t){let e=kt(t);return W(t,e)}function Vn(t,e){let r=x(t)?t:()=>t,n=i=>i.error(r());return new U(e?i=>e.schedule(n,0,i):n)}function ca(t){return!!t&&(t instanceof U||x(t.lift)&&x(t.subscribe))}var Ct=xn(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function A(t,e){return k((r,n)=>{let i=0;r.subscribe(R(n,o=>{n.next(t.call(e,o,i++))}))})}var{isArray:iv}=Array;function ov(t,e){return iv(e)?t(...e):t(e)}function zi(t){return A(e=>ov(t,e))}var{isArray:sv}=Array,{getPrototypeOf:av,prototype:uv,keys:cv}=Object;function Gi(t){if(t.length===1){let e=t[0];if(sv(e))return{args:e,keys:null};if(lv(e)){let r=cv(e);return{args:r.map(n=>e[n]),keys:r}}}return{args:t,keys:null}}function lv(t){return t&&typeof t=="object"&&av(t)===uv}function qi(t,e){return t.reduce((r,n,i)=>(r[n]=e[i],r),{})}function Ir(...t){let e=kt(t),r=Ni(t),{args:n,keys:i}=Gi(t);if(n.length===0)return W([],e);let o=new U(dv(n,e,i?s=>qi(i,s):De));return r?o.pipe(zi(r)):o}function dv(t,e,r=De){return n=>{dd(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let u=0;u{let c=W(t[u],e),l=!1;c.subscribe(R(n,d=>{o[u]=d,l||(l=!0,a--),a||n.next(r(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function dd(t,e,r){t?Me(r,t,e):e()}function fd(t,e,r,n,i,o,s,a){let u=[],c=0,l=0,d=!1,f=()=>{d&&!u.length&&!c&&e.complete()},h=V=>c{o&&e.next(V),c++;let T=!1;oe(r(V,l++)).subscribe(R(e,M=>{i?.(M),o?h(M):e.next(M)},()=>{T=!0},void 0,()=>{if(T)try{for(c--;u.length&&cI(M)):I(M)}f()}catch(M){e.error(M)}}))};return t.subscribe(R(e,h,()=>{d=!0,f()})),()=>{a?.()}}function se(t,e,r=1/0){return x(e)?se((n,i)=>A((o,s)=>e(n,o,i,s))(oe(t(n,i))),r):(typeof e=="number"&&(r=e),k((n,i)=>fd(n,i,t,r)))}function Lt(t=1/0){return se(De,t)}function hd(){return Lt(1)}function jn(...t){return hd()(W(t,kt(t)))}function Wi(t){return new U(e=>{oe(t()).subscribe(e)})}function la(...t){let e=Ni(t),{args:r,keys:n}=Gi(t),i=new U(o=>{let{length:s}=r;if(!s){o.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=f},()=>u--,void 0,()=>{(!u||!d)&&(c||o.next(n?qi(n,a):a),o.complete())}))}});return e?i.pipe(zi(e)):i}function pe(t,e){return k((r,n)=>{let i=0;r.subscribe(R(n,o=>t.call(e,o,i++)&&n.next(o)))})}function ke(t){return k((e,r)=>{let n=null,i=!1,o;n=e.subscribe(R(r,void 0,void 0,s=>{o=oe(t(s,ke(t)(e))),n?(n.unsubscribe(),n=null,o.subscribe(r)):i=!0})),i&&(n.unsubscribe(),n=null,o.subscribe(r))})}function pd(t,e,r,n,i){return(o,s)=>{let a=r,u=e,c=0;o.subscribe(R(s,l=>{let d=c++;u=a?t(u,l,d):(a=!0,l),n&&s.next(u)},i&&(()=>{a&&s.next(u),s.complete()})))}}function bt(t,e){return x(e)?se(t,e,1):se(t,1)}function da(t,e=Kl){return k((r,n)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let c=o;o=null,n.next(c)}};function u(){let c=s+t,l=e.now();if(l{o=c,s=e.now(),i||(i=e.schedule(u,t),n.add(i))},()=>{a(),n.complete()},void 0,()=>{o=i=null}))})}function Vt(t){return k((e,r)=>{let n=!1;e.subscribe(R(r,i=>{n=!0,r.next(i)},()=>{n||r.next(t),r.complete()}))})}function It(t){return t<=0?()=>Re:k((e,r)=>{let n=0;e.subscribe(R(r,i=>{++n<=t&&(r.next(i),t<=n&&r.complete())}))})}function fa(t){return A(()=>t)}function ha(t,e=De){return t=t??fv,k((r,n)=>{let i,o=!0;r.subscribe(R(n,s=>{let a=e(s);(o||!t(i,a))&&(o=!1,i=a,n.next(s))}))})}function fv(t,e){return t===e}function Zi(t=hv){return k((e,r)=>{let n=!1;e.subscribe(R(r,i=>{n=!0,r.next(i)},()=>n?r.complete():r.error(t())))})}function hv(){return new Ct}function jt(t){return k((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function it(t,e){let r=arguments.length>=2;return n=>n.pipe(t?pe((i,o)=>t(i,o,n)):De,It(1),r?Vt(e):Zi(()=>new Ct))}function Bn(t){return t<=0?()=>Re:k((e,r)=>{let n=[];e.subscribe(R(r,i=>{n.push(i),t{for(let i of n)r.next(i);r.complete()},void 0,()=>{n=null}))})}function pa(t,e){let r=arguments.length>=2;return n=>n.pipe(t?pe((i,o)=>t(i,o,n)):De,Bn(1),r?Vt(e):Zi(()=>new Ct))}function ga(t,e){return k(pd(t,e,arguments.length>=2,!0))}function ma(...t){let e=kt(t);return k((r,n)=>{(e?jn(t,r,e):jn(t,r)).subscribe(n)})}function ce(t,e){return k((r,n)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&n.complete();r.subscribe(R(n,u=>{i?.unsubscribe();let c=0,l=o++;oe(t(u,l)).subscribe(i=R(n,d=>n.next(e?e(u,d,l,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function va(t){return k((e,r)=>{oe(t).subscribe(R(r,()=>r.complete(),Cr)),!r.closed&&e.subscribe(r)})}function ee(t,e,r){let n=x(t)||e||r?{next:t,error:e,complete:r}:t;return n?k((i,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;i.subscribe(R(o,u=>{var c;(c=n.next)===null||c===void 0||c.call(n,u),o.next(u)},()=>{var u;a=!1,(u=n.complete)===null||u===void 0||u.call(n),o.complete()},u=>{var c;a=!1,(c=n.error)===null||c===void 0||c.call(n,u),o.error(u)},()=>{var u,c;a&&((u=n.unsubscribe)===null||u===void 0||u.call(n)),(c=n.finalize)===null||c===void 0||c.call(n)}))}):De}var Xd="https://g.co/ng/security#xss",w=class extends Error{constructor(e,r){super(xo(e,r)),this.code=e}};function xo(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function kr(t){return{toString:t}.toString()}var Yi="__parameters__";function gv(t){return function(...r){if(t){let n=t(...r);for(let i in n)this[i]=n[i]}}}function ef(t,e,r){return kr(()=>{let n=gv(e);function i(...o){if(this instanceof i)return n.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(Yi)?u[Yi]:Object.defineProperty(u,Yi,{value:[]})[Yi];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return r&&(i.prototype=Object.create(r.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}var Ce=globalThis;function q(t){for(let e in t)if(t[e]===q)return e;throw Error("Could not find renamed property on target object.")}function mv(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function be(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(be).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(` +`);return r===-1?e:e.substring(0,r)}function gd(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var vv=q({__forward_ref__:q});function dt(t){return t.__forward_ref__=dt,t.toString=function(){return be(this())},t}function we(t){return tf(t)?t():t}function tf(t){return typeof t=="function"&&t.hasOwnProperty(vv)&&t.__forward_ref__===dt}function D(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Z(t){return{providers:t.providers||[],imports:t.imports||[]}}function No(t){return md(t,rf)||md(t,of)}function nf(t){return No(t)!==null}function md(t,e){return t.hasOwnProperty(e)?t[e]:null}function yv(t){let e=t&&(t[rf]||t[of]);return e||null}function vd(t){return t&&(t.hasOwnProperty(yd)||t.hasOwnProperty(Dv))?t[yd]:null}var rf=q({\u0275prov:q}),yd=q({\u0275inj:q}),of=q({ngInjectableDef:q}),Dv=q({ngInjectorDef:q}),b=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=D({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function sf(t){return t&&!!t.\u0275providers}var wv=q({\u0275cmp:q}),Cv=q({\u0275dir:q}),bv=q({\u0275pipe:q}),Iv=q({\u0275mod:q}),so=q({\u0275fac:q}),Er=q({__NG_ELEMENT_ID__:q}),Dd=q({__NG_ENV_ID__:q});function Ro(t){return typeof t=="string"?t:t==null?"":String(t)}function Ev(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Ro(t)}function Mv(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new w(-200,t)}function _u(t,e){throw new w(-201,!1)}var L=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(L||{}),Ra;function af(){return Ra}function _e(t){let e=Ra;return Ra=t,e}function uf(t,e,r){let n=No(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&L.Optional)return null;if(e!==void 0)return e;_u(t,"Injector")}var _v={},_r=_v,Oa="__NG_DI_FLAG__",ao="ngTempTokenPath",Sv="ngTokenPath",Tv=/\n/gm,Av="\u0275",wd="__source",Gn;function xv(){return Gn}function Bt(t){let e=Gn;return Gn=t,e}function Nv(t,e=L.Default){if(Gn===void 0)throw new w(-203,!1);return Gn===null?uf(t,void 0,e):Gn.get(t,e&L.Optional?null:void 0,e)}function C(t,e=L.Default){return(af()||Nv)(we(t),e)}function p(t,e=L.Default){return C(t,Oo(e))}function Oo(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Fa(t){let e=[];for(let r=0;r ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):be(a)))}i=`{${o.join(", ")}}`}return`${r}${n?"("+n+")":""}[${i}]: ${t.replace(Tv,` + `)}`}var Fo=cf(ef("Optional"),8);var Su=cf(ef("SkipSelf"),4);function fn(t,e){let r=t.hasOwnProperty(so);return r?t[so]:null}function Pv(t,e,r){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(r)?Tu(r,e):e(r))}function lf(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function uo(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Lv(t,e,r,n){let i=t.length;if(i==e)t.push(r,n);else if(i===1)t.push(n,t[0]),t[0]=r;else{for(i--,t.push(t[i-1],t[i]);i>e;){let o=i-2;t[i]=t[o],i--}t[e]=r,t[e+1]=n}}function Vv(t,e,r){let n=Lr(t,e);return n>=0?t[n|1]=r:(n=~n,Lv(t,n,e,r)),n}function ya(t,e){let r=Lr(t,e);if(r>=0)return t[r|1]}function Lr(t,e){return jv(t,e,1)}function jv(t,e,r){let n=0,i=t.length>>r;for(;i!==n;){let o=n+(i-n>>1),s=t[o<e?i=o:n=o+1}return~(i<e){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[l+1].toLowerCase(),n&2&&c!==d){if(ze(n))return!1;s=!0}}}}return ze(n)||s}function ze(t){return(t&1)===0}function Gv(t,e,r,n){if(e===null)return-1;let i=0;if(n||!r){let o=!1;for(;i-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?i+="."+s:n&4&&(i+=" "+s);else i!==""&&!ze(s)&&(e+=bd(o,i),i=""),n=s,o=o||!ze(n);r++}return i!==""&&(e+=bd(o,i)),e}function Qv(t){return t.map(Yv).join(",")}function Kv(t){let e=[],r=[],n=1,i=2;for(;n{let e=Cf(t),r=z(g({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===hf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||at.Emulated,styles:t.styles||Le,_:null,schemas:t.schemas||null,tView:null,id:""});bf(r);let n=t.dependencies;return r.directiveDefs=Ed(n,!1),r.pipeDefs=Ed(n,!0),r.id=ey(r),r})}function Jv(t){return $t(t)||vf(t)}function Xv(t){return t!==null}function Y(t){return kr(()=>({type:t.type,bootstrap:t.bootstrap||Le,declarations:t.declarations||Le,imports:t.imports||Le,exports:t.exports||Le,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Id(t,e){if(t==null)return Wn;let r={};for(let n in t)if(t.hasOwnProperty(n)){let i=t[n],o,s,a=de.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),e?(r[o]=a!==de.None?[n,a]:n,e[o]=s):r[o]=n}return r}function re(t){return kr(()=>{let e=Cf(t);return bf(e),e})}function mf(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function $t(t){return t[wv]||null}function vf(t){return t[Cv]||null}function yf(t){return t[bv]||null}function Df(t){let e=$t(t)||vf(t)||yf(t);return e!==null?e.standalone:!1}function wf(t,e){let r=t[Iv]||null;if(!r&&e===!0)throw new Error(`Type ${be(t)} does not have '\u0275mod' property.`);return r}function Cf(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||Wn,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Le,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Id(t.inputs,e),outputs:Id(t.outputs),debugInfo:null}}function bf(t){t.features?.forEach(e=>e(t))}function Ed(t,e){if(!t)return null;let r=e?yf:Jv;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(Xv)}function ey(t){let e=0,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let i of r)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function Po(t){return{\u0275providers:t}}function ty(...t){return{\u0275providers:If(!0,t),\u0275fromNgModule:!0}}function If(t,...e){let r=[],n=new Set,i,o=s=>{r.push(s)};return Tu(e,s=>{let a=s;ka(a,o,[],n)&&(i||=[],i.push(a))}),i!==void 0&&Ef(i,o),r}function Ef(t,e){for(let r=0;r{e(o,n)})}}function ka(t,e,r,n){if(t=we(t),!t)return!1;let i=null,o=vd(t),s=!o&&$t(t);if(!o&&!s){let u=t.ngModule;if(o=vd(u),o)i=u;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=n.has(i);if(s){if(a)return!1;if(n.add(i),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)ka(c,e,r,n)}}else if(o){if(o.imports!=null&&!a){n.add(i);let c;try{Tu(o.imports,l=>{ka(l,e,r,n)&&(c||=[],c.push(l))})}finally{}c!==void 0&&Ef(c,e)}if(!a){let c=fn(i)||(()=>new i);e({provide:i,useFactory:c,deps:Le},i),e({provide:ff,useValue:i,multi:!0},i),e({provide:Zn,useValue:()=>C(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let c=t;xu(u,l=>{e(l,c)})}}else return!1;return i!==t&&t.providers!==void 0}function xu(t,e){for(let r of t)sf(r)&&(r=r.\u0275providers),Array.isArray(r)?xu(r,e):e(r)}var ny=q({provide:String,useValue:q});function Mf(t){return t!==null&&typeof t=="object"&&ny in t}function ry(t){return!!(t&&t.useExisting)}function iy(t){return!!(t&&t.useFactory)}function Yn(t){return typeof t=="function"}function oy(t){return!!t.useClass}var ko=new b(""),eo={},sy={},Da;function Nu(){return Da===void 0&&(Da=new co),Da}var Ie=class{},Tr=class extends Ie{get destroyed(){return this._destroyed}constructor(e,r,n,i){super(),this.parent=r,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Va(e,s=>this.processProvider(s)),this.records.set(df,Un(void 0,this)),i.has("environment")&&this.records.set(Ie,Un(void 0,this));let o=this.records.get(ko);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(ff,Le,L.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=B(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of r)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),B(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=Bt(this),n=_e(void 0),i;try{return e()}finally{Bt(r),_e(n)}}get(e,r=_r,n=L.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Dd))return e[Dd](this);n=Oo(n);let i,o=Bt(this),s=_e(void 0);try{if(!(n&L.SkipSelf)){let u=this.records.get(e);if(u===void 0){let c=dy(e)&&No(e);c&&this.injectableDefInScope(c)?u=Un(La(e),eo):u=null,this.records.set(e,u)}if(u!=null)return this.hydrate(e,u)}let a=n&L.Self?Nu():this.parent;return r=n&L.Optional&&r===_r?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[ao]=a[ao]||[]).unshift(be(e)),o)throw a;return Ov(a,e,"R3InjectorError",this.source)}else throw a}finally{_e(s),Bt(o)}}resolveInjectorInitializers(){let e=B(null),r=Bt(this),n=_e(void 0),i;try{let o=this.get(Zn,Le,L.Self);for(let s of o)s()}finally{Bt(r),_e(n),B(e)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push(be(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new w(205,!1)}processProvider(e){e=we(e);let r=Yn(e)?e:we(e&&e.provide),n=uy(e);if(!Yn(e)&&e.multi===!0){let i=this.records.get(r);i||(i=Un(void 0,eo,!0),i.factory=()=>Fa(i.multi),this.records.set(r,i)),r=e,i.multi.push(e)}this.records.set(r,n)}hydrate(e,r){let n=B(null);try{return r.value===eo&&(r.value=sy,r.value=r.factory()),typeof r.value=="object"&&r.value&&ly(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{B(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=we(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function La(t){let e=No(t),r=e!==null?e.factory:fn(t);if(r!==null)return r;if(t instanceof b)throw new w(204,!1);if(t instanceof Function)return ay(t);throw new w(204,!1)}function ay(t){if(t.length>0)throw new w(204,!1);let r=yv(t);return r!==null?()=>r.factory(t):()=>new t}function uy(t){if(Mf(t))return Un(void 0,t.useValue);{let e=_f(t);return Un(e,eo)}}function _f(t,e,r){let n;if(Yn(t)){let i=we(t);return fn(i)||La(i)}else if(Mf(t))n=()=>we(t.useValue);else if(iy(t))n=()=>t.useFactory(...Fa(t.deps||[]));else if(ry(t))n=()=>C(we(t.useExisting));else{let i=we(t&&(t.useClass||t.provide));if(cy(t))n=()=>new i(...Fa(t.deps));else return fn(i)||La(i)}return n}function Un(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function cy(t){return!!t.deps}function ly(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function dy(t){return typeof t=="function"||typeof t=="object"&&t instanceof b}function Va(t,e){for(let r of t)Array.isArray(r)?Va(r,e):r&&sf(r)?Va(r.\u0275providers,e):e(r)}function Ye(t,e){t instanceof Tr&&t.assertNotDestroyed();let r,n=Bt(t),i=_e(void 0);try{return e()}finally{Bt(n),_e(i)}}function Sf(){return af()!==void 0||xv()!=null}function fy(t){if(!Sf())throw new w(-203,!1)}function hy(t){let e=Ce.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function py(t){return typeof t=="function"}var _t=0,O=1,S=2,ge=3,Ge=4,Qe=5,lo=6,Ar=7,qe=8,Qn=9,We=10,me=11,xr=12,Md=13,er=14,ut=15,Vr=16,$n=17,Et=18,Lo=19,Tf=20,Ut=21,wa=22,hn=23,Ze=25,Af=1;var pn=7,fo=8,Kn=9,Oe=10,Ru=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Ru||{});function ln(t){return Array.isArray(t)&&typeof t[Af]=="object"}function St(t){return Array.isArray(t)&&t[Af]===!0}function xf(t){return(t.flags&4)!==0}function Vo(t){return t.componentOffset>-1}function Ou(t){return(t.flags&1)===1}function Ht(t){return!!t.template}function gy(t){return(t[S]&512)!==0}var ja=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function Nf(t,e,r,n){e!==null?e.applyValueToInputSignal(e,n):t[r]=n}function Ke(){return Rf}function Rf(t){return t.type.prototype.ngOnChanges&&(t.setInput=vy),my}Ke.ngInherit=!0;function my(){let t=Ff(this),e=t?.current;if(e){let r=t.previous;if(r===Wn)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function vy(t,e,r,n,i){let o=this.declaredInputs[n],s=Ff(t)||yy(t,{previous:Wn,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[o];a[o]=new ja(c&&c.currentValue,r,u===Wn),Nf(t,e,i,r)}var Of="__ngSimpleChanges__";function Ff(t){return t[Of]||null}function yy(t,e){return t[Of]=e}var _d=null;var ot=function(t,e,r){_d?.(t,e,r)},Dy="svg",wy="math",Cy=!1;function by(){return Cy}function ct(t){for(;Array.isArray(t);)t=t[_t];return t}function Pf(t,e){return ct(e[t])}function Ve(t,e){return ct(e[t.index])}function kf(t,e){return t.data[e]}function Lf(t,e){return t[e]}function Gt(t,e){let r=e[t];return ln(r)?r:r[_t]}function Iy(t){return(t[S]&4)===4}function Fu(t){return(t[S]&128)===128}function Ey(t){return St(t[ge])}function ho(t,e){return e==null?null:t[e]}function Vf(t){t[$n]=0}function My(t){t[S]&1024||(t[S]|=1024,Fu(t)&&Nr(t))}function _y(t,e){for(;t>0;)e=e[er],t--;return e}function Pu(t){return!!(t[S]&9216||t[hn]?.dirty)}function Ba(t){t[We].changeDetectionScheduler?.notify(1),Pu(t)?Nr(t):t[S]&64&&(by()?(t[S]|=1024,Nr(t)):t[We].changeDetectionScheduler?.notify())}function Nr(t){t[We].changeDetectionScheduler?.notify();let e=Rr(t);for(;e!==null&&!(e[S]&8192||(e[S]|=8192,!Fu(e)));)e=Rr(e)}function jf(t,e){if((t[S]&256)===256)throw new w(911,!1);t[Ut]===null&&(t[Ut]=[]),t[Ut].push(e)}function Sy(t,e){if(t[Ut]===null)return;let r=t[Ut].indexOf(e);r!==-1&&t[Ut].splice(r,1)}function Rr(t){let e=t[ge];return St(e)?e[ge]:e}var P={lFrame:Wf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Ty(){return P.lFrame.elementDepthCount}function Ay(){P.lFrame.elementDepthCount++}function xy(){P.lFrame.elementDepthCount--}function Bf(){return P.bindingsEnabled}function Ny(){return P.skipHydrationRootTNode!==null}function Ry(t){return P.skipHydrationRootTNode===t}function Oy(){P.skipHydrationRootTNode=null}function H(){return P.lFrame.lView}function Se(){return P.lFrame.tView}function Tt(t){return P.lFrame.contextLView=t,t[qe]}function At(t){return P.lFrame.contextLView=null,t}function Te(){let t=Uf();for(;t!==null&&t.type===64;)t=t.parent;return t}function Uf(){return P.lFrame.currentTNode}function Fy(){let t=P.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function jr(t,e){let r=P.lFrame;r.currentTNode=t,r.isParent=e}function $f(){return P.lFrame.isParent}function Py(){P.lFrame.isParent=!1}function ky(){return P.lFrame.contextLView}function Hf(){let t=P.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Ly(t){return P.lFrame.bindingIndex=t}function ku(){return P.lFrame.bindingIndex++}function Vy(t){let e=P.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function jy(){return P.lFrame.inI18n}function By(t,e){let r=P.lFrame;r.bindingIndex=r.bindingRootIndex=t,Ua(e)}function Uy(){return P.lFrame.currentDirectiveIndex}function Ua(t){P.lFrame.currentDirectiveIndex=t}function $y(t){let e=P.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function zf(){return P.lFrame.currentQueryIndex}function Lu(t){P.lFrame.currentQueryIndex=t}function Hy(t){let e=t[O];return e.type===2?e.declTNode:e.type===1?t[Qe]:null}function Gf(t,e,r){if(r&L.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(r&L.Host);)if(i=Hy(o),i===null||(o=o[er],i.type&10))break;if(i===null)return!1;e=i,t=o}let n=P.lFrame=qf();return n.currentTNode=e,n.lView=t,!0}function Vu(t){let e=qf(),r=t[O];P.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function qf(){let t=P.lFrame,e=t===null?null:t.child;return e===null?Wf(t):e}function Wf(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Zf(){let t=P.lFrame;return P.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Yf=Zf;function ju(){let t=Zf();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function zy(t){return(P.lFrame.contextLView=_y(t,P.lFrame.contextLView))[qe]}function tr(){return P.lFrame.selectedIndex}function gn(t){P.lFrame.selectedIndex=t}function Qf(){let t=P.lFrame;return kf(t.tView,t.selectedIndex)}function Gy(){return P.lFrame.currentNamespace}var Kf=!0;function Bu(){return Kf}function Uu(t){Kf=t}function qy(t,e,r){let{ngOnChanges:n,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(n){let s=Rf(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}i&&(r.preOrderHooks??=[]).push(0-t,i),o&&((r.preOrderHooks??=[]).push(t,o),(r.preOrderCheckHooks??=[]).push(t,o))}function $u(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r=n)break}else e[u]<0&&(t[$n]+=65536),(a>14>16&&(t[S]&3)===e&&(t[S]+=16384,Sd(a,o)):Sd(a,o)}var qn=-1,mn=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function Zy(t){return t instanceof mn}function Yy(t){return(t.flags&8)!==0}function Qy(t){return(t.flags&16)!==0}function Xf(t){return t!==qn}function po(t){return t&32767}function Ky(t){return t>>16}function go(t,e){let r=Ky(t),n=e;for(;r>0;)n=n[er],r--;return n}var $a=!0;function mo(t){let e=$a;return $a=t,e}var Jy=256,eh=Jy-1,th=5,Xy=0,st={};function eD(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(Er)&&(n=r[Er]),n==null&&(n=r[Er]=Xy++);let i=n&eh,o=1<>th)]|=o}function vo(t,e){let r=nh(t,e);if(r!==-1)return r;let n=e[O];n.firstCreatePass&&(t.injectorIndex=e.length,ba(n.data,t),ba(e,null),ba(n.blueprint,null));let i=Hu(t,e),o=t.injectorIndex;if(Xf(i)){let s=po(i),a=go(i,e),u=a[O].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|u[s+c]}return e[o+8]=i,o}function ba(t,e){t.push(0,0,0,0,0,0,0,0,e)}function nh(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Hu(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,i=e;for(;i!==null;){if(n=ah(i),n===null)return qn;if(r++,i=i[er],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return qn}function Ha(t,e,r){eD(t,e,r)}function tD(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let n=r.length,i=0;for(;i>20,d=n?a:a+l,f=i?a+l:c;for(let h=d;h=u&&I.type===r)return h}if(i){let h=s[u];if(h&&Ht(h)&&h.type===r)return u}return null}function vn(t,e,r,n){let i=t[r],o=e.data;if(Zy(i)){let s=i;s.resolving&&Mv(Ev(o[r]));let a=mo(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?_e(s.injectImpl):null,l=Gf(t,n,L.Default);try{i=t[r]=s.factory(void 0,o,t,n),e.firstCreatePass&&r>=n.directiveStart&&qy(r,o[r],e)}finally{c!==null&&_e(c),mo(a),s.resolving=!1,Yf()}}return i}function rD(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Er)?t[Er]:void 0;return typeof e=="number"?e>=0?e&eh:iD:e}function Td(t,e,r){let n=1<>th)]&n)}function Ad(t,e){return!(t&L.Self)&&!(t&L.Host&&e)}var dn=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return oh(this._tNode,this._lView,e,Oo(n),r)}};function iD(){return new dn(Te(),H())}function nr(t){return kr(()=>{let e=t.prototype.constructor,r=e[so]||za(e),n=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==n;){let o=i[so]||za(i);if(o&&o!==r)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function za(t){return tf(t)?()=>{let e=za(we(t));return e&&e()}:fn(t)}function oD(t,e,r,n,i){let o=t,s=e;for(;o!==null&&s!==null&&s[S]&2048&&!(s[S]&512);){let a=sh(o,s,r,n|L.Self,st);if(a!==st)return a;let u=o.parent;if(!u){let c=s[Tf];if(c){let l=c.get(r,st,n);if(l!==st)return l}u=ah(s),s=s[er]}o=u}return i}function ah(t){let e=t[O],r=e.type;return r===2?e.declTNode:r===1?t[Qe]:null}function zu(t){return tD(Te(),t)}function xd(t,e=null,r=null,n){let i=uh(t,e,r,n);return i.resolveInjectorInitializers(),i}function uh(t,e=null,r=null,n,i=new Set){let o=[r||Le,ty(t)];return n=n||(typeof t=="object"?void 0:be(t)),new Tr(o,e||Nu(),n||null,i)}var Je=(()=>{let e=class e{static create(n,i){if(Array.isArray(n))return xd({name:""},i,n,"");{let o=n.name??"";return xd({name:o},n.parent,n.providers,o)}}};e.THROW_IF_NOT_FOUND=_r,e.NULL=new co,e.\u0275prov=D({token:e,providedIn:"any",factory:()=>C(df)}),e.__NG_ELEMENT_ID__=-1;let t=e;return t})();var sD="ngOriginalError";function Ia(t){return t[sD]}var lt=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&Ia(e);for(;r&&Ia(r);)r=Ia(r);return r||null}},ch=new b("",{providedIn:"root",factory:()=>p(lt).handleError.bind(void 0)}),Gu=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=aD,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),Ga=class extends Gu{constructor(e){super(),this._lView=e}onDestroy(e){return jf(this._lView,e),()=>Sy(this._lView,e)}};function aD(){return new Ga(H())}function uD(){return rr(Te(),H())}function rr(t,e){return new Ae(Ve(t,e))}var Ae=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=uD;let t=e;return t})();function cD(t){return t instanceof Ae?t.nativeElement:t}var qa=class extends le{constructor(e=!1){super(),this.destroyRef=void 0,this.__isAsync=e,Sf()&&(this.destroyRef=p(Gu,{optional:!0})??void 0)}emit(e){let r=B(null);try{super.next(e)}finally{B(r)}}subscribe(e,r,n){let i=e,o=r||(()=>null),s=n;if(e&&typeof e=="object"){let u=e;i=u.next?.bind(u),o=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(o=Ea(o),i&&(i=Ea(i)),s&&(s=Ea(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof ne&&e.add(a),a}};function Ea(t){return e=>{setTimeout(t,void 0,e)}}var K=qa;function lD(){return this._results[Symbol.iterator]()}var Wa=class t{get changes(){return this._changes??=new K}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let r=t.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=lD)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,r){return this._results.reduce(e,r)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,r){this.dirty=!1;let n=kv(e);(this._changesDetected=!Pv(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function lh(t){return(t.flags&128)===128}var dh=new Map,dD=0;function fD(){return dD++}function hD(t){dh.set(t[Lo],t)}function pD(t){dh.delete(t[Lo])}var Nd="__ngContext__";function yn(t,e){ln(e)?(t[Nd]=e[Lo],hD(e)):t[Nd]=e}function fh(t){return ph(t[xr])}function hh(t){return ph(t[Ge])}function ph(t){for(;t!==null&&!St(t);)t=t[Ge];return t}var Za;function gh(t){Za=t}function gD(){if(Za!==void 0)return Za;if(typeof document<"u")return document;throw new w(210,!1)}var jo=new b("",{providedIn:"root",factory:()=>mD}),mD="ng",qu=new b(""),ft=new b("",{providedIn:"platform",factory:()=>"unknown"});var Wu=new b("",{providedIn:"root",factory:()=>gD().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var vD="h",yD="b";var DD=()=>null;function Zu(t,e,r=!1){return DD(t,e,r)}var mh=!1,wD=new b("",{providedIn:"root",factory:()=>mh});var Qi;function CD(){if(Qi===void 0&&(Qi=null,Ce.trustedTypes))try{Qi=Ce.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Qi}function Rd(t){return CD()?.createScriptURL(t)||t}var yo=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Xd})`}};function Br(t){return t instanceof yo?t.changingThisBreaksApplicationSecurity:t}function Yu(t,e){let r=bD(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${Xd})`)}return r===e}function bD(t){return t instanceof yo&&t.getTypeName()||null}var ID=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function vh(t){return t=String(t),t.match(ID)?t:"unsafe:"+t}var Bo=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Bo||{});function Ur(t){let e=Dh();return e?e.sanitize(Bo.URL,t)||"":Yu(t,"URL")?Br(t):vh(Ro(t))}function ED(t){let e=Dh();if(e)return Rd(e.sanitize(Bo.RESOURCE_URL,t)||"");if(Yu(t,"ResourceURL"))return Rd(Br(t));throw new w(904,!1)}function MD(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?ED:Ur}function yh(t,e,r){return MD(e,r)(t)}function Dh(){let t=H();return t&&t[We].sanitizer}function wh(t){return t instanceof Function?t():t}function _D(t){return(t??p(Je)).get(ft)==="browser"}var Mt=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Mt||{}),SD;function Qu(t,e){return SD(t,e)}function Hn(t,e,r,n,i){if(n!=null){let o,s=!1;St(n)?o=n:ln(n)&&(s=!0,n=n[_t]);let a=ct(n);t===0&&r!==null?i==null?Mh(e,r,a):Do(e,r,a,i||null,!0):t===1&&r!==null?Do(e,r,a,i||null,!0):t===2?zD(e,a,s):t===3&&e.destroyNode(a),o!=null&&qD(e,t,o,r,i)}}function TD(t,e){return t.createText(e)}function AD(t,e,r){t.setValue(e,r)}function Ch(t,e,r){return t.createElement(e,r)}function xD(t,e){bh(t,e),e[_t]=null,e[Qe]=null}function ND(t,e,r,n,i,o){n[_t]=i,n[Qe]=e,Uo(t,n,r,1,i,o)}function bh(t,e){e[We].changeDetectionScheduler?.notify(1),Uo(t,e,e[me],2,null,null)}function RD(t){let e=t[xr];if(!e)return Ma(t[O],t);for(;e;){let r=null;if(ln(e))r=e[xr];else{let n=e[Oe];n&&(r=n)}if(!r){for(;e&&!e[Ge]&&e!==t;)ln(e)&&Ma(e[O],e),e=e[ge];e===null&&(e=t),ln(e)&&Ma(e[O],e),r=e&&e[Ge]}e=r}}function OD(t,e,r,n){let i=Oe+n,o=r.length;n>0&&(r[i-1][Ge]=e),n0&&(t[r-1][Ge]=n[Ge]);let o=uo(t,Oe+e);xD(n[O],n);let s=o[Et];s!==null&&s.detachView(o[O]),n[ge]=null,n[Ge]=null,n[S]&=-129}return n}function Eh(t,e){if(!(e[S]&256)){let r=e[me];r.destroyNode&&Uo(t,e,r,3,null,null),RD(e)}}function Ma(t,e){if(e[S]&256)return;let r=B(null);try{e[S]&=-129,e[S]|=256,e[hn]&&$l(e[hn]),kD(t,e),PD(t,e),e[O].type===1&&e[me].destroy();let n=e[Vr];if(n!==null&&St(e[ge])){n!==e[ge]&&Ih(n,e);let i=e[Et];i!==null&&i.detachView(t)}pD(e)}finally{B(r)}}function PD(t,e){let r=t.cleanup,n=e[Ar];if(r!==null)for(let o=0;o=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[r[o+1]];r[o].call(s)}n!==null&&(e[Ar]=null);let i=e[Ut];if(i!==null){e[Ut]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[n.directiveStart+i];if(o===at.None||o===at.Emulated)return null}return Ve(n,r)}}function Do(t,e,r,n,i){t.insertBefore(e,r,n,i)}function Mh(t,e,r){t.appendChild(e,r)}function Od(t,e,r,n,i){n!==null?Do(t,e,r,n,i):Mh(t,e,r)}function jD(t,e,r,n){t.removeChild(e,r,n)}function Ku(t,e){return t.parentNode(e)}function BD(t,e){return t.nextSibling(e)}function UD(t,e,r){return HD(t,e,r)}function $D(t,e,r){return t.type&40?Ve(t,r):null}var HD=$D,Fd;function Ju(t,e,r,n){let i=LD(t,n,e),o=e[me],s=n.parent||e[Qe],a=UD(s,n,e);if(i!=null)if(Array.isArray(r))for(let u=0;uZe&&Ah(t,e,Ze,!1),ot(s?2:0,i),r(n,i)}finally{gn(o),ot(s?3:1,i)}}function Fh(t,e,r){if(xf(e)){let n=B(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;snull;function tw(t,e,r,n){let i=Hh(e);i.push(r),t.firstCreatePass&&zh(t).push(n,i.length-1)}function nw(t,e,r,n,i,o){let s=e?e.injectorIndex:-1,a=0;return Ny()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Pd(t,e,r,n,i){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;n??={};let a,u=de.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=o;if(i!==null){if(!i.hasOwnProperty(o))continue;c=i[o]}t===0?kd(n,r,c,a,u):kd(n,r,c,a)}return n}function kd(t,e,r,n,i){let o;t.hasOwnProperty(r)?(o=t[r]).push(e,n):o=t[r]=[e,n],i!==void 0&&o.push(i)}function rw(t,e,r){let n=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],u=null,c=null;for(let l=n;l0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function cw(t,e,r,n){let i=r.directiveStart,o=r.directiveEnd;Vo(r)&&mw(e,r,t.data[i+r.componentOffset]),t.firstCreatePass||vo(r,e),yn(n,e);let s=r.initialInputs;for(let a=i;a{Nr(t.lView)},consumerOnSignalRead(){this.lView[hn]=this}}),Wh=100;function Zh(t,e=!0,r=0){let n=t[We],i=n.rendererFactory,o=!1;o||i.begin?.();try{Rw(t,r)}catch(s){throw e&&Gh(t,s),s}finally{o||(i.end?.(),n.inlineEffectRunner?.flush())}}function Rw(t,e){Xa(t,e);let r=0;for(;Pu(t);){if(r===Wh)throw new w(103,!1);r++,Xa(t,1)}}function Ow(t,e,r,n){let i=e[S];if((i&256)===256)return;let o=!1;!o&&e[We].inlineEffectRunner?.flush(),Vu(e);let s=null,a=null;!o&&Fw(t)&&(a=Tw(e),s=Bl(a));try{Vf(e),Ly(t.bindingStartIndex),r!==null&&Oh(t,e,r,2,n);let u=(i&3)===3;if(!o)if(u){let d=t.preOrderCheckHooks;d!==null&&to(e,d,null)}else{let d=t.preOrderHooks;d!==null&&no(e,d,0,null),Ca(e,0)}if(Pw(e),Yh(e,0),t.contentQueries!==null&&$h(t,e),!o)if(u){let d=t.contentCheckHooks;d!==null&&to(e,d)}else{let d=t.contentHooks;d!==null&&no(e,d,1),Ca(e,1)}YD(t,e);let c=t.components;c!==null&&Kh(e,c,0);let l=t.viewQuery;if(l!==null&&Ja(2,l,n),!o)if(u){let d=t.viewCheckHooks;d!==null&&to(e,d)}else{let d=t.viewHooks;d!==null&&no(e,d,2),Ca(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[wa]){for(let d of e[wa])d();e[wa]=null}o||(e[S]&=-73)}catch(u){throw Nr(e),u}finally{a!==null&&(Ul(a,s),xw(a)),ju()}}function Fw(t){return t.type!==2}function Yh(t,e){for(let r=fh(t);r!==null;r=hh(r))for(let n=Oe;n-1&&(Ya(e,n),uo(r,n))}this._attachedToViewContainer=!1}Eh(this._lView[O],this._lView)}onDestroy(e){jf(this._lView,e)}markForCheck(){rc(this._cdRefInjectingView||this._lView)}detach(){this._lView[S]&=-129}reattach(){Ba(this._lView),this._lView[S]|=128}detectChanges(){this._lView[S]|=1024,Zh(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,bh(this._lView[O],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=e,Ba(this._lView)}},wn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=jw;let t=e;return t})(),Lw=wn,Vw=class extends Lw{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let i=Mw(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:n});return new Dn(i)}};function jw(){return ic(Te(),H())}function ic(t,e){return t.type&4?new Vw(e,t,rr(t,e)):null}var SR=new RegExp(`^(\\d+)*(${yD}|${vD})*(.*)`);var Bw=()=>null;function Vd(t,e){return Bw(t,e)}var Co=class{},eu=class{},bo=class{};function Uw(t){let e=Error(`No component factory found for ${be(t)}.`);return e[$w]=t,e}var $w="ngComponent";var tu=class{resolveComponentFactory(e){throw Uw(e)}},Go=(()=>{let e=class e{};e.NULL=new tu;let t=e;return t})(),Or=class{},ht=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>Hw();let t=e;return t})();function Hw(){let t=H(),e=Te(),r=Gt(e.index,t);return(ln(r)?r:t)[me]}var zw=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),_a={};var jd=new Set;function qo(t){jd.has(t)||(jd.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function Bd(...t){}function Gw(){let t=typeof Ce.requestAnimationFrame=="function",e=Ce[t?"requestAnimationFrame":"setTimeout"],r=Ce[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&e&&r){let n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);let i=r[Zone.__symbol__("OriginalDelegate")];i&&(r=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:r}}var G=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new K(!1),this.onMicrotaskEmpty=new K(!1),this.onStable=new K(!1),this.onError=new K(!1),typeof Zone>"u")throw new w(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&r,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=Gw().nativeRequestAnimationFrame,Zw(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new w(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new w(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,qw,Bd,Bd);try{return o.runTask(s,r,n)}finally{o.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},qw={};function oc(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Ww(t){t.isCheckStableRunning||t.lastRequestAnimationFrameId!==-1||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Ce,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,nu(t),t.isCheckStableRunning=!0,oc(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),nu(t))}function Zw(t){let e=()=>{Ww(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,i,o,s,a)=>{if(Yw(a))return r.invokeTask(i,o,s,a);try{return Ud(t),r.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),$d(t)}},onInvoke:(r,n,i,o,s,a,u)=>{try{return Ud(t),r.invoke(i,o,s,a,u)}finally{t.shouldCoalesceRunChangeDetection&&e(),$d(t)}},onHasTask:(r,n,i,o)=>{r.hasTask(i,o),n===i&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,nu(t),oc(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,n,i,o)=>(r.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function nu(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.lastRequestAnimationFrameId!==-1?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Ud(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function $d(t){t._nesting--,oc(t)}var ru=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new K,this.onMicrotaskEmpty=new K,this.onStable=new K,this.onError=new K}run(e,r,n){return e.apply(r,n)}runGuarded(e,r,n){return e.apply(r,n)}runOutsideAngular(e){return e()}runTask(e,r,n,i){return e.apply(r,n)}};function Yw(t){return!Array.isArray(t)||t.length!==1?!1:t[0].data?.__ignore_ng_zone__===!0}function Qw(t="zone.js",e){return t==="noop"?new ru:t==="zone.js"?new G(e):t}var zn=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(zn||{}),Kw={destroy(){}};function sc(t,e){!e&&fy(sc);let r=e?.injector??p(Je);if(!_D(r))return Kw;qo("NgAfterNextRender");let n=r.get(ac),i=n.handler??=new ou,o=e?.phase??zn.MixedReadWrite,s=()=>{i.unregister(u),a()},a=r.get(Gu).onDestroy(s),u=Ye(r,()=>new iu(o,()=>{s(),t()}));return i.register(u),{destroy:s}}var iu=class{constructor(e,r){this.phase=e,this.callbackFn=r,this.zone=p(G),this.errorHandler=p(lt,{optional:!0}),p(Co,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(e){this.errorHandler?.handleError(e)}}},ou=class{constructor(){this.executingCallbacks=!1,this.buckets={[zn.EarlyRead]:new Set,[zn.Write]:new Set,[zn.MixedReadWrite]:new Set,[zn.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let r of e)r.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},ac=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let i of n)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function su(t,e,r){let n=r?t.styles:null,i=r?t.classes:null,o=0;if(e!==null)for(let s=0;s0&&Sh(t,r,o.join(" "))}}function iC(t,e,r){let n=t.projection=[];for(let i=0;i{let e=class e{};e.__NG_ELEMENT_ID__=sC;let t=e;return t})();function sC(){let t=Te();return Xh(t,H())}var aC=qt,Jh=class extends aC{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return rr(this._hostTNode,this._hostLView)}get injector(){return new dn(this._hostTNode,this._hostLView)}get parentInjector(){let e=Hu(this._hostTNode,this._hostLView);if(Xf(e)){let r=go(e,this._hostLView),n=po(e),i=r[O].data[n+8];return new dn(i,r)}else return new dn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=zd(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-Oe}createEmbeddedView(e,r,n){let i,o;typeof n=="number"?i=n:n!=null&&(i=n.index,o=n.injector);let s=Vd(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},o,s);return this.insertImpl(a,i,Ld(this._hostTNode,s)),a}createComponent(e,r,n,i,o){let s=e&&!py(e),a;if(s)a=r;else{let I=r||{};a=I.index,n=I.injector,i=I.projectableNodes,o=I.environmentInjector||I.ngModuleRef}let u=s?e:new Jn($t(e)),c=n||this.parentInjector;if(!o&&u.ngModule==null){let V=(s?c:this.parentInjector).get(Ie,null);V&&(o=V)}let l=$t(u.componentType??{}),d=Vd(this._lContainer,l?.id??null),f=d?.firstChild??null,h=u.create(c,i,f,o);return this.insertImpl(h.hostView,a,Ld(this._hostTNode,d)),h}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let i=e._lView;if(Ey(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let u=i[ge],c=new Jh(u,u[Qe],u[ge]);c.detach(c.indexOf(e))}}let o=this._adjustIndex(r),s=this._lContainer;return _w(s,i,o,n),e.attachToViewContainerRef(),lf(Sa(s),o,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=zd(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=Ya(this._lContainer,r);n&&(uo(Sa(this._lContainer),r),Eh(n[O],n))}detach(e){let r=this._adjustIndex(e,-1),n=Ya(this._lContainer,r);return n&&uo(Sa(this._lContainer),r)!=null?new Dn(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function zd(t){return t[fo]}function Sa(t){return t[fo]||(t[fo]=[])}function Xh(t,e){let r,n=e[t.index];return St(n)?r=n:(r=Uh(n,e,null,t),e[t.index]=r,zo(e,r)),cC(r,e,t,n),new Jh(r,t,e)}function uC(t,e){let r=t[me],n=r.createComment(""),i=Ve(e,t),o=Ku(r,i);return Do(r,o,n,BD(r,i),!1),n}var cC=fC,lC=()=>!1;function dC(t,e,r){return lC(t,e,r)}function fC(t,e,r,n){if(t[pn])return;let i;r.type&8?i=ct(n):i=uC(e,r),t[pn]=i}var cu=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},lu=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let n=e.contentQueries!==null?e.contentQueries[0]:r.length,i=[];for(let o=0;o0)n.push(s[a/2]);else{let c=o[a+1],l=e[-u];for(let d=Oe;de.trim())}function CC(t,e,r){t.queries===null&&(t.queries=new fu),t.queries.track(new hu(e,r))}function bC(t,e){let r=t.contentQueries||(t.contentQueries=[]),n=r.length?r[r.length-1]:-1;e!==n&&r.push(t.queries.length-1,e)}function uc(t,e){return t.queries.getByIndex(e)}function IC(t,e){let r=t[O],n=uc(r,e);return n.crossesNgTemplate?pu(r,t,e,[]):ep(r,t,n,e)}function EC(t){let e=[],r=new Map;function n(i){let o=r.get(i);if(!o){let s=t(i);r.set(i,o=s.then(TC))}return o}return Eo.forEach((i,o)=>{let s=[];i.templateUrl&&s.push(n(i.templateUrl).then(c=>{i.template=c}));let a=typeof i.styles=="string"?[i.styles]:i.styles||[];if(i.styles=a,i.styleUrl&&i.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(i.styleUrls?.length){let c=i.styles.length,l=i.styleUrls;i.styleUrls.forEach((d,f)=>{a.push(""),s.push(n(d).then(h=>{a[c+f]=h,l.splice(l.indexOf(d),1),l.length==0&&(i.styleUrls=void 0)}))})}else i.styleUrl&&s.push(n(i.styleUrl).then(c=>{a.push(c),i.styleUrl=void 0}));let u=Promise.all(s).then(()=>AC(o));e.push(u)}),_C(),Promise.all(e).then(()=>{})}var Eo=new Map,MC=new Set;function _C(){let t=Eo;return Eo=new Map,t}function SC(){return Eo.size===0}function TC(t){return typeof t=="string"?t:t.text()}function AC(t){MC.delete(t)}function xC(t){return Object.getPrototypeOf(t.prototype).constructor}function Xe(t){let e=xC(t.type),r=!0,n=[t];for(;e;){let i;if(Ht(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new w(903,!1);i=e.\u0275dir}if(i){if(r){n.push(i);let s=t;s.inputs=Ki(t.inputs),s.inputTransforms=Ki(t.inputTransforms),s.declaredInputs=Ki(t.declaredInputs),s.outputs=Ki(t.outputs);let a=i.hostBindings;a&&PC(t,a);let u=i.viewQuery,c=i.contentQueries;if(u&&OC(t,u),c&&FC(t,c),NC(t,i),mv(t.outputs,i.outputs),Ht(i)&&i.data.animation){let l=t.data;l.animation=(l.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;n--){let i=t[n];i.hostVars=e+=i.hostVars,i.hostAttrs=Sr(i.hostAttrs,r=Sr(r,i.hostAttrs))}}function Ki(t){return t===Wn?{}:t===Le?[]:t}function OC(t,e){let r=t.viewQuery;r?t.viewQuery=(n,i)=>{e(n,i),r(n,i)}:t.viewQuery=e}function FC(t,e){let r=t.contentQueries;r?t.contentQueries=(n,i,o)=>{e(n,i,o),r(n,i,o)}:t.contentQueries=e}function PC(t,e){let r=t.hostBindings;r?t.hostBindings=(n,i)=>{e(n,i),r(n,i)}:t.hostBindings=e}function cc(t){let e=t.inputConfig,r={};for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];Array.isArray(i)&&i[3]&&(r[n]=i[3])}t.inputTransforms=r}var zt=class{},Fr=class{};var Mo=class extends zt{constructor(e,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Io(this);let i=wf(e);this._bootstrapComponents=wh(i.bootstrap),this._r3Injector=uh(e,r,[{provide:zt,useValue:this},{provide:Go,useValue:this.componentFactoryResolver},...n],be(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},_o=class extends Fr{constructor(e){super(),this.moduleType=e}create(e){return new Mo(this.moduleType,e,[])}};function kC(t,e,r){return new Mo(t,e,r)}var gu=class extends zt{constructor(e){super(),this.componentFactoryResolver=new Io(this),this.instance=null;let r=new Tr([...e.providers,{provide:zt,useValue:this},{provide:Go,useValue:this.componentFactoryResolver}],e.parent||Nu(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Wo(t,e,r=null){return new gu({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}var In=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ue(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),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)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function tp(t){return VC(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function LC(t,e){if(Array.isArray(t))for(let r=0;r>17&32767}function GC(t){return(t&2)==2}function qC(t,e){return t&131071|e<<17}function mu(t){return t|2}function Xn(t){return(t&131068)>>2}function Ta(t,e){return t&-131069|e<<2}function WC(t){return(t&1)===1}function vu(t){return t|1}function ZC(t,e,r,n,i,o){let s=o?e.classBindings:e.styleBindings,a=Cn(s),u=Xn(s);t[n]=r;let c=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||Lr(d,l)>0)&&(c=!0)}else l=r;if(i)if(u!==0){let f=Cn(t[a+1]);t[n+1]=Ji(f,a),f!==0&&(t[f+1]=Ta(t[f+1],n)),t[a+1]=qC(t[a+1],n)}else t[n+1]=Ji(a,0),a!==0&&(t[a+1]=Ta(t[a+1],n)),a=n;else t[n+1]=Ji(u,0),a===0?a=n:t[u+1]=Ta(t[u+1],n),u=n;c&&(t[n+1]=mu(t[n+1])),Gd(t,l,n,!0),Gd(t,l,n,!1),YC(e,l,t,n,o),s=Ji(a,u),o?e.classBindings=s:e.styleBindings=s}function YC(t,e,r,n,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&Lr(o,e)>=0&&(r[n+1]=vu(r[n+1]))}function Gd(t,e,r,n){let i=t[r+1],o=e===null,s=n?Cn(i):Xn(i),a=!1;for(;s!==0&&(a===!1||o);){let u=t[s],c=t[s+1];QC(u,e)&&(a=!0,t[s+1]=n?vu(c):mu(c)),s=n?Cn(c):Xn(c)}a&&(t[r+1]=n?mu(i):vu(i))}function QC(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Lr(t,e)>=0:!1}function j(t,e,r){let n=H(),i=ku();if($r(n,i,e)){let o=Se(),s=Qf();ow(o,s,n,t,e,n[me],r,!1)}return j}function qd(t,e,r,n,i){let o=e.inputs,s=i?"class":"style";tc(t,r,o[s],s,n)}function or(t,e){return KC(t,e,null,!0),or}function KC(t,e,r,n){let i=H(),o=Se(),s=Vy(2);if(o.firstUpdatePass&&XC(o,t,s,n),e!==bn&&$r(i,s,e)){let a=o.data[tr()];ib(o,a,i,i[me],t,i[s+1]=ob(e,r),n,s)}}function JC(t,e){return e>=t.expandoStartIndex}function XC(t,e,r,n){let i=t.data;if(i[r+1]===null){let o=i[tr()],s=JC(t,r);sb(o,n)&&e===null&&!s&&(e=!1),e=eb(i,o,e,n),ZC(i,o,e,r,s,n)}}function eb(t,e,r,n){let i=$y(t),o=n?e.residualClasses:e.residualStyles;if(i===null)(n?e.classBindings:e.styleBindings)===0&&(r=Aa(null,t,e,r,n),r=Pr(r,e.attrs,n),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(r=Aa(i,t,e,r,n),o===null){let u=tb(t,e,n);u!==void 0&&Array.isArray(u)&&(u=Aa(null,t,e,u[1],n),u=Pr(u,e.attrs,n),nb(t,e,n,u))}else o=rb(t,e,n)}return o!==void 0&&(n?e.residualClasses=o:e.residualStyles=o),r}function tb(t,e,r){let n=r?e.classBindings:e.styleBindings;if(Xn(n)!==0)return t[Cn(n)]}function nb(t,e,r,n){let i=r?e.classBindings:e.styleBindings;t[Cn(i)]=n}function rb(t,e,r){let n,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let u=t[i],c=Array.isArray(u),l=c?u[1]:u,d=l===null,f=r[i+1];f===bn&&(f=d?Le:void 0);let h=d?ya(f,n):l===n?f:void 0;if(c&&!So(h)&&(h=ya(u,n)),So(h)&&(a=h,s))return a;let I=t[i+1];i=s?Cn(I):Xn(I)}if(e!==null){let u=o?e.residualClasses:e.residualStyles;u!=null&&(a=ya(u,n))}return a}function So(t){return t!==void 0}function ob(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=be(Br(t)))),t}function sb(t,e){return(t.flags&(e?8:16))!==0}function ab(t,e,r,n,i,o){let s=e.consts,a=ho(s,i),u=Ho(e,t,2,n,a);return Vh(e,r,u,ho(s,o)),u.attrs!==null&&su(u,u.attrs,!1),u.mergedAttrs!==null&&su(u,u.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,u),u}function v(t,e,r,n){let i=H(),o=Se(),s=Ze+t,a=i[me],u=o.firstCreatePass?ab(s,o,i,e,r,n):o.data[s],c=ub(o,i,u,a,e,t);i[s]=c;let l=Ou(u);return jr(u,!0),Th(a,c,u),!BC(u)&&Bu()&&Ju(o,i,c,u),Ty()===0&&yn(c,i),Ay(),l&&(Ph(o,i,u),Fh(o,u,i)),n!==null&&kh(i,u),v}function y(){let t=Te();$f()?Py():(t=t.parent,jr(t,!1));let e=t;Ry(e)&&Oy(),xy();let r=Se();return r.firstCreatePass&&($u(r,t),xf(t)&&r.queries.elementEnd(t)),e.classesWithoutHost!=null&&Yy(e)&&qd(r,e,H(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&Qy(e)&&qd(r,e,H(),e.stylesWithoutHost,!1),y}function ie(t,e,r,n){return v(t,e,r,n),y(),ie}var ub=(t,e,r,n,i,o)=>(Uu(!0),Ch(n,i,Gy()));function xt(){return H()}var To="en-US";var cb=To;function lb(t){typeof t=="string"&&(cb=t.toLowerCase().replace(/_/g,"-"))}function te(t,e,r,n){let i=H(),o=Se(),s=Te();return fb(o,i,i[me],s,t,e,n),te}function db(t,e,r,n){let i=t.cleanup;if(i!=null)for(let o=0;ou?a[u]:null}typeof s=="string"&&(o+=2)}return null}function fb(t,e,r,n,i,o,s){let a=Ou(n),c=t.firstCreatePass&&zh(t),l=e[qe],d=Hh(e),f=!0;if(n.type&3||s){let V=Ve(n,e),T=s?s(V):V,M=d.length,ve=s?Q=>s(ct(Q[n.index])):n.index,he=null;if(!s&&a&&(he=db(t,e,i,n.index)),he!==null){let Q=he.__ngLastListenerFn__||he;Q.__ngNextListenerFn__=o,he.__ngLastListenerFn__=o,f=!1}else{o=Yd(n,e,l,o,!1);let Q=r.listen(T,i,o);d.push(o,Q),c&&c.push(i,ve,M,M+1)}}else o=Yd(n,e,l,o,!1);let h=n.outputs,I;if(f&&h!==null&&(I=h[i])){let V=I.length;if(V)for(let T=0;T-1?Gt(t.index,e):e;rc(a);let u=Zd(e,r,n,s),c=o.__ngNextListenerFn__;for(;c;)u=Zd(e,r,c,s)&&u,c=c.__ngNextListenerFn__;return i&&u===!1&&s.preventDefault(),u}}function xe(t=1){return zy(t)}function np(t,e,r,n){DC(t,e,r,n)}function rp(t){let e=H(),r=Se(),n=zf();Lu(n+1);let i=uc(r,n);if(t.dirty&&Iy(e)===((i.metadata.flags&2)===2)){if(i.matches===null)t.reset([]);else{let o=IC(e,n);t.reset(o,cD),t.notifyOnChanges()}return!0}return!1}function ip(){return vC(H(),zf())}function hb(t,e,r,n){r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=n}function op(t){let e=ky();return Lf(e,Ze+t)}function _(t,e=""){let r=H(),n=Se(),i=t+Ze,o=n.firstCreatePass?Ho(n,i,1,e,null):n.data[i],s=pb(n,r,o,e,t);r[i]=s,Bu()&&Ju(n,r,s,o),jr(o,!1)}var pb=(t,e,r,n,i)=>(Uu(!0),TD(e[me],n));function pt(t){return et("",t,""),pt}function et(t,e,r){let n=H(),i=zC(n,t,e,r);return i!==bn&&Cw(n,tr(),i),et}function gb(t,e,r){let n=Se();if(n.firstCreatePass){let i=Ht(t);yu(r,n.data,n.blueprint,i,!0),yu(e,n.data,n.blueprint,i,!1)}}function yu(t,e,r,n,i){if(t=we(t),Array.isArray(t))for(let o=0;o>20;if(Yn(t)||!t.multi){let h=new mn(c,i,m),I=Na(u,e,i?l:l+f,d);I===-1?(Ha(vo(a,s),o,u),xa(o,t,e.length),e.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(h),s.push(h)):(r[I]=h,s[I]=h)}else{let h=Na(u,e,l+f,d),I=Na(u,e,l,l+f),V=h>=0&&r[h],T=I>=0&&r[I];if(i&&!T||!i&&!V){Ha(vo(a,s),o,u);let M=yb(i?vb:mb,r.length,i,n,c);!i&&T&&(r[I].providerFactory=M),xa(o,t,e.length,0),e.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(M),s.push(M)}else{let M=sp(r[i?I:h],c,!i&&n);xa(o,t,h>-1?h:I,M)}!i&&n&&T&&r[I].componentProviders++}}}function xa(t,e,r,n){let i=Yn(e),o=oy(e);if(i||o){let u=(o?we(e.useClass):e).prototype.ngOnDestroy;if(u){let c=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let l=c.indexOf(r);l===-1?c.push(r,[n,u]):c[l+1].push(n,u)}else c.push(r,u)}}}function sp(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function Na(t,e,r,n){for(let i=r;i{r.providersResolver=(n,i)=>gb(n,i?i(t):t,e)}}var Db=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let i=If(!1,n.type),o=i.length>0?Wo([i],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()}}};e.\u0275prov=D({token:e,providedIn:"environment",factory:()=>new e(C(Ie))});let t=e;return t})();function ap(t){qo("NgStandalone"),t.getStandaloneInjector=e=>e.get(Db).getOrCreateStandaloneInjector(t)}function Zo(t,e,r,n){return up(H(),Hf(),t,e,r,n)}function wb(t,e){let r=t[e];return r===bn?void 0:r}function up(t,e,r,n,i,o){let s=e+r;return $r(t,s,i)?jC(t,s+1,o?n.call(o,i):n(i)):wb(t,s+1)}function Zt(t,e){let r=Se(),n,i=t+Ze;r.firstCreatePass?(n=Cb(e,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks??=[]).push(i,n.onDestroy)):n=r.data[i];let o=n.factory||(n.factory=fn(n.type,!0)),s,a=_e(m);try{let u=mo(!1),c=o();return mo(u),hb(r,H(),i,c),c}finally{_e(a)}}function Cb(t,e){if(e)for(let r=e.length-1;r>=0;r--){let n=e[r];if(t===n.name)return n}}function Yt(t,e,r){let n=t+Ze,i=H(),o=Lf(i,n);return bb(i,n)?up(i,Hf(),e,o.transform,r,o):o.transform(r)}function bb(t,e){return t[O].data[e].pure}var Xi=null;function Ib(t){Xi!==null&&(t.defaultEncapsulation!==Xi.defaultEncapsulation||t.preserveWhitespaces!==Xi.preserveWhitespaces)||(Xi=t)}var Yo=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var lc=new b(""),Hr=new b(""),Qo=(()=>{let e=class e{constructor(n,i,o){this._ngZone=n,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,dc||(Eb(o),o.addToWindow(i)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{G.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&this._pendingCount===0&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(n)?(clearTimeout(i.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n()},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:o})}whenStable(n,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,o){return[]}};e.\u0275fac=function(i){return new(i||e)(C(G),C(Ko),C(Hr))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Ko=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return dc?.findTestabilityInTree(this,n,i)??null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function Eb(t){dc=t}var dc;function Qt(t){return!!t&&typeof t.then=="function"}function fc(t){return!!t&&typeof t.subscribe=="function"}var Jo=new b(""),cp=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=p(Jo,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(Qt(s))n.push(s);else if(fc(s)){let a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});n.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),n.length===0&&i(),this.initialized=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Xo=new b("");function Mb(){Hl(()=>{throw new w(600,!1)})}function _b(t){return t.isBoundToModule}function Sb(t,e,r){try{let n=r();return Qt(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}function lp(t,e){return Array.isArray(e)?e.reduce(lp,t):g(g({},t),e)}var En=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p(ch),this.afterRenderEffectManager=p(ac),this.externalTestViews=new Set,this.beforeRender=new le,this.afterTick=new le,this.componentTypes=[],this.components=[],this.isStable=p(In).hasPendingTasks.pipe(A(n=>!n)),this._injector=p(Ie)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){let o=n instanceof bo;if(!this._injector.get(cp).done){let h=!o&&Df(n),I=!1;throw new w(405,I)}let a;o?a=n:a=this._injector.get(Go).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let u=_b(a)?void 0:this._injector.get(zt),c=i||a.selector,l=a.create(Je.NULL,[],c,u),d=l.location.nativeElement,f=l.injector.get(lc,null);return f?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),oo(this.components,l),f?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new w(101,!1);let i=B(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,B(i)}}detectChangesInAttachedViews(n){let i=0,o=this.afterRenderEffectManager;for(;;){if(i===Wh)throw new w(103,!1);if(n){let s=i===0;this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:u}of this._views)Tb(a,s,u)}if(i++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>wu(s))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>wu(s))))break}}attachView(n){let i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){let i=n;oo(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let i=this._injector.get(Xo,[]);[...this._bootstrapListeners,...i].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._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>oo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new w(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function oo(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function Tb(t,e,r){!e&&!wu(t)||Ab(t,r,e)}function wu(t){return Pu(t)}function Ab(t,e,r){let n;r?(n=0,t[S]|=1024):t[S]&64?n=0:n=1,Zh(t,e,n)}var Cu=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},es=(()=>{let e=class e{compileModuleSync(n){return new _o(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let i=this.compileModuleSync(n),o=wf(n),s=wh(o.declarations).reduce((a,u)=>{let c=$t(u);return c&&a.push(new Jn(c)),a},[]);return new Cu(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),xb=new b("");function Nb(t,e,r){let n=new _o(r);return Promise.resolve(n)}function Qd(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var Rb=(()=>{let e=class e{constructor(){this.zone=p(G),this.applicationRef=p(En)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Ob(t){return[{provide:G,useFactory:t},{provide:Zn,multi:!0,useFactory:()=>{let e=p(Rb,{optional:!0});return()=>e.initialize()}},{provide:Zn,multi:!0,useFactory:()=>{let e=p(kb);return()=>{e.initialize()}}},{provide:ch,useFactory:Fb}]}function Fb(){let t=p(G),e=p(lt);return r=>t.runOutsideAngular(()=>e.handleError(r))}function Pb(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var kb=(()=>{let e=class e{constructor(){this.subscription=new ne,this.initialized=!1,this.zone=p(G),this.pendingTasks=p(In)}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(()=>{G.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{G.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Lb(){return typeof $localize<"u"&&$localize.locale||To}var hc=new b("",{providedIn:"root",factory:()=>p(hc,L.Optional|L.SkipSelf)||Lb()});var dp=new b(""),fp=(()=>{let e=class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){let o=Qw(i?.ngZone,Pb({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{let s=kC(n.moduleType,this.injector,Ob(()=>o)),a=s.injector.get(lt,null);return o.runOutsideAngular(()=>{let u=o.onError.subscribe({next:c=>{a.handleError(c)}});s.onDestroy(()=>{oo(this._modules,s),u.unsubscribe()})}),Sb(a,o,()=>{let u=s.injector.get(cp);return u.runInitializers(),u.donePromise.then(()=>{let c=s.injector.get(hc,To);return lb(c||To),this._moduleDoBootstrap(s),s})})})}bootstrapModule(n,i=[]){let o=lp({},i);return Nb(this.injector,o,n).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(n){let i=n.injector.get(En);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>i.bootstrap(o));else if(n.instance.ngDoBootstrap)n.instance.ngDoBootstrap(i);else throw new w(-403,!1);this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new w(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());let n=this._injector.get(dp,null);n&&(n.forEach(i=>i()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(i){return new(i||e)(C(Je))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),Mr=null,hp=new b("");function Vb(t){if(Mr&&!Mr.get(hp,!1))throw new w(400,!1);Mb(),Mr=t;let e=t.get(fp);return Ub(t),e}function pc(t,e,r=[]){let n=`Platform: ${e}`,i=new b(n);return(o=[])=>{let s=pp();if(!s||s.injector.get(hp,!1)){let a=[...r,...o,{provide:i,useValue:!0}];t?t(a):Vb(jb(a,n))}return Bb(i)}}function jb(t=[],e){return Je.create({name:e,providers:[{provide:ko,useValue:"platform"},{provide:dp,useValue:new Set([()=>Mr=null])},...t]})}function Bb(t){let e=pp();if(!e)throw new w(401,!1);return e}function pp(){return Mr?.get(fp)??null}function Ub(t){t.get(qu,null)?.forEach(r=>r())}var Kt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=$b;let t=e;return t})();function $b(t){return Hb(Te(),H(),(t&16)===16)}function Hb(t,e,r){if(Vo(t)&&!r){let n=Gt(t.index,e);return new Dn(n,n)}else if(t.type&47){let n=e[ut];return new Dn(n,e)}return null}var bu=class{constructor(){}supports(e){return tp(e)}create(e){return new Iu(e)}},zb=(t,e)=>e,Iu=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||zb}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,n=this._removalsHead,i=0,o=null;for(;r||n;){let s=!n||r&&r.currentIndex{s=this._trackByFn(i,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,i),n=!0):(n&&(r=this._verifyReinsertion(r,a,s,i)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,i++}),this.length=i;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,n,i){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,o,i)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,i),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,o,i)):e=this._addAfter(new Eu(r,n),o,i)),e}_verifyReinsertion(e,r,n,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,r,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let i=e._prevRemoved,o=e._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,r,n),this._addToMoves(e,n),e}_moveAfter(e,r,n){return this._unlink(e),this._insertAfter(e,r,n),this._addToMoves(e,n),e}_addAfter(e,r,n){return this._insertAfter(e,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,n){let i=r===null?this._itHead:r._next;return e._next=i,e._prev=r,i===null?this._itTail=e:i._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new Ao),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,n=e._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Ao),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Eu=class{constructor(e,r){this.item=e,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},Mu=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let r=e._prevDup,n=e._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},Ao=class{constructor(){this.map=new Map}put(e){let r=e.trackById,n=this.map.get(r);n||(n=new Mu,this.map.set(r,n)),n.add(e)}get(e,r){let n=e,i=this.map.get(n);return i?i.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Kd(t,e,r){let n=t.previousIndex;if(n===null)return n;let i=0;return r&&n{let e=class e{constructor(n){this.factories=n}static create(n,i){if(i!=null){let o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Jd()),deps:[[e,new Su,new Fo]]}}find(n){let i=this.factories.find(o=>o.supports(n));if(i!=null)return i;throw new w(901,!1)}};e.\u0275prov=D({token:e,providedIn:"root",factory:Jd});let t=e;return t})();var gp=pc(null,"core",[]),mp=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(i){return new(i||e)(C(En))},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({});let t=e;return t})();function sr(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function mc(t){let e=B(null);try{return t()}finally{B(e)}}function vp(t){let e=$t(t);if(!e)return null;let r=new Jn(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var bp=null;function gt(){return bp}function Ip(t){bp??=t}var ts=class{};var ye=new b(""),Ec=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>p(Gb),providedIn:"platform"});let t=e;return t})(),Ep=new b(""),Gb=(()=>{let e=class e extends Ec{constructor(){super(),this._doc=p(ye),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return gt().getBaseHref(this._doc)}onPopState(n){let i=gt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){let i=gt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",n,!1),()=>i.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,i,o){this._history.pushState(n,i,o)}replaceState(n,i,o){this._history.replaceState(n,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function Mc(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function yp(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function Nt(t){return t&&t[0]!=="?"?"?"+t:t}var Rt=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>p(_c),providedIn:"root"});let t=e;return t})(),Mp=new b(""),_c=(()=>{let e=class e extends Rt{constructor(n,i){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??p(ye).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 Mc(this._baseHref,n)}path(n=!1){let i=this._platformLocation.pathname+Nt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${i}${o}`:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Nt(s));this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Nt(s));this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(C(Ec),C(Mp,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),_p=(()=>{let e=class e extends Rt{constructor(n,i){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}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}path(n=!1){let i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(n){let i=Mc(this._baseHref,n);return i.length>0?"#"+i:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+Nt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+Nt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(C(Ec),C(Mp,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),ur=(()=>{let e=class e{constructor(n){this._subject=new K,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let i=this._locationStrategy.getBaseHref();this._basePath=Zb(yp(Dp(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({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,i=""){return this.path()==this.normalize(n+Nt(i))}normalize(n){return e.stripTrailingSlash(Wb(this._basePath,Dp(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,i="",o=null){this._locationStrategy.pushState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Nt(i)),o)}replaceState(n,i="",o=null){this._locationStrategy.replaceState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Nt(i)),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(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",i){this._urlChangeListeners.forEach(o=>o(n,i))}subscribe(n,i,o){return this._subject.subscribe({next:n,error:i,complete:o})}};e.normalizeQueryParams=Nt,e.joinWithSlash=Mc,e.stripTrailingSlash=yp,e.\u0275fac=function(i){return new(i||e)(C(Rt))},e.\u0275prov=D({token:e,factory:()=>qb(),providedIn:"root"});let t=e;return t})();function qb(){return new ur(C(Rt))}function Wb(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function Dp(t){return t.replace(/\/index.html$/,"")}function Zb(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}function ns(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[i,o]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var vc=class{constructor(e,r,n,i){this.$implicit=e,this.ngForOf=r,this.index=n,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},mt=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,i,o){this._viewContainer=n,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let i=this._viewContainer;n.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new vc(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(s===null?void 0:s);else if(s!==null){let u=i.get(s);i.move(u,a),wp(u,o)}});for(let o=0,s=i.length;o{let s=i.get(o.currentIndex);wp(s,o)})}static ngTemplateContextGuard(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(m(qt),m(wn),m(gc))},e.\u0275dir=re({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function wp(t,e){t.context.$implicit=e.item}var je=(()=>{let e=class e{constructor(n,i){this._viewContainer=n,this._context=new yc,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Cp("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Cp("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(m(qt),m(wn))},e.\u0275dir=re({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),yc=class{constructor(){this.$implicit=null,this.ngIf=null}};function Cp(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${be(e)}'.`)}function Yb(t,e){return new w(2100,!1)}var Dc=class{createSubscription(e,r){return mc(()=>e.subscribe({next:r,error:n=>{throw n}}))}dispose(e){mc(()=>e.unsubscribe())}},wc=class{createSubscription(e,r){return e.then(r,n=>{throw n})}dispose(e){}},Qb=new wc,Kb=new Dc,Jt=(()=>{let e=class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,i=>this._updateLatestValue(n,i))}_selectStrategy(n){if(Qt(n))return Qb;if(fc(n))return Kb;throw Yb(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,i){n===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(i){return new(i||e)(m(Kt,16))},e.\u0275pipe=mf({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var cr=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({});let t=e;return t})(),Sc="browser",Jb="server";function Xb(t){return t===Sc}function rs(t){return t===Jb}var Sp=(()=>{let e=class e{};e.\u0275prov=D({token:e,providedIn:"root",factory:()=>Xb(p(ft))?new Cc(p(ye),window):new bc});let t=e;return t})(),Cc=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let r=e0(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let r=e.getBoundingClientRect(),n=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],i-o[1])}};function e0(t,e){let r=t.getElementById(e)||t.getElementsByName(e)[0];if(r)return r;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=n.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}i=n.nextNode()}}return null}var bc=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},ar=class{};var Gr=class{},os=class{},Mn=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` +`).forEach(r=>{let n=r.indexOf(":");if(n>0){let i=r.slice(0,n),o=i.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,r);let i=(e.op==="a"?this.headers.get(r):void 0)||[];i.push(...n),this.headers.set(r,i);break;case"d":let o=e.value;if(!o)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(e,r){let n=(Array.isArray(r)?r:[r]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var Ac=class{encodeKey(e){return Tp(e)}encodeValue(e){return Tp(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function r0(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],u=r.get(s)||[];u.push(a),r.set(s,u)}),r}var i0=/%(\d[a-f0-9])/gi,o0={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Tp(t){return encodeURIComponent(t).replace(i0,(e,r)=>o0[r]??e)}function is(t){return`${t}`}var Xt=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Ac,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=r0(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let n=e.fromObject[r],i=Array.isArray(n)?n.map(is):[is(n)];this.map.set(r,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(n=>{let i=e[n];Array.isArray(i)?i.forEach(o=>{r.push({param:n,value:o,op:"a"})}):r.push({param:n,value:i,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new t({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(is(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],i=n.indexOf(is(e.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var xc=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function s0(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Ap(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function xp(t){return typeof Blob<"u"&&t instanceof Blob}function Np(t){return typeof FormData<"u"&&t instanceof FormData}function a0(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var zr=class t{constructor(e,r,n,i){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(s0(this.method)||i?(this.body=n!==void 0?n:null,o=i):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new Mn,this.context??=new xc,!this.params)this.params=new Xt,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),u=a===-1?"?":af.set(h,e.setHeaders[h]),c)),e.setParams&&(l=Object.keys(e.setParams).reduce((f,h)=>f.set(h,e.setParams[h]),l)),new t(r,n,s,{params:l,headers:c,context:d,reportProgress:u,responseType:i,withCredentials:a,transferCache:o})}},lr=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(lr||{}),qr=class{constructor(e,r=us.Ok,n="OK"){this.headers=e.headers||new Mn,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Nc=class t extends qr{constructor(e={}){super(e),this.type=lr.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},ss=class t extends qr{constructor(e={}){super(e),this.type=lr.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},as=class extends qr{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},us=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(us||{});function Tc(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Rc=(()=>{let e=class e{constructor(n){this.handler=n}request(n,i,o={}){let s;if(n instanceof zr)s=n;else{let c;o.headers instanceof Mn?c=o.headers:c=new Mn(o.headers);let l;o.params&&(o.params instanceof Xt?l=o.params:l=new Xt({fromObject:o.params})),s=new zr(n,i,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=E(s).pipe(bt(c=>this.handler.handle(c)));if(n instanceof zr||o.observe==="events")return a;let u=a.pipe(pe(c=>c instanceof ss));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return u.pipe(A(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return u.pipe(A(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return u.pipe(A(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return u.pipe(A(c=>c.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,i={}){return this.request("DELETE",n,i)}get(n,i={}){return this.request("GET",n,i)}head(n,i={}){return this.request("HEAD",n,i)}jsonp(n,i){return this.request("JSONP",n,{params:new Xt().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,i={}){return this.request("OPTIONS",n,i)}patch(n,i,o={}){return this.request("PATCH",n,Tc(o,i))}post(n,i,o={}){return this.request("POST",n,Tc(o,i))}put(n,i,o={}){return this.request("PUT",n,Tc(o,i))}};e.\u0275fac=function(i){return new(i||e)(C(Gr))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function Pp(t,e){return e(t)}function u0(t,e){return(r,n)=>e.intercept(r,{handle:i=>t(i,n)})}function c0(t,e,r){return(n,i)=>Ye(r,()=>e(n,o=>t(o,i)))}var Oc=new b(""),Fc=new b(""),l0=new b(""),d0=new b("");function f0(){let t=null;return(e,r)=>{t===null&&(t=(p(Oc,{optional:!0})??[]).reduceRight(u0,Pp));let n=p(In),i=n.add();return t(e,r).pipe(jt(()=>n.remove(i)))}}var Rp=(()=>{let e=class e extends Gr{constructor(n,i){super(),this.backend=n,this.injector=i,this.chain=null,this.pendingTasks=p(In);let o=p(d0,{optional:!0});this.backend=o??n}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(Fc),...this.injector.get(l0,[])]));this.chain=o.reduceRight((s,a)=>c0(s,a,this.injector),Pp)}let i=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(jt(()=>this.pendingTasks.remove(i)))}};e.\u0275fac=function(i){return new(i||e)(C(os),C(Ie))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var h0=/^\)\]\}',?\n/;function p0(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var Op=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new w(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?W(i.\u0275loadImpl()):E(null)).pipe(ce(()=>new U(s=>{let a=i.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((T,M)=>a.setRequestHeader(T,M.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let T=n.detectContentTypeHeader();T!==null&&a.setRequestHeader("Content-Type",T)}if(n.responseType){let T=n.responseType.toLowerCase();a.responseType=T!=="json"?T:"text"}let u=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let T=a.statusText||"OK",M=new Mn(a.getAllResponseHeaders()),ve=p0(a)||n.url;return c=new Nc({headers:M,status:a.status,statusText:T,url:ve}),c},d=()=>{let{headers:T,status:M,statusText:ve,url:he}=l(),Q=null;M!==us.NoContent&&(Q=typeof a.response>"u"?a.responseText:a.response),M===0&&(M=Q?us.Ok:0);let rt=M>=200&&M<300;if(n.responseType==="json"&&typeof Q=="string"){let Ne=Q;Q=Q.replace(h0,"");try{Q=Q!==""?JSON.parse(Q):null}catch(Pt){Q=Ne,rt&&(rt=!1,Q={error:Pt,text:Q})}}rt?(s.next(new ss({body:Q,headers:T,status:M,statusText:ve,url:he||void 0})),s.complete()):s.error(new as({error:Q,headers:T,status:M,statusText:ve,url:he||void 0}))},f=T=>{let{url:M}=l(),ve=new as({error:T,status:a.status||0,statusText:a.statusText||"Unknown Error",url:M||void 0});s.error(ve)},h=!1,I=T=>{h||(s.next(l()),h=!0);let M={type:lr.DownloadProgress,loaded:T.loaded};T.lengthComputable&&(M.total=T.total),n.responseType==="text"&&a.responseText&&(M.partialText=a.responseText),s.next(M)},V=T=>{let M={type:lr.UploadProgress,loaded:T.loaded};T.lengthComputable&&(M.total=T.total),s.next(M)};return a.addEventListener("load",d),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),n.reportProgress&&(a.addEventListener("progress",I),u!==null&&a.upload&&a.upload.addEventListener("progress",V)),a.send(u),s.next({type:lr.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",d),a.removeEventListener("timeout",f),n.reportProgress&&(a.removeEventListener("progress",I),u!==null&&a.upload&&a.upload.removeEventListener("progress",V)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(C(ar))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),kp=new b(""),g0="XSRF-TOKEN",m0=new b("",{providedIn:"root",factory:()=>g0}),v0="X-XSRF-TOKEN",y0=new b("",{providedIn:"root",factory:()=>v0}),cs=class{},D0=(()=>{let e=class e{constructor(n,i,o){this.doc=n,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=ns(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(C(ye),C(ft),C(m0))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function w0(t,e){let r=t.url.toLowerCase();if(!p(kp)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let n=p(cs).getToken(),i=p(y0);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),e(t)}var Lp=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Lp||{});function C0(t,e){return{\u0275kind:t,\u0275providers:e}}function b0(...t){let e=[Rc,Op,Rp,{provide:Gr,useExisting:Rp},{provide:os,useExisting:Op},{provide:Fc,useValue:w0,multi:!0},{provide:kp,useValue:!0},{provide:cs,useClass:D0}];for(let r of t)e.push(...r.\u0275providers);return Po(e)}var Fp=new b("");function I0(){return C0(Lp.LegacyInterceptors,[{provide:Fp,useFactory:f0},{provide:Fc,useExisting:Fp,multi:!0}])}var Vp=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({providers:[b0(I0())]});let t=e;return t})();var Lc=class extends ts{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Vc=class t extends Lc{static makeCurrent(){Ip(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=M0();return r==null?null:_0(r)}resetBaseElement(){Wr=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return ns(document.cookie,e)}},Wr=null;function M0(){return Wr=Wr||document.querySelector("base"),Wr?Wr.getAttribute("href"):null}function _0(t){return new URL(t,document.baseURI).pathname}var jc=class{addToWindow(e){Ce.getAngularTestability=(n,i=!0)=>{let o=e.findTestabilityInTree(n,i);if(o==null)throw new w(5103,!1);return o},Ce.getAllAngularTestabilities=()=>e.getAllTestabilities(),Ce.getAllAngularRootElements=()=>e.getAllRootElements();let r=n=>{let i=Ce.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&n()};i.forEach(a=>{a.whenStable(s)})};Ce.frameworkStabilizers||(Ce.frameworkStabilizers=[]),Ce.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,n){if(r==null)return null;let i=e.getTestability(r);return i??(n?gt().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},S0=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Bc=new b(""),$p=(()=>{let e=class e{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,o){return this._findPluginFor(i).addEventListener(n,i,o)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(s=>s.supports(n)),!i)throw new w(5101,!1);return this._eventNameToPlugin.set(n,i),i}};e.\u0275fac=function(i){return new(i||e)(C(Bc),C(G))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),ls=class{constructor(e){this._doc=e}},Pc="ng-app-id",Hp=(()=>{let e=class e{constructor(n,i,o,s={}){this.doc=n,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=rs(s),this.resetHostNodes()}addStyles(n){for(let i of n)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(n){for(let i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){let i=this.styleRef;i.get(n)?.elements?.forEach(o=>o.remove()),i.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Pc}="${this.appId}"]`);if(n?.length){let i=new Map;return n.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(n,i){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=i,s.usage}return o.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===n)return o.delete(i),s.removeAttribute(Pc),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Pc,this.appId),n.appendChild(a),a}}addStyleToHost(n,i){let o=this.getStyleElement(n,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(C(ye),C(jo),C(Wu,8),C(ft))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),kc={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/MathML/"},$c=/%COMP%/g,zp="%COMP%",T0=`_nghost-${zp}`,A0=`_ngcontent-${zp}`,x0=!0,N0=new b("",{providedIn:"root",factory:()=>x0});function R0(t){return A0.replace($c,t)}function O0(t){return T0.replace($c,t)}function Gp(t,e){return e.map(r=>r.replace($c,t))}var jp=(()=>{let e=class e{constructor(n,i,o,s,a,u,c,l=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=u,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=rs(u),this.defaultRenderer=new Zr(n,a,c,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===at.ShadowDom&&(i=z(g({},i),{encapsulation:at.Emulated}));let o=this.getOrCreateRenderer(n,i);return o instanceof ds?o.applyToHost(n):o instanceof Yr&&o.applyStyles(),o}getOrCreateRenderer(n,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,u=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(i.encapsulation){case at.Emulated:s=new ds(c,l,i,this.appId,d,a,u,f);break;case at.ShadowDom:return new Uc(c,l,n,i,a,u,this.nonce,f);default:s=new Yr(c,l,i,d,a,u,f);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(C($p),C(Hp),C(jo),C(N0),C(ye),C(ft),C(G),C(Wu))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Zr=class{constructor(e,r,n,i){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(kc[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(Bp(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(Bp(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new w(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,i){if(i){r=i+":"+r;let o=kc[i];o?e.setAttributeNS(o,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let i=kc[n];i?e.removeAttributeNS(i,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,i){i&(Mt.DashCase|Mt.Important)?e.style.setProperty(r,n,i&Mt.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&Mt.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=gt().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function Bp(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Uc=class extends Zr{constructor(e,r,n,i,o,s,a,u){super(e,o,s,u),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Gp(i.id,i.styles);for(let l of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Yr=class extends Zr{constructor(e,r,n,i,o,s,a,u){super(e,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=u?Gp(u,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},ds=class extends Yr{constructor(e,r,n,i,o,s,a,u){let c=i+"-"+n.id;super(e,r,n,o,s,a,u,c),this.contentAttr=R0(c),this.hostAttr=O0(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},F0=(()=>{let e=class e extends ls{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,o){return n.addEventListener(i,o,!1),()=>this.removeEventListener(n,i,o)}removeEventListener(n,i,o){return n.removeEventListener(i,o)}};e.\u0275fac=function(i){return new(i||e)(C(ye))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})(),Up=["alt","control","meta","shift"],P0={"\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"},k0={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},L0=(()=>{let e=class e extends ls{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,i,o){let s=e.parseEventName(i),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>gt().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let i=n.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(i.pop()),a="",u=i.indexOf("code");if(u>-1&&(i.splice(u,1),a="code."),Up.forEach(l=>{let d=i.indexOf(l);d>-1&&(i.splice(d,1),a+=l+".")}),a+=s,i.length!=0||s.length===0)return null;let c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(n,i){let o=P0[n.key]||n.key,s="";return i.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Up.forEach(a=>{if(a!==o){let u=k0[a];u(n)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(n,i,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>i(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(i){return new(i||e)(C(ye))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function V0(){Vc.makeCurrent()}function j0(){return new lt}function B0(){return gh(document),document}var U0=[{provide:ft,useValue:Sc},{provide:qu,useValue:V0,multi:!0},{provide:ye,useFactory:B0,deps:[]}],qp=pc(gp,"browser",U0),$0=new b(""),H0=[{provide:Hr,useClass:jc,deps:[]},{provide:lc,useClass:Qo,deps:[G,Ko,Hr]},{provide:Qo,useClass:Qo,deps:[G,Ko,Hr]}],z0=[{provide:ko,useValue:"root"},{provide:lt,useFactory:j0,deps:[]},{provide:Bc,useClass:F0,multi:!0,deps:[ye,G,ft]},{provide:Bc,useClass:L0,multi:!0,deps:[ye]},jp,Hp,$p,{provide:Or,useExisting:jp},{provide:ar,useClass:S0,deps:[]},[]],Wp=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:jo,useValue:n.appId}]}}};e.\u0275fac=function(i){return new(i||e)(C($0,12))},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({providers:[...z0,...H0],imports:[cr,mp]});let t=e;return t})();var Zp=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(i){return new(i||e)(C(ye))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var N="primary",li=Symbol("RouteTitle"),Wc=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function gr(t){return new Wc(t)}function G0(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[o]===i)}else return t===e}function og(t){return t.length>0?t[t.length-1]:null}function rn(t){return ca(t)?t:Qt(t)?W(Promise.resolve(t)):E(t)}var W0={exact:ag,subset:ug},sg={exact:Z0,subset:Y0,ignored:()=>!0};function Qp(t,e,r){return W0[r.paths](t.root,e.root,r.matrixParams)&&sg[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function Z0(t,e){return vt(t,e)}function ag(t,e,r){if(!Sn(t.segments,e.segments)||!ps(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!ag(t.children[n],e.children[n],r))return!1;return!0}function Y0(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>ig(t[r],e[r]))}function ug(t,e,r){return cg(t,e,e.segments,r)}function cg(t,e,r,n){if(t.segments.length>r.length){let i=t.segments.slice(0,r.length);return!(!Sn(i,r)||e.hasChildren()||!ps(i,r,n))}else if(t.segments.length===r.length){if(!Sn(t.segments,r)||!ps(t.segments,r,n))return!1;for(let i in e.children)if(!t.children[i]||!ug(t.children[i],e.children[i],n))return!1;return!0}else{let i=r.slice(0,t.segments.length),o=r.slice(t.segments.length);return!Sn(t.segments,i)||!ps(t.segments,i,n)||!t.children[N]?!1:cg(t.children[N],e,o,n)}}function ps(t,e,r){return e.every((n,i)=>sg[r](t[i].parameters,n.parameters))}var en=class{constructor(e=new $([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=gr(this.queryParams),this._queryParamMap}toString(){return J0.serialize(this)}},$=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return gs(this)}},_n=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=gr(this.parameters),this._parameterMap}toString(){return dg(this)}};function Q0(t,e){return Sn(t,e)&&t.every((r,n)=>vt(r.parameters,e[n].parameters))}function Sn(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function K0(t,e){let r=[];return Object.entries(t.children).forEach(([n,i])=>{n===N&&(r=r.concat(e(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==N&&(r=r.concat(e(i,n)))}),r}var di=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>new ni,providedIn:"root"});let t=e;return t})(),ni=class{parse(e){let r=new Qc(e);return new en(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${Qr(e.root,!0)}`,n=tI(e.queryParams),i=typeof e.fragment=="string"?`#${X0(e.fragment)}`:"";return`${r}${n}${i}`}},J0=new ni;function gs(t){return t.segments.map(e=>dg(e)).join("/")}function Qr(t,e){if(!t.hasChildren())return gs(t);if(e){let r=t.children[N]?Qr(t.children[N],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==N&&n.push(`${i}:${Qr(o,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=K0(t,(n,i)=>i===N?[Qr(t.children[N],!1)]:[`${i}:${Qr(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[N]!=null?`${gs(t)}/${r[0]}`:`${gs(t)}/(${r.join("//")})`}}function lg(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function fs(t){return lg(t).replace(/%3B/gi,";")}function X0(t){return encodeURI(t)}function Yc(t){return lg(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ms(t){return decodeURIComponent(t)}function Kp(t){return ms(t.replace(/\+/g,"%20"))}function dg(t){return`${Yc(t.path)}${eI(t.parameters)}`}function eI(t){return Object.entries(t).map(([e,r])=>`;${Yc(e)}=${Yc(r)}`).join("")}function tI(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(i=>`${fs(r)}=${fs(i)}`).join("&"):`${fs(r)}=${fs(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var nI=/^[^\/()?;#]+/;function Hc(t){let e=t.match(nI);return e?e[0]:""}var rI=/^[^\/()?;=#]+/;function iI(t){let e=t.match(rI);return e?e[0]:""}var oI=/^[^=?&#]+/;function sI(t){let e=t.match(oI);return e?e[0]:""}var aI=/^[^&#]+/;function uI(t){let e=t.match(aI);return e?e[0]:""}var Qc=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new $([],{}):new $([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[N]=new $(e,r)),n}parseSegment(){let e=Hc(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(e),new _n(ms(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=iI(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let i=Hc(this.remaining);i&&(n=i,this.capture(n))}e[ms(r)]=ms(n)}parseQueryParam(e){let r=sI(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=uI(this.remaining);s&&(n=s,this.capture(n))}let i=Kp(r),o=Kp(n);if(e.hasOwnProperty(i)){let s=e[i];Array.isArray(s)||(s=[s],e[i]=s),s.push(o)}else e[i]=o}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Hc(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new w(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=N);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[N]:new $([],s),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new w(4011,!1)}};function fg(t){return t.segments.length>0?new $([],{[N]:t}):t}function hg(t){let e={};for(let[n,i]of Object.entries(t.children)){let o=hg(i);if(n===N&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[n]=o)}let r=new $(t.segments,e);return cI(r)}function cI(t){if(t.numberOfChildren===1&&t.children[N]){let e=t.children[N];return new $(t.segments.concat(e.segments),e.children)}return t}function mr(t){return t instanceof en}function lI(t,e,r=null,n=null){let i=pg(t);return gg(i,e,r,n)}function pg(t){let e;function r(o){let s={};for(let u of o.children){let c=r(u);s[u.outlet]=c}let a=new $(o.url,s);return o===t&&(e=a),a}let n=r(t.root),i=fg(n);return e??i}function gg(t,e,r,n){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return zc(i,i,i,r,n);let o=dI(e);if(o.toRoot())return zc(i,i,new $([],{}),r,n);let s=fI(o,i,t),a=s.processChildren?Xr(s.segmentGroup,s.index,o.commands):vg(s.segmentGroup,s.index,o.commands);return zc(i,s.segmentGroup,a,r,n)}function vs(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ri(t){return typeof t=="object"&&t!=null&&t.outlets}function zc(t,e,r,n,i){let o={};n&&Object.entries(n).forEach(([u,c])=>{o[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let s;t===e?s=r:s=mg(t,e,r);let a=fg(hg(s));return new en(a,o,i)}function mg(t,e,r){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===e?n[i]=r:n[i]=mg(o,e,r)}),new $(t.segments,n)}var ys=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&vs(n[0]))throw new w(4003,!1);let i=n.find(ri);if(i&&i!==og(n))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function dI(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new ys(!0,0,t);let e=0,r=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?r=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new ys(r,e,n)}var hr=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function fI(t,e,r){if(t.isAbsolute)return new hr(e,!0,0);if(!r)return new hr(e,!1,NaN);if(r.parent===null)return new hr(r,!0,0);let n=vs(t.commands[0])?0:1,i=r.segments.length-1+n;return hI(r,i,t.numberOfDoubleDots)}function hI(t,e,r){let n=t,i=e,o=r;for(;o>i;){if(o-=i,n=n.parent,!n)throw new w(4005,!1);i=n.segments.length}return new hr(n,!1,i-o)}function pI(t){return ri(t[0])?t[0].outlets:{[N]:t}}function vg(t,e,r){if(t??=new $([],{}),t.segments.length===0&&t.hasChildren())return Xr(t,e,r);let n=gI(t,e,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndexo!==N)&&t.children[N]&&t.numberOfChildren===1&&t.children[N].segments.length===0){let o=Xr(t.children[N],e,r);return new $(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=vg(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new $(t.segments,i)}}function gI(t,e,r){let n=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return o;let s=t.segments[i],a=r[n];if(ri(a))break;let u=`${a}`,c=n0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!Xp(u,c,s))return o;n+=2}else{if(!Xp(u,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function Kc(t,e,r){let n=t.segments.slice(0,e),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=Kc(new $([],{}),0,n))}),e}function Jp(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function Xp(t,e,r){return t==r.path&&vt(e,r.parameters)}var ei="imperative",fe=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(fe||{}),Be=class{constructor(e,r){this.id=e,this.url=r}},vr=class extends Be{constructor(e,r,n="imperative",i=null){super(e,r),this.type=fe.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},tt=class extends Be{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=fe.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Pe=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Pe||{}),Ds=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Ds||{}),tn=class extends Be{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=fe.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},nn=class extends Be{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=fe.NavigationSkipped}},ii=class extends Be{constructor(e,r,n,i){super(e,r),this.error=n,this.target=i,this.type=fe.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ws=class extends Be{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=fe.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Jc=class extends Be{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=fe.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Xc=class extends Be{constructor(e,r,n,i,o){super(e,r),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o,this.type=fe.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},el=class extends Be{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=fe.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},tl=class extends Be{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=fe.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},nl=class{constructor(e){this.route=e,this.type=fe.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},rl=class{constructor(e){this.route=e,this.type=fe.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},il=class{constructor(e){this.snapshot=e,this.type=fe.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ol=class{constructor(e){this.snapshot=e,this.type=fe.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},sl=class{constructor(e){this.snapshot=e,this.type=fe.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},al=class{constructor(e){this.snapshot=e,this.type=fe.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Cs=class{constructor(e,r,n){this.routerEvent=e,this.position=r,this.anchor=n,this.type=fe.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},oi=class{},si=class{constructor(e){this.url=e}};var ul=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new fi,this.attachRef=null}},fi=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,i){let o=this.getOrCreateContext(n);o.outlet=i,this.contexts.set(n,o)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new ul,this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),bs=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=cl(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=cl(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=ll(e,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return ll(e,this._root).map(r=>r.value)}};function cl(t,e){if(t===e.value)return e;for(let r of e.children){let n=cl(t,r);if(n)return n}return null}function ll(t,e){if(t===e.value)return[e];for(let r of e.children){let n=ll(t,r);if(n.length)return n.unshift(e),n}return[]}var Fe=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function fr(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var Is=class extends bs{constructor(e,r){super(e),this.snapshot=r,wl(this,e)}toString(){return this.snapshot.toString()}};function yg(t){let e=vI(t),r=new ue([new _n("",{})]),n=new ue({}),i=new ue({}),o=new ue({}),s=new ue(""),a=new nt(r,n,o,s,i,N,t,e.root);return a.snapshot=e.root,new Is(new Fe(a,[]),e)}function vI(t){let e={},r={},n={},i="",o=new ai([],e,n,i,r,N,t,null,{});return new Es("",new Fe(o,[]))}var nt=class{constructor(e,r,n,i,o,s,a,u){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(A(c=>c[li]))??E(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o}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(A(e=>gr(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(A(e=>gr(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Dl(t,e,r="emptyOnly"){let n,{routeConfig:i}=t;return e!==null&&(r==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:g(g({},e.params),t.params),data:g(g({},e.data),t.data),resolve:g(g(g(g({},t.data),e.data),i?.data),t._resolvedData)}:n={params:g({},t.params),data:g({},t.data),resolve:g(g({},t.data),t._resolvedData??{})},i&&wg(i)&&(n.resolve[li]=i.title),n}var ai=class{get title(){return this.data?.[li]}constructor(e,r,n,i,o,s,a,u,c){this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}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??=gr(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=gr(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},Es=class extends bs{constructor(e,r){super(r),this.url=e,wl(this,r)}toString(){return Dg(this._root)}};function wl(t,e){e.value._routerState=t,e.children.forEach(r=>wl(t,r))}function Dg(t){let e=t.children.length>0?` { ${t.children.map(Dg).join(", ")} } `:"";return`${t.value}${e}`}function Gc(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,vt(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),vt(e.params,r.params)||t.paramsSubject.next(r.params),q0(e.url,r.url)||t.urlSubject.next(r.url),vt(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function dl(t,e){let r=vt(t.params,e.params)&&Q0(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||dl(t.parent,e.parent))}function wg(t){return typeof t.title=="string"||t.title===null}var Cl=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=N,this.activateEvents=new K,this.deactivateEvents=new K,this.attachEvents=new K,this.detachEvents=new K,this.parentContexts=p(fi),this.location=p(qt),this.changeDetector=p(Kt),this.environmentInjector=p(Ie),this.inputBinder=p(As,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:o}=n.name;if(i)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 w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,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,i){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,c=new fl(n,u,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=re({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ke]});let t=e;return t})(),fl=class{constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n,this.__ngOutletInjector=!0}get(e,r){return e===nt?this.route:e===fi?this.childContexts:this.parent.get(e,r)}},As=new b(""),eg=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:i}=n,o=Ir([i.queryParams,i.params,i.data]).pipe(ce(([s,a,u],c)=>(u=g(g(g({},s),a),u),c===0?E(u):Promise.resolve(u)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(n);return}let a=vp(i.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:u}of a.inputs)n.activatedComponentRef.setInput(u,s[u])});this.outletDataSubscriptions.set(n,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function yI(t,e,r){let n=ui(t,e._root,r?r._root:void 0);return new Is(n,e)}function ui(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let i=DI(t,e,r);return new Fe(n,i)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>ui(t,a)),s}}let n=wI(e.value),i=e.children.map(o=>ui(t,o));return new Fe(n,i)}}function DI(t,e,r){return e.children.map(n=>{for(let i of r.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return ui(t,n,i);return ui(t,n)})}function wI(t){return new nt(new ue(t.url),new ue(t.params),new ue(t.queryParams),new ue(t.fragment),new ue(t.data),t.outlet,t.component,t)}var Cg="ngNavigationCancelingError";function bg(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=mr(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=Ig(!1,Pe.Redirect);return i.url=r,i.navigationBehaviorOptions=n,i}function Ig(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[Cg]=!0,r.cancellationCode=e,r}function CI(t){return Eg(t)&&mr(t.url)}function Eg(t){return!!t&&t[Cg]}var bI=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ae({type:e,selectors:[["ng-component"]],standalone:!0,features:[ap],decls:1,vars:0,template:function(i,o){i&1&&ie(0,"router-outlet")},dependencies:[Cl],encapsulation:2});let t=e;return t})();function II(t,e){return t.providers&&!t._injector&&(t._injector=Wo(t.providers,e,`Route: ${t.path}`)),t._injector??e}function bl(t){let e=t.children&&t.children.map(bl),r=e?z(g({},t),{children:e}):g({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==N&&(r.component=bI),r}function yt(t){return t.outlet||N}function EI(t,e){let r=t.filter(n=>yt(n)===e);return r.push(...t.filter(n=>yt(n)!==e)),r}function hi(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var MI=(t,e,r,n)=>A(i=>(new hl(e,i.targetRouterState,i.currentRouterState,r,n).activate(t),i)),hl=class{constructor(e,r,n,i,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),Gc(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let i=fr(r);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else o&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=fr(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=fr(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let i=fr(r);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new al(o.value.snapshot))}),e.children.length&&this.forwardEvent(new ol(e.value.snapshot))}activateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(Gc(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),Gc(a.route.value),this.activateChildRoutes(e,null,s.children)}else{let a=hi(i.snapshot);s.attachRef=null,s.route=i,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,n)}},Ms=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},pr=class{constructor(e,r){this.component=e,this.route=r}};function _I(t,e,r){let n=t._root,i=e?e._root:null;return Kr(n,i,r,[n.value])}function SI(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Dr(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!nf(t)?t:e.get(t):n}function Kr(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=fr(e);return t.children.forEach(s=>{TI(s,o[s.value.outlet],r,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>ti(a,r.getContext(s),i)),i}function TI(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=AI(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Ms(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Kr(t,e,a?a.children:null,n,i):Kr(t,e,r,n,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new pr(a.outlet.component,s))}else s&&ti(e,a,i),i.canActivateChecks.push(new Ms(n)),o.component?Kr(t,null,a?a.children:null,n,i):Kr(t,null,r,n,i);return i}function AI(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!Sn(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Sn(t.url,e.url)||!vt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!dl(t,e)||!vt(t.queryParams,e.queryParams);case"paramsChange":default:return!dl(t,e)}}function ti(t,e,r){let n=fr(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?e?ti(s,e.children.getContext(o),r):ti(s,null,r):ti(s,e,r)}),i.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new pr(e.outlet.component,i)):r.canDeactivateChecks.push(new pr(null,i)):r.canDeactivateChecks.push(new pr(null,i))}function pi(t){return typeof t=="function"}function xI(t){return typeof t=="boolean"}function NI(t){return t&&pi(t.canLoad)}function RI(t){return t&&pi(t.canActivate)}function OI(t){return t&&pi(t.canActivateChild)}function FI(t){return t&&pi(t.canDeactivate)}function PI(t){return t&&pi(t.canMatch)}function Mg(t){return t instanceof Ct||t?.name==="EmptyError"}var hs=Symbol("INITIAL_VALUE");function yr(){return ce(t=>Ir(t.map(e=>e.pipe(It(1),ma(hs)))).pipe(A(e=>{for(let r of e)if(r!==!0){if(r===hs)return hs;if(r===!1||r instanceof en)return r}return!0}),pe(e=>e!==hs),It(1)))}function kI(t,e){return se(r=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?E(z(g({},r),{guardsResult:!0})):LI(s,n,i,t).pipe(se(a=>a&&xI(a)?VI(n,o,t,e):E(a)),A(a=>z(g({},r),{guardsResult:a})))})}function LI(t,e,r,n){return W(t).pipe(se(i=>HI(i.component,i.route,r,e,n)),it(i=>i!==!0,!0))}function VI(t,e,r,n){return W(e).pipe(bt(i=>jn(BI(i.route.parent,n),jI(i.route,n),$I(t,i.path,r),UI(t,i.route,r))),it(i=>i!==!0,!0))}function jI(t,e){return t!==null&&e&&e(new sl(t)),E(!0)}function BI(t,e){return t!==null&&e&&e(new il(t)),E(!0)}function UI(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return E(!0);let i=n.map(o=>Wi(()=>{let s=hi(e)??r,a=Dr(o,s),u=RI(a)?a.canActivate(e,t):Ye(s,()=>a(e,t));return rn(u).pipe(it())}));return E(i).pipe(yr())}function $I(t,e,r){let n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>SI(s)).filter(s=>s!==null).map(s=>Wi(()=>{let a=s.guards.map(u=>{let c=hi(s.node)??r,l=Dr(u,c),d=OI(l)?l.canActivateChild(n,t):Ye(c,()=>l(n,t));return rn(d).pipe(it())});return E(a).pipe(yr())}));return E(o).pipe(yr())}function HI(t,e,r,n,i){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return E(!0);let s=o.map(a=>{let u=hi(e)??i,c=Dr(a,u),l=FI(c)?c.canDeactivate(t,e,r,n):Ye(u,()=>c(t,e,r,n));return rn(l).pipe(it())});return E(s).pipe(yr())}function zI(t,e,r,n){let i=e.canLoad;if(i===void 0||i.length===0)return E(!0);let o=i.map(s=>{let a=Dr(s,t),u=NI(a)?a.canLoad(e,r):Ye(t,()=>a(e,r));return rn(u)});return E(o).pipe(yr(),_g(n))}function _g(t){return ia(ee(e=>{if(mr(e))throw bg(t,e)}),A(e=>e===!0))}function GI(t,e,r,n){let i=e.canMatch;if(!i||i.length===0)return E(!0);let o=i.map(s=>{let a=Dr(s,t),u=PI(a)?a.canMatch(e,r):Ye(t,()=>a(e,r));return rn(u)});return E(o).pipe(yr(),_g(n))}var ci=class{constructor(e){this.segmentGroup=e||null}},_s=class extends Error{constructor(e){super(),this.urlTree=e}};function dr(t){return Vn(new ci(t))}function qI(t){return Vn(new w(4e3,!1))}function WI(t){return Vn(Ig(!1,Pe.GuardRejected))}var pl=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return E(n);if(i.numberOfChildren>1||!i.children[N])return qI(e.redirectTo);i=i.children[N]}}applyRedirectCommands(e,r,n){let i=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r.startsWith("/"))throw new _s(i);return i}applyRedirectCreateUrlTree(e,r,n,i){let o=this.createSegmentGroup(e,r.root,n,i);return new en(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([i,o])=>{if(typeof o=="string"&&o.startsWith(":")){let a=o.substring(1);n[i]=r[a]}else n[i]=o}),n}createSegmentGroup(e,r,n,i){let o=this.createSegments(e,r.segments,n,i),s={};return Object.entries(r.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(e,u,n,i)}),new $(o,s)}createSegments(e,r,n,i){return r.map(o=>o.path.startsWith(":")?this.findPosParam(e,o,i):this.findOrReturn(o,n))}findPosParam(e,r,n){let i=n[r.path.substring(1)];if(!i)throw new w(4001,!1);return i}findOrReturn(e,r){let n=0;for(let i of r){if(i.path===e.path)return r.splice(n),i;n++}return e}},gl={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ZI(t,e,r,n,i){let o=Il(t,e,r);return o.matched?(n=II(e,n),GI(n,e,r,i).pipe(A(s=>s===!0?o:g({},gl)))):E(o)}function Il(t,e,r){if(e.path==="**")return YI(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?g({},gl):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(e.matcher||G0)(r,t,e);if(!i)return g({},gl);let o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=i.consumed.length>0?g(g({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function YI(t){return{matched:!0,parameters:t.length>0?og(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function tg(t,e,r,n){return r.length>0&&JI(t,r,n)?{segmentGroup:new $(e,KI(n,new $(r,t.children))),slicedSegments:[]}:r.length===0&&XI(t,r,n)?{segmentGroup:new $(t.segments,QI(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new $(t.segments,t.children),slicedSegments:r}}function QI(t,e,r,n){let i={};for(let o of r)if(xs(t,e,o)&&!n[yt(o)]){let s=new $([],{});i[yt(o)]=s}return g(g({},n),i)}function KI(t,e){let r={};r[N]=e;for(let n of t)if(n.path===""&&yt(n)!==N){let i=new $([],{});r[yt(n)]=i}return r}function JI(t,e,r){return r.some(n=>xs(t,e,n)&&yt(n)!==N)}function XI(t,e,r){return r.some(n=>xs(t,e,n))}function xs(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function eE(t,e,r,n){return yt(t)!==n&&(n===N||!xs(e,r,t))?!1:Il(e,t,r).matched}function tE(t,e,r){return e.length===0&&!t.children[r]}var ml=class{};function nE(t,e,r,n,i,o,s="emptyOnly"){return new vl(t,e,r,n,i,s,o).recognize()}var rE=31,vl=class{constructor(e,r,n,i,o,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new pl(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new w(4002,`'${e.segmentGroup}'`)}recognize(){let e=tg(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(A(r=>{let n=new ai([],Object.freeze({}),Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,{},N,this.rootComponentType,null,{}),i=new Fe(n,r),o=new Es("",i),s=lI(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,N).pipe(ke(n=>{if(n instanceof _s)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof ci?this.noMatchError(n):n}))}inheritParamsAndData(e,r){let n=e.value,i=Dl(n,r,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(o=>this.inheritParamsAndData(o,n))}processSegmentGroup(e,r,n,i){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n):this.processSegment(e,r,n,n.segments,i,!0).pipe(A(o=>o instanceof Fe?[o]:[]))}processChildren(e,r,n){let i=[];for(let o of Object.keys(n.children))o==="primary"?i.unshift(o):i.push(o);return W(i).pipe(bt(o=>{let s=n.children[o],a=EI(r,o);return this.processSegmentGroup(e,a,s,o)}),ga((o,s)=>(o.push(...s),o)),Vt(null),pa(),se(o=>{if(o===null)return dr(n);let s=Sg(o);return iE(s),E(s)}))}processSegment(e,r,n,i,o,s){return W(r).pipe(bt(a=>this.processSegmentAgainstRoute(a._injector??e,r,a,n,i,o,s).pipe(ke(u=>{if(u instanceof ci)return E(null);throw u}))),it(a=>!!a),ke(a=>{if(Mg(a))return tE(n,i,o)?E(new ml):dr(n);throw a}))}processSegmentAgainstRoute(e,r,n,i,o,s,a){return eE(n,i,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,n,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,r,n,o,s):dr(i):dr(i)}expandSegmentAgainstRouteUsingRedirect(e,r,n,i,o,s){let{matched:a,consumedSegments:u,positionalParamSegments:c,remainingSegments:l}=Il(r,i,o);if(!a)return dr(r);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>rE&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(u,i.redirectTo,c);return this.applyRedirects.lineralizeSegments(i,d).pipe(se(f=>this.processSegment(e,n,r,f.concat(l),s,!1)))}matchSegmentAgainstRoute(e,r,n,i,o){let s=ZI(r,n,i,e,this.urlSerializer);return n.path==="**"&&(r.children={}),s.pipe(ce(a=>a.matched?(e=n._injector??e,this.getChildConfig(e,n,i).pipe(ce(({routes:u})=>{let c=n._loadedInjector??e,{consumedSegments:l,remainingSegments:d,parameters:f}=a,h=new ai(l,f,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,sE(n),yt(n),n.component??n._loadedComponent??null,n,aE(n)),{segmentGroup:I,slicedSegments:V}=tg(r,l,d,u);if(V.length===0&&I.hasChildren())return this.processChildren(c,u,I).pipe(A(M=>M===null?null:new Fe(h,M)));if(u.length===0&&V.length===0)return E(new Fe(h,[]));let T=yt(n)===o;return this.processSegment(c,u,I,V,T?N:o,!0).pipe(A(M=>new Fe(h,M instanceof Fe?[M]:[])))}))):dr(r)))}getChildConfig(e,r,n){return r.children?E({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?E({routes:r._loadedRoutes,injector:r._loadedInjector}):zI(e,r,n,this.urlSerializer).pipe(se(i=>i?this.configLoader.loadChildren(e,r).pipe(ee(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):WI(r))):E({routes:[],injector:e})}};function iE(t){t.sort((e,r)=>e.value.outlet===N?-1:r.value.outlet===N?1:e.value.outlet.localeCompare(r.value.outlet))}function oE(t){let e=t.value.routeConfig;return e&&e.path===""}function Sg(t){let e=[],r=new Set;for(let n of t){if(!oE(n)){e.push(n);continue}let i=e.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),r.add(i)):e.push(n)}for(let n of r){let i=Sg(n.children);e.push(new Fe(n.value,i))}return e.filter(n=>!r.has(n))}function sE(t){return t.data||{}}function aE(t){return t.resolve||{}}function uE(t,e,r,n,i,o){return se(s=>nE(t,e,r,n,s.extractedUrl,i,o).pipe(A(({state:a,tree:u})=>z(g({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function cE(t,e){return se(r=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return E(r);let o=new Set(i.map(u=>u.route)),s=new Set;for(let u of o)if(!s.has(u))for(let c of Tg(u))s.add(c);let a=0;return W(s).pipe(bt(u=>o.has(u)?lE(u,n,t,e):(u.data=Dl(u,u.parent,t).resolve,E(void 0))),ee(()=>a++),Bn(1),se(u=>a===s.size?E(r):Re))})}function Tg(t){let e=t.children.map(r=>Tg(r)).flat();return[t,...e]}function lE(t,e,r,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!wg(i)&&(o[li]=i.title),dE(o,t,e,n).pipe(A(s=>(t._resolvedData=s,t.data=Dl(t,t.parent,r).resolve,null)))}function dE(t,e,r,n){let i=Zc(t);if(i.length===0)return E({});let o={};return W(i).pipe(se(s=>fE(t[s],e,r,n).pipe(it(),ee(a=>{o[s]=a}))),Bn(1),fa(o),ke(s=>Mg(s)?Re:Vn(s)))}function fE(t,e,r,n){let i=hi(e)??n,o=Dr(t,i),s=o.resolve?o.resolve(e,r):Ye(i,()=>o(e,r));return rn(s)}function qc(t){return ce(e=>{let r=t(e);return r?W(r).pipe(A(()=>e)):E(e)})}var Ag=(()=>{let e=class e{buildTitle(n){let i,o=n.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===N);return i}getResolvedTitleForRoute(n){return n.data[li]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>p(hE),providedIn:"root"});let t=e;return t})(),hE=(()=>{let e=class e extends Ag{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(C(Zp))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),gi=new b("",{providedIn:"root",factory:()=>({})}),Ss=new b(""),El=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(es)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return E(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=rn(n.loadComponent()).pipe(A(xg),ee(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),jt(()=>{this.componentLoaders.delete(n)})),o=new kn(i,()=>new le).pipe(Pn());return this.componentLoaders.set(n,o),o}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return E({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=pE(i,this.compiler,n,this.onLoadEndListener).pipe(jt(()=>{this.childrenLoaders.delete(i)})),a=new kn(s,()=>new le).pipe(Pn());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function pE(t,e,r,n){return rn(t.loadChildren()).pipe(A(xg),se(i=>i instanceof Fr||Array.isArray(i)?E(i):W(e.compileModuleAsync(i))),A(i=>{n&&n(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(r).injector,s=o.get(Ss,[],{optional:!0,self:!0}).flat()),{routes:s.map(bl),injector:o}}))}function gE(t){return t&&typeof t=="object"&&"default"in t}function xg(t){return gE(t)?t.default:t}var Ml=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>p(mE),providedIn:"root"});let t=e;return t})(),mE=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ng=new b(""),Rg=new b("");function vE(t,e,r){let n=t.get(Rg),i=t.get(ye);return t.get(G).runOutsideAngular(()=>{if(!i.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,Promise.resolve();let o,s=new Promise(c=>{o=c}),a=i.startViewTransition(()=>(o(),yE(t))),{onViewTransitionCreated:u}=n;return u&&Ye(t,()=>u({transition:a,from:e,to:r})),s})}function yE(t){return new Promise(e=>{sc(e,{injector:t})})}var _l=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new le,this.transitionAbortSubject=new le,this.configLoader=p(El),this.environmentInjector=p(Ie),this.urlSerializer=p(di),this.rootContexts=p(fi),this.location=p(ur),this.inputBindingEnabled=p(As,{optional:!0})!==null,this.titleStrategy=p(Ag),this.options=p(gi,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(Ml),this.createViewTransition=p(Ng,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>E(void 0),this.rootComponentType=null;let n=o=>this.events.next(new nl(o)),i=o=>this.events.next(new rl(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(z(g(g({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,o){return this.transitions=new ue({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ei,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(pe(s=>s.id!==0),A(s=>z(g({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),ce(s=>{let a=!1,u=!1;return E(s).pipe(ce(c=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",Pe.SupersededByNewNavigation),Re;this.currentTransition=s,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?z(g({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let f="";return this.events.next(new nn(c.id,this.urlSerializer.serialize(c.rawUrl),f,Ds.IgnoredSameUrlNavigation)),c.resolve(null),Re}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return E(c).pipe(ce(f=>{let h=this.transitions?.getValue();return this.events.next(new vr(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?Re:Promise.resolve(f)}),uE(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),ee(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=z(g({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let h=new ws(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(h)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:f,extractedUrl:h,source:I,restoredState:V,extras:T}=c,M=new vr(f,this.urlSerializer.serialize(h),I,V);this.events.next(M);let ve=yg(this.rootComponentType).snapshot;return this.currentTransition=s=z(g({},c),{targetSnapshot:ve,urlAfterRedirects:h,extras:z(g({},T),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,E(s)}else{let f="";return this.events.next(new nn(c.id,this.urlSerializer.serialize(c.extractedUrl),f,Ds.IgnoredByUrlHandlingStrategy)),c.resolve(null),Re}}),ee(c=>{let l=new Jc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),A(c=>(this.currentTransition=s=z(g({},c),{guards:_I(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),s)),kI(this.environmentInjector,c=>this.events.next(c)),ee(c=>{if(s.guardsResult=c.guardsResult,mr(c.guardsResult))throw bg(this.urlSerializer,c.guardsResult);let l=new Xc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),pe(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",Pe.GuardRejected),!1)),qc(c=>{if(c.guards.canActivateChecks.length)return E(c).pipe(ee(l=>{let d=new el(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),ce(l=>{let d=!1;return E(l).pipe(cE(this.paramsInheritanceStrategy,this.environmentInjector),ee({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",Pe.NoDataFromResolver)}}))}),ee(l=>{let d=new tl(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),qc(c=>{let l=d=>{let f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(ee(h=>{d.component=h}),A(()=>{})));for(let h of d.children)f.push(...l(h));return f};return Ir(l(c.targetSnapshot.root)).pipe(Vt(null),It(1))}),qc(()=>this.afterPreactivation()),ce(()=>{let{currentSnapshot:c,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return d?W(d).pipe(A(()=>s)):E(s)}),A(c=>{let l=yI(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=s=z(g({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),ee(()=>{this.events.next(new oi)}),MI(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),It(1),ee({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new tt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),va(this.transitionAbortSubject.pipe(ee(c=>{throw c}))),jt(()=>{!a&&!u&&this.cancelNavigationTransition(s,"",Pe.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),ke(c=>{if(u=!0,Eg(c))this.events.next(new tn(s.id,this.urlSerializer.serialize(s.extractedUrl),c.message,c.cancellationCode)),CI(c)?this.events.next(new si(c.url)):s.resolve(!1);else{this.events.next(new ii(s.id,this.urlSerializer.serialize(s.extractedUrl),c,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(c))}catch(l){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(l)}}return Re}))}))}cancelNavigationTransition(n,i,o){let s=new tn(n.id,this.urlSerializer.serialize(n.extractedUrl),i,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function DE(t){return t!==ei}var wE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>p(CE),providedIn:"root"});let t=e;return t})(),yl=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},CE=(()=>{let e=class e extends yl{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=nr(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Og=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:()=>p(bE),providedIn:"root"});let t=e;return t})(),bE=(()=>{let e=class e extends Og{constructor(){super(...arguments),this.location=p(ur),this.urlSerializer=p(di),this.options=p(gi,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(Ml),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new en,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=yg(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof vr)this.stateMemento=this.createStateMemento();else if(n instanceof nn)this.rawUrlTree=i.initialUrl;else if(n instanceof ws){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else n instanceof oi?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):n instanceof tn&&(n.code===Pe.GuardRejected||n.code===Pe.NoDataFromResolver)?this.restoreHistory(i):n instanceof ii?this.restoreHistory(i,!0):n instanceof tt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=g(g({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=g(g({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&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,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=nr(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Jr=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Jr||{});function Fg(t,e){t.events.pipe(pe(r=>r instanceof tt||r instanceof tn||r instanceof ii||r instanceof nn),A(r=>r instanceof tt||r instanceof nn?Jr.COMPLETE:(r instanceof tn?r.code===Pe.Redirect||r.code===Pe.SupersededByNewNavigation:!1)?Jr.REDIRECTING:Jr.FAILED),pe(r=>r!==Jr.REDIRECTING),It(1)).subscribe(()=>{e()})}function IE(t){throw t}var EE={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ME={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ee=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=p(Yo),this.stateManager=p(Og),this.options=p(gi,{optional:!0})||{},this.pendingTasks=p(In),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(_l),this.urlSerializer=p(di),this.location=p(ur),this.urlHandlingStrategy=p(Ml),this._events=new le,this.errorHandler=this.options.errorHandler||IE,this.navigated=!1,this.routeReuseStrategy=p(wE),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=p(Ss,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!p(As,{optional:!0}),this.eventsSubscription=new ne,this.isNgZoneEnabled=p(G)instanceof G&&G.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof tn&&i.code!==Pe.Redirect&&i.code!==Pe.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof tt)this.navigated=!0;else if(i instanceof si){let a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),u={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||DE(o.source)};this.scheduleNavigation(a,ei,null,u,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}SE(i)&&this._events.next(i)}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),ei,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)})}navigateToSyncWithBrowser(n,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let c=g({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(s.state=c)}let u=this.parseUrl(n);this.scheduleNavigation(u,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(bl),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:u,preserveFragment:c}=i,l=c?this.currentUrlTree.fragment:a,d=null;switch(u){case"merge":d=g(g({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let h=o?o.snapshot:this.routerState.snapshot.root;f=pg(h)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),f=this.currentUrlTree.root}return gg(f,n,d,l??null)}navigateByUrl(n,i={skipLocationChange:!1}){let o=mr(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,ei,null,i)}navigate(n,i={skipLocationChange:!1}){return _E(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let o;if(i===!0?o=g({},EE):i===!1?o=g({},ME):o=i,mr(n))return Qp(this.currentUrlTree,n,o);let s=this.parseUrl(n);return Qp(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((i,[o,s])=>(s!=null&&(i[o]=s),i),{})}scheduleNavigation(n,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let u,c,l;a?(u=a.resolve,c=a.reject,l=a.promise):l=new Promise((f,h)=>{u=f,c=h});let d=this.pendingTasks.add();return Fg(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:u,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function _E(t){for(let e=0;e{let e=class e{constructor(n,i,o,s,a,u){this.router=n,this.route=i,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=u,this.href=null,this.commands=null,this.onChanges=new le,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof tt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n!=null?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,i,o,s,a){let u=this.urlTree;if(u===null||this.isAnchorElement&&(n!==0||i||o||s||a||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(u,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 i=this.href===null?null:yh(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(n,i){let o=this.renderer,s=this.el.nativeElement;i!==null?o.setAttribute(s,n,i):o.removeAttribute(s,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(i){return new(i||e)(m(Ee),m(nt),zu("tabindex"),m(ht),m(Ae),m(Rt))},e.\u0275dir=re({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){i&1&&te("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&ir("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[de.HasDecoratorInputTransform,"preserveFragment","preserveFragment",sr],skipLocationChange:[de.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",sr],replaceUrl:[de.HasDecoratorInputTransform,"replaceUrl","replaceUrl",sr],routerLink:"routerLink"},standalone:!0,features:[cc,Ke]});let t=e;return t})(),Pg=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,i,o,s,a){this.router=n,this.element=i,this.renderer=o,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new K,this.routerEventsSubscription=n.events.subscribe(u=>{u instanceof tt&&this.update()})}ngAfterContentInit(){E(this.links.changes,E(null)).pipe(Lt()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=W(n).pipe(Lt()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(n){let i=Array.isArray(n)?n:n.split(" ");this.classes=i.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this.classes.forEach(i=>{n?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n))})}isLinkActive(n){let i=TE(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let s=o.urlTree;return s?n.isActive(s,i):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};e.\u0275fac=function(i){return new(i||e)(m(Ee),m(Ae),m(ht),m(Kt),m(Ue,8))},e.\u0275dir=re({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(i,o,s){if(i&1&&np(s,Ue,5),i&2){let a;rp(a=ip())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Ke]});let t=e;return t})();function TE(t){return!!t.paths}var Ts=class{};var AE=(()=>{let e=class e{constructor(n,i,o,s,a){this.router=n,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(pe(n=>n instanceof tt),bt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,i){let o=[];for(let s of i){s.providers&&!s._injector&&(s._injector=Wo(s.providers,n,`Route: ${s.path}`));let a=s._injector??n,u=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(u,s.children??s._loadedRoutes))}return W(o).pipe(Lt())}preloadConfig(n,i){return this.preloadingStrategy.preload(i,()=>{let o;i.loadChildren&&i.canLoad===void 0?o=this.loader.loadChildren(n,i):o=E(null);let s=o.pipe(se(a=>a===null?E(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(i);return W([s,a]).pipe(Lt())}else return s})}};e.\u0275fac=function(i){return new(i||e)(C(Ee),C(es),C(Ie),C(Ts),C(El))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),kg=new b(""),xE=(()=>{let e=class e{constructor(n,i,o,s,a={}){this.urlSerializer=n,this.transitions=i,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof vr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof tt?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof nn&&n.code===Ds.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Cs&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Cs(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(i){xh()},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();function NE(t){return t.routerState.root}function mi(t,e){return{\u0275kind:t,\u0275providers:e}}function RE(){let t=p(Je);return e=>{let r=t.get(En);if(e!==r.components[0])return;let n=t.get(Ee),i=t.get(Lg);t.get(Sl)===1&&n.initialNavigation(),t.get(Vg,null,L.Optional)?.setUpPreloading(),t.get(kg,null,L.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Lg=new b("",{factory:()=>new le}),Sl=new b("",{providedIn:"root",factory:()=>1});function OE(){return mi(2,[{provide:Sl,useValue:0},{provide:Jo,multi:!0,deps:[Je],useFactory:e=>{let r=e.get(Ep,Promise.resolve());return()=>r.then(()=>new Promise(n=>{let i=e.get(Ee),o=e.get(Lg);Fg(i,()=>{n(!0)}),e.get(_l).afterPreactivation=()=>(n(!0),o.closed?E(void 0):o),i.initialNavigation()}))}}])}function FE(){return mi(3,[{provide:Jo,multi:!0,useFactory:()=>{let e=p(Ee);return()=>{e.setUpLocationChangeListener()}}},{provide:Sl,useValue:2}])}var Vg=new b("");function PE(t){return mi(0,[{provide:Vg,useExisting:AE},{provide:Ts,useExisting:t}])}function kE(){return mi(8,[eg,{provide:As,useExisting:eg}])}function LE(t){let e=[{provide:Ng,useValue:vE},{provide:Rg,useValue:g({skipNextTransition:!!t?.skipInitialTransition},t)}];return mi(9,e)}var ng=new b("ROUTER_FORROOT_GUARD"),VE=[ur,{provide:di,useClass:ni},Ee,fi,{provide:nt,useFactory:NE,deps:[Ee]},El,[]],Ft=(()=>{let e=class e{constructor(n){}static forRoot(n,i){return{ngModule:e,providers:[VE,[],{provide:Ss,multi:!0,useValue:n},{provide:ng,useFactory:$E,deps:[[Ee,new Fo,new Su]]},{provide:gi,useValue:i||{}},i?.useHash?BE():UE(),jE(),i?.preloadingStrategy?PE(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?HE(i):[],i?.bindToComponentInputs?kE().\u0275providers:[],i?.enableViewTransitions?LE().\u0275providers:[],zE()]}}static forChild(n){return{ngModule:e,providers:[{provide:Ss,multi:!0,useValue:n}]}}};e.\u0275fac=function(i){return new(i||e)(C(ng,8))},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({});let t=e;return t})();function jE(){return{provide:kg,useFactory:()=>{let t=p(Sp),e=p(G),r=p(gi),n=p(_l),i=p(di);return r.scrollOffset&&t.setOffset(r.scrollOffset),new xE(i,n,t,e,r)}}}function BE(){return{provide:Rt,useClass:_p}}function UE(){return{provide:Rt,useClass:_c}}function $E(t){return"guarded"}function HE(t){return[t.initialNavigation==="disabled"?FE().\u0275providers:[],t.initialNavigation==="enabledBlocking"?OE().\u0275providers:[]]}var rg=new b("");function zE(){return[{provide:rg,useFactory:RE},{provide:Xo,multi:!0,useExisting:rg}]}var Dt=(()=>{let e=class e{constructor(n){this.http=n,this.apiUrl="https://api5.angular-buch.com"}getAll(){return this.http.get(`${this.apiUrl}/books`).pipe(ke(n=>(console.error(n),E([]))))}getSingle(n){return this.http.get(`${this.apiUrl}/books/${n}`)}remove(n){return this.http.delete(`${this.apiUrl}/books/${n}`)}getAllSearch(n){return this.http.get(`${this.apiUrl}/books/search/${n}`).pipe(ke(i=>(console.error(i),E([]))))}create(n){return this.http.post(`${this.apiUrl}/books`,n)}update(n){return this.http.put(`${this.apiUrl}/books/${n.isbn}`,n)}};e.\u0275fac=function(i){return new(i||e)(C(Rc))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var GE=t=>["/books",t];function qE(t,e){if(t&1&&(v(0,"li")(1,"a",6),_(2),v(3,"p",7),_(4),y()()()),t&2){let r=e.$implicit;F(),j("routerLink",Zo(3,GE,r.isbn)),F(),et(" ",r.title," "),F(2),pt(r.subtitle)}}function WE(t,e){t&1&&(v(0,"li"),_(1,"No results"),y())}function ZE(t,e){if(t&1&&(v(0,"ul",3),J(1,qE,5,5,"li",4)(2,WE,2,0,"li",5),y()),t&2){let r=e.ngIf;F(),j("ngForOf",r),F(),j("ngIf",!r.length)}}var jg=(()=>{let e=class e{constructor(n){this.service=n,this.input$=new le,this.isLoading=!1,this.results$=this.input$.pipe(pe(i=>i.length>=3),da(500),ha(),ee(()=>this.isLoading=!0),ce(i=>this.service.getAllSearch(i)),ee(()=>this.isLoading=!1))}};e.\u0275fac=function(i){return new(i||e)(m(Dt))},e.\u0275cmp=ae({type:e,selectors:[["bm-search"]],decls:4,vars:5,consts:[["searchInput",""],["type","search","autocomplete","off","aria-label","Search",3,"input"],["class","search-results",4,"ngIf"],[1,"search-results"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"routerLink"],["role","doc-subtitle"]],template:function(i,o){if(i&1){let s=xt();v(0,"input",1,0),te("input",function(){Tt(s);let u=op(1);return At(o.input$.next(u.value))}),y(),J(2,ZE,3,2,"ul",2),Zt(3,"async")}i&2&&(or("loading",o.isLoading),F(2),j("ngIf",Yt(3,3,o.results$)))},dependencies:[mt,je,Ue,Jt]});let t=e;return t})();var Bg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ae({type:e,selectors:[["bm-home"]],decls:7,vars:0,consts:[["routerLink","/books",1,"button","red"]],template:function(i,o){i&1&&(v(0,"h1"),_(1,"Home"),y(),v(2,"a",0),_(3,` Show book list +`),y(),v(4,"h2"),_(5,"Search"),y(),ie(6,"bm-search"))},dependencies:[Ue,jg]});let t=e;return t})();var QE=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:Bg}],Ug=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({imports:[Ft.forRoot(QE),Ft]});let t=e;return t})();var Ns=(()=>{let e=class e{constructor(){this._isAuthenticated$=new ue(!0),this.isAuthenticated$=this._isAuthenticated$.asObservable()}get isAuthenticated(){return this._isAuthenticated$.value}login(){this._isAuthenticated$.next(!0)}logout(){this._isAuthenticated$.next(!1)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function KE(t,e){if(t&1){let r=xt();v(0,"button",6),te("click",function(){Tt(r);let i=xe();return At(i.auth.login())}),_(1,"Login"),y()}}function JE(t,e){if(t&1){let r=xt();v(0,"button",7),te("click",function(){Tt(r);let i=xe();return At(i.auth.logout())}),_(1,"Logout"),y()}}var Hg=(()=>{let e=class e{constructor(n){this.auth=n}};e.\u0275fac=function(i){return new(i||e)(m(Ns))},e.\u0275cmp=ae({type:e,selectors:[["bm-root"]],decls:12,vars:2,consts:[["routerLink","/home","routerLinkActive","active","ariaCurrentWhenActive","page"],["routerLink","/books","routerLinkActive","active","ariaCurrentWhenActive","page"],["routerLink","/admin","routerLinkActive","active","ariaCurrentWhenActive","page"],[1,"actions"],["class","green",3,"click",4,"ngIf"],["class","red",3,"click",4,"ngIf"],[1,"green",3,"click"],[1,"red",3,"click"]],template:function(i,o){i&1&&(v(0,"nav")(1,"a",0),_(2,"Home"),y(),v(3,"a",1),_(4,"Books"),y(),v(5,"a",2),_(6,"Administration"),y(),v(7,"div",3),J(8,KE,2,0,"button",4)(9,JE,2,0,"button",5),y()(),v(10,"main"),ie(11,"router-outlet"),y()),i&2&&(F(8),j("ngIf",!o.auth.isAuthenticated),F(),j("ngIf",o.auth.isAuthenticated))},dependencies:[je,Cl,Ue,Pg]});let t=e;return t})();var XE=t=>["/admin/edit",t];function eM(t,e){if(t&1&&(v(0,"p",10),_(1),y()),t&2){let r=xe().ngIf;F(),pt(r.subtitle)}}function tM(t,e){if(t&1&&(v(0,"li"),_(1),y()),t&2){let r=e.$implicit;F(),pt(r)}}function nM(t,e){if(t&1&&(v(0,"div")(1,"h2"),_(2,"Published"),y(),_(3),y()),t&2){let r=xe().ngIf;F(3),et(" ",r.published," ")}}function rM(t,e){if(t&1&&ie(0,"img",11),t&2){let r=xe().ngIf;j("src",r.thumbnailUrl,Ur)}}function iM(t,e){if(t&1){let r=xt();v(0,"div",1)(1,"h1"),_(2),y(),J(3,eM,2,1,"p",2),v(4,"div",3)(5,"div")(6,"h2"),_(7,"Authors"),y(),v(8,"ul"),J(9,tM,2,1,"li",4),y()(),v(10,"div")(11,"h2"),_(12,"ISBN"),y(),_(13),y(),J(14,nM,4,1,"div",5),y(),v(15,"h2"),_(16,"Description"),y(),v(17,"p"),_(18),y(),J(19,rM,1,1,"img",6),v(20,"a",7),_(21,"Back to list"),y(),v(22,"button",8),te("click",function(){let i=Tt(r).ngIf,o=xe();return At(o.removeBook(i.isbn))}),_(23," Remove book "),y(),v(24,"a",9),_(25," Edit book "),y()()}if(t&2){let r=e.ngIf;F(2),pt(r.title),F(),j("ngIf",r.subtitle),F(6),j("ngForOf",r.authors),F(4),et(" ",r.isbn," "),F(),j("ngIf",r.published),F(4),pt(r.description),F(),j("ngIf",r.thumbnailUrl),F(5),j("routerLink",Zo(8,XE,r.isbn))}}var zg=(()=>{let e=class e{constructor(n,i,o){this.service=n,this.route=i,this.router=o;let s=this.route.snapshot.paramMap.get("isbn");this.book$=this.service.getSingle(s)}removeBook(n){window.confirm("Remove book?")&&this.service.remove(n).subscribe(()=>{this.router.navigateByUrl("/books")})}};e.\u0275fac=function(i){return new(i||e)(m(Dt),m(nt),m(Ee))},e.\u0275cmp=ae({type:e,selectors:[["bm-book-details"]],decls:2,vars:3,consts:[["class","details",4,"ngIf"],[1,"details"],["role","doc-subtitle",4,"ngIf"],[1,"header"],[4,"ngFor","ngForOf"],[4,"ngIf"],["alt","Cover",3,"src",4,"ngIf"],["routerLink","..",1,"button","arrow-left"],[1,"red",3,"click"],[1,"button",3,"routerLink"],["role","doc-subtitle"],["alt","Cover",3,"src"]],template:function(i,o){i&1&&(J(0,iM,26,10,"div",0),Zt(1,"async")),i&2&&j("ngIf",Yt(1,1,o.book$))},dependencies:[mt,je,Ue,Jt]});let t=e;return t})();function oM(t,e){if(t&1&&ie(0,"img",6),t&2){let r=xe(2);j("src",r.book.thumbnailUrl,Ur)}}function sM(t,e){if(t&1&&(v(0,"p",7),_(1),y()),t&2){let r=xe(2);F(),et(" ",r.book.subtitle," ")}}function aM(t,e){if(t&1&&(v(0,"li"),_(1),y()),t&2){let r=e.$implicit;F(),et(" ",r," ")}}function uM(t,e){if(t&1&&(v(0,"a",1),J(1,oM,1,1,"img",2),v(2,"h2"),_(3),y(),J(4,sM,2,1,"p",3),v(5,"ul",4),J(6,aM,2,1,"li",5),y(),v(7,"div"),_(8),y()()),t&2){let r=xe();j("routerLink",r.book.isbn),F(),j("ngIf",r.book.thumbnailUrl),F(2),pt(r.book.title),F(),j("ngIf",r.book.subtitle),F(2),j("ngForOf",r.book.authors),F(2),et("ISBN ",r.book.isbn,"")}}var Gg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ae({type:e,selectors:[["bm-book-list-item"]],inputs:{book:"book"},decls:1,vars:1,consts:[["class","list-item",3,"routerLink",4,"ngIf"],[1,"list-item",3,"routerLink"],["alt","Cover",3,"src",4,"ngIf"],["role","doc-subtitle",4,"ngIf"],[1,"comma-list"],[4,"ngFor","ngForOf"],["alt","Cover",3,"src"],["role","doc-subtitle"]],template:function(i,o){i&1&&J(0,uM,9,6,"a",0),i&2&&j("ngIf",o.book)},dependencies:[mt,je,Ue]});let t=e;return t})();function lM(t,e){if(t&1&&(v(0,"li"),ie(1,"bm-book-list-item",4),y()),t&2){let r=e.$implicit;F(),j("book",r)}}function dM(t,e){t&1&&(v(0,"li"),_(1," No books available. "),y())}function fM(t,e){if(t&1&&(v(0,"ul",1),J(1,lM,2,1,"li",2)(2,dM,2,0,"li",3),y()),t&2){let r=e.ngIf;F(),j("ngForOf",r),F(),j("ngIf",!r.length)}}var qg=(()=>{let e=class e{constructor(n){this.service=n,this.books$=this.service.getAll()}};e.\u0275fac=function(i){return new(i||e)(m(Dt))},e.\u0275cmp=ae({type:e,selectors:[["bm-book-list"]],decls:4,vars:3,consts:[["class","book-list",4,"ngIf"],[1,"book-list"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"book"]],template:function(i,o){i&1&&(v(0,"h1"),_(1,"Books"),y(),J(2,fM,3,2,"ul",0),Zt(3,"async")),i&2&&(F(2),j("ngIf",Yt(3,1,o.books$)))},dependencies:[mt,je,Gg,Jt]});let t=e;return t})();var hM=[{path:"books",component:qg},{path:"books/:isbn",component:zg}],Wg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({imports:[Ft.forChild(hM),Ft]});let t=e;return t})();var Zg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({imports:[cr,Wg]});let t=e;return t})();var Yg=(()=>{let e=class e{constructor(n){this.authService=n}intercept(n,i){let o="1234567890";if(this.authService.isAuthenticated){let s=n.clone({setHeaders:{Authorization:`Bearer ${o}`}});return i.handle(s)}else return i.handle(n)}};e.\u0275fac=function(i){return new(i||e)(C(Ns))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let t=e;return t})();var rm=(()=>{let e=class e{constructor(n,i){this._renderer=n,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(i){return new(i||e)(m(ht),m(Ae))},e.\u0275dir=re({type:e});let t=e;return t})(),pM=(()=>{let e=class e extends rm{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=nr(e)))(o||e)}})(),e.\u0275dir=re({type:e,features:[Xe]});let t=e;return t})(),Bs=new b("");var gM={provide:Bs,useExisting:dt(()=>Us),multi:!0};function mM(){let t=gt()?gt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var vM=new b(""),Us=(()=>{let e=class e extends rm{constructor(n,i,o){super(n,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!mM())}writeValue(n){let i=n??"";this.setProperty("value",i)}_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)}};e.\u0275fac=function(i){return new(i||e)(m(ht),m(Ae),m(vM,8))},e.\u0275dir=re({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(i,o){i&1&&te("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[Wt([gM]),Xe]});let t=e;return t})();function on(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function im(t){return t!=null&&typeof t.length=="number"}var $s=new b(""),Hs=new b(""),yM=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,An=class{static min(e){return DM(e)}static max(e){return wM(e)}static required(e){return CM(e)}static requiredTrue(e){return bM(e)}static email(e){return IM(e)}static minLength(e){return EM(e)}static maxLength(e){return MM(e)}static pattern(e){return _M(e)}static nullValidator(e){return om(e)}static compose(e){return dm(e)}static composeAsync(e){return hm(e)}};function DM(t){return e=>{if(on(e.value)||on(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r{if(on(e.value)||on(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>t?{max:{max:t,actual:e.value}}:null}}function CM(t){return on(t.value)?{required:!0}:null}function bM(t){return t.value===!0?null:{required:!0}}function IM(t){return on(t.value)||yM.test(t.value)?null:{email:!0}}function EM(t){return e=>on(e.value)||!im(e.value)?null:e.value.lengthim(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function _M(t){if(!t)return om;let e,r;return typeof t=="string"?(r="",t.charAt(0)!=="^"&&(r+="^"),r+=t,t.charAt(t.length-1)!=="$"&&(r+="$"),e=new RegExp(r)):(r=t.toString(),e=t),n=>{if(on(n.value))return null;let i=n.value;return e.test(i)?null:{pattern:{requiredPattern:r,actualValue:i}}}}function om(t){return null}function sm(t){return t!=null}function am(t){return Qt(t)?W(t):t}function um(t){let e={};return t.forEach(r=>{e=r!=null?g(g({},e),r):e}),Object.keys(e).length===0?null:e}function cm(t,e){return e.map(r=>r(t))}function SM(t){return!t.validate}function lm(t){return t.map(e=>SM(e)?e:r=>e.validate(r))}function dm(t){if(!t)return null;let e=t.filter(sm);return e.length==0?null:function(r){return um(cm(r,e))}}function fm(t){return t!=null?dm(lm(t)):null}function hm(t){if(!t)return null;let e=t.filter(sm);return e.length==0?null:function(r){let n=cm(r,e).map(am);return la(n).pipe(A(um))}}function pm(t){return t!=null?hm(lm(t)):null}function Qg(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function gm(t){return t._rawValidators}function mm(t){return t._rawAsyncValidators}function Tl(t){return t?Array.isArray(t)?t:[t]:[]}function Os(t,e){return Array.isArray(t)?t.includes(e):t===e}function Kg(t,e){let r=Tl(e);return Tl(t).forEach(i=>{Os(r,i)||r.push(i)}),r}function Jg(t,e){return Tl(e).filter(r=>!Os(t,r))}var Fs=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=fm(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=pm(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},$e=class extends Fs{get formDirective(){return null}get path(){return null}},wi=class extends Fs{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Ps=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},TM={"[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"},xF=z(g({},TM),{"[class.ng-submitted]":"isSubmitted"}),vm=(()=>{let e=class e extends Ps{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(m(wi,2))},e.\u0275dir=re({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&or("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)},features:[Xe]});let t=e;return t})(),ym=(()=>{let e=class e extends Ps{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(m($e,10))},e.\u0275dir=re({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){i&2&&or("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)("ng-submitted",o.isSubmitted)},features:[Xe]});let t=e;return t})();var yi="VALID",Rs="INVALID",wr="PENDING",Di="DISABLED";function Al(t){return(zs(t)?t.validators:t)||null}function AM(t){return Array.isArray(t)?fm(t):t||null}function xl(t,e){return(zs(e)?e.asyncValidators:t)||null}function xM(t){return Array.isArray(t)?pm(t):t||null}function zs(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function Dm(t,e,r){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new w(1e3,"");if(!n[r])throw new w(1001,"")}function wm(t,e,r){t._forEachChild((n,i)=>{if(r[i]===void 0)throw new w(1002,"")})}var Ci=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===yi}get invalid(){return this.status===Rs}get pending(){return this.status==wr}get disabled(){return this.status===Di}get enabled(){return this.status!==Di}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Kg(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Kg(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Jg(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Jg(e,this._rawAsyncValidators))}hasValidator(e){return Os(this._rawValidators,e)}hasAsyncValidator(e){return Os(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(r=>{r.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=wr,e.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=Di,this.errors=null,this._forEachChild(n=>{n.disable(z(g({},e),{onlySelf:!0}))}),this._updateValue(),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(z(g({},e),{skipPristineCheck:r})),this._onDisabledChange.forEach(n=>n(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=yi,this._forEachChild(n=>{n.enable(z(g({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(z(g({},e),{skipPristineCheck:r})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===yi||this.status===wr)&&this._runAsyncValidator(e.emitEvent)),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Di:yi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=wr,this._hasOwnPendingAsyncValidator=!0;let r=am(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((n,i)=>n&&n._find(i),this)}getError(e,r){let n=r?this.get(r):this;return n&&n.errors?n.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new K,this.statusChanges=new K}_calculateStatus(){return this._allControlsDisabled()?Di:this.errors?Rs:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(wr)?wr:this._anyControlsHaveStatus(Rs)?Rs:yi}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){zs(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=AM(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=xM(this._rawAsyncValidators)}},ks=class extends Ci{constructor(e,r,n){super(Al(r),xl(n,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,n={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){wm(this,!0,e),Object.keys(e).forEach(n=>{Dm(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(n=>{let i=this.controls[n];i&&i.patchValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((n,i)=>{n.reset(e?e[i]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r),this._updateTouched(r),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,n)=>(e[n]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,n)=>n._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let n=this.controls[r];n&&e(n,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,n]of Object.entries(this.controls))if(this.contains(r)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,n,i)=>((n.enabled||this.disabled)&&(r[i]=n.value),r))}_reduceChildren(e,r){let n=e;return this._forEachChild((i,o)=>{n=r(n,i,o)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Cm=new b("CallSetDisabledState",{providedIn:"root",factory:()=>Nl}),Nl="always";function Rl(t,e){return[...e.path,t]}function Xg(t,e,r=Nl){Ol(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),RM(t,e),FM(t,e),OM(t,e),NM(t,e)}function em(t,e,r=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),Vs(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Ls(t,e){t.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function NM(t,e){if(e.valueAccessor.setDisabledState){let r=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(r),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(r)})}}function Ol(t,e){let r=gm(t);e.validator!==null?t.setValidators(Qg(r,e.validator)):typeof r=="function"&&t.setValidators([r]);let n=mm(t);e.asyncValidator!==null?t.setAsyncValidators(Qg(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let i=()=>t.updateValueAndValidity();Ls(e._rawValidators,i),Ls(e._rawAsyncValidators,i)}function Vs(t,e){let r=!1;if(t!==null){if(e.validator!==null){let i=gm(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.validator);o.length!==i.length&&(r=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let i=mm(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.asyncValidator);o.length!==i.length&&(r=!0,t.setAsyncValidators(o))}}}let n=()=>{};return Ls(e._rawValidators,n),Ls(e._rawAsyncValidators,n),r}function RM(t,e){e.valueAccessor.registerOnChange(r=>{t._pendingValue=r,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&bm(t,e)})}function OM(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&bm(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function bm(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function FM(t,e){let r=(n,i)=>{e.valueAccessor.writeValue(n),i&&e.viewToModelUpdate(n)};t.registerOnChange(r),e._registerOnDestroy(()=>{t._unregisterOnChange(r)})}function PM(t,e){t==null,Ol(t,e)}function kM(t,e){return Vs(t,e)}function LM(t,e){if(!t.hasOwnProperty("model"))return!1;let r=t.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function VM(t){return Object.getPrototypeOf(t.constructor)===pM}function jM(t,e){t._syncPendingControls(),e.forEach(r=>{let n=r.control;n.updateOn==="submit"&&n._pendingChange&&(r.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function BM(t,e){if(!e)return null;Array.isArray(e);let r,n,i;return e.forEach(o=>{o.constructor===Us?r=o:VM(o)?n=o:i=o}),i||n||r||null}function UM(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function tm(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function nm(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var wt=class extends Ci{constructor(e=null,r,n){super(Al(r),xl(n,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),zs(r)&&(r.nonNullable||r.initialValueIsDefault)&&(nm(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){tm(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){tm(this._onDisabledChange,e)}_forEachChild(e){}_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(e){nm(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var $M=t=>t instanceof wt,HM=(()=>{let e=class e extends $e{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Rl(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=nr(e)))(o||e)}})(),e.\u0275dir=re({type:e,features:[Xe]});let t=e;return t})();var Im=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=re({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})();var Em=new b("");var zM={provide:$e,useExisting:dt(()=>Gs)},Gs=(()=>{let e=class e extends $e{constructor(n,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new K,this._setValidators(n),this._setAsyncValidators(i)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Vs(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let i=this.form.get(n.path);return Xg(i,n,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),i}getControl(n){return this.form.get(n.path)}removeControl(n){em(n.control||null,n,!1),UM(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,i){this.form.get(n.path).setValue(i)}onSubmit(n){return this.submitted=!0,jM(this.form,this.directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_updateDomValue(){this.directives.forEach(n=>{let i=n.control,o=this.form.get(n.path);i!==o&&(em(i||null,n),$M(o)&&(Xg(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let i=this.form.get(n.path);PM(i,n),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let i=this.form.get(n.path);i&&kM(i,n)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ol(this.form,this),this._oldForm&&Vs(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(i){return new(i||e)(m($s,10),m(Hs,10),m(Cm,8))},e.\u0275dir=re({type:e,selectors:[["","formGroup",""]],hostBindings:function(i,o){i&1&&te("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[de.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Wt([zM]),Xe,Ke]});let t=e;return t})(),GM={provide:$e,useExisting:dt(()=>Mm)},Mm=(()=>{let e=class e extends HM{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}_checkParentType(){_m(this._parent)}};e.\u0275fac=function(i){return new(i||e)(m($e,13),m($s,10),m(Hs,10))},e.\u0275dir=re({type:e,selectors:[["","formGroupName",""]],inputs:{name:[de.None,"formGroupName","name"]},features:[Wt([GM]),Xe]});let t=e;return t})(),qM={provide:$e,useExisting:dt(()=>qs)},qs=(()=>{let e=class e extends $e{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Rl(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){_m(this._parent)}};e.\u0275fac=function(i){return new(i||e)(m($e,13),m($s,10),m(Hs,10))},e.\u0275dir=re({type:e,selectors:[["","formArrayName",""]],inputs:{name:[de.None,"formArrayName","name"]},features:[Wt([qM]),Xe]});let t=e;return t})();function _m(t){return!(t instanceof Mm)&&!(t instanceof Gs)&&!(t instanceof qs)}var WM={provide:wi,useExisting:dt(()=>Fl)},Fl=(()=>{let e=class e extends wi{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new K,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=BM(this,s)}ngOnChanges(n){this._added||this._setUpControl(),LM(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return Rl(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(i){return new(i||e)(m($e,13),m($s,10),m(Hs,10),m(Bs,10),m(Em,8))},e.\u0275dir=re({type:e,selectors:[["","formControlName",""]],inputs:{name:[de.None,"formControlName","name"],isDisabled:[de.None,"disabled","isDisabled"],model:[de.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Wt([WM]),Xe,Ke]});let t=e;return t})();var ZM=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({});let t=e;return t})(),js=class extends Ci{constructor(e,r,n){super(Al(r),xl(n,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,r={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}insert(e,r,n={}){this.controls.splice(e,0,r),this._registerControl(r),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,r={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:r.emitEvent})}setControl(e,r,n={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),r&&(this.controls.splice(i,0,r),this._registerControl(r)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,r={}){wm(this,!1,e),e.forEach((n,i)=>{Dm(this,!1,i),this.at(i).setValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(e.forEach((n,i)=>{this.at(i)&&this.at(i).patchValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e=[],r={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r),this._updateTouched(r),this.updateValueAndValidity(r)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(r=>r._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((r,n)=>n._syncPendingControls()?!0:r,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((r,n)=>{e(r,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(r=>r.enabled&&e(r))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};var Sm=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:Em,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Cm,useValue:n.callSetDisabledState??Nl}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({imports:[ZM]});let t=e;return t})();var Tm=(()=>{class t{constructor(r,n){this.renderer=r,this.elementRef=n,this.onInput=i=>{let o=i?new Date(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()):null,s=o?o.toISOString():null;this.onChange(s)},this.onChange=()=>{},this.onTouched=()=>{}}writeValue(r){let n=r?new Date(r):null,i=n?new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())):null;this.renderer.setProperty(this.elementRef.nativeElement,"valueAsDate",i)}registerOnChange(r){this.onChange=r}registerOnTouched(r){this.onTouched=r}setDisabledState(r){this.renderer.setProperty(this.elementRef.nativeElement,"disabled",r)}}return t.\u0275fac=function(r){return new(r||t)(m(ht),m(Ae))},t.\u0275dir=re({type:t,selectors:[["","useValueAsLocalIso",""]],hostBindings:function(r,n){r&1&&te("input",function(o){return n.onInput(o.target.valueAsDate)})("blur",function(){return n.onTouched()})},standalone:!0,features:[Wt([{provide:Bs,useExisting:dt(()=>t),multi:!0}])]}),t})();function KM(t,e){if(t&1&&ie(0,"input",17),t&2){let r=e.index;j("formControlName",r),ir("aria-label","Author "+r)}}var Ws=(()=>{let e=class e{constructor(){this.submitBook=new K,this.form=new ks({title:new wt("",{nonNullable:!0,validators:An.required}),subtitle:new wt("",{nonNullable:!0}),isbn:new wt("",{nonNullable:!0,validators:[An.required,An.minLength(10),An.maxLength(13)]}),description:new wt("",{nonNullable:!0}),published:new wt("",{nonNullable:!0}),authors:this.buildAuthorsArray([""]),thumbnailUrl:new wt("",{nonNullable:!0})})}ngOnChanges(){this.book?(this.setFormValues(this.book),this.setEditMode(!0)):this.setEditMode(!1)}setFormValues(n){this.form.patchValue(n),this.form.setControl("authors",this.buildAuthorsArray(n.authors))}setEditMode(n){let i=this.form.controls.isbn;n?i.disable():i.enable()}buildAuthorsArray(n){return new js(n.map(i=>new wt(i,{nonNullable:!0})))}get authors(){return this.form.controls.authors}addAuthorControl(){this.authors.push(new wt("",{nonNullable:!0}))}submitForm(){let n=this.form.getRawValue(),i=n.authors.filter(s=>!!s),o=z(g({},n),{authors:i});this.submitBook.emit(o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=ae({type:e,selectors:[["bm-book-form"]],inputs:{book:"book"},outputs:{submitBook:"submitBook"},features:[Ke],decls:27,vars:3,consts:[[3,"ngSubmit","formGroup"],["for","title"],["id","title","formControlName","title"],["for","subtitle"],["id","subtitle","formControlName","subtitle"],["for","isbn"],["id","isbn","formControlName","isbn"],["type","button",1,"add",3,"click"],["formArrayName","authors"],[3,"formControlName",4,"ngFor","ngForOf"],["for","description"],["id","description","formControlName","description"],["for","published"],["type","date","useValueAsLocalIso","","id","published","formControlName","published"],["for","thumbnailUrl"],["type","url","id","thumbnailUrl","formControlName","thumbnailUrl"],["type","submit",3,"disabled"],[3,"formControlName"]],template:function(i,o){i&1&&(v(0,"form",0),te("ngSubmit",function(){return o.submitForm()}),v(1,"label",1),_(2,"Title"),y(),ie(3,"input",2),v(4,"label",3),_(5,"Subtitle"),y(),ie(6,"input",4),v(7,"label",5),_(8,"ISBN"),y(),ie(9,"input",6),v(10,"label"),_(11,"Authors"),y(),v(12,"button",7),te("click",function(){return o.addAuthorControl()}),_(13," + Author "),y(),v(14,"fieldset",8),J(15,KM,1,2,"input",9),y(),v(16,"label",10),_(17,"Description"),y(),ie(18,"textarea",11),v(19,"label",12),_(20,"Published"),y(),ie(21,"input",13),v(22,"label",14),_(23,"Thumbnail URL"),y(),ie(24,"input",15),v(25,"button",16),_(26," Save "),y()()),i&2&&(j("formGroup",o.form),F(15),j("ngForOf",o.authors.controls),F(10),j("disabled",o.form.invalid))},dependencies:[mt,Im,Us,vm,ym,Gs,Fl,qs,Tm]});let t=e;return t})();var xm=(()=>{let e=class e{constructor(n,i){this.service=n,this.router=i}create(n){this.service.create(n).subscribe(i=>{this.router.navigate(["/books",i.isbn])})}};e.\u0275fac=function(i){return new(i||e)(m(Dt),m(Ee))},e.\u0275cmp=ae({type:e,selectors:[["bm-book-create"]],decls:3,vars:0,consts:[[3,"submitBook"]],template:function(i,o){i&1&&(v(0,"h1"),_(1,"Create Book"),y(),v(2,"bm-book-form",0),te("submitBook",function(a){return o.create(a)}),y())},dependencies:[Ws]});let t=e;return t})();function JM(t,e){if(t&1){let r=xt();v(0,"bm-book-form",1),te("submitBook",function(i){Tt(r);let o=xe();return At(o.update(i))}),y()}if(t&2){let r=e.ngIf;j("book",r)}}var Nm=(()=>{let e=class e{constructor(n,i,o){this.service=n,this.route=i,this.router=o,this.book$=this.route.paramMap.pipe(A(s=>s.get("isbn")),ce(s=>this.service.getSingle(s)))}update(n){this.service.update(n).subscribe(i=>{this.router.navigate(["/books",i.isbn])})}};e.\u0275fac=function(i){return new(i||e)(m(Dt),m(nt),m(Ee))},e.\u0275cmp=ae({type:e,selectors:[["bm-book-edit"]],decls:4,vars:3,consts:[[3,"book","submitBook",4,"ngIf"],[3,"submitBook","book"]],template:function(i,o){i&1&&(v(0,"h1"),_(1,"Edit Book"),y(),J(2,JM,1,1,"bm-book-form",0),Zt(3,"async")),i&2&&(F(2),j("ngIf",Yt(3,1,o.book$)))},dependencies:[je,Ws,Jt]});let t=e;return t})();var XM=[{path:"admin",redirectTo:"admin/create"},{path:"admin/create",component:xm},{path:"admin/edit/:isbn",component:Nm}],Rm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({imports:[Ft.forChild(XM),Ft]});let t=e;return t})();var Om=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e}),e.\u0275inj=Z({imports:[cr,Rm,Sm]});let t=e;return t})();var Fm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Y({type:e,bootstrap:[Hg]}),e.\u0275inj=Z({providers:[{provide:Oc,useClass:Yg,multi:!0}],imports:[Wp,Ug,Vp,Zg,Om]});let t=e;return t})();qp().bootstrapModule(Fm).catch(t=>console.error(t));