From cb8fdc805df063b5e7c706dbe431bcd164627193 Mon Sep 17 00:00:00 2001 From: The Buildbot Date: Thu, 16 Jan 2025 15:05:16 +0000 Subject: [PATCH] Auto-generated commit Triggered by commit: https://github.com/angular-schule/buch/commit/9e72543a7ae0847dd425b139f0911a35ecb77823 --- 404.html | 2 +- index.html | 2 +- main-EGNFC5NA.js | 10 ++++++++++ main-OHRLTPFZ.js | 10 ---------- 4 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 main-EGNFC5NA.js delete mode 100644 main-OHRLTPFZ.js diff --git a/404.html b/404.html index 8e2495f..45be627 100644 --- a/404.html +++ b/404.html @@ -11,5 +11,5 @@
Loading ...
- + diff --git a/index.html b/index.html index 8e2495f..45be627 100644 --- a/index.html +++ b/index.html @@ -11,5 +11,5 @@
Loading ...
- + diff --git a/main-EGNFC5NA.js b/main-EGNFC5NA.js new file mode 100644 index 0000000..49578c7 --- /dev/null +++ b/main-EGNFC5NA.js @@ -0,0 +1,10 @@ +var jy=Object.defineProperty,By=Object.defineProperties;var Uy=Object.getOwnPropertyDescriptors;var lf=Object.getOwnPropertySymbols;var $y=Object.prototype.hasOwnProperty,Hy=Object.prototype.propertyIsEnumerable;var df=(e,t,n)=>t in e?jy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,g=(e,t)=>{for(var n in t||={})$y.call(t,n)&&df(e,n,t[n]);if(lf)for(var n of lf(t))Hy.call(t,n)&&df(e,n,t[n]);return e},j=(e,t)=>By(e,Uy(t));function mc(e,t){return Object.is(e,t)}var he=null,si=!1,vc=1,We=Symbol("SIGNAL");function U(e){let t=he;return he=e,t}function ff(){return he}var to={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function ci(e){if(si)throw new Error("");if(he===null)return;he.consumerOnSignalRead(e);let t=he.nextProducerIndex++;if(di(he),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Cc(e){di(e);for(let t=0;t0}function di(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function mf(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function vf(e){return e.producerNode!==void 0}function yf(e){let t=Object.create(qy);t.computation=e;let n=()=>{if(yc(t),ci(t),t.value===ai)throw t.error;return t.value};return n[We]=t,n}var hc=Symbol("UNSET"),pc=Symbol("COMPUTING"),ai=Symbol("ERRORED"),qy=j(g({},to),{value:hc,dirty:!0,error:null,equal:mc,kind:"computed",producerMustRecompute(e){return e.value===hc||e.value===pc},producerRecomputeValue(e){if(e.value===pc)throw new Error("Detected cycle in computations.");let t=e.value;e.value=pc;let n=ui(e),r;try{r=e.computation()}catch(o){r=ai,e.error=o}finally{Dc(e,n)}if(t!==hc&&t!==ai&&r!==ai&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function Wy(){throw new Error}var Df=Wy;function Cf(){Df()}function wf(e){Df=e}var Zy=null;function Ef(e){let t=Object.create(Ec);t.value=e;let n=()=>(ci(t),t.value);return n[We]=t,n}function fi(e,t){pf()||Cf(),e.equal(e.value,t)||(e.value=t,Yy(e))}function bf(e,t){pf()||Cf(),fi(e,t(e.value))}var Ec=j(g({},to),{equal:mc,value:void 0,kind:"signal"});function Yy(e){e.version++,zy(),hf(e),Zy?.()}function x(e){return typeof e=="function"}function Qn(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var hi=Qn(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: +${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Mn(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var te=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(x(r))try{r()}catch(i){t=i instanceof hi?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{If(i)}catch(s){t=t??[],s instanceof hi?t=[...t,...s.errors]:t.push(s)}}if(t)throw new hi(t)}}add(t){var n;if(t&&t!==this)if(this.closed)If(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Mn(n,t)}remove(t){let{_finalizers:n}=this;n&&Mn(n,t),t instanceof e&&t._removeParent(this)}};te.EMPTY=(()=>{let e=new te;return e.closed=!0,e})();var bc=te.EMPTY;function pi(e){return e instanceof te||e&&"closed"in e&&x(e.remove)&&x(e.add)&&x(e.unsubscribe)}function If(e){x(e)?e():e.unsubscribe()}var at={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Kn={setTimeout(e,t,...n){let{delegate:r}=Kn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Kn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function gi(e){Kn.setTimeout(()=>{let{onUnhandledError:t}=at;if(t)t(e);else throw e})}function no(){}var _f=Ic("C",void 0,void 0);function Mf(e){return Ic("E",void 0,e)}function Sf(e){return Ic("N",e,void 0)}function Ic(e,t,n){return{kind:e,value:t,error:n}}var Sn=null;function Jn(e){if(at.useDeprecatedSynchronousErrorHandling){let t=!Sn;if(t&&(Sn={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Sn;if(Sn=null,n)throw r}}else e()}function Tf(e){at.useDeprecatedSynchronousErrorHandling&&Sn&&(Sn.errorThrown=!0,Sn.error=e)}var Tn=class extends te{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,pi(t)&&t.add(this)):this.destination=Jy}static create(t,n,r){return new Xn(t,n,r)}next(t){this.isStopped?Mc(Sf(t),this):this._next(t)}error(t){this.isStopped?Mc(Mf(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Mc(_f,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Qy=Function.prototype.bind;function _c(e,t){return Qy.call(e,t)}var Sc=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){mi(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){mi(r)}else mi(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){mi(n)}}},Xn=class extends Tn{constructor(t,n,r){super();let o;if(x(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&at.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&_c(t.next,i),error:t.error&&_c(t.error,i),complete:t.complete&&_c(t.complete,i)}):o=t}this.destination=new Sc(o)}};function mi(e){at.useDeprecatedSynchronousErrorHandling?Tf(e):gi(e)}function Ky(e){throw e}function Mc(e,t){let{onStoppedNotification:n}=at;n&&Kn.setTimeout(()=>n(e,t))}var Jy={closed:!0,next:no,error:Ky,complete:no};var er=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ie(e){return e}function Tc(...e){return Nc(e)}function Nc(e){return e.length===0?Ie:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var $=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=eD(n)?n:new Xn(n,r,o);return Jn(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Nf(r),new r((o,i)=>{let s=new Xn({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[er](){return this}pipe(...n){return Nc(n)(this)}toPromise(n){return n=Nf(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Nf(e){var t;return(t=e??at.Promise)!==null&&t!==void 0?t:Promise}function Xy(e){return e&&x(e.next)&&x(e.error)&&x(e.complete)}function eD(e){return e&&e instanceof Tn||Xy(e)&&pi(e)}function Ac(e){return x(e?.lift)}function B(e){return t=>{if(Ac(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function F(e,t,n,r,o){return new xc(e,t,n,r,o)}var xc=class extends Tn{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function tr(){return B((e,t)=>{let n=null;e._refCount++;let r=F(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var nr=class extends ${constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Ac(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new te;let n=this.getSubject();t.add(this.source.subscribe(F(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=te.EMPTY)}return t}refCount(){return tr()(this)}};var Af=Qn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ne=(()=>{class e extends ${constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new vi(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Af}next(n){Jn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Jn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Jn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?bc:(this.currentObservers=null,i.push(n),new te(()=>{this.currentObservers=null,Mn(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new $;return n.source=this,n}}return e.create=(t,n)=>new vi(t,n),e})(),vi=class extends ne{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:bc}};var pe=class extends ne{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Rc={now(){return(Rc.delegate||Date).now()},delegate:void 0};var yi=class extends te{constructor(t,n){super()}schedule(t,n=0){return this}};var ro={setInterval(e,t,...n){let{delegate:r}=ro;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=ro;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var Di=class extends yi{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return ro.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&ro.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,Mn(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var rr=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};rr.now=Rc.now;var Ci=class extends rr{constructor(t,n=rr.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var xf=new Ci(Di);var Be=new $(e=>e.complete());function Rf(e){return e&&x(e.schedule)}function Of(e){return e[e.length-1]}function wi(e){return x(Of(e))?e.pop():void 0}function en(e){return Rf(Of(e))?e.pop():void 0}function Ff(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function kf(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Nn(e){return this instanceof Nn?(this.v=e,this):new Nn(e)}function Pf(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(m){return Promise.resolve(m).then(f,d)}}function a(f,m){r[f]&&(o[f]=function(b){return new Promise(function(_,V){i.push([f,b,_,V])>1||c(f,b)})},m&&(o[f]=m(o[f])))}function c(f,m){try{u(r[f](m))}catch(b){h(i[0][3],b)}}function u(f){f.value instanceof Nn?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function h(f,m){f(m),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Lf(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof kf=="function"?kf(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var Ei=e=>e&&typeof e.length=="number"&&typeof e!="function";function bi(e){return x(e?.then)}function Ii(e){return x(e[er])}function _i(e){return Symbol.asyncIterator&&x(e?.[Symbol.asyncIterator])}function Mi(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function tD(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Si=tD();function Ti(e){return x(e?.[Si])}function Ni(e){return Pf(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Nn(n.read());if(o)return yield Nn(void 0);yield yield Nn(r)}}finally{n.releaseLock()}})}function Ai(e){return x(e?.getReader)}function le(e){if(e instanceof $)return e;if(e!=null){if(Ii(e))return nD(e);if(Ei(e))return rD(e);if(bi(e))return oD(e);if(_i(e))return Vf(e);if(Ti(e))return iD(e);if(Ai(e))return sD(e)}throw Mi(e)}function nD(e){return new $(t=>{let n=e[er]();if(x(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function rD(e){return new $(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,gi)})}function iD(e){return new $(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Vf(e){return new $(t=>{aD(e,t).catch(n=>t.error(n))})}function sD(e){return Vf(Ni(e))}function aD(e,t){var n,r,o,i;return Ff(this,void 0,void 0,function*(){try{for(n=Lf(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function Oe(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function xi(e,t=0){return B((n,r)=>{n.subscribe(F(r,o=>Oe(r,e,()=>r.next(o),t),()=>Oe(r,e,()=>r.complete(),t),o=>Oe(r,e,()=>r.error(o),t)))})}function Ri(e,t=0){return B((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function jf(e,t){return le(e).pipe(Ri(t),xi(t))}function Bf(e,t){return le(e).pipe(Ri(t),xi(t))}function Uf(e,t){return new $(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function $f(e,t){return new $(n=>{let r;return Oe(n,t,()=>{r=e[Si](),Oe(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>x(r?.return)&&r.return()})}function Oi(e,t){if(!e)throw new Error("Iterable cannot be null");return new $(n=>{Oe(n,t,()=>{let r=e[Symbol.asyncIterator]();Oe(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Hf(e,t){return Oi(Ni(e),t)}function zf(e,t){if(e!=null){if(Ii(e))return jf(e,t);if(Ei(e))return Uf(e,t);if(bi(e))return Bf(e,t);if(_i(e))return Oi(e,t);if(Ti(e))return $f(e,t);if(Ai(e))return Hf(e,t)}throw Mi(e)}function Y(e,t){return t?zf(e,t):le(e)}function M(...e){let t=en(e);return Y(e,t)}function or(e,t){let n=x(e)?e:()=>e,r=o=>o.error(n());return new $(t?o=>t.schedule(r,0,o):r)}function Oc(e){return!!e&&(e instanceof $||x(e.lift)&&x(e.subscribe))}var Rt=Qn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function T(e,t){return B((n,r)=>{let o=0;n.subscribe(F(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:cD}=Array;function uD(e,t){return cD(t)?e(...t):e(t)}function ki(e){return T(t=>uD(e,t))}var{isArray:lD}=Array,{getPrototypeOf:dD,prototype:fD,keys:hD}=Object;function Fi(e){if(e.length===1){let t=e[0];if(lD(t))return{args:t,keys:null};if(pD(t)){let n=hD(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function pD(e){return e&&typeof e=="object"&&dD(e)===fD}function Pi(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function oo(...e){let t=en(e),n=wi(e),{args:r,keys:o}=Fi(e);if(r.length===0)return Y([],t);let i=new $(gD(r,t,o?s=>Pi(o,s):Ie));return n?i.pipe(ki(n)):i}function gD(e,t,n=Ie){return r=>{Gf(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c{let u=Y(e[c],t),l=!1;u.subscribe(F(r,d=>{i[c]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Gf(e,t,n){e?Oe(n,e,t):t()}function qf(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&t.complete()},f=b=>u{i&&t.next(b),u++;let _=!1;le(n(b,l++)).subscribe(F(t,V=>{o?.(V),i?f(V):t.next(V)},()=>{_=!0},void 0,()=>{if(_)try{for(u--;c.length&&um(V)):m(V)}h()}catch(V){t.error(V)}}))};return e.subscribe(F(t,f,()=>{d=!0,h()})),()=>{a?.()}}function de(e,t,n=1/0){return x(t)?de((r,o)=>T((i,s)=>t(r,i,o,s))(le(e(r,o))),n):(typeof t=="number"&&(n=t),B((r,o)=>qf(r,o,e,n)))}function tn(e=1/0){return de(Ie,e)}function Wf(){return tn(1)}function ir(...e){return Wf()(Y(e,en(e)))}function Li(e){return new $(t=>{le(e()).subscribe(t)})}function kc(...e){let t=wi(e),{args:n,keys:r}=Fi(e),o=new $(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l{d||(d=!0,u--),a[l]=h},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?Pi(r,a):a),i.complete())}))}});return t?o.pipe(ki(t)):o}function ye(e,t){return B((n,r)=>{let o=0;n.subscribe(F(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Ze(e){return B((t,n)=>{let r=null,o=!1,i;r=t.subscribe(F(n,void 0,void 0,s=>{i=le(e(s,Ze(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Zf(e,t,n,r,o){return(i,s)=>{let a=n,c=t,u=0;i.subscribe(F(s,l=>{let d=u++;c=a?e(c,l,d):(a=!0,l),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function Ot(e,t){return x(t)?de(e,t,1):de(e,1)}function Fc(e,t=xf){return B((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,r.next(u)}};function c(){let u=s+e,l=t.now();if(l{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function nn(e){return B((t,n)=>{let r=!1;t.subscribe(F(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function kt(e){return e<=0?()=>Be:B((t,n)=>{let r=0;t.subscribe(F(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Pc(e,t=Ie){return e=e??mD,B((n,r)=>{let o,i=!0;n.subscribe(F(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function mD(e,t){return e===t}function Vi(e=vD){return B((t,n)=>{let r=!1;t.subscribe(F(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function vD(){return new Rt}function rn(e){return B((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Ft(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ye((o,i)=>e(o,i,r)):Ie,kt(1),n?nn(t):Vi(()=>new Rt))}function sr(e){return e<=0?()=>Be:B((t,n)=>{let r=[];t.subscribe(F(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Lc(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ye((o,i)=>e(o,i,r)):Ie,sr(1),n?nn(t):Vi(()=>new Rt))}function Vc(e,t){return B(Zf(e,t,arguments.length>=2,!0))}function jc(...e){let t=en(e);return B((n,r)=>{(t?ir(e,n,t):ir(e,n)).subscribe(r)})}function ge(e,t){return B((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(F(r,c=>{o?.unsubscribe();let u=0,l=i++;le(e(c,l)).subscribe(o=F(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Bc(e){return B((t,n)=>{le(e).subscribe(F(n,()=>n.complete(),no)),!n.closed&&t.subscribe(n)})}function re(e,t,n){let r=x(e)||t||n?{next:e,error:t,complete:n}:e;return r?B((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(F(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c)},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):Ie}var Vh="https://g.co/ng/security#xss",C=class extends Error{code;constructor(t,n){super(bs(t,n)),this.code=t}};function bs(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var jh=Symbol("InputSignalNode#UNSET"),yD=j(g({},Ec),{transformFn:void 0,applyValueToInputSignal(e,t){fi(e,t)}});function Bh(e,t){let n=Object.create(yD);n.value=e,n.transformFn=t?.transform;function r(){if(ci(n),n.value===jh)throw new C(-950,!1);return n.value}return r[We]=n,r}function vo(e){return{toString:e}.toString()}var ji="__parameters__";function DD(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Uh(e,t,n){return vo(()=>{let r=DD(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(ji)?c[ji]:Object.defineProperty(c,ji,{value:[]})[ji];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var _e=globalThis;function q(e){for(let t in e)if(e[t]===q)return t;throw Error("Could not find renamed property on target object.")}function CD(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Se(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(Se).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` +`);return n===-1?t:t.substring(0,n)}function Yf(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var wD=q({__forward_ref__:q});function It(e){return e.__forward_ref__=It,e.toString=function(){return Se(this())},e}function Me(e){return $h(e)?e():e}function $h(e){return typeof e=="function"&&e.hasOwnProperty(wD)&&e.__forward_ref__===It}function D(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function X(e){return{providers:e.providers||[],imports:e.imports||[]}}function Is(e){return Qf(e,zh)||Qf(e,Gh)}function Hh(e){return Is(e)!==null}function Qf(e,t){return e.hasOwnProperty(t)?e[t]:null}function ED(e){let t=e&&(e[zh]||e[Gh]);return t||null}function Kf(e){return e&&(e.hasOwnProperty(Jf)||e.hasOwnProperty(bD))?e[Jf]:null}var zh=q({\u0275prov:q}),Jf=q({\u0275inj:q}),Gh=q({ngInjectableDef:q}),bD=q({ngInjectorDef:q}),v=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=D({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function qh(e){return e&&!!e.\u0275providers}var ID=q({\u0275cmp:q}),_D=q({\u0275dir:q}),MD=q({\u0275pipe:q}),SD=q({\u0275mod:q}),Yi=q({\u0275fac:q}),co=q({__NG_ELEMENT_ID__:q}),Xf=q({__NG_ENV_ID__:q});function _s(e){return typeof e=="string"?e:e==null?"":String(e)}function TD(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():_s(e)}function ND(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new C(-200,e)}function Yu(e,t){throw new C(-201,!1)}var P=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(P||{}),eu;function Wh(){return eu}function ke(e){let t=eu;return eu=e,t}function Zh(e,t,n){let r=Is(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&P.Optional)return null;if(t!==void 0)return t;Yu(e,"Injector")}var AD={},lo=AD,tu="__NG_DI_FLAG__",Qi="ngTempTokenPath",xD="ngTokenPath",RD=/\n/gm,OD="\u0275",eh="__source",dr;function kD(){return dr}function on(e){let t=dr;return dr=e,t}function FD(e,t=P.Default){if(dr===void 0)throw new C(-203,!1);return dr===null?Zh(e,void 0,t):dr.get(e,t&P.Optional?null:void 0,t)}function I(e,t=P.Default){return(Wh()||FD)(Me(e),t)}function p(e,t=P.Default){return I(e,Ms(t))}function Ms(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function nu(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):Se(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(RD,` + `)}`}var Ss=Yh(Uh("Optional"),8);var Qu=Yh(Uh("SkipSelf"),4);function Rn(e,t){let n=e.hasOwnProperty(Yi);return n?e[Yi]:null}function jD(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?Ku(n,t):t(n))}function Qh(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ki(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function UD(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function $D(e,t,n){let r=yo(e,t);return r>=0?e[r|1]=n:(r=~r,UD(e,r,t,n)),r}function Uc(e,t){let n=yo(e,t);if(n>=0)return e[n|1]}function yo(e,t){return HD(e,t,1)}function HD(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<{n.push(s)};return Ku(t,s=>{let a=s;ru(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&op(o,i),n}function op(e,t){for(let n=0;n{t(i,r)})}}function ru(e,t,n,r){if(e=Me(e),!e)return!1;let o=null,i=Kf(e),s=!i&&cn(e);if(!i&&!s){let c=e.ngModule;if(i=Kf(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)ru(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{Ku(i.imports,l=>{ru(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&op(u,t)}if(!a){let u=Rn(o)||(()=>new o);t({provide:o,useFactory:u,deps:Ye},o),t({provide:Jh,useValue:o,multi:!0},o),t({provide:pr,useValue:()=>I(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;Ju(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function Ju(e,t){for(let n of e)qh(n)&&(n=n.\u0275providers),Array.isArray(n)?Ju(n,t):t(n)}var GD=q({provide:String,useValue:q});function ip(e){return e!==null&&typeof e=="object"&&GD in e}function qD(e){return!!(e&&e.useExisting)}function WD(e){return!!(e&&e.useFactory)}function gr(e){return typeof e=="function"}function ZD(e){return!!e.useClass}var Ns=new v(""),zi={},YD={},$c;function Xu(){return $c===void 0&&($c=new Ji),$c}var Te=class{},fo=class extends Te{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,iu(t,s=>this.processProvider(s)),this.records.set(Kh,ar(void 0,this)),o.has("environment")&&this.records.set(Te,ar(void 0,this));let i=this.records.get(Ns);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Jh,Ye,P.Self))}destroy(){so(this),this._destroyed=!0;let t=U(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),U(t)}}onDestroy(t){return so(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){so(this);let n=on(this),r=ke(void 0),o;try{return t()}finally{on(n),ke(r)}}get(t,n=lo,r=P.Default){if(so(this),t.hasOwnProperty(Xf))return t[Xf](this);r=Ms(r);let o,i=on(this),s=ke(void 0);try{if(!(r&P.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=eC(t)&&Is(t);u&&this.injectableDefInScope(u)?c=ar(ou(t),zi):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&P.Self?Xu():this.parent;return n=r&P.Optional&&n===lo?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Qi]=a[Qi]||[]).unshift(Se(t)),i)throw a;return LD(a,t,"R3InjectorError",this.source)}else throw a}finally{ke(s),on(i)}}resolveInjectorInitializers(){let t=U(null),n=on(this),r=ke(void 0),o;try{let i=this.get(pr,Ye,P.Self);for(let s of i)s()}finally{on(n),ke(r),U(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(Se(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=Me(t);let n=gr(t)?t:Me(t&&t.provide),r=KD(t);if(!gr(t)&&t.multi===!0){let o=this.records.get(n);o||(o=ar(void 0,zi,!0),o.factory=()=>nu(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=U(null);try{return n.value===zi&&(n.value=YD,n.value=n.factory()),typeof n.value=="object"&&n.value&&XD(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{U(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Me(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function ou(e){let t=Is(e),n=t!==null?t.factory:Rn(e);if(n!==null)return n;if(e instanceof v)throw new C(204,!1);if(e instanceof Function)return QD(e);throw new C(204,!1)}function QD(e){if(e.length>0)throw new C(204,!1);let n=ED(e);return n!==null?()=>n.factory(e):()=>new e}function KD(e){if(ip(e))return ar(void 0,e.useValue);{let t=sp(e);return ar(t,zi)}}function sp(e,t,n){let r;if(gr(e)){let o=Me(e);return Rn(o)||ou(o)}else if(ip(e))r=()=>Me(e.useValue);else if(WD(e))r=()=>e.useFactory(...nu(e.deps||[]));else if(qD(e))r=()=>I(Me(e.useExisting));else{let o=Me(e&&(e.useClass||e.provide));if(JD(e))r=()=>new o(...nu(e.deps));else return Rn(o)||ou(o)}return r}function so(e){if(e.destroyed)throw new C(205,!1)}function ar(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function JD(e){return!!e.deps}function XD(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function eC(e){return typeof e=="function"||typeof e=="object"&&e instanceof v}function iu(e,t){for(let n of e)Array.isArray(n)?iu(n,t):n&&qh(n)?iu(n.\u0275providers,t):t(n)}function Fe(e,t){e instanceof fo&&so(e);let n,r=on(e),o=ke(void 0);try{return t()}finally{on(r),ke(o)}}function ap(){return Wh()!==void 0||kD()!=null}function tC(e){if(!ap())throw new C(-203,!1)}function nC(e){let t=_e.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function rC(e){return typeof e=="function"}var Bt=0,O=1,N=2,Ce=3,ut=4,dt=5,Xi=6,es=7,lt=8,mr=9,Pt=10,De=11,ho=12,th=13,br=14,Ct=15,On=16,cr=17,Lt=18,As=19,cp=20,sn=21,Hc=22,ts=23,Ue=24,Ke=25,up=1;var kn=7,ns=8,vr=9,$e=10;function an(e){return Array.isArray(e)&&typeof e[up]=="object"}function Ut(e){return Array.isArray(e)&&e[up]===!0}function lp(e){return(e.flags&4)!==0}function xs(e){return e.componentOffset>-1}function el(e){return(e.flags&1)===1}function un(e){return!!e.template}function su(e){return(e[N]&512)!==0}function Do(e){return(e[N]&256)===256}var au=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function dp(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var _t=(()=>{let e=()=>fp;return e.ngInherit=!0,e})();function fp(e){return e.type.prototype.ngOnChanges&&(e.setInput=iC),oC}function oC(){let e=pp(this),t=e?.current;if(t){let n=e.previous;if(n===hr)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function iC(e,t,n,r,o){let i=this.declaredInputs[r],s=pp(e)||sC(e,{previous:hr,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new au(u&&u.currentValue,n,c===hr),dp(e,t,o,n)}var hp="__ngSimpleChanges__";function pp(e){return e[hp]||null}function sC(e,t){return e[hp]=t}var nh=null;var Qe=function(e,t,n){nh?.(e,t,n)},aC="svg",cC="math";function wt(e){for(;Array.isArray(e);)e=e[Bt];return e}function gp(e,t){return wt(t[e])}function Je(e,t){return wt(t[e.index])}function mp(e,t){return e.data[t]}function tl(e,t){return e[t]}function fn(e,t){let n=t[e];return an(n)?n:n[Bt]}function uC(e){return(e[N]&4)===4}function nl(e){return(e[N]&128)===128}function lC(e){return Ut(e[Ce])}function rs(e,t){return t==null?null:e[t]}function vp(e){e[cr]=0}function rl(e){e[N]&1024||(e[N]|=1024,nl(e)&&Os(e))}function dC(e,t){for(;e>0;)t=t[br],e--;return t}function Rs(e){return!!(e[N]&9216||e[Ue]?.dirty)}function cu(e){e[Pt].changeDetectionScheduler?.notify(9),e[N]&64&&(e[N]|=1024),Rs(e)&&Os(e)}function Os(e){e[Pt].changeDetectionScheduler?.notify(0);let t=Fn(e);for(;t!==null&&!(t[N]&8192||(t[N]|=8192,!nl(t)));)t=Fn(t)}function yp(e,t){if(Do(e))throw new C(911,!1);e[sn]===null&&(e[sn]=[]),e[sn].push(t)}function fC(e,t){if(e[sn]===null)return;let n=e[sn].indexOf(t);n!==-1&&e[sn].splice(n,1)}function Fn(e){let t=e[Ce];return Ut(t)?t[Ce]:t}function Dp(e){return e[es]??=[]}function Cp(e){return e.cleanup??=[]}function hC(e,t,n,r){let o=Dp(t);o.push(n),e.firstCreatePass&&Cp(e).push(r,o.length-1)}var L={lFrame:Tp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var uu=!1;function pC(){return L.lFrame.elementDepthCount}function gC(){L.lFrame.elementDepthCount++}function mC(){L.lFrame.elementDepthCount--}function wp(){return L.bindingsEnabled}function vC(){return L.skipHydrationRootTNode!==null}function yC(e){return L.skipHydrationRootTNode===e}function DC(){L.skipHydrationRootTNode=null}function H(){return L.lFrame.lView}function Pe(){return L.lFrame.tView}function $t(e){return L.lFrame.contextLView=e,e[lt]}function Ht(e){return L.lFrame.contextLView=null,e}function Ae(){let e=Ep();for(;e!==null&&e.type===64;)e=e.parent;return e}function Ep(){return L.lFrame.currentTNode}function CC(){let e=L.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Co(e,t){let n=L.lFrame;n.currentTNode=e,n.isParent=t}function bp(){return L.lFrame.isParent}function wC(){L.lFrame.isParent=!1}function EC(){return L.lFrame.contextLView}function Ip(){return uu}function rh(e){let t=uu;return uu=e,t}function ks(){let e=L.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function bC(e){return L.lFrame.bindingIndex=e}function ol(){return L.lFrame.bindingIndex++}function IC(e){let t=L.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function _C(){return L.lFrame.inI18n}function MC(e,t){let n=L.lFrame;n.bindingIndex=n.bindingRootIndex=e,lu(t)}function SC(){return L.lFrame.currentDirectiveIndex}function lu(e){L.lFrame.currentDirectiveIndex=e}function TC(e){let t=L.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function _p(){return L.lFrame.currentQueryIndex}function il(e){L.lFrame.currentQueryIndex=e}function NC(e){let t=e[O];return t.type===2?t.declTNode:t.type===1?e[dt]:null}function Mp(e,t,n){if(n&P.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&P.Host);)if(o=NC(i),o===null||(i=i[br],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=L.lFrame=Sp();return r.currentTNode=t,r.lView=e,!0}function sl(e){let t=Sp(),n=e[O];L.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Sp(){let e=L.lFrame,t=e===null?null:e.child;return t===null?Tp(e):t}function Tp(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Np(){let e=L.lFrame;return L.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Ap=Np;function al(){let e=Np();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function AC(e){return(L.lFrame.contextLView=dC(e,L.lFrame.contextLView))[lt]}function Ir(){return L.lFrame.selectedIndex}function Pn(e){L.lFrame.selectedIndex=e}function xp(){let e=L.lFrame;return mp(e.tView,e.selectedIndex)}function xC(){return L.lFrame.currentNamespace}var Rp=!0;function cl(){return Rp}function ul(e){Rp=e}function RC(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=fp(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function ll(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[cr]+=65536),(a>14>16&&(e[N]&3)===t&&(e[N]+=16384,oh(a,i)):oh(a,i)}var fr=-1,Ln=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function kC(e){return e instanceof Ln}function FC(e){return(e.flags&8)!==0}function PC(e){return(e.flags&16)!==0}function du(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i>16}function is(e,t){let n=VC(e),r=t;for(;n>0;)r=r[br],n--;return r}var hu=!0;function ss(e){let t=hu;return hu=e,t}var jC=256,Pp=jC-1,Lp=5,BC=0,Dt={};function UC(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(co)&&(r=n[co]),r==null&&(r=n[co]=BC++);let o=r&Pp,i=1<>Lp)]|=i}function as(e,t){let n=Vp(e,t);if(n!==-1)return n;let r=t[O];r.firstCreatePass&&(e.injectorIndex=t.length,qc(r.data,e),qc(t,null),qc(r.blueprint,null));let o=dl(e,t),i=e.injectorIndex;if(Fp(o)){let s=os(o),a=is(o,t),c=a[O].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function qc(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Vp(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function dl(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Hp(o),r===null)return fr;if(n++,o=o[br],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return fr}function pu(e,t,n){UC(e,t,n)}function $C(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o>20,d=r?a:a+l,h=o?a+l:u;for(let f=d;f=c&&m.type===n)return f}if(o){let f=s[c];if(f&&un(f)&&f.type===n)return c}return null}function Vn(e,t,n,r){let o=e[n],i=t.data;if(kC(o)){let s=o;s.resolving&&ND(TD(i[n]));let a=ss(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?ke(s.injectImpl):null,l=Mp(e,r,P.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&RC(n,i[n],t)}finally{u!==null&&ke(u),ss(a),s.resolving=!1,Ap()}}return o}function zC(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(co)?e[co]:void 0;return typeof t=="number"?t>=0?t&Pp:GC:t}function sh(e,t,n){let r=1<>Lp)]&r)}function ah(e,t){return!(e&P.Self)&&!(e&P.Host&&t)}var xn=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Up(this._tNode,this._lView,t,Ms(r),n)}};function GC(){return new xn(Ae(),H())}function _r(e){return vo(()=>{let t=e.prototype.constructor,n=t[Yi]||gu(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Yi]||gu(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function gu(e){return $h(e)?()=>{let t=gu(Me(e));return t&&t()}:Rn(e)}function qC(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[N]&2048&&!(s[N]&512);){let a=$p(i,s,n,r|P.Self,Dt);if(a!==Dt)return a;let c=i.parent;if(!c){let u=s[cp];if(u){let l=u.get(n,Dt,r);if(l!==Dt)return l}c=Hp(s),s=s[br]}i=c}return o}function Hp(e){let t=e[O],n=t.type;return n===2?t.declTNode:n===1?e[dt]:null}function fl(e){return $C(Ae(),e)}function ch(e,t=null,n=null,r){let o=zp(e,t,n,r);return o.resolveInjectorInitializers(),o}function zp(e,t=null,n=null,r,o=new Set){let i=[n||Ye,zD(e)];return r=r||(typeof e=="object"?void 0:Se(e)),new fo(i,t||Xu(),r||null,o)}var Ne=class e{static THROW_IF_NOT_FOUND=lo;static NULL=new Ji;static create(t,n){if(Array.isArray(t))return ch({name:""},n,t,"");{let r=t.name??"";return ch({name:r},t.parent,t.providers,r)}}static \u0275prov=D({token:e,providedIn:"any",factory:()=>I(Kh)});static __NG_ELEMENT_ID__=-1};var WC=new v("");WC.__NG_ELEMENT_ID__=e=>{let t=Ae();if(t===null)throw new C(204,!1);if(t.type&2)return t.value;if(e&P.Optional)return null;throw new C(204,!1)};var Gp=!1,hl=(()=>{class e{static __NG_ELEMENT_ID__=ZC;static __NG_ENV_ID__=n=>n}return e})(),mu=class extends hl{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return yp(this._lView,t),()=>fC(this._lView,t)}};function ZC(){return new mu(H())}var yr=class{},pl=new v("",{providedIn:"root",factory:()=>!1});var qp=new v(""),Wp=new v(""),zt=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new pe(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=D({token:e,providedIn:"root",factory:()=>new e})}return e})();var vu=class extends ne{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,ap()&&(this.destroyRef=p(hl,{optional:!0})??void 0,this.pendingTasks=p(zt,{optional:!0})??void 0)}emit(t){let n=U(null);try{super.next(t)}finally{U(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof te&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},ae=vu;function cs(...e){}function Zp(e){let t,n;function r(){e=cs;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function uh(e){return queueMicrotask(()=>e()),()=>{e=cs}}var gl="isAngularZone",us=gl+"_ID",YC=0,Q=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new ae(!1);onMicrotaskEmpty=new ae(!1);onStable=new ae(!1);onError=new ae(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Gp}=t;if(typeof Zone>"u")throw new C(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,JC(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(gl)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new C(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,QC,cs,cs);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},QC={};function ml(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function KC(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Zp(()=>{e.callbackScheduled=!1,yu(e),e.isCheckStableRunning=!0,ml(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),yu(e)}function JC(e){let t=()=>{KC(e)},n=YC++;e._inner=e._inner.fork({name:"angular",properties:{[gl]:!0,[us]:n,[us+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(XC(c))return r.invokeTask(i,s,a,c);try{return lh(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),dh(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return lh(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!ew(c)&&t(),dh(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,yu(e),ml(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function yu(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function lh(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function dh(e){e._nesting--,ml(e)}var ls=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new ae;onMicrotaskEmpty=new ae;onStable=new ae;onError=new ae;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function XC(e){return Yp(e,"__ignore_ng_zone__")}function ew(e){return Yp(e,"__scheduler_tick__")}function Yp(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}function tw(e="zone.js",t){return e==="noop"?new ls:e==="zone.js"?new Q(t):e}var Vt=class{_console=console;handleError(t){this._console.error("ERROR",t)}},nw=new v("",{providedIn:"root",factory:()=>{let e=p(Q),t=p(Vt);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function fh(e,t){return Bh(e,t)}function rw(e){return Bh(jh,e)}var Qp=(fh.required=rw,fh);function ow(){return Mr(Ae(),H())}function Mr(e,t){return new Le(Je(e,t))}var Le=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=ow}return e})();function iw(e){return e instanceof Le?e.nativeElement:e}var hh=new Set;function Sr(e){hh.has(e)||(hh.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function wo(e,t){Sr("NgSignals");let n=Ef(e),r=n[We];return t?.equal&&(r.equal=t.equal),n.set=o=>fi(r,o),n.update=o=>bf(r,o),n.asReadonly=sw.bind(n),n}function sw(){let e=this[We];if(e.readonlyFn===void 0){let t=()=>this();t[We]=e,e.readonlyFn=t}return e.readonlyFn}function aw(){return this._results[Symbol.iterator]()}var Du=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new ne}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=BD(t);(this._changesDetected=!jD(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=aw};function Kp(e){return(e.flags&128)===128}var Jp=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Jp||{}),Xp=new Map,cw=0;function uw(){return cw++}function lw(e){Xp.set(e[As],e)}function Cu(e){Xp.delete(e[As])}var ph="__ngContext__";function jn(e,t){an(t)?(e[ph]=t[As],lw(t)):e[ph]=t}function eg(e){return ng(e[ho])}function tg(e){return ng(e[ut])}function ng(e){for(;e!==null&&!Ut(e);)e=e[ut];return e}var wu;function rg(e){wu=e}function dw(){if(wu!==void 0)return wu;if(typeof document<"u")return document;throw new C(210,!1)}var vl=new v("",{providedIn:"root",factory:()=>fw}),fw="ng",yl=new v(""),hn=new v("",{providedIn:"platform",factory:()=>"unknown"});var Dl=new v("",{providedIn:"root",factory:()=>dw().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var hw="h",pw="b";var og=!1,gw=new v("",{providedIn:"root",factory:()=>og});var Cl=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Cl||{}),Tr=new v("");var ur=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(ur||{}),ig=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=D({token:e,providedIn:"root",factory:()=>new e})}return e})(),mw=[ur.EarlyRead,ur.Write,ur.MixedReadWrite,ur.Read],vw=(()=>{class e{ngZone=p(Q);scheduler=p(yr);errorHandler=p(Vt,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){p(Tr,{optional:!0})}execute(){this.executing=!0;for(let n of mw)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[n]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>r.hooks[n](r.pipelinedValue),r.snapshot))}catch(o){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(let n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(8),this.deferredRegistrations.clear()}register(n){this.executing?this.deferredRegistrations.add(n):(this.sequences.add(n),this.scheduler.notify(7))}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(Cl.AFTER_NEXT_RENDER,n):n()}static \u0275prov=D({token:e,providedIn:"root",factory:()=>new e})}return e})(),Eu=class{impl;hooks;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i=null){this.impl=t,this.hooks=n,this.once=r,this.snapshot=i,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function wl(e,t){!t?.injector&&tC(wl);let n=t?.injector??p(Ne);return Sr("NgAfterNextRender"),Dw(e,n,t,!0)}function yw(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function Dw(e,t,n,r){let o=t.get(ig);o.impl??=t.get(vw);let i=t.get(Tr,null,{optional:!0}),s=n?.phase??ur.MixedReadWrite,a=n?.manualCleanup!==!0?t.get(hl):null,c=new Eu(o.impl,yw(e,s),r,a,i?.snapshot(null));return o.impl.register(c),c}var Cw=()=>null;function El(e,t,n=!1){return Cw(e,t,n)}function sg(e,t){let n=e.contentQueries;if(n!==null){let r=U(null);try{for(let o=0;oe,createScript:e=>e,createScriptURL:e=>e})}catch{}return Bi}function gh(e){return ww()?.createScriptURL(e)||e}var ds=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Vh})`}};function Eo(e){return e instanceof ds?e.changingThisBreaksApplicationSecurity:e}function bl(e,t){let n=Ew(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Vh})`)}return n===t}function Ew(e){return e instanceof ds&&e.getTypeName()||null}var bw=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function cg(e){return e=String(e),e.match(bw)?e:"unsafe:"+e}var Fs=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Fs||{});function bo(e){let t=lg();return t?t.sanitize(Fs.URL,e)||"":bl(e,"URL")?Eo(e):cg(_s(e))}function Iw(e){let t=lg();if(t)return gh(t.sanitize(Fs.RESOURCE_URL,e)||"");if(bl(e,"ResourceURL"))return gh(Eo(e));throw new C(904,!1)}function _w(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?Iw:bo}function ug(e,t,n){return _w(t,n)(e)}function lg(){let e=H();return e&&e[Pt].sanitizer}function dg(e){return e instanceof Function?e():e}var ln=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(ln||{}),jt=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(jt||{}),Mw;function Il(e,t){return Mw(e,t)}function lr(e,t,n,r,o){if(r!=null){let i,s=!1;Ut(r)?i=r:an(r)&&(s=!0,r=r[Bt]);let a=wt(r);e===0&&n!==null?o==null?mg(t,n,a):fs(t,n,a,o||null,!0):e===1&&n!==null?fs(t,n,a,o||null,!0):e===2?Uw(t,a,s):e===3&&t.destroyNode(a),i!=null&&Hw(t,e,i,n,o)}}function Sw(e,t){return e.createText(t)}function Tw(e,t,n){e.setValue(t,n)}function fg(e,t,n){return e.createElement(t,n)}function Nw(e,t){hg(e,t),t[Bt]=null,t[dt]=null}function Aw(e,t,n,r,o,i){r[Bt]=o,r[dt]=t,Ps(e,r,n,1,o,i)}function hg(e,t){t[Pt].changeDetectionScheduler?.notify(10),Ps(e,t,t[De],2,null,null)}function xw(e){let t=e[ho];if(!t)return Wc(e[O],e);for(;t;){let n=null;if(an(t))n=t[ho];else{let r=t[$e];r&&(n=r)}if(!n){for(;t&&!t[ut]&&t!==e;)an(t)&&Wc(t[O],t),t=t[Ce];t===null&&(t=e),an(t)&&Wc(t[O],t),n=t&&t[ut]}t=n}}function Rw(e,t,n,r){let o=$e+r,i=n.length;r>0&&(n[o-1][ut]=t),r0&&(e[n-1][ut]=r[ut]);let i=Ki(e,$e+t);Nw(r[O],r);let s=i[Lt];s!==null&&s.detachView(i[O]),r[Ce]=null,r[ut]=null,r[N]&=-129}return r}function gg(e,t){if(Do(t))return;let n=t[De];n.destroyNode&&Ps(e,t,n,3,null,null),xw(t)}function Wc(e,t){if(Do(t))return;let n=U(null);try{t[N]&=-129,t[N]|=256,t[Ue]&&wc(t[Ue]),kw(e,t),Ow(e,t),t[O].type===1&&t[De].destroy();let r=t[On];if(r!==null&&Ut(t[Ce])){r!==t[Ce]&&_l(r,t);let o=t[Lt];o!==null&&o.detachView(e)}Cu(t)}finally{U(n)}}function Ow(e,t){let n=e.cleanup,r=t[es];if(n!==null)for(let s=0;s=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[es]=null);let o=t[sn];if(o!==null){t[sn]=null;for(let s=0;s-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===Et.None||i===Et.Emulated)return null}return Je(r,n)}}function fs(e,t,n,r,o){e.insertBefore(t,n,r,o)}function mg(e,t,n){e.appendChild(t,n)}function mh(e,t,n,r,o){r!==null?fs(e,t,n,r,o):mg(e,t,n)}function vg(e,t){return e.parentNode(t)}function Lw(e,t){return e.nextSibling(t)}function Vw(e,t,n){return Bw(e,t,n)}function jw(e,t,n){return e.type&40?Je(e,n):null}var Bw=jw,vh;function Ml(e,t,n,r){let o=Fw(e,r,t),i=t[De],s=r.parent||t[dt],a=Vw(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(ct(r))return!1;s=!0}}}}return ct(r)||s}function ct(e){return(e&1)===0}function Qw(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!ct(s)&&(t+=yh(i,o),o=""),r=s,i=i||!ct(r);n++}return o!==""&&(t+=yh(i,o)),t}function tE(e){return e.map(eE).join(",")}function nE(e){let t=[],n=[],r=1,o=2;for(;rKe&&Eg(e,t,Ke,!1),Qe(s?2:0,o),n(r,o)}finally{Pn(i),Qe(s?3:1,o)}}function Sg(e,t,n){wp()&&(gE(e,t,n,Je(n,t)),(n.flags&64)===64&&Rg(e,t,n))}function Tg(e,t,n=Je){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;inull;function cE(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return vC()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Dh(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,c=ln.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=i;if(o!==null){if(!o.hasOwnProperty(i))continue;u=o[i]}e===0?Ch(r,n,u,a,c):Ch(r,n,u,a)}return r}function Ch(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function uE(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],c=null,u=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function gE(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;xs(n)&&EE(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||as(n,t),jn(r,t);let s=n.initialInputs;for(let a=o;a{Os(e.lView)},consumerOnSignalRead(){this.lView[Ue]=this}});function LE(e){let t=e[Ue]??Object.create(VE);return t.lView=e,t}var VE=j(g({},to),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Fn(e.lView);for(;t&&!Lg(t[O]);)t=Fn(t);t&&rl(t)},consumerOnSignalRead(){this.lView[Ue]=this}});function Lg(e){return e.type!==2}function Vg(e){if(e[ts]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[ts])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[N]&8192)}}var jE=100;function jg(e,t=!0,n=0){let o=e[Pt].rendererFactory,i=!1;i||o.begin?.();try{BE(e,n)}catch(s){throw t&&Fg(e,s),s}finally{i||o.end?.()}}function BE(e,t){let n=Ip();try{rh(!0),Su(e,t);let r=0;for(;Rs(e);){if(r===jE)throw new C(103,!1);r++,Su(e,1)}}finally{rh(n)}}function UE(e,t,n,r){if(Do(t))return;let o=t[N],i=!1,s=!1;sl(t);let a=!0,c=null,u=null;i||(Lg(e)?(u=OE(t),c=ui(u)):ff()===null?(a=!1,u=LE(t),c=ui(u)):t[Ue]&&(wc(t[Ue]),t[Ue]=null));try{vp(t),bC(e.bindingStartIndex),n!==null&&Mg(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Gi(t,f,null)}else{let f=e.preOrderHooks;f!==null&&qi(t,f,0,null),zc(t,0)}if(s||$E(t),Vg(t),Bg(t,0),e.contentQueries!==null&&sg(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Gi(t,f)}else{let f=e.contentHooks;f!==null&&qi(t,f,1),zc(t,1)}zE(e,t);let d=e.components;d!==null&&$g(t,d,0);let h=e.viewQuery;if(h!==null&&bu(2,h,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Gi(t,f)}else{let f=e.viewHooks;f!==null&&qi(t,f,2),zc(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Hc]){for(let f of t[Hc])f();t[Hc]=null}i||(t[N]&=-73)}catch(l){throw i||Os(t),l}finally{u!==null&&(Dc(u,c),a&&FE(u)),al()}}function Bg(e,t){for(let n=eg(e);n!==null;n=tg(n))for(let r=$e;r-1&&(Iu(t,r),Ki(n,r))}this._attachedToViewContainer=!1}gg(this._lView[O],this._lView)}onDestroy(t){yp(this._lView,t)}markForCheck(){Rl(this._cdRefInjectingView||this._lView,4)}markForRefresh(){rl(this._cdRefInjectingView||this._lView)}detach(){this._lView[N]&=-129}reattach(){cu(this._lView),this._lView[N]|=128}detectChanges(){this._lView[N]|=1024,jg(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=su(this._lView),n=this._lView[On];n!==null&&!t&&_l(n,this._lView),hg(this._lView[O],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=t;let n=su(this._lView),r=this._lView[On];r!==null&&!n&&pg(r,this._lView),cu(this._lView)}},Un=(()=>{class e{static __NG_ELEMENT_ID__=WE}return e})(),GE=Un,qE=class extends GE{_declarationLView;_declarationTContainer;elementRef;constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=AE(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Bn(o)}};function WE(){return Ol(Ae(),H())}function Ol(e,t){return e.type&4?new qE(t,e,Mr(e,t)):null}var Jk=new RegExp(`^(\\d+)*(${pw}|${hw})*(.*)`);var ZE=()=>null;function Eh(e,t){return ZE(e,t)}var Tu=class{},ps=class{},Nu=class{resolveComponentFactory(t){throw Error(`No component factory found for ${Se(t)}.`)}},Dr=class{static NULL=new Nu},Cr=class{},Mt=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>YE()}return e})();function YE(){let e=H(),t=Ae(),n=fn(t.index,e);return(an(n)?n:e)[De]}var QE=(()=>{class e{static \u0275prov=D({token:e,providedIn:"root",factory:()=>null})}return e})();function Au(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Dg(e,n,i.join(" "))}}function rb(e,t,n){let r=e.projection=[];for(let o=0;o{class e{static __NG_ELEMENT_ID__=ib}return e})();function ib(){let e=Ae();return zg(e,H())}var sb=gn,Hg=class extends sb{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Mr(this._hostTNode,this._hostLView)}get injector(){return new xn(this._hostTNode,this._hostLView)}get parentInjector(){let t=dl(this._hostTNode,this._hostLView);if(Fp(t)){let n=is(t,this._hostLView),r=os(t),o=n[O].data[r+8];return new xn(o,n)}else return new xn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Ih(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-$e}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Eh(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,wh(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!rC(t),a;if(s)a=n;else{let m=n||{};a=m.index,r=m.injector,o=m.projectableNodes,i=m.environmentInjector||m.ngModuleRef}let c=s?t:new wr(cn(t)),u=r||this.parentInjector;if(!i&&c.ngModule==null){let b=(s?u:this.parentInjector).get(Te,null);b&&(i=b)}let l=cn(c.componentType??{}),d=Eh(this._lContainer,l?.id??null),h=d?.firstChild??null,f=c.create(u,o,h,i);return this.insertImpl(f.hostView,a,wh(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(lC(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[Ce],u=new Hg(c,c[dt],c[Ce]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return xE(s,o,i,r),t.attachToViewContainerRef(),Qh(Zc(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Ih(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Iu(this._lContainer,n);r&&(Ki(Zc(this._lContainer),n),gg(r[O],r))}detach(t){let n=this._adjustIndex(t,-1),r=Iu(this._lContainer,n);return r&&Ki(Zc(this._lContainer),n)!=null?new Bn(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Ih(e){return e[ns]}function Zc(e){return e[ns]||(e[ns]=[])}function zg(e,t){let n,r=t[e.index];return Ut(r)?n=r:(n=kg(r,t,null,e),t[e.index]=n,js(t,n)),cb(n,t,e,r),new Hg(n,e,t)}function ab(e,t){let n=e[De],r=n.createComment(""),o=Je(t,e),i=vg(n,o);return fs(n,i,r,Lw(n,o),!1),r}var cb=db,ub=()=>!1;function lb(e,t,n){return ub(e,t,n)}function db(e,t,n,r){if(e[kn])return;let o;n.type&8?o=wt(r):o=ab(t,n),e[kn]=o}var Ru=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Ou=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let u=i[a+1],l=t[-c];for(let d=$e;dt.trim())}function Cb(e,t,n){e.queries===null&&(e.queries=new Fu),e.queries.track(new Pu(t,n))}function wb(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function kl(e,t){return e.queries.getByIndex(t)}function Eb(e,t){let n=e[O],r=kl(n,t);return r.crossesNgTemplate?Lu(n,e,t,[]):Gg(n,e,r,t)}function bb(e){let t=[],n=new Map;function r(o){let i=n.get(o);if(!i){let s=e(o);n.set(o,i=s.then(Sb))}return i}return ms.forEach((o,i)=>{let s=[];o.templateUrl&&s.push(r(o.templateUrl).then(u=>{o.template=u}));let a=typeof o.styles=="string"?[o.styles]:o.styles||[];if(o.styles=a,o.styleUrl&&o.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(o.styleUrls?.length){let u=o.styles.length,l=o.styleUrls;o.styleUrls.forEach((d,h)=>{a.push(""),s.push(r(d).then(f=>{a[u+h]=f,l.splice(l.indexOf(d),1),l.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&s.push(r(o.styleUrl).then(u=>{a.push(u),o.styleUrl=void 0}));let c=Promise.all(s).then(()=>Tb(i));t.push(c)}),_b(),Promise.all(t).then(()=>{})}var ms=new Map,Ib=new Set;function _b(){let e=ms;return ms=new Map,e}function Mb(){return ms.size===0}function Sb(e){return typeof e=="string"?e:e.text()}function Tb(e){Ib.delete(e)}var dn=class{},go=class{};var vs=class extends dn{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new gs(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=Xh(t);this._bootstrapComponents=dg(i.bootstrap),this._r3Injector=zp(t,n,[{provide:dn,useValue:this},{provide:Dr,useValue:this.componentFactoryResolver},...r],Se(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},ys=class extends go{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new vs(this.moduleType,t,[])}};function Nb(e,t,n){return new vs(e,t,n,!1)}var Vu=class extends dn{injector;componentFactoryResolver=new gs(this);instance=null;constructor(t){super();let n=new fo([...t.providers,{provide:dn,useValue:this},{provide:Dr,useValue:this.componentFactoryResolver}],t.parent||Xu(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Bs(e,t,n=null){return new Vu({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Ab=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=rp(!1,n.type),o=r.length>0?Bs([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=D({token:e,providedIn:"environment",factory:()=>new e(I(Te))})}return e})();function oe(e){return vo(()=>{let t=qg(e),n=j(g({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Jp.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(Ab).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Et.Emulated,styles:e.styles||Ye,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Sr("NgStandalone"),Wg(n);let r=e.dependencies;return n.directiveDefs=Mh(r,!1),n.pipeDefs=Mh(r,!0),n.id=Ob(n),n})}function xb(e){return cn(e)||ep(e)}function Rb(e){return e!==null}function ee(e){return vo(()=>({type:e.type,bootstrap:e.bootstrap||Ye,declarations:e.declarations||Ye,imports:e.imports||Ye,exports:e.exports||Ye,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function _h(e,t){if(e==null)return hr;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=ln.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==ln.None?[r,a]:r,t[i]=s):n[i]=r}return n}function ce(e){return vo(()=>{let t=qg(e);return Wg(t),t})}function Io(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function qg(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||hr,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Ye,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:_h(e.inputs,t),outputs:_h(e.outputs),debugInfo:null}}function Wg(e){e.features?.forEach(t=>t(e))}function Mh(e,t){if(!e)return null;let n=t?tp:xb;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Rb)}function Ob(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function kb(e){return Object.getPrototypeOf(e.prototype).constructor}function ft(e){let t=kb(e.type),n=!0,r=[e];for(;t;){let o;if(un(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new C(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=Ui(e.inputs),s.inputTransforms=Ui(e.inputTransforms),s.declaredInputs=Ui(e.declaredInputs),s.outputs=Ui(e.outputs);let a=o.hostBindings;a&&jb(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&Lb(e,c),u&&Vb(e,u),Fb(e,o),CD(e.outputs,o.outputs),un(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=po(o.hostAttrs,n=po(n,o.hostAttrs))}}function Ui(e){return e===hr?{}:e===Ye?[]:e}function Lb(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function Vb(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function jb(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function Fl(e){let t=e.inputConfig,n={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)&&o[3]&&(n[r]=o[3])}e.inputTransforms=n}function Zg(e){return Ub(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function Bb(e,t){if(Array.isArray(e))for(let n=0;n{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var Vl=new v(""),_o=new v(""),Us=(()=>{class e{_ngZone;registry;_isZoneStable=!0;_callbacks=[];taskTrackingZone=null;constructor(n,r,o){this._ngZone=n,this.registry=r,jl||(Yb(o),o.addToWindow(r)),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:()=>{Q.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!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(r=>r.updateCb&&r.updateCb(n)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n()},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,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,r,o),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}static \u0275fac=function(r){return new(r||e)(I(Q),I($s),I(_o))};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})(),$s=(()=>{class e{_applications=new Map;registerApplication(n,r){this._applications.set(n,r)}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,r=!0){return jl?.findTestabilityInTree(this,n,r)??null}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function Yb(e){jl=e}var jl;function mn(e){return!!e&&typeof e.then=="function"}function Bl(e){return!!e&&typeof e.subscribe=="function"}var Hs=new v("");var Yg=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=p(Hs,{optional:!0})??[];injector=p(Ne);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Fe(this.injector,o);if(mn(i))n.push(i);else if(Bl(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Qb=(()=>{class e{static \u0275prov=D({token:e,providedIn:"root",factory:()=>new ju})}return e})(),ju=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),this.queuedEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},zs=new v("");function Kb(){wf(()=>{throw new C(600,!1)})}function Jb(e){return e.isBoundToModule}var Xb=10;function eI(e,t,n){try{let r=n();return mn(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}function Qg(e,t){return Array.isArray(t)?t.reduce(Qg,e):g(g({},e),t)}var bt=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=p(nw);afterRenderManager=p(ig);zonelessEnabled=p(pl);rootEffectScheduler=p(Qb);dirtyFlags=0;deferredDirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new ne;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=p(zt).hasPendingTasks.pipe(T(n=>!n));constructor(){p(Tr,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=p(Te);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){let o=n instanceof ps;if(!this._injector.get(Yg).done){let h=!o&&np(n),f=!1;throw new C(405,f)}let s;o?s=n:s=this._injector.get(Dr).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=Jb(s)?void 0:this._injector.get(dn),c=r||s.selector,u=s.create(Ne.NULL,[],c,a),l=u.location.nativeElement,d=u.injector.get(Vl,null);return d?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),Zi(this.components,u),d?.unregisterApplication(l)}),this._loadComponent(u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick=()=>{if(this.tracingSnapshot!==null){let r=this.tracingSnapshot;this.tracingSnapshot=null,r.run(Cl.CHANGE_DETECTION,this._tick),r.dispose();return}if(this._runningTick)throw new C(101,!1);let n=U(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,U(n),this.afterTick.next()}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Cr,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let n=0;for(;this.dirtyFlags!==0&&n++Rs(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Zi(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(zs,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Zi(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new C(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Zi(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function tI(e,t,n,r){if(!n&&!Rs(e))return;jg(e,t,n&&!r?0:1)}function Nr(e,t,n,r){let o=H(),i=ol();if($n(o,i,t)){let s=Pe(),a=xp();bE(a,o,e,t,n,r)}return Nr}function nI(e,t,n,r){return $n(e,ol(),n)?t+_s(n)+r:pn}function $i(e,t){return e<<17|t<<2}function Hn(e){return e>>17&32767}function rI(e){return(e&2)==2}function oI(e,t){return e&131071|t<<17}function Bu(e){return e|2}function Er(e){return(e&131068)>>2}function Yc(e,t){return e&-131069|t<<2}function iI(e){return(e&1)===1}function Uu(e){return e|1}function sI(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Hn(s),c=Er(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||yo(d,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let h=Hn(e[a+1]);e[r+1]=$i(h,a),h!==0&&(e[h+1]=Yc(e[h+1],r)),e[a+1]=oI(e[a+1],r)}else e[r+1]=$i(a,0),a!==0&&(e[a+1]=Yc(e[a+1],r)),a=r;else e[r+1]=$i(c,0),a===0?a=r:e[c+1]=Yc(e[c+1],r),c=r;u&&(e[r+1]=Bu(e[r+1])),Sh(e,l,r,!0),Sh(e,l,r,!1),aI(t,l,e,r,i),s=$i(a,c),i?t.classBindings=s:t.styleBindings=s}function aI(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&yo(i,t)>=0&&(n[r+1]=Uu(n[r+1]))}function Sh(e,t,n,r){let o=e[n+1],i=t===null,s=r?Hn(o):Er(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];cI(c,t)&&(a=!0,e[s+1]=r?Uu(u):Bu(u)),s=r?Hn(u):Er(u)}a&&(e[n+1]=r?Bu(o):Uu(o))}function cI(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?yo(e,t)>=0:!1}function R(e,t,n){let r=H(),o=ol();if($n(r,o,t)){let i=Pe(),s=xp();dE(i,s,r,e,t,r[De],n,!1)}return R}function Th(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";Al(e,n,i[s],s,r)}function Ar(e,t){return uI(e,t,null,!0),Ar}function uI(e,t,n,r){let o=H(),i=Pe(),s=IC(2);if(i.firstUpdatePass&&dI(i,e,s,r),t!==pn&&$n(o,s,t)){let a=i.data[Ir()];mI(i,a,o,o[De],e,o[s+1]=vI(t,n),r,s)}}function lI(e,t){return t>=e.expandoStartIndex}function dI(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Ir()],s=lI(e,n);yI(i,r)&&t===null&&!s&&(t=!1),t=fI(o,i,t,r),sI(o,i,t,n,s,r)}}function fI(e,t,n,r){let o=TC(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Qc(null,e,t,n,r),n=mo(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Qc(o,e,t,n,r),i===null){let c=hI(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Qc(null,e,t,c[1],r),c=mo(c,t.attrs,r),pI(e,t,r,c))}else i=gI(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function hI(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Er(r)!==0)return e[Hn(r)]}function pI(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Hn(o)]=r}function gI(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,h=n[o+1];h===pn&&(h=d?Ye:void 0);let f=d?Uc(h,r):l===r?h:void 0;if(u&&!Ds(f)&&(f=Uc(c,r)),Ds(f)&&(a=f,s))return a;let m=e[o+1];o=s?Hn(m):Er(m)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Uc(c,r))}return a}function Ds(e){return e!==void 0}function vI(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Se(Eo(e)))),e}function yI(e,t){return(e.flags&(t?8:16))!==0}function DI(e,t,n,r,o,i){let s=t.consts,a=rs(s,o),c=Vs(t,e,2,r,a);return Ag(t,n,c,rs(s,i)),c.attrs!==null&&Au(c,c.attrs,!1),c.mergedAttrs!==null&&Au(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function w(e,t,n,r){let o=H(),i=Pe(),s=Ke+e,a=o[De],c=i.firstCreatePass?DI(s,i,o,t,n,r):i.data[s],u=CI(i,o,c,a,t,e);o[s]=u;let l=el(c);return Co(c,!0),Cg(a,u,c),!zb(c)&&cl()&&Ml(i,o,u,c),pC()===0&&jn(u,o),gC(),l&&(Sg(i,o,c),ag(i,c,o)),r!==null&&Tg(o,c),w}function E(){let e=Ae();bp()?wC():(e=e.parent,Co(e,!1));let t=e;yC(t)&&DC(),mC();let n=Pe();return n.firstCreatePass&&(ll(n,e),lp(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&FC(t)&&Th(n,t,H(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&PC(t)&&Th(n,t,H(),t.stylesWithoutHost,!1),E}function ie(e,t,n,r){return w(e,t,n,r),E(),ie}var CI=(e,t,n,r,o,i)=>(ul(!0),fg(r,o,xC()));function Gt(){return H()}var An=void 0;function wI(e){let t=e,n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return n===1&&r===0?1:5}var EI=["en",[["a","p"],["AM","PM"],An],[["AM","PM"],An,An],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],An,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],An,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",An,"{1} 'at' {0}",An],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",wI],Kc={};function Xe(e){let t=bI(e),n=Ah(t);if(n)return n;let r=t.split("-")[0];if(n=Ah(r),n)return n;if(r==="en")return EI;throw new C(701,!1)}function Ah(e){return e in Kc||(Kc[e]=_e.ng&&_e.ng.common&&_e.ng.common.locales&&_e.ng.common.locales[e]),Kc[e]}var ue=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(ue||{});function bI(e){return e.toLowerCase().replace(/_/g,"-")}var Cs="en-US";var II=Cs;function _I(e){typeof e=="string"&&(II=e.toLowerCase().replace(/_/g,"-"))}var MI=(e,t,n)=>{};function se(e,t,n,r){let o=H(),i=Pe(),s=Ae();return TI(i,o,o[De],s,e,t,r),se}function SI(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function TI(e,t,n,r,o,i,s){let a=el(r),u=e.firstCreatePass&&Cp(e),l=t[lt],d=Dp(t),h=!0;if(r.type&3||s){let b=Je(r,t),_=s?s(b):b,V=d.length,ve=s?Ee=>s(wt(Ee[r.index])):r.index,G=null;if(!s&&a&&(G=SI(e,t,o,r.index)),G!==null){let Ee=G.__ngLastListenerFn__||G;Ee.__ngNextListenerFn__=i,G.__ngLastListenerFn__=i,h=!1}else{i=Rh(r,t,l,i),MI(b,o,i);let Ee=n.listen(_,o,i);d.push(i,Ee),u&&u.push(o,ve,V,V+1)}}else i=Rh(r,t,l,i);let f=r.outputs,m;if(h&&f!==null&&(m=f[o])){let b=m.length;if(b)for(let _=0;_-1?fn(e.index,t):t;Rl(s,5);let a=xh(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=xh(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function Ve(e=1){return AC(e)}function Kg(e,t,n,r){yb(e,t,n,r)}function Jg(e){let t=H(),n=Pe(),r=_p();il(r+1);let o=kl(n,r);if(e.dirty&&uC(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=Eb(t,r);e.reset(i,iw),e.notifyOnChanges()}return!0}return!1}function Xg(){return mb(H(),_p())}function NI(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function em(e){let t=EC();return tl(t,Ke+e)}function S(e,t=""){let n=H(),r=Pe(),o=e+Ke,i=r.firstCreatePass?Vs(r,o,1,t,null):r.data[o],s=AI(r,n,i,t,e);n[o]=s,cl()&&Ml(r,n,s,i),Co(i,!1)}var AI=(e,t,n,r,o)=>(ul(!0),Sw(t[De],r));function St(e){return He("",e,""),St}function He(e,t,n){let r=H(),o=nI(r,e,t,n);return o!==pn&&xI(r,Ir(),o),He}function xI(e,t,n){let r=gp(t,e);Tw(e[De],r,n)}function RI(e,t,n){let r=Pe();if(r.firstCreatePass){let o=un(e);$u(n,r.data,r.blueprint,o,!0),$u(t,r.data,r.blueprint,o,!1)}}function $u(e,t,n,r,o){if(e=Me(e),Array.isArray(e))for(let i=0;i>20;if(gr(e)||!e.multi){let f=new Ln(u,o,y),m=Xc(c,t,o?l:l+h,d);m===-1?(pu(as(a,s),i,c),Jc(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[m]=f,s[m]=f)}else{let f=Xc(c,t,l+h,d),m=Xc(c,t,l,l+h),b=f>=0&&n[f],_=m>=0&&n[m];if(o&&!_||!o&&!b){pu(as(a,s),i,c);let V=FI(o?kI:OI,n.length,o,r,u);!o&&_&&(n[m].providerFactory=V),Jc(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(V),s.push(V)}else{let V=tm(n[o?m:f],u,!o&&r);Jc(i,e,f>-1?f:m,V)}!o&&r&&_&&n[m].componentProviders++}}}function Jc(e,t,n,r){let o=gr(t),i=ZD(t);if(o||i){let c=(i?Me(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c)}else u.push(n,c)}}}function tm(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Xc(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>RI(r,o?o(e):e,t)}}function Gs(e,t,n){let r=ks()+e,o=H();return o[r]===pn?Pl(o,r,n?t.call(n):t()):$b(o,r)}function qs(e,t,n,r){return rm(H(),ks(),e,t,n,r)}function nm(e,t){let n=e[t];return n===pn?void 0:n}function rm(e,t,n,r,o,i){let s=t+n;return $n(e,s,o)?Pl(e,s+1,i?r.call(i,o):r(o)):nm(e,s+1)}function PI(e,t,n,r,o,i,s){let a=t+n;return Hb(e,a,o,i)?Pl(e,a+2,s?r.call(s,o,i):r(o,i)):nm(e,a+2)}function et(e,t){let n=Pe(),r,o=e+Ke;n.firstCreatePass?(r=LI(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=Rn(r.type,!0)),s,a=ke(y);try{let c=ss(!1),u=i();return ss(c),NI(n,H(),o,u),u}finally{ke(a)}}function LI(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function ht(e,t,n){let r=e+Ke,o=H(),i=tl(o,r);return im(o,r)?rm(o,ks(),t,i.transform,n,i):i.transform(n)}function om(e,t,n,r){let o=e+Ke,i=H(),s=tl(i,o);return im(i,o)?PI(i,ks(),t,s.transform,n,r,s):s.transform(n,r)}function im(e,t){return e[O].data[t].pure}var Hi=null;function VI(e){Hi!==null&&(e.defaultEncapsulation!==Hi.defaultEncapsulation||e.preserveWhitespaces!==Hi.preserveWhitespaces)||(Hi=e)}var zu=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Ws=(()=>{class e{compileModuleSync(n){return new ys(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=Xh(n),i=dg(o.declarations).reduce((s,a)=>{let c=cn(a);return c&&s.push(new wr(c)),s},[]);return new zu(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),jI=new v("");function BI(e,t,n){let r=new ys(n);return Promise.resolve(r)}function Oh(e){for(let t=e.length-1;t>=0;t--)if(e[t]!==void 0)return e[t]}var UI=(()=>{class e{zone=p(Q);changeDetectionScheduler=p(yr);applicationRef=p(bt);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function $I({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new Q(j(g({},sm()),{scheduleInRootZone:n})),[{provide:Q,useFactory:e},{provide:pr,multi:!0,useFactory:()=>{let r=p(UI,{optional:!0});return()=>r.initialize()}},{provide:pr,multi:!0,useFactory:()=>{let r=p(HI);return()=>{r.initialize()}}},t===!0?{provide:qp,useValue:!0}:[],{provide:Wp,useValue:n??Gp}]}function sm(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var HI=(()=>{class e{subscription=new te;initialized=!1;zone=p(Q);pendingTasks=p(zt);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(()=>{Q.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Q.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var zI=(()=>{class e{appRef=p(bt);taskService=p(zt);ngZone=p(Q);zonelessEnabled=p(pl);tracing=p(Tr,{optional:!0});disableScheduling=p(qp,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new te;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(us):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(Wp,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof ls||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 8:{this.appRef.deferredDirtyFlags|=8;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 13:{this.appRef.dirtyFlags|=16,r=!0;break}case 14:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{r=!0;break}case 10:case 9:case 7:case 11:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?uh:Zp;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(us+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,uh(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function GI(){return typeof $localize<"u"&&$localize.locale||Cs}var Zs=new v("",{providedIn:"root",factory:()=>p(Zs,P.Optional|P.SkipSelf)||GI()});var ws=new v(""),qI=new v("");function io(e){return!e.moduleRef}function WI(e){let t=io(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Q);return n.run(()=>{io(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Vt,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),io(e)){let i=()=>t.destroy(),s=e.platformInjector.get(ws);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(ws);s.add(i),e.moduleRef.onDestroy(()=>{Zi(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return eI(r,n,()=>{let i=t.get(Yg);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(Zs,Cs);if(_I(s||Cs),!t.get(qI,!0))return io(e)?t.get(bt):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(io(e)){let c=t.get(bt);return e.rootComponent!==void 0&&c.bootstrap(e.rootComponent),c}else return ZI(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function ZI(e,t){let n=e.injector.get(bt);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new C(-403,!1);t.push(e)}var am=(()=>{class e{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(n){this._injector=n}bootstrapModuleFactory(n,r){let o=r?.scheduleInRootZone,i=()=>tw(r?.ngZone,j(g({},sm({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing})),{scheduleInRootZone:o})),s=r?.ignoreChangesOutsideZone,a=[$I({ngZoneFactory:i,ignoreChangesOutsideZone:s}),{provide:yr,useExisting:zI}],c=Nb(n.moduleType,this.injector,a);return WI({moduleRef:c,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(n,r=[]){let o=Qg({},r);return BI(this.injector,o,n).then(i=>this.bootstrapModuleFactory(i,o))}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new C(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());let n=this._injector.get(ws,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(r){return new(r||e)(I(Ne))};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),uo=null,cm=new v("");function YI(e){if(uo&&!uo.get(cm,!1))throw new C(400,!1);Kb(),uo=e;let t=e.get(am);return JI(e),t}function Ul(e,t,n=[]){let r=`Platform: ${t}`,o=new v(r);return(i=[])=>{let s=um();if(!s||s.injector.get(cm,!1)){let a=[...n,...i,{provide:o,useValue:!0}];e?e(a):YI(QI(a,r))}return KI(o)}}function QI(e=[],t){return Ne.create({name:t,providers:[{provide:Ns,useValue:"platform"},{provide:ws,useValue:new Set([()=>uo=null])},...e]})}function KI(e){let t=um();if(!t)throw new C(401,!1);return t}function um(){return uo?.get(am)??null}function JI(e){let t=e.get(yl,null);Fe(e,()=>{t?.forEach(n=>n())})}var yn=(()=>{class e{static __NG_ELEMENT_ID__=XI}return e})();function XI(e){return e_(Ae(),H(),(e&16)===16)}function e_(e,t,n){if(xs(e)&&!n){let r=fn(e.index,t);return new Bn(r,r)}else if(e.type&175){let r=t[Ct];return new Bn(r,t)}return null}var Gu=class{constructor(){}supports(t){return Zg(t)}create(t){return new qu(t)}},t_=(e,t)=>t,qu=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||t_}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new Wu(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}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(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new Es),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Es),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Wu=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,n){this.item=t,this.trackById=n}},Zu=class{_head=null;_tail=null;add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Es=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Zu,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function kh(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r{class e{factories;static \u0275prov=D({token:e,providedIn:"root",factory:Fh});constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Fh()),deps:[[e,new Qu,new Ss]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new C(901,!1)}}return e})();var lm=Ul(null,"core",[]),dm=(()=>{class e{constructor(n){}static \u0275fac=function(r){return new(r||e)(I(bt))};static \u0275mod=ee({type:e});static \u0275inj=X({})}return e})();function xr(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function Mo(e,t){Sr("NgSignals");let n=yf(e);return t?.equal&&(n[We].equal=t.equal),n}function pt(e){let t=U(null);try{return e()}finally{U(t)}}var Ph=class{[We];constructor(t){this[We]=t}destroy(){this[We].destroy()}};function fm(e){let t=cn(e);if(!t)return null;let n=new wr(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var ym=null;function Tt(){return ym}function Dm(e){ym??=e}var ra=class{};var we=new v(""),Jl=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:()=>p(n_),providedIn:"platform"})}return e})(),Cm=new v(""),n_=(()=>{class e extends Jl{_location;_history;_doc=p(we);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Tt().getBaseHref(this._doc)}onPopState(n){let r=Tt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Tt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Xl(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function hm(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function Wt(e){return e&&e[0]!=="?"?"?"+e:e}var Zt=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:()=>p(ed),providedIn:"root"})}return e})(),wm=new v(""),ed=(()=>{class e extends Zt{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??p(we).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 Xl(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Wt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Wt(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Wt(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(r){return new(r||e)(I(Jl),I(wm,8))};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Em=(()=>{class e extends Zt{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,r!=null&&(this._baseHref=r)}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 r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=Xl(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Wt(i));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Wt(i));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(r){return new(r||e)(I(Jl),I(wm,8))};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})(),Or=(()=>{class e{_subject=new ne;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=i_(hm(pm(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Wt(r))}normalize(n){return e.stripTrailingSlash(o_(this._basePath,pm(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Wt(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Wt(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=Wt;static joinWithSlash=Xl;static stripTrailingSlash=hm;static \u0275fac=function(r){return new(r||e)(I(Zt))};static \u0275prov=D({token:e,factory:()=>r_(),providedIn:"root"})}return e})();function r_(){return new Or(I(Zt))}function o_(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function pm(e){return e.replace(/\/index.html$/,"")}function i_(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var xe=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(xe||{}),Z=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(Z||{}),ze=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(ze||{}),Dn={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function s_(e){return Xe(e)[ue.LocaleId]}function a_(e,t,n){let r=Xe(e),o=[r[ue.DayPeriodsFormat],r[ue.DayPeriodsStandalone]],i=tt(o,t);return tt(i,n)}function c_(e,t,n){let r=Xe(e),o=[r[ue.DaysFormat],r[ue.DaysStandalone]],i=tt(o,t);return tt(i,n)}function u_(e,t,n){let r=Xe(e),o=[r[ue.MonthsFormat],r[ue.MonthsStandalone]],i=tt(o,t);return tt(i,n)}function l_(e,t){let r=Xe(e)[ue.Eras];return tt(r,t)}function Ys(e,t){let n=Xe(e);return tt(n[ue.DateFormat],t)}function Qs(e,t){let n=Xe(e);return tt(n[ue.TimeFormat],t)}function Ks(e,t){let r=Xe(e)[ue.DateTimeFormat];return tt(r,t)}function ia(e,t){let n=Xe(e),r=n[ue.NumberSymbols][t];if(typeof r>"u"){if(t===Dn.CurrencyDecimal)return n[ue.NumberSymbols][Dn.Decimal];if(t===Dn.CurrencyGroup)return n[ue.NumberSymbols][Dn.Group]}return r}function bm(e){if(!e[ue.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[ue.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function d_(e){let t=Xe(e);return bm(t),(t[ue.ExtraData][2]||[]).map(r=>typeof r=="string"?Hl(r):[Hl(r[0]),Hl(r[1])])}function f_(e,t,n){let r=Xe(e);bm(r);let o=[r[ue.ExtraData][0],r[ue.ExtraData][1]],i=tt(o,t)||[];return tt(i,n)||[]}function tt(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function Hl(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var h_=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Js={},p_=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function g_(e,t,n,r){let o=I_(e);t=qt(n,t)||t;let s=[],a;for(;t;)if(a=p_.exec(t),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;t=l}else{s.push(t);break}let c=o.getTimezoneOffset();r&&(c=_m(r,c),o=b_(o,r,!0));let u="";return s.forEach(l=>{let d=w_(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function oa(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function qt(e,t){let n=s_(e);if(Js[n]??={},Js[n][t])return Js[n][t];let r="";switch(t){case"shortDate":r=Ys(e,ze.Short);break;case"mediumDate":r=Ys(e,ze.Medium);break;case"longDate":r=Ys(e,ze.Long);break;case"fullDate":r=Ys(e,ze.Full);break;case"shortTime":r=Qs(e,ze.Short);break;case"mediumTime":r=Qs(e,ze.Medium);break;case"longTime":r=Qs(e,ze.Long);break;case"fullTime":r=Qs(e,ze.Full);break;case"short":let o=qt(e,"shortTime"),i=qt(e,"shortDate");r=Xs(Ks(e,ze.Short),[o,i]);break;case"medium":let s=qt(e,"mediumTime"),a=qt(e,"mediumDate");r=Xs(Ks(e,ze.Medium),[s,a]);break;case"long":let c=qt(e,"longTime"),u=qt(e,"longDate");r=Xs(Ks(e,ze.Long),[c,u]);break;case"full":let l=qt(e,"fullTime"),d=qt(e,"fullDate");r=Xs(Ks(e,ze.Full),[l,d]);break}return r&&(Js[n][t]=r),r}function Xs(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function gt(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return m_(a,t);let c=ia(s,Dn.MinusSign);return gt(a,t,c,r,o)}}function v_(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function J(e,t,n=xe.Format,r=!1){return function(o,i){return y_(o,i,e,t,n,r)}}function y_(e,t,n,r,o,i){switch(n){case 2:return u_(t,o,r)[e.getMonth()];case 1:return c_(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=d_(t),l=f_(t,o,r),d=u.findIndex(h=>{if(Array.isArray(h)){let[f,m]=h,b=s>=f.hours&&a>=f.minutes,_=s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return(o>=0?"+":"")+gt(s,2,i)+gt(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+gt(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+gt(s,2,i)+":"+gt(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+gt(s,2,i)+":"+gt(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}var D_=0,na=4;function C_(e){let t=oa(e,D_,1).getDay();return oa(e,0,1+(t<=na?na:na+7)-t)}function Im(e){let t=e.getDay(),n=t===0?-3:na-t;return oa(e.getFullYear(),e.getMonth(),e.getDate()+n)}function zl(e,t=!1){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=Im(n),s=C_(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return gt(o,e,ia(r,Dn.MinusSign))}}function ta(e,t=!1){return function(n,r){let i=Im(n).getFullYear();return gt(i,e,ia(r,Dn.MinusSign),t)}}var Gl={};function w_(e){if(Gl[e])return Gl[e];let t;switch(e){case"G":case"GG":case"GGG":t=J(3,Z.Abbreviated);break;case"GGGG":t=J(3,Z.Wide);break;case"GGGGG":t=J(3,Z.Narrow);break;case"y":t=fe(0,1,0,!1,!0);break;case"yy":t=fe(0,2,0,!0,!0);break;case"yyy":t=fe(0,3,0,!1,!0);break;case"yyyy":t=fe(0,4,0,!1,!0);break;case"Y":t=ta(1);break;case"YY":t=ta(2,!0);break;case"YYY":t=ta(3);break;case"YYYY":t=ta(4);break;case"M":case"L":t=fe(1,1,1);break;case"MM":case"LL":t=fe(1,2,1);break;case"MMM":t=J(2,Z.Abbreviated);break;case"MMMM":t=J(2,Z.Wide);break;case"MMMMM":t=J(2,Z.Narrow);break;case"LLL":t=J(2,Z.Abbreviated,xe.Standalone);break;case"LLLL":t=J(2,Z.Wide,xe.Standalone);break;case"LLLLL":t=J(2,Z.Narrow,xe.Standalone);break;case"w":t=zl(1);break;case"ww":t=zl(2);break;case"W":t=zl(1,!0);break;case"d":t=fe(2,1);break;case"dd":t=fe(2,2);break;case"c":case"cc":t=fe(7,1);break;case"ccc":t=J(1,Z.Abbreviated,xe.Standalone);break;case"cccc":t=J(1,Z.Wide,xe.Standalone);break;case"ccccc":t=J(1,Z.Narrow,xe.Standalone);break;case"cccccc":t=J(1,Z.Short,xe.Standalone);break;case"E":case"EE":case"EEE":t=J(1,Z.Abbreviated);break;case"EEEE":t=J(1,Z.Wide);break;case"EEEEE":t=J(1,Z.Narrow);break;case"EEEEEE":t=J(1,Z.Short);break;case"a":case"aa":case"aaa":t=J(0,Z.Abbreviated);break;case"aaaa":t=J(0,Z.Wide);break;case"aaaaa":t=J(0,Z.Narrow);break;case"b":case"bb":case"bbb":t=J(0,Z.Abbreviated,xe.Standalone,!0);break;case"bbbb":t=J(0,Z.Wide,xe.Standalone,!0);break;case"bbbbb":t=J(0,Z.Narrow,xe.Standalone,!0);break;case"B":case"BB":case"BBB":t=J(0,Z.Abbreviated,xe.Format,!0);break;case"BBBB":t=J(0,Z.Wide,xe.Format,!0);break;case"BBBBB":t=J(0,Z.Narrow,xe.Format,!0);break;case"h":t=fe(3,1,-12);break;case"hh":t=fe(3,2,-12);break;case"H":t=fe(3,1);break;case"HH":t=fe(3,2);break;case"m":t=fe(4,1);break;case"mm":t=fe(4,2);break;case"s":t=fe(5,1);break;case"ss":t=fe(5,2);break;case"S":t=fe(6,1);break;case"SS":t=fe(6,2);break;case"SSS":t=fe(6,3);break;case"Z":case"ZZ":case"ZZZ":t=ea(0);break;case"ZZZZZ":t=ea(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=ea(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=ea(2);break;default:return null}return Gl[e]=t,t}function _m(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function E_(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function b_(e,t,n){let r=n?-1:1,o=e.getTimezoneOffset(),i=_m(t,o);return E_(e,r*(i-o))}function I_(e){if(gm(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return oa(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(h_))return __(r)}let t=new Date(e);if(!gm(t))throw new Error(`Unable to convert "${e}" into a date`);return t}function __(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,u),t}function gm(e){return e instanceof Date&&!isNaN(e.valueOf())}function sa(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var ql=class{$implicit;ngForOf;index;count;constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}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}},nt=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;!this._differ&&n&&(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 r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new ql(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),mm(a,o)}});for(let o=0,i=r.length;o{let i=r.get(o.currentIndex);mm(i,o)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(y(gn),y(Un),y($l))};static \u0275dir=ce({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function mm(e,t){e.context.$implicit=t.item}var rt=(()=>{class e{_viewContainer;_context=new Wl;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(n,r){this._viewContainer=n,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){vm("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){vm("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 ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(y(gn),y(Un))};static \u0275dir=ce({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),Wl=class{$implicit=null;ngIf=null};function vm(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${Se(t)}'.`)}function Mm(e,t){return new C(2100,!1)}var Zl=class{createSubscription(t,n){return pt(()=>t.subscribe({next:n,error:r=>{throw r}}))}dispose(t){pt(()=>t.unsubscribe())}},Yl=class{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}},M_=new Yl,S_=new Zl,Cn=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(n){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,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(mn(n))return M_;if(Bl(n))return S_;throw Mm(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(r){return new(r||e)(y(yn,16))};static \u0275pipe=Io({name:"async",type:e,pure:!1})}return e})();var T_="mediumDate",N_=new v(""),A_=new v(""),Sm=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??T_,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return g_(n,s,i||this.locale,a)}catch(s){throw Mm(e,s.message)}}static \u0275fac=function(r){return new(r||e)(y(Zs,16),y(N_,24),y(A_,24))};static \u0275pipe=Io({name:"date",type:e,pure:!0})}return e})();var kr=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=ee({type:e});static \u0275inj=X({})}return e})(),Tm="browser",x_="server";function td(e){return e===x_}var Nm=(()=>{class e{static \u0275prov=D({token:e,providedIn:"root",factory:()=>new Ql(p(we),window)})}return e})(),Ql=class{document;window;offset=()=>[0,0];constructor(t,n){this.document=t,this.window=n}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(t){this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){let n=R_(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){this.window.history.scrollRestoration=t}scrollToElement(t){let n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}};function R_(e,t){let n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),o=r.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}var Rr=class{};var To=class{},ca=class{},zn=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` +`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var rd=class{encodeKey(t){return Am(t)}encodeValue(t){return Am(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function O_(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var k_=/%(\d[a-f0-9])/gi,F_={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Am(e){return encodeURIComponent(e).replace(k_,(t,n)=>F_[n]??t)}function aa(e){return`${e}`}var wn=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new rd,t.fromString){if(t.fromObject)throw new C(2805,!1);this.map=O_(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(aa):[aa(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(aa(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(aa(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var od=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function P_(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function xm(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Rm(e){return typeof Blob<"u"&&e instanceof Blob}function Om(e){return typeof FormData<"u"&&e instanceof FormData}function L_(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var km="Content-Type",Vm="X-Request-URL",jm="text/plain",Bm="application/json",V_=`${Bm}, ${jm}, */*`,So=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(P_(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new zn,this.context??=new od,!this.params)this.params=new wn,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":ah.set(f,t.setHeaders[f]),u)),t.setParams&&(l=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),l)),new e(n,r,s,{params:l,headers:u,context:d,reportProgress:c,responseType:o,withCredentials:a,transferCache:i})}},Fr=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Fr||{}),No=class{headers;status;statusText;url;ok;type;constructor(t,n=200,r="OK"){this.headers=t.headers||new zn,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},id=class e extends No{constructor(t={}){super(t)}type=Fr.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},ua=class e extends No{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Fr.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},la=class extends No{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},j_=200,B_=204;function nd(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var sd=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof So)i=n;else{let c;o.headers instanceof zn?c=o.headers:c=new zn(o.headers);let u;o.params&&(o.params instanceof wn?u=o.params:u=new wn({fromObject:o.params})),i=new So(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let s=M(i).pipe(Ot(c=>this.handler.handle(c)));if(n instanceof So||o.observe==="events")return s;let a=s.pipe(ye(c=>c instanceof ua));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(T(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(T(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(T(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return a.pipe(T(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new wn().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,nd(o,r))}post(n,r,o={}){return this.request("POST",n,nd(o,r))}put(n,r,o={}){return this.request("PUT",n,nd(o,r))}static \u0275fac=function(r){return new(r||e)(I(To))};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})();var U_=new v("");function Um(e,t){return t(e)}function $_(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}function H_(e,t,n){return(r,o)=>Fe(n,()=>t(r,i=>e(i,o)))}var ad=new v(""),cd=new v(""),z_=new v(""),$m=new v("",{providedIn:"root",factory:()=>!0});function G_(){let e=null;return(t,n)=>{e===null&&(e=(p(ad,{optional:!0})??[]).reduceRight($_,Um));let r=p(zt);if(p($m)){let i=r.add();return e(t,n).pipe(rn(()=>r.remove(i)))}else return e(t,n)}}var Fm=(()=>{class e extends To{backend;injector;chain=null;pendingTasks=p(zt);contributeToStability=p($m);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(cd),...this.injector.get(z_,[])]));this.chain=r.reduceRight((o,i)=>H_(o,i,this.injector),Um)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(rn(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(I(ca),I(Te))};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})();var q_=/^\)\]\}',?\n/,W_=RegExp(`^${Vm}:`,"m");function Z_(e){return"responseURL"in e&&e.responseURL?e.responseURL:W_.test(e.getAllResponseHeaders())?e.getResponseHeader(Vm):null}var Pm=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new C(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?Y(r.\u0275loadImpl()):M(null)).pipe(ge(()=>new $(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((b,_)=>s.setRequestHeader(b,_.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept",V_),!n.headers.has(km)){let b=n.detectContentTypeHeader();b!==null&&s.setRequestHeader(km,b)}if(n.responseType){let b=n.responseType.toLowerCase();s.responseType=b!=="json"?b:"text"}let a=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let b=s.statusText||"OK",_=new zn(s.getAllResponseHeaders()),V=Z_(s)||n.url;return c=new id({headers:_,status:s.status,statusText:b,url:V}),c},l=()=>{let{headers:b,status:_,statusText:V,url:ve}=u(),G=null;_!==B_&&(G=typeof s.response>"u"?s.responseText:s.response),_===0&&(_=G?j_:0);let Ee=_>=200&&_<300;if(n.responseType==="json"&&typeof G=="string"){let Xt=G;G=G.replace(q_,"");try{G=G!==""?JSON.parse(G):null}catch(be){G=Xt,Ee&&(Ee=!1,G={error:be,text:G})}}Ee?(i.next(new ua({body:G,headers:b,status:_,statusText:V,url:ve||void 0})),i.complete()):i.error(new la({error:G,headers:b,status:_,statusText:V,url:ve||void 0}))},d=b=>{let{url:_}=u(),V=new la({error:b,status:s.status||0,statusText:s.statusText||"Unknown Error",url:_||void 0});i.error(V)},h=!1,f=b=>{h||(i.next(u()),h=!0);let _={type:Fr.DownloadProgress,loaded:b.loaded};b.lengthComputable&&(_.total=b.total),n.responseType==="text"&&s.responseText&&(_.partialText=s.responseText),i.next(_)},m=b=>{let _={type:Fr.UploadProgress,loaded:b.loaded};b.lengthComputable&&(_.total=b.total),i.next(_)};return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",f),a!==null&&s.upload&&s.upload.addEventListener("progress",m)),s.send(a),i.next({type:Fr.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",f),a!==null&&s.upload&&s.upload.removeEventListener("progress",m)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(I(Rr))};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})(),Hm=new v(""),Y_="XSRF-TOKEN",Q_=new v("",{providedIn:"root",factory:()=>Y_}),K_="X-XSRF-TOKEN",J_=new v("",{providedIn:"root",factory:()=>K_}),da=class{},X_=(()=>{class e{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=sa(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)(I(we),I(hn),I(Q_))};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})();function e0(e,t){let n=e.url.toLowerCase();if(!p(Hm)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=p(da).getToken(),o=p(J_);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var zm=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(zm||{});function t0(e,t){return{\u0275kind:e,\u0275providers:t}}function Gm(...e){let t=[sd,Pm,Fm,{provide:To,useExisting:Fm},{provide:ca,useFactory:()=>p(U_,{optional:!0})??p(Pm)},{provide:cd,useValue:e0,multi:!0},{provide:Hm,useValue:!0},{provide:da,useClass:X_}];for(let n of e)t.push(...n.\u0275providers);return Ts(t)}var Lm=new v("");function qm(){return t0(zm.LegacyInterceptors,[{provide:Lm,useFactory:G_},{provide:cd,useExisting:Lm,multi:!0}])}var ld=class extends ra{supportsDOMEvents=!0},dd=class e extends ld{static makeCurrent(){Dm(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=r0();return n==null?null:o0(n)}resetBaseElement(){Ao=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return sa(document.cookie,t)}},Ao=null;function r0(){return Ao=Ao||document.querySelector("base"),Ao?Ao.getAttribute("href"):null}function o0(e){return new URL(e,document.baseURI).pathname}var fd=class{addToWindow(t){_e.getAngularTestability=(r,o=!0)=>{let i=t.findTestabilityInTree(r,o);if(i==null)throw new C(5103,!1);return i},_e.getAllAngularTestabilities=()=>t.getAllTestabilities(),_e.getAllAngularRootElements=()=>t.getAllRootElements();let n=r=>{let o=_e.getAllAngularTestabilities(),i=o.length,s=function(){i--,i==0&&r()};o.forEach(a=>{a.whenStable(s)})};_e.frameworkStabilizers||(_e.frameworkStabilizers=[]),_e.frameworkStabilizers.push(n)}findTestabilityInTree(t,n,r){if(n==null)return null;let o=t.getTestability(n);return o??(r?Tt().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},i0=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})(),hd=new v(""),Jm=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new C(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(I(hd),I(Q))};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})(),ha=class{_doc;constructor(t){this._doc=t}manager},fa="ng-app-id";function Wm(e){for(let t of e)t.remove()}function Zm(e,t){let n=t.createElement("style");return n.textContent=e,n}function s0(e,t,n,r){let o=e.head?.querySelectorAll(`style[${fa}="${t}"],link[${fa}="${t}"]`);if(o)for(let i of o)i.removeAttribute(fa),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function pd(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Xm=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.isServer=td(i),s0(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Zm);r?.forEach(o=>this.addUsage(o,this.external,pd))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(Wm(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Wm(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Zm(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,pd(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(fa,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(I(we),I(vl),I(Dl,8),I(hn))};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})(),ud={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},md=/%COMP%/g,ev="%COMP%",a0=`_nghost-${ev}`,c0=`_ngcontent-${ev}`,u0=!0,l0=new v("",{providedIn:"root",factory:()=>u0});function d0(e){return c0.replace(md,e)}function f0(e){return a0.replace(md,e)}function tv(e,t){return t.map(n=>n.replace(md,e))}var Ym=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,c,u=null,l=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.tracingService=l,this.platformIsServer=td(a),this.defaultRenderer=new xo(n,s,c,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Et.ShadowDom&&(r=j(g({},r),{encapsulation:Et.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof pa?o.applyToHost(n):o instanceof Ro&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Et.Emulated:i=new pa(c,u,r,this.appId,l,s,a,d,this.tracingService);break;case Et.ShadowDom:return new gd(c,u,n,r,s,a,this.nonce,d,this.tracingService);default:i=new Ro(c,u,r,l,s,a,d,this.tracingService);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(I(Jm),I(Xm),I(vl),I(l0),I(we),I(hn),I(Q),I(Dl),I(Tr,8))};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})(),xo=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.tracingService=i}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(ud[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Qm(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Qm(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new C(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=ud[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=ud[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(jt.DashCase|jt.Important)?t.style.setProperty(n,r,o&jt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&jt.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=Tt().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);let i=this.decoratePreventDefault(r);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function Qm(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var gd=class extends xo{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,c,u){super(t,i,s,c,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=tv(o.id,o.styles);for(let h of l){let f=document.createElement("style");a&&f.setAttribute("nonce",a),f.textContent=h,this.shadowRoot.appendChild(f)}let d=o.getExternalStyles?.();if(d)for(let h of d){let f=pd(h,i);a&&f.setAttribute("nonce",a),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ro=class extends xo{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c,u){super(t,i,s,a,c),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=u?tv(u,r.styles):r.styles,this.styleUrls=r.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},pa=class extends Ro{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c,u){let l=o+"-"+r.id;super(t,n,r,i,s,a,c,u,l),this.contentAttr=d0(l),this.hostAttr=f0(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},h0=(()=>{class e extends ha{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(I(we))};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})(),Km=["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"},g0={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},m0=(()=>{class e extends ha{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Tt().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Km.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=p0[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Km.forEach(s=>{if(s!==o){let a=g0[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(I(we))};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})();function v0(){dd.makeCurrent()}function y0(){return new Vt}function D0(){return rg(document),document}var C0=[{provide:hn,useValue:Tm},{provide:yl,useValue:v0,multi:!0},{provide:we,useFactory:D0,deps:[]}],nv=Ul(lm,"browser",C0);var w0=[{provide:_o,useClass:fd,deps:[]},{provide:Vl,useClass:Us,deps:[Q,$s,_o]},{provide:Us,useClass:Us,deps:[Q,$s,_o]}],E0=[{provide:Ns,useValue:"root"},{provide:Vt,useFactory:y0,deps:[]},{provide:hd,useClass:h0,multi:!0,deps:[we,Q,hn]},{provide:hd,useClass:m0,multi:!0,deps:[we]},Ym,Xm,Jm,{provide:Cr,useExisting:Ym},{provide:Rr,useClass:i0,deps:[]},[]],rv=(()=>{class e{constructor(){}static \u0275fac=function(r){return new(r||e)};static \u0275mod=ee({type:e});static \u0275inj=X({providers:[...E0,...w0],imports:[kr,dm]})}return e})();var ov=(()=>{class e{_doc;constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static \u0275fac=function(r){return new(r||e)(I(we))};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var k="primary",Go=Symbol("RouteTitle"),wd=class{params;constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function Ur(e){return new wd(e)}function b0(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.lengthr[i]===o)}else return e===t}function vv(e){return e.length>0?e[e.length-1]:null}function bn(e){return Oc(e)?e:mn(e)?Y(Promise.resolve(e)):M(e)}var _0={exact:Dv,subset:Cv},yv={exact:M0,subset:S0,ignored:()=>!0};function sv(e,t,n){return _0[n.paths](e.root,t.root,n.matrixParams)&&yv[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function M0(e,t){return At(e,t)}function Dv(e,t,n){if(!qn(e.segments,t.segments)||!va(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!Dv(e.children[r],t.children[r],n))return!1;return!0}function S0(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>mv(e[n],t[n]))}function Cv(e,t,n){return wv(e,t,t.segments,n)}function wv(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!qn(o,n)||t.hasChildren()||!va(o,n,r))}else if(e.segments.length===n.length){if(!qn(e.segments,n)||!va(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!Cv(e.children[o],t.children[o],r))return!1;return!0}else{let o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!qn(e.segments,o)||!va(e.segments,o,r)||!e.children[k]?!1:wv(e.children[k],t,i,r)}}function va(e,t,n){return t.every((r,o)=>yv[n](e[o].parameters,r.parameters))}var Qt=class{root;queryParams;fragment;_queryParamMap;constructor(t=new z([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Ur(this.queryParams),this._queryParamMap}toString(){return A0.serialize(this)}},z=class{segments;children;parent=null;constructor(t,n){this.segments=t,this.children=n,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ya(this)}},Gn=class{path;parameters;_parameterMap;constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=Ur(this.parameters),this._parameterMap}toString(){return bv(this)}};function T0(e,t){return qn(e,t)&&e.every((n,r)=>At(n.parameters,t[r].parameters))}function qn(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function N0(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===k&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==k&&(n=n.concat(t(o,r)))}),n}var qo=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:()=>new $r,providedIn:"root"})}return e})(),$r=class{parse(t){let n=new Id(t);return new Qt(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Oo(t.root,!0)}`,r=O0(t.queryParams),o=typeof t.fragment=="string"?`#${x0(t.fragment)}`:"";return`${n}${r}${o}`}},A0=new $r;function ya(e){return e.segments.map(t=>bv(t)).join("/")}function Oo(e,t){if(!e.hasChildren())return ya(e);if(t){let n=e.children[k]?Oo(e.children[k],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==k&&r.push(`${o}:${Oo(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=N0(e,(r,o)=>o===k?[Oo(e.children[k],!1)]:[`${o}:${Oo(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[k]!=null?`${ya(e)}/${n[0]}`:`${ya(e)}/(${n.join("//")})`}}function Ev(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ga(e){return Ev(e).replace(/%3B/gi,";")}function x0(e){return encodeURI(e)}function bd(e){return Ev(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Da(e){return decodeURIComponent(e)}function av(e){return Da(e.replace(/\+/g,"%20"))}function bv(e){return`${bd(e.path)}${R0(e.parameters)}`}function R0(e){return Object.entries(e).map(([t,n])=>`;${bd(t)}=${bd(n)}`).join("")}function O0(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${ga(n)}=${ga(o)}`).join("&"):`${ga(n)}=${ga(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var k0=/^[^\/()?;#]+/;function vd(e){let t=e.match(k0);return t?t[0]:""}var F0=/^[^\/()?;=#]+/;function P0(e){let t=e.match(F0);return t?t[0]:""}var L0=/^[^=?&#]+/;function V0(e){let t=e.match(L0);return t?t[0]:""}var j0=/^[^&#]+/;function B0(e){let t=e.match(j0);return t?t[0]:""}var Id=class{url;remaining;constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new z([],{}):new z([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[k]=new z(t,n)),r}parseSegment(){let t=vd(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(t),new Gn(Da(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=P0(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=vd(this.remaining);o&&(r=o,this.capture(r))}t[Da(n)]=Da(r)}parseQueryParam(t){let n=V0(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=B0(this.remaining);s&&(r=s,this.capture(r))}let o=av(n),i=av(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=vd(this.remaining),o=this.remaining[r.length];if(o!=="/"&&o!==")"&&o!==";")throw new C(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=k);let s=this.parseChildren();n[i]=Object.keys(s).length===1?s[k]:new z([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new C(4011,!1)}};function Iv(e){return e.segments.length>0?new z([],{[k]:e}):e}function _v(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=_v(o);if(r===k&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}let n=new z(e.segments,t);return U0(n)}function U0(e){if(e.numberOfChildren===1&&e.children[k]){let t=e.children[k];return new z(e.segments.concat(t.segments),t.children)}return e}function Wn(e){return e instanceof Qt}function $0(e,t,n=null,r=null){let o=Mv(e);return Sv(o,t,n,r)}function Mv(e){let t;function n(i){let s={};for(let c of i.children){let u=n(c);s[c.outlet]=u}let a=new z(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=Iv(r);return t??o}function Sv(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(t.length===0)return yd(o,o,o,n,r);let i=H0(t);if(i.toRoot())return yd(o,o,new z([],{}),n,r);let s=z0(i,o,e),a=s.processChildren?Fo(s.segmentGroup,s.index,i.commands):Nv(s.segmentGroup,s.index,i.commands);return yd(o,s.segmentGroup,a,n,r)}function Ca(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Vo(e){return typeof e=="object"&&e!=null&&e.outlets}function yd(e,t,n,r,o){let i={};r&&Object.entries(r).forEach(([c,u])=>{i[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;e===t?s=n:s=Tv(e,t,n);let a=Iv(_v(s));return new Qt(a,i,o)}function Tv(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=Tv(i,t,n)}),new z(e.segments,r)}var wa=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Ca(r[0]))throw new C(4003,!1);let o=r.find(Vo);if(o&&o!==vv(r))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function H0(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new wa(!0,0,e);let t=0,n=!1,r=e.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?t++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new wa(n,t,r)}var Vr=class{segmentGroup;processChildren;index;constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function z0(e,t,n){if(e.isAbsolute)return new Vr(t,!0,0);if(!n)return new Vr(t,!1,NaN);if(n.parent===null)return new Vr(n,!0,0);let r=Ca(e.commands[0])?0:1,o=n.segments.length-1+r;return G0(n,o,e.numberOfDoubleDots)}function G0(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new C(4005,!1);o=r.segments.length}return new Vr(r,!1,o-i)}function q0(e){return Vo(e[0])?e[0].outlets:{[k]:e}}function Nv(e,t,n){if(e??=new z([],{}),e.segments.length===0&&e.hasChildren())return Fo(e,t,n);let r=W0(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndexi!==k)&&e.children[k]&&e.numberOfChildren===1&&e.children[k].segments.length===0){let i=Fo(e.children[k],t,n);return new z(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=Nv(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new z(e.segments,o)}}function W0(e,t,n){let r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;let s=e.segments[o],a=n[r];if(Vo(a))break;let c=`${a}`,u=r0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!uv(c,u,s))return i;r+=2}else{if(!uv(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function _d(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=_d(new z([],{}),0,r))}),t}function cv(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function uv(e,t,n){return e==n.path&&At(t,n.parameters)}var Po="imperative",me=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(me||{}),ot=class{id;url;constructor(t,n){this.id=t,this.url=n}},Hr=class extends ot{type=me.NavigationStart;navigationTrigger;restoredState;constructor(t,n,r="imperative",o=null){super(t,n),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},vt=class extends ot{urlAfterRedirects;type=me.NavigationEnd;constructor(t,n,r){super(t,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},qe=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(qe||{}),Ea=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(Ea||{}),Yt=class extends ot{reason;code;type=me.NavigationCancel;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},En=class extends ot{reason;code;type=me.NavigationSkipped;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}},jo=class extends ot{error;target;type=me.NavigationError;constructor(t,n,r,o){super(t,n),this.error=r,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ba=class extends ot{urlAfterRedirects;state;type=me.RoutesRecognized;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Md=class extends ot{urlAfterRedirects;state;type=me.GuardsCheckStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Sd=class extends ot{urlAfterRedirects;state;shouldActivate;type=me.GuardsCheckEnd;constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Td=class extends ot{urlAfterRedirects;state;type=me.ResolveStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Nd=class extends ot{urlAfterRedirects;state;type=me.ResolveEnd;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ad=class{route;type=me.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},xd=class{route;type=me.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Rd=class{snapshot;type=me.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Od=class{snapshot;type=me.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},kd=class{snapshot;type=me.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Fd=class{snapshot;type=me.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ia=class{routerEvent;position;anchor;type=me.Scroll;constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},Bo=class{},zr=class{url;navigationBehaviorOptions;constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function Y0(e,t){return e.providers&&!e._injector&&(e._injector=Bs(e.providers,t,`Route: ${e.path}`)),e._injector??t}function mt(e){return e.outlet||k}function Q0(e,t){let n=e.filter(r=>mt(r)===t);return n.push(...e.filter(r=>mt(r)!==t)),n}function Wo(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var Pd=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Wo(this.route?.snapshot)??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new Zo(this.rootInjector)}},Zo=(()=>{class e{rootInjector;contexts=new Map;constructor(n){this.rootInjector=n}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Pd(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static \u0275fac=function(r){return new(r||e)(I(Te))};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),_a=class{_root;constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=Ld(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Ld(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=Vd(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Vd(t,this._root).map(n=>n.value)}};function Ld(e,t){if(e===t.value)return t;for(let n of t.children){let r=Ld(e,n);if(r)return r}return null}function Vd(e,t){if(e===t.value)return[t];for(let n of t.children){let r=Vd(e,n);if(r.length)return r.unshift(t),r}return[]}var Ge=class{value;children;constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function Lr(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var Ma=class extends _a{snapshot;constructor(t,n){super(t),this.snapshot=n,Wd(this,t)}toString(){return this.snapshot.toString()}};function Av(e){let t=K0(e),n=new pe([new Gn("",{})]),r=new pe({}),o=new pe({}),i=new pe({}),s=new pe(""),a=new yt(n,r,i,s,o,k,e,t.root);return a.snapshot=t.root,new Ma(new Ge(a,[]),t)}function K0(e){let t={},n={},r={},o="",i=new jr([],t,r,o,n,k,e,null,{});return new Ta("",new Ge(i,[]))}var yt=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(t,n,r,o,i,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(T(u=>u[Go]))??M(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(T(t=>Ur(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(T(t=>Ur(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Sa(e,t,n="emptyOnly"){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:g(g({},t.params),e.params),data:g(g({},t.data),e.data),resolve:g(g(g(g({},e.data),t.data),o?.data),e._resolvedData)}:r={params:g({},e.params),data:g({},e.data),resolve:g(g({},e.data),e._resolvedData??{})},o&&Rv(o)&&(r.resolve[Go]=o.title),r}var jr=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Go]}constructor(t,n,r,o,i,s,a,c,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Ur(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Ur(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},Ta=class extends _a{url;constructor(t,n){super(n),this.url=t,Wd(this,n)}toString(){return xv(this._root)}};function Wd(e,t){t.value._routerState=e,t.children.forEach(n=>Wd(e,n))}function xv(e){let t=e.children.length>0?` { ${e.children.map(xv).join(", ")} } `:"";return`${e.value}${t}`}function Dd(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,At(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),At(t.params,n.params)||e.paramsSubject.next(n.params),I0(t.url,n.url)||e.urlSubject.next(n.url),At(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function jd(e,t){let n=At(e.params,t.params)&&T0(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||jd(e.parent,t.parent))}function Rv(e){return typeof e.title=="string"||e.title===null}var J0=new v(""),Zd=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=k;activateEvents=new ae;deactivateEvents=new ae;attachEvents=new ae;detachEvents=new ae;routerOutletData=Qp(void 0);parentContexts=p(Zo);location=p(gn);changeDetector=p(yn);inputBinder=p(Oa,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new C(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new C(4013,!1);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Bd(n,a,o.injector,this.routerOutletData);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=ce({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[_t]})}return e})(),Bd=class e{route;childContexts;parent;outletData;__ngOutletInjector(t){return new e(this.route,this.childContexts,t,this.outletData)}constructor(t,n,r,o){this.route=t,this.childContexts=n,this.parent=r,this.outletData=o}get(t,n){return t===yt?this.route:t===Zo?this.childContexts:t===J0?this.outletData:this.parent.get(t,n)}},Oa=new v(""),lv=(()=>{class e{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:r}=n,o=oo([r.queryParams,r.params,r.data]).pipe(ge(([i,s,a],c)=>(a=g(g(g({},i),s),a),c===0?M(a):Promise.resolve(a)))).subscribe(i=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(n);return}let s=fm(r.component);if(!s){this.unsubscribeFromRouteData(n);return}for(let{templateName:a}of s.inputs)n.activatedComponentRef.setInput(a,i[a])});this.outletDataSubscriptions.set(n,o)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})();function X0(e,t,n){let r=Uo(e,t._root,n?n._root:void 0);return new Ma(r,t)}function Uo(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=eM(e,t,n);return new Ge(r,o)}else{if(e.shouldAttach(t.value)){let i=e.retrieve(t.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Uo(e,a)),s}}let r=tM(t.value),o=t.children.map(i=>Uo(e,i));return new Ge(r,o)}}function eM(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return Uo(e,r,o);return Uo(e,r)})}function tM(e){return new yt(new pe(e.url),new pe(e.params),new pe(e.queryParams),new pe(e.fragment),new pe(e.data),e.outlet,e.component,e)}var $o=class{redirectTo;navigationBehaviorOptions;constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},Ov="ngNavigationCancelingError";function Na(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Wn(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=kv(!1,qe.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function kv(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[Ov]=!0,n.cancellationCode=t,n}function nM(e){return Fv(e)&&Wn(e.url)}function Fv(e){return!!e&&e[Ov]}var rM=(e,t,n,r)=>T(o=>(new Ud(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)),Ud=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Dd(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=Lr(n);t.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(o===i)if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Lr(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Lr(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let o=Lr(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Fd(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Od(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(Dd(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Dd(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},Aa=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Br=class{component;route;constructor(t,n){this.component=t,this.route=n}};function oM(e,t,n){let r=e._root,o=t?t._root:null;return ko(r,o,n,[r.value])}function iM(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function qr(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!Hh(e)?e:t.get(e):r}function ko(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=Lr(t);return e.children.forEach(s=>{sM(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Lo(a,n.getContext(s),o)),o}function sM(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=aM(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new Aa(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?ko(e,t,a?a.children:null,r,o):ko(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Br(a.outlet.component,s))}else s&&Lo(t,a,o),o.canActivateChecks.push(new Aa(r)),i.component?ko(e,null,a?a.children:null,r,o):ko(e,null,n,r,o);return o}function aM(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!qn(e.url,t.url);case"pathParamsOrQueryParamsChange":return!qn(e.url,t.url)||!At(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!jd(e,t)||!At(e.queryParams,t.queryParams);case"paramsChange":default:return!jd(e,t)}}function Lo(e,t,n){let r=Lr(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?Lo(s,t.children.getContext(i),n):Lo(s,null,n):Lo(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new Br(t.outlet.component,o)):n.canDeactivateChecks.push(new Br(null,o)):n.canDeactivateChecks.push(new Br(null,o))}function Yo(e){return typeof e=="function"}function cM(e){return typeof e=="boolean"}function uM(e){return e&&Yo(e.canLoad)}function lM(e){return e&&Yo(e.canActivate)}function dM(e){return e&&Yo(e.canActivateChild)}function fM(e){return e&&Yo(e.canDeactivate)}function hM(e){return e&&Yo(e.canMatch)}function Pv(e){return e instanceof Rt||e?.name==="EmptyError"}var ma=Symbol("INITIAL_VALUE");function Gr(){return ge(e=>oo(e.map(t=>t.pipe(kt(1),jc(ma)))).pipe(T(t=>{for(let n of t)if(n!==!0){if(n===ma)return ma;if(n===!1||pM(n))return n}return!0}),ye(t=>t!==ma),kt(1)))}function pM(e){return Wn(e)||e instanceof $o}function gM(e,t){return de(n=>{let{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return s.length===0&&i.length===0?M(j(g({},n),{guardsResult:!0})):mM(s,r,o,e).pipe(de(a=>a&&cM(a)?vM(r,i,e,t):M(a)),T(a=>j(g({},n),{guardsResult:a})))})}function mM(e,t,n,r){return Y(e).pipe(de(o=>EM(o.component,o.route,n,t,r)),Ft(o=>o!==!0,!0))}function vM(e,t,n,r){return Y(t).pipe(Ot(o=>ir(DM(o.route.parent,r),yM(o.route,r),wM(e,o.path,n),CM(e,o.route,n))),Ft(o=>o!==!0,!0))}function yM(e,t){return e!==null&&t&&t(new kd(e)),M(!0)}function DM(e,t){return e!==null&&t&&t(new Rd(e)),M(!0)}function CM(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return M(!0);let o=r.map(i=>Li(()=>{let s=Wo(t)??n,a=qr(i,s),c=lM(a)?a.canActivate(t,e):Fe(s,()=>a(t,e));return bn(c).pipe(Ft())}));return M(o).pipe(Gr())}function wM(e,t,n){let r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>iM(s)).filter(s=>s!==null).map(s=>Li(()=>{let a=s.guards.map(c=>{let u=Wo(s.node)??n,l=qr(c,u),d=dM(l)?l.canActivateChild(r,e):Fe(u,()=>l(r,e));return bn(d).pipe(Ft())});return M(a).pipe(Gr())}));return M(i).pipe(Gr())}function EM(e,t,n,r,o){let i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!i||i.length===0)return M(!0);let s=i.map(a=>{let c=Wo(t)??o,u=qr(a,c),l=fM(u)?u.canDeactivate(e,t,n,r):Fe(c,()=>u(e,t,n,r));return bn(l).pipe(Ft())});return M(s).pipe(Gr())}function bM(e,t,n,r){let o=t.canLoad;if(o===void 0||o.length===0)return M(!0);let i=o.map(s=>{let a=qr(s,e),c=uM(a)?a.canLoad(t,n):Fe(e,()=>a(t,n));return bn(c)});return M(i).pipe(Gr(),Lv(r))}function Lv(e){return Tc(re(t=>{if(typeof t!="boolean")throw Na(e,t)}),T(t=>t===!0))}function IM(e,t,n,r){let o=t.canMatch;if(!o||o.length===0)return M(!0);let i=o.map(s=>{let a=qr(s,e),c=hM(a)?a.canMatch(t,n):Fe(e,()=>a(t,n));return bn(c)});return M(i).pipe(Gr(),Lv(r))}var Ho=class{segmentGroup;constructor(t){this.segmentGroup=t||null}},zo=class extends Error{urlTree;constructor(t){super(),this.urlTree=t}};function Pr(e){return or(new Ho(e))}function _M(e){return or(new C(4e3,!1))}function MM(e){return or(kv(!1,qe.GuardRejected))}var $d=class{urlSerializer;urlTree;constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return M(r);if(o.numberOfChildren>1||!o.children[k])return _M(`${t.redirectTo}`);o=o.children[k]}}applyRedirectCommands(t,n,r,o,i){if(typeof n!="string"){let a=n,{queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,params:f,data:m,title:b}=o,_=Fe(i,()=>a({params:f,data:m,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,title:b}));if(_ instanceof Qt)throw new zo(_);n=_}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new zo(s);return s}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new Qt(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){let i=this.createSegments(t,n.segments,r,o),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,o)}),new z(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new C(4001,!1);return o}findOrReturn(t,n){let r=0;for(let o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}},Hd={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function SM(e,t,n,r,o){let i=Vv(e,t,n);return i.matched?(r=Y0(t,r),IM(r,t,n,o).pipe(T(s=>s===!0?i:g({},Hd)))):M(i)}function Vv(e,t,n){if(t.path==="**")return TM(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?g({},Hd):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||b0)(n,e,t);if(!o)return g({},Hd);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?g(g({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function TM(e){return{matched:!0,parameters:e.length>0?vv(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function dv(e,t,n,r){return n.length>0&&xM(e,n,r)?{segmentGroup:new z(t,AM(r,new z(n,e.children))),slicedSegments:[]}:n.length===0&&RM(e,n,r)?{segmentGroup:new z(e.segments,NM(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new z(e.segments,e.children),slicedSegments:n}}function NM(e,t,n,r){let o={};for(let i of n)if(ka(e,t,i)&&!r[mt(i)]){let s=new z([],{});o[mt(i)]=s}return g(g({},r),o)}function AM(e,t){let n={};n[k]=t;for(let r of e)if(r.path===""&&mt(r)!==k){let o=new z([],{});n[mt(r)]=o}return n}function xM(e,t,n){return n.some(r=>ka(e,t,r)&&mt(r)!==k)}function RM(e,t,n){return n.some(r=>ka(e,t,r))}function ka(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function OM(e,t,n){return t.length===0&&!e.children[n]}var zd=class{};function kM(e,t,n,r,o,i,s="emptyOnly"){return new Gd(e,t,n,r,o,s,i).recognize()}var FM=31,Gd=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new $d(this.urlSerializer,this.urlTree)}noMatchError(t){return new C(4002,`'${t.segmentGroup}'`)}recognize(){let t=dv(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(T(({children:n,rootSnapshot:r})=>{let o=new Ge(r,n),i=new Ta("",o),s=$0(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(t){let n=new jr([],Object.freeze({}),Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),k,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,k,n).pipe(T(r=>({children:r,rootSnapshot:n})),Ze(r=>{if(r instanceof zo)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Ho?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,o,i){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,i):this.processSegment(t,n,r,r.segments,o,!0,i).pipe(T(s=>s instanceof Ge?[s]:[]))}processChildren(t,n,r,o){let i=[];for(let s of Object.keys(r.children))s==="primary"?i.unshift(s):i.push(s);return Y(i).pipe(Ot(s=>{let a=r.children[s],c=Q0(n,s);return this.processSegmentGroup(t,c,a,s,o)}),Vc((s,a)=>(s.push(...a),s)),nn(null),Lc(),de(s=>{if(s===null)return Pr(r);let a=jv(s);return PM(a),M(a)}))}processSegment(t,n,r,o,i,s,a){return Y(n).pipe(Ot(c=>this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a).pipe(Ze(u=>{if(u instanceof Ho)return M(null);throw u}))),Ft(c=>!!c),Ze(c=>{if(Pv(c))return OM(r,o,i)?M(new zd):Pr(r);throw c}))}processSegmentAgainstRoute(t,n,r,o,i,s,a,c){return mt(r)!==s&&(s===k||!ka(o,i,r))?Pr(o):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,o,r,i,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,c):Pr(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=Vv(n,o,i);if(!c)return Pr(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>FM&&(this.allowRedirects=!1));let f=new jr(i,u,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,fv(o),mt(o),o.component??o._loadedComponent??null,o,hv(o)),m=Sa(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(m.params),f.data=Object.freeze(m.data);let b=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,f,t);return this.applyRedirects.lineralizeSegments(o,b).pipe(de(_=>this.processSegment(t,r,n,_.concat(h),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a=SM(n,r,o,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(ge(c=>c.matched?(t=r._injector??t,this.getChildConfig(t,r,o).pipe(ge(({routes:u})=>{let l=r._loadedInjector??t,{parameters:d,consumedSegments:h,remainingSegments:f}=c,m=new jr(h,d,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,fv(r),mt(r),r.component??r._loadedComponent??null,r,hv(r)),b=Sa(m,s,this.paramsInheritanceStrategy);m.params=Object.freeze(b.params),m.data=Object.freeze(b.data);let{segmentGroup:_,slicedSegments:V}=dv(n,h,f,u);if(V.length===0&&_.hasChildren())return this.processChildren(l,u,_,m).pipe(T(G=>new Ge(m,G)));if(u.length===0&&V.length===0)return M(new Ge(m,[]));let ve=mt(r)===i;return this.processSegment(l,u,_,V,ve?k:i,!0,m).pipe(T(G=>new Ge(m,G instanceof Ge?[G]:[])))}))):Pr(n)))}getChildConfig(t,n,r){return n.children?M({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?M({routes:n._loadedRoutes,injector:n._loadedInjector}):bM(t,n,r,this.urlSerializer).pipe(de(o=>o?this.configLoader.loadChildren(t,n).pipe(re(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):MM(n))):M({routes:[],injector:t})}};function PM(e){e.sort((t,n)=>t.value.outlet===k?-1:n.value.outlet===k?1:t.value.outlet.localeCompare(n.value.outlet))}function LM(e){let t=e.value.routeConfig;return t&&t.path===""}function jv(e){let t=[],n=new Set;for(let r of e){if(!LM(r)){t.push(r);continue}let o=t.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),n.add(o)):t.push(r)}for(let r of n){let o=jv(r.children);t.push(new Ge(r.value,o))}return t.filter(r=>!n.has(r))}function fv(e){return e.data||{}}function hv(e){return e.resolve||{}}function VM(e,t,n,r,o,i){return de(s=>kM(e,t,n,r,s.extractedUrl,o,i).pipe(T(({state:a,tree:c})=>j(g({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function jM(e,t){return de(n=>{let{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return M(n);let i=new Set(o.map(c=>c.route)),s=new Set;for(let c of i)if(!s.has(c))for(let u of Bv(c))s.add(u);let a=0;return Y(s).pipe(Ot(c=>i.has(c)?BM(c,r,e,t):(c.data=Sa(c,c.parent,e).resolve,M(void 0))),re(()=>a++),sr(1),de(c=>a===s.size?M(n):Be))})}function Bv(e){let t=e.children.map(n=>Bv(n)).flat();return[e,...t]}function BM(e,t,n,r){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!Rv(o)&&(i[Go]=o.title),UM(i,e,t,r).pipe(T(s=>(e._resolvedData=s,e.data=Sa(e,e.parent,n).resolve,null)))}function UM(e,t,n,r){let o=Ed(e);if(o.length===0)return M({});let i={};return Y(o).pipe(de(s=>$M(e[s],t,n,r).pipe(Ft(),re(a=>{if(a instanceof $o)throw Na(new $r,a);i[s]=a}))),sr(1),T(()=>i),Ze(s=>Pv(s)?Be:or(s)))}function $M(e,t,n,r){let o=Wo(t)??r,i=qr(e,o),s=i.resolve?i.resolve(t,n):Fe(o,()=>i(t,n));return bn(s)}function Cd(e){return ge(t=>{let n=e(t);return n?Y(n).pipe(T(()=>t)):M(t)})}var Uv=(()=>{class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===k);return r}getResolvedTitleForRoute(n){return n.data[Go]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:()=>p(HM),providedIn:"root"})}return e})(),HM=(()=>{class e extends Uv{title;constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||e)(I(ov))};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Qo=new v("",{providedIn:"root",factory:()=>({})}),zM=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=oe({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,o){r&1&&ie(0,"router-outlet")},dependencies:[Zd],encapsulation:2})}return e})();function Yd(e){let t=e.children&&e.children.map(Yd),n=t?j(g({},e),{children:t}):g({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==k&&(n.component=zM),n}var xa=new v(""),Qd=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(Ws);loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return M(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=bn(n.loadComponent()).pipe(T($v),re(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),rn(()=>{this.componentLoaders.delete(n)})),o=new nr(r,()=>new ne).pipe(tr());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return M({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=GM(r,this.compiler,n,this.onLoadEndListener).pipe(rn(()=>{this.childrenLoaders.delete(r)})),s=new nr(i,()=>new ne).pipe(tr());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function GM(e,t,n,r){return bn(e.loadChildren()).pipe(T($v),de(o=>o instanceof go||Array.isArray(o)?M(o):Y(t.compileModuleAsync(o))),T(o=>{r&&r(e);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(n).injector,s=i.get(xa,[],{optional:!0,self:!0}).flat()),{routes:s.map(Yd),injector:i}}))}function qM(e){return e&&typeof e=="object"&&"default"in e}function $v(e){return qM(e)?e.default:e}var Kd=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:()=>p(WM),providedIn:"root"})}return e})(),WM=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Hv=new v(""),zv=new v("");function ZM(e,t,n){let r=e.get(zv),o=e.get(we);return e.get(Q).runOutsideAngular(()=>{if(!o.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(u=>setTimeout(u));let i,s=new Promise(u=>{i=u}),a=o.startViewTransition(()=>(i(),YM(e))),{onViewTransitionCreated:c}=r;return c&&Fe(e,()=>c({transition:a,from:t,to:n})),s})}function YM(e){return new Promise(t=>{wl({read:()=>setTimeout(t)},{injector:e})})}var Gv=new v(""),Jd=(()=>{class e{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new ne;transitionAbortSubject=new ne;configLoader=p(Qd);environmentInjector=p(Te);urlSerializer=p(qo);rootContexts=p(Zo);location=p(Or);inputBindingEnabled=p(Oa,{optional:!0})!==null;titleStrategy=p(Uv);options=p(Qo,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(Kd);createViewTransition=p(Hv,{optional:!0});navigationErrorHandler=p(Gv,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>M(void 0);rootComponentType=null;constructor(){let n=o=>this.events.next(new Ad(o)),r=o=>this.events.next(new xd(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(j(g(g({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,o){return this.transitions=new pe({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Po,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ye(i=>i.id!==0),T(i=>j(g({},i),{extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),ge(i=>{let s=!1,a=!1;return M(i).pipe(ge(c=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",qe.SupersededByNewNavigation),Be;this.currentTransition=i,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?j(g({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&l!=="reload"){let d="";return this.events.next(new En(c.id,this.urlSerializer.serialize(c.rawUrl),d,Ea.IgnoredSameUrlNavigation)),c.resolve(!1),Be}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return M(c).pipe(ge(d=>{let h=this.transitions?.getValue();return this.events.next(new Hr(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?Be:Promise.resolve(d)}),VM(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),re(d=>{i.targetSnapshot=d.targetSnapshot,i.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=j(g({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let h=new ba(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:d,extractedUrl:h,source:f,restoredState:m,extras:b}=c,_=new Hr(d,this.urlSerializer.serialize(h),f,m);this.events.next(_);let V=Av(this.rootComponentType).snapshot;return this.currentTransition=i=j(g({},c),{targetSnapshot:V,urlAfterRedirects:h,extras:j(g({},b),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,M(i)}else{let d="";return this.events.next(new En(c.id,this.urlSerializer.serialize(c.extractedUrl),d,Ea.IgnoredByUrlHandlingStrategy)),c.resolve(!1),Be}}),re(c=>{let u=new Md(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),T(c=>(this.currentTransition=i=j(g({},c),{guards:oM(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),i)),gM(this.environmentInjector,c=>this.events.next(c)),re(c=>{if(i.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw Na(this.urlSerializer,c.guardsResult);let u=new Sd(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(u)}),ye(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",qe.GuardRejected),!1)),Cd(c=>{if(c.guards.canActivateChecks.length)return M(c).pipe(re(u=>{let l=new Td(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),ge(u=>{let l=!1;return M(u).pipe(jM(this.paramsInheritanceStrategy,this.environmentInjector),re({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(u,"",qe.NoDataFromResolver)}}))}),re(u=>{let l=new Nd(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}))}),Cd(c=>{let u=l=>{let d=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(l.routeConfig).pipe(re(h=>{l.component=h}),T(()=>{})));for(let h of l.children)d.push(...u(h));return d};return oo(u(c.targetSnapshot.root)).pipe(nn(null),kt(1))}),Cd(()=>this.afterPreactivation()),ge(()=>{let{currentSnapshot:c,targetSnapshot:u}=i,l=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return l?Y(l).pipe(T(()=>i)):M(i)}),T(c=>{let u=X0(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=i=j(g({},c),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,i}),re(()=>{this.events.next(new Bo)}),rM(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),kt(1),re({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new vt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),Bc(this.transitionAbortSubject.pipe(re(c=>{throw c}))),rn(()=>{!s&&!a&&this.cancelNavigationTransition(i,"",qe.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null)}),Ze(c=>{if(a=!0,Fv(c))this.events.next(new Yt(i.id,this.urlSerializer.serialize(i.extractedUrl),c.message,c.cancellationCode)),nM(c)?this.events.next(new zr(c.url,c.navigationBehaviorOptions)):i.resolve(!1);else{let u=new jo(i.id,this.urlSerializer.serialize(i.extractedUrl),c,i.targetSnapshot??void 0);try{let l=Fe(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof $o){let{message:d,cancellationCode:h}=Na(this.urlSerializer,l);this.events.next(new Yt(i.id,this.urlSerializer.serialize(i.extractedUrl),d,h)),this.events.next(new zr(l.redirectTo,l.navigationBehaviorOptions))}else throw this.events.next(u),c}catch(l){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(l)}}return Be}))}))}cancelNavigationTransition(n,r,o){let i=new Yt(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function QM(e){return e!==Po}var KM=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:()=>p(JM),providedIn:"root"})}return e})(),qd=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},JM=(()=>{class e extends qd{static \u0275fac=(()=>{let n;return function(o){return(n||(n=_r(e)))(o||e)}})();static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),qv=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:()=>p(XM),providedIn:"root"})}return e})(),XM=(()=>{class e extends qv{location=p(Or);urlSerializer=p(qo);options=p(Qo,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=p(Kd);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Qt;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=Av(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof Hr)this.stateMemento=this.createStateMemento();else if(n instanceof En)this.rawUrlTree=r.initialUrl;else if(n instanceof ba){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??o,r)}}else n instanceof Bo?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):n instanceof Yt&&(n.code===qe.GuardRejected||n.code===qe.NoDataFromResolver)?this.restoreHistory(r):n instanceof jo?this.restoreHistory(r,!0):n instanceof vt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let o=n instanceof Qt?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let i=this.browserPageId,s=g(g({},r.extras.state),this.generateNgRouterState(r.id,i));this.location.replaceState(o,"",s)}else{let i=g(g({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",i)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.currentUrlTree===n.finalUrl&&i===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static \u0275fac=(()=>{let n;return function(o){return(n||(n=_r(e)))(o||e)}})();static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Wv(e,t){e.events.pipe(ye(n=>n instanceof vt||n instanceof Yt||n instanceof jo||n instanceof En),T(n=>n instanceof vt||n instanceof En?0:(n instanceof Yt?n.code===qe.Redirect||n.code===qe.SupersededByNewNavigation:!1)?2:1),ye(n=>n!==2),kt(1)).subscribe(()=>{t()})}var eS={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},tS={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Re=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(Ll);stateManager=p(qv);options=p(Qo,{optional:!0})||{};pendingTasks=p(zt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(Jd);urlSerializer=p(qo);location=p(Or);urlHandlingStrategy=p(Kd);_events=new ne;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(KM);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=p(xa,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!p(Oa,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}eventsSubscription=new te;subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=this.navigationTransitions.currentNavigation;if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof Yt&&r.code!==qe.Redirect&&r.code!==qe.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof vt)this.navigated=!0;else if(r instanceof zr){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=g({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||QM(o.source)},s);this.scheduleNavigation(a,Po,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}rS(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Po,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,o){let i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){let c=g({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(i.state=c)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Yd),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=g(g({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}l!==null&&(l=this.removeEmptyProps(l));let d;try{let h=o?o.snapshot:this.routerState.snapshot.root;d=Mv(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return Sv(d,n,l,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=Wn(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Po,null,r)}navigate(n,r={skipLocationChange:!1}){return nS(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=g({},eS):r===!1?o=g({},tS):o=r,Wn(n))return sv(this.currentUrlTree,n,o);let i=this.parseUrl(n);return sv(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((d,h)=>{a=d,c=h});let l=this.pendingTasks.add();return Wv(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function nS(e){for(let t=0;t{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new ne;constructor(n,r,o,i,s,a){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof vt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(n){n==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Wn(n)?this.routerLinkInput=n:this.routerLinkInput=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,r,o,i,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(n!==0||r||o||i||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let r=this.href===null?null:ug(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){let o=this.renderer,i=this.el.nativeElement;r!==null?o.setAttribute(i,n,r):o.removeAttribute(i,n)}get urlTree(){return this.routerLinkInput===null?null:Wn(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||e)(y(Re),y(yt),fl("tabindex"),y(Mt),y(Le),y(Zt))};static \u0275dir=ce({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&se("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Nr("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",xr],skipLocationChange:[2,"skipLocationChange","skipLocationChange",xr],replaceUrl:[2,"replaceUrl","replaceUrl",xr],routerLink:"routerLink"},features:[Fl,_t]})}return e})(),Zv=(()=>{class e{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new ae;constructor(n,r,o,i,s){this.router=n,this.element=r,this.renderer=o,this.cdr=i,this.link=s,this.routerEventsSubscription=n.events.subscribe(a=>{a instanceof vt&&this.update()})}ngAfterContentInit(){M(this.links.changes,M(null)).pipe(tn()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=Y(n).pipe(tn()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){let r=Array.isArray(n)?n:n.split(" ");this.classes=r.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(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),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 r=oS(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let i=o.urlTree;return i?n.isActive(i,r):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}static \u0275fac=function(r){return new(r||e)(y(Re),y(Le),y(Mt),y(yn),y(it,8))};static \u0275dir=ce({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,i){if(r&1&&Kg(i,it,5),r&2){let s;Jg(s=Xg())&&(o.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[_t]})}return e})();function oS(e){return!!e.paths}var Ra=class{};var iS=(()=>{class e{router;injector;preloadingStrategy;loader;subscription;constructor(n,r,o,i,s){this.router=n,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(ye(n=>n instanceof vt),Ot(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){let o=[];for(let i of r){i.providers&&!i._injector&&(i._injector=Bs(i.providers,n,`Route: ${i.path}`));let s=i._injector??n,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&i.canLoad===void 0||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return Y(o).pipe(tn())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;r.loadChildren&&r.canLoad===void 0?o=this.loader.loadChildren(n,r):o=M(null);let i=o.pipe(de(s=>s===null?M(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(r);return Y([i,s]).pipe(tn())}else return i})}static \u0275fac=function(r){return new(r||e)(I(Re),I(Ws),I(Te),I(Ra),I(Qd))};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Yv=new v(""),sS=(()=>{class e{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(n,r,o,i,s={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,s.scrollPositionRestoration||="disabled",s.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 Hr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof vt?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof En&&n.code===Ea.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 Ia&&(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,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Ia(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){bg()};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})();function aS(e){return e.routerState.root}function Ko(e,t){return{\u0275kind:e,\u0275providers:t}}function cS(){let e=p(Ne);return t=>{let n=e.get(bt);if(t!==n.components[0])return;let r=e.get(Re),o=e.get(Qv);e.get(Xd)===1&&r.initialNavigation(),e.get(Kv,null,P.Optional)?.setUpPreloading(),e.get(Yv,null,P.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var Qv=new v("",{factory:()=>new ne}),Xd=new v("",{providedIn:"root",factory:()=>1});function uS(){return Ko(2,[{provide:Xd,useValue:0},{provide:Hs,multi:!0,deps:[Ne],useFactory:t=>{let n=t.get(Cm,Promise.resolve());return()=>n.then(()=>new Promise(r=>{let o=t.get(Re),i=t.get(Qv);Wv(o,()=>{r(!0)}),t.get(Jd).afterPreactivation=()=>(r(!0),i.closed?M(void 0):i),o.initialNavigation()}))}}])}function lS(){return Ko(3,[{provide:Hs,multi:!0,useFactory:()=>{let t=p(Re);return()=>{t.setUpLocationChangeListener()}}},{provide:Xd,useValue:2}])}var Kv=new v("");function dS(e){return Ko(0,[{provide:Kv,useExisting:iS},{provide:Ra,useExisting:e}])}function fS(){return Ko(8,[lv,{provide:Oa,useExisting:lv}])}function hS(e){let t=[{provide:Hv,useValue:ZM},{provide:zv,useValue:g({skipNextTransition:!!e?.skipInitialTransition},e)}];return Ko(9,t)}var pv=new v("ROUTER_FORROOT_GUARD"),pS=[Or,{provide:qo,useClass:$r},Re,Zo,{provide:yt,useFactory:aS,deps:[Re]},Qd,[]],Kt=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[pS,[],{provide:xa,multi:!0,useValue:n},{provide:pv,useFactory:yS,deps:[[Re,new Ss,new Qu]]},r?.errorHandler?{provide:Gv,useValue:r.errorHandler}:[],{provide:Qo,useValue:r||{}},r?.useHash?mS():vS(),gS(),r?.preloadingStrategy?dS(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?DS(r):[],r?.bindToComponentInputs?fS().\u0275providers:[],r?.enableViewTransitions?hS().\u0275providers:[],CS()]}}static forChild(n){return{ngModule:e,providers:[{provide:xa,multi:!0,useValue:n}]}}static \u0275fac=function(r){return new(r||e)(I(pv,8))};static \u0275mod=ee({type:e});static \u0275inj=X({})}return e})();function gS(){return{provide:Yv,useFactory:()=>{let e=p(Nm),t=p(Q),n=p(Qo),r=p(Jd),o=p(qo);return n.scrollOffset&&e.setOffset(n.scrollOffset),new sS(o,r,e,t,n)}}}function mS(){return{provide:Zt,useClass:Em}}function vS(){return{provide:Zt,useClass:ed}}function yS(e){return"guarded"}function DS(e){return[e.initialNavigation==="disabled"?lS().\u0275providers:[],e.initialNavigation==="enabledBlocking"?uS().\u0275providers:[]]}var gv=new v("");function CS(){return[{provide:gv,useFactory:cS},{provide:zs,multi:!0,useExisting:gv}]}var je=class e{constructor(t){this.http=t}apiUrl="https://api5.angular-buch.com";getAll(){return this.http.get(`${this.apiUrl}/books`).pipe(Ze(t=>(console.error(t),M([]))))}getSingle(t){return this.http.get(`${this.apiUrl}/books/${t}`)}remove(t){return this.http.delete(`${this.apiUrl}/books/${t}`)}getAllSearch(t){return this.http.get(`${this.apiUrl}/books/search/${t}`).pipe(Ze(n=>(console.error(n),M([]))))}create(t){return this.http.post(`${this.apiUrl}/books`,t)}update(t){return this.http.put(`${this.apiUrl}/books/${t.isbn}`,t)}check(t){return this.http.get(`${this.apiUrl}/books/${t}/check`)}static \u0275fac=function(n){return new(n||e)(I(sd))};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})};var wS=e=>["/books",e];function ES(e,t){if(e&1&&(w(0,"li")(1,"a",6),S(2),w(3,"p",7),S(4),E()()()),e&2){let n=t.$implicit;A(),R("routerLink",qs(3,wS,n.isbn)),A(),He(" ",n.title," "),A(2),St(n.subtitle)}}function bS(e,t){e&1&&(w(0,"li"),S(1,"No results"),E())}function IS(e,t){if(e&1&&(w(0,"ul",3),K(1,ES,5,5,"li",4)(2,bS,2,0,"li",5),E()),e&2){let n=t.ngIf;A(),R("ngForOf",n),A(),R("ngIf",!n.length)}}var Fa=class e{constructor(t){this.service=t;this.results$=this.input$.pipe(ye(n=>n.length>=3),Fc(500),Pc(),re(()=>this.isLoading=!0),ge(n=>this.service.getAllSearch(n)),re(()=>this.isLoading=!1))}input$=new ne;isLoading=!1;results$;static \u0275fac=function(n){return new(n||e)(y(je))};static \u0275cmp=oe({type:e,selectors:[["bm-search"]],standalone:!1,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(n,r){if(n&1){let o=Gt();w(0,"input",1,0),se("input",function(){$t(o);let s=em(1);return Ht(r.input$.next(s.value))}),E(),K(2,IS,3,2,"ul",2),et(3,"async")}n&2&&(Ar("loading",r.isLoading),A(2),R("ngIf",ht(3,3,r.results$)))},dependencies:[nt,rt,it,Cn],encapsulation:2})};var Pa=class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=oe({type:e,selectors:[["bm-home"]],standalone:!1,decls:7,vars:0,consts:[["routerLink","/books",1,"button","red"]],template:function(n,r){n&1&&(w(0,"h1"),S(1,"Home"),E(),w(2,"a",0),S(3,` Show book list +`),E(),w(4,"h2"),S(5,"Search"),E(),ie(6,"bm-search"))},dependencies:[it,Fa],encapsulation:2})};var MS=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:Pa}],La=class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=ee({type:e});static \u0275inj=X({imports:[Kt.forRoot(MS),Kt]})};var Zr=class e{_isAuthenticated$=new pe(!0);isAuthenticated$=this._isAuthenticated$.asObservable();get isAuthenticated(){return this._isAuthenticated$.value}login(){this._isAuthenticated$.next(!0)}logout(){this._isAuthenticated$.next(!1)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})};function SS(e,t){if(e&1){let n=Gt();w(0,"button",6),se("click",function(){$t(n);let o=Ve();return Ht(o.auth.login())}),S(1,"Login"),E()}}function TS(e,t){if(e&1){let n=Gt();w(0,"button",7),se("click",function(){$t(n);let o=Ve();return Ht(o.auth.logout())}),S(1,"Logout"),E()}}var Va=class e{constructor(t){this.auth=t}static \u0275fac=function(n){return new(n||e)(y(Zr))};static \u0275cmp=oe({type:e,selectors:[["bm-root"]],standalone:!1,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(n,r){n&1&&(w(0,"nav")(1,"a",0),S(2,"Home"),E(),w(3,"a",1),S(4,"Books"),E(),w(5,"a",2),S(6,"Administration"),E(),w(7,"div",3),K(8,SS,2,0,"button",4)(9,TS,2,0,"button",5),E()(),w(10,"main"),ie(11,"router-outlet"),E()),n&2&&(A(8),R("ngIf",!r.auth.isAuthenticated),A(),R("ngIf",r.auth.isAuthenticated))},dependencies:[rt,Zd,it,Zv],encapsulation:2})};var Yr=class e{transform(t){return t?`${t.substring(0,3)}-${t.substring(3)}`:""}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=Io({name:"isbn",type:e,pure:!0,standalone:!1})};var NS=e=>["/admin/edit",e];function AS(e,t){if(e&1&&(w(0,"p",10),S(1),E()),e&2){let n=Ve().ngIf;A(),St(n.subtitle)}}function xS(e,t){if(e&1&&(w(0,"li"),S(1),E()),e&2){let n=t.$implicit;A(),St(n)}}function RS(e,t){if(e&1&&(w(0,"div")(1,"h2"),S(2,"Published"),E(),S(3),et(4,"date"),E()),e&2){let n=Ve().ngIf;A(3),He(" ",om(4,1,n.published,"longDate")," ")}}function OS(e,t){if(e&1&&ie(0,"img",11),e&2){let n=Ve().ngIf;R("src",n.thumbnailUrl,bo)}}function kS(e,t){if(e&1){let n=Gt();w(0,"div",1)(1,"h1"),S(2),E(),K(3,AS,2,1,"p",2),w(4,"div",3)(5,"div")(6,"h2"),S(7,"Authors"),E(),w(8,"ul"),K(9,xS,2,1,"li",4),E()(),w(10,"div")(11,"h2"),S(12,"ISBN"),E(),S(13),et(14,"isbn"),E(),K(15,RS,5,4,"div",5),E(),w(16,"h2"),S(17,"Description"),E(),w(18,"p"),S(19),E(),K(20,OS,1,1,"img",6),w(21,"a",7),S(22,"Back to list"),E(),w(23,"button",8),se("click",function(){let o=$t(n).ngIf,i=Ve();return Ht(i.removeBook(o.isbn))}),S(24," Remove book "),E(),w(25,"a",9),S(26," Edit book "),E()()}if(e&2){let n=t.ngIf;A(2),St(n.title),A(),R("ngIf",n.subtitle),A(6),R("ngForOf",n.authors),A(4),He(" ",ht(14,8,n.isbn)," "),A(2),R("ngIf",n.published),A(4),St(n.description),A(),R("ngIf",n.thumbnailUrl),A(5),R("routerLink",qs(10,NS,n.isbn))}}var ja=class e{constructor(t,n,r){this.service=t;this.route=n;this.router=r;let o=this.route.snapshot.paramMap.get("isbn");this.book$=this.service.getSingle(o)}book$;removeBook(t){window.confirm("Remove book?")&&this.service.remove(t).subscribe(()=>{this.router.navigateByUrl("/books")})}static \u0275fac=function(n){return new(n||e)(y(je),y(yt),y(Re))};static \u0275cmp=oe({type:e,selectors:[["bm-book-details"]],standalone:!1,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(n,r){n&1&&(K(0,kS,27,12,"div",0),et(1,"async")),n&2&&R("ngIf",ht(1,1,r.book$))},dependencies:[nt,rt,it,Cn,Sm,Yr],encapsulation:2})};function FS(e,t){if(e&1&&ie(0,"img",6),e&2){let n=Ve(2);R("src",n.book.thumbnailUrl,bo)}}function PS(e,t){if(e&1&&(w(0,"p",7),S(1),E()),e&2){let n=Ve(2);A(),He(" ",n.book.subtitle," ")}}function LS(e,t){if(e&1&&(w(0,"li"),S(1),E()),e&2){let n=t.$implicit;A(),He(" ",n," ")}}function VS(e,t){if(e&1&&(w(0,"a",1),K(1,FS,1,1,"img",2),w(2,"h2"),S(3),E(),K(4,PS,2,1,"p",3),w(5,"ul",4),K(6,LS,2,1,"li",5),E(),w(7,"div"),S(8),et(9,"isbn"),E()()),e&2){let n=Ve();R("routerLink",n.book.isbn),A(),R("ngIf",n.book.thumbnailUrl),A(2),St(n.book.title),A(),R("ngIf",n.book.subtitle),A(2),R("ngForOf",n.book.authors),A(2),He("ISBN ",ht(9,6,n.book.isbn),"")}}var Ba=class e{book;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=oe({type:e,selectors:[["bm-book-list-item"]],inputs:{book:"book"},standalone:!1,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(n,r){n&1&&K(0,VS,10,8,"a",0),n&2&&R("ngIf",r.book)},dependencies:[nt,rt,it,Yr],encapsulation:2})};function BS(e,t){if(e&1&&(w(0,"li"),ie(1,"bm-book-list-item",4),E()),e&2){let n=t.$implicit;A(),R("book",n)}}function US(e,t){e&1&&(w(0,"li"),S(1," No books available. "),E())}function $S(e,t){if(e&1&&(w(0,"ul",1),K(1,BS,2,1,"li",2)(2,US,2,0,"li",3),E()),e&2){let n=t.ngIf;A(),R("ngForOf",n),A(),R("ngIf",!n.length)}}var Ua=class e{constructor(t){this.service=t;this.books$=this.service.getAll()}books$;static \u0275fac=function(n){return new(n||e)(y(je))};static \u0275cmp=oe({type:e,selectors:[["bm-book-list"]],standalone:!1,decls:4,vars:3,consts:[["class","book-list",4,"ngIf"],[1,"book-list"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"book"]],template:function(n,r){n&1&&(w(0,"h1"),S(1,"Books"),E(),K(2,$S,3,2,"ul",0),et(3,"async")),n&2&&(A(2),R("ngIf",ht(3,1,r.books$)))},dependencies:[nt,rt,Ba,Cn],encapsulation:2})};var HS=[{path:"books",component:Ua},{path:"books/:isbn",component:ja}],$a=class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=ee({type:e});static \u0275inj=X({imports:[Kt.forChild(HS),Kt]})};var Ha=class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=ee({type:e});static \u0275inj=X({imports:[kr,$a]})};var za=class e{constructor(t){this.authService=t}intercept(t,n){let r="1234567890";if(this.authService.isAuthenticated){let o=t.clone({setHeaders:{Authorization:`Bearer ${r}`}});return n.handle(o)}else return n.handle(t)}static \u0275fac=function(n){return new(n||e)(I(Zr))};static \u0275prov=D({token:e,factory:e.\u0275fac})};var ay=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(r){return new(r||e)(y(Mt),y(Le))};static \u0275dir=ce({type:e})}return e})(),zS=(()=>{class e extends ay{static \u0275fac=(()=>{let n;return function(o){return(n||(n=_r(e)))(o||e)}})();static \u0275dir=ce({type:e,features:[ft]})}return e})(),Xa=new v("");var GS={provide:Xa,useExisting:It(()=>ec),multi:!0};function qS(){let e=Tt()?Tt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var WS=new v(""),ec=(()=>{class e extends ay{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!qS())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(r){return new(r||e)(y(Mt),y(Le),y(WS,8))};static \u0275dir=ce({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&se("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[vn([GS]),ft]})}return e})();function In(e){return e==null||(typeof e=="string"||Array.isArray(e))&&e.length===0}function cy(e){return e!=null&&typeof e.length=="number"}var tc=new v(""),nc=new v(""),ZS=/^(?=.{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])?)*$/,ni=class{static min(t){return YS(t)}static max(t){return QS(t)}static required(t){return KS(t)}static requiredTrue(t){return JS(t)}static email(t){return XS(t)}static minLength(t){return eT(t)}static maxLength(t){return tT(t)}static pattern(t){return nT(t)}static nullValidator(t){return uy(t)}static compose(t){return gy(t)}static composeAsync(t){return vy(t)}};function YS(e){return t=>{if(In(t.value)||In(e))return null;let n=parseFloat(t.value);return!isNaN(n)&&n{if(In(t.value)||In(e))return null;let n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}function KS(e){return In(e.value)?{required:!0}:null}function JS(e){return e.value===!0?null:{required:!0}}function XS(e){return In(e.value)||ZS.test(e.value)?null:{email:!0}}function eT(e){return t=>In(t.value)||!cy(t.value)?null:t.value.lengthcy(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}function nT(e){if(!e)return uy;let t,n;return typeof e=="string"?(n="",e.charAt(0)!=="^"&&(n+="^"),n+=e,e.charAt(e.length-1)!=="$"&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),r=>{if(In(r.value))return null;let o=r.value;return t.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}function uy(e){return null}function ly(e){return e!=null}function dy(e){return mn(e)?Y(e):e}function fy(e){let t={};return e.forEach(n=>{t=n!=null?g(g({},t),n):t}),Object.keys(t).length===0?null:t}function hy(e,t){return t.map(n=>n(e))}function rT(e){return!e.validate}function py(e){return e.map(t=>rT(t)?t:n=>t.validate(n))}function gy(e){if(!e)return null;let t=e.filter(ly);return t.length==0?null:function(n){return fy(hy(n,t))}}function my(e){return e!=null?gy(py(e)):null}function vy(e){if(!e)return null;let t=e.filter(ly);return t.length==0?null:function(n){let r=hy(n,t).map(dy);return kc(r).pipe(T(fy))}}function yy(e){return e!=null?vy(py(e)):null}function ey(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Dy(e){return e._rawValidators}function Cy(e){return e._rawAsyncValidators}function ef(e){return e?Array.isArray(e)?e:[e]:[]}function qa(e,t){return Array.isArray(e)?e.includes(t):e===t}function ty(e,t){let n=ef(t);return ef(e).forEach(o=>{qa(n,o)||n.push(o)}),n}function ny(e,t){return ef(t).filter(n=>!qa(e,n))}var Wa=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=my(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=yy(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},st=class extends Wa{name;get formDirective(){return null}get path(){return null}},ri=class extends Wa{_parent=null;name=null;valueAccessor=null},Za=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},oT={"[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"},s1=j(g({},oT),{"[class.ng-submitted]":"isSubmitted"}),wy=(()=>{class e extends Za{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(y(ri,2))};static \u0275dir=ce({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&Ar("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[ft]})}return e})(),Ey=(()=>{class e extends Za{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(y(st,10))};static \u0275dir=ce({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&Ar("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)},standalone:!1,features:[ft]})}return e})();var Jo="VALID",Ga="INVALID",Qr="PENDING",Xo="DISABLED",_n=class{},Ya=class extends _n{value;source;constructor(t,n){super(),this.value=t,this.source=n}},ei=class extends _n{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},ti=class extends _n{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},Kr=class extends _n{status;source;constructor(t,n){super(),this.status=t,this.source=n}},tf=class extends _n{source;constructor(t){super(),this.source=t}},nf=class extends _n{source;constructor(t){super(),this.source=t}};function rf(e){return(rc(e)?e.validators:e)||null}function iT(e){return Array.isArray(e)?my(e):e||null}function of(e,t){return(rc(t)?t.asyncValidators:e)||null}function sT(e){return Array.isArray(e)?yy(e):e||null}function rc(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function by(e,t,n){let r=e.controls;if(!(t?Object.keys(r):r).length)throw new C(1e3,"");if(!r[n])throw new C(1001,"")}function Iy(e,t,n){e._forEachChild((r,o)=>{if(n[o]===void 0)throw new C(1002,"")})}var oi=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return pt(this.statusReactive)}set status(t){pt(()=>this.statusReactive.set(t))}_status=Mo(()=>this.statusReactive());statusReactive=wo(void 0);get valid(){return this.status===Jo}get invalid(){return this.status===Ga}get pending(){return this.status==Qr}get disabled(){return this.status===Xo}get enabled(){return this.status!==Xo}errors;get pristine(){return pt(this.pristineReactive)}set pristine(t){pt(()=>this.pristineReactive.set(t))}_pristine=Mo(()=>this.pristineReactive());pristineReactive=wo(!0);get dirty(){return!this.pristine}get touched(){return pt(this.touchedReactive)}set touched(t){pt(()=>this.touchedReactive.set(t))}_touched=Mo(()=>this.touchedReactive());touchedReactive=wo(!1);get untouched(){return!this.touched}_events=new ne;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(ty(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(ty(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(ny(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(ny(t,this._rawAsyncValidators))}hasValidator(t){return qa(this._rawValidators,t)}hasAsyncValidator(t){return qa(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(j(g({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new ti(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new ti(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(j(g({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new ei(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new ei(!0,r))}markAsPending(t={}){this.status=Qr;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Kr(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(j(g({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Xo,this.errors=null,this._forEachChild(o=>{o.disable(j(g({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Ya(this.value,r)),this._events.next(new Kr(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(j(g({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Jo,this._forEachChild(r=>{r.enable(j(g({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(j(g({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Jo||this.status===Qr)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Ya(this.value,n)),this._events.next(new Kr(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(j(g({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Xo:Jo}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=Qr,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=dy(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Kr(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new ae,this.statusChanges=new ae}_calculateStatus(){return this._allControlsDisabled()?Xo:this.errors?Ga:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Qr)?Qr:this._anyControlsHaveStatus(Ga)?Ga:Jo}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new ei(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new ti(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){rc(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=iT(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=sT(this._rawAsyncValidators)}},Qa=class extends oi{constructor(t,n,r){super(rf(n),of(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){Iy(this,!0,t),Object.keys(t).forEach(r=>{by(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){t!=null&&(Object.keys(t).forEach(r=>{let o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t?t[o]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>r._syncPendingControls()?!0:n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{let r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var _y=new v("",{providedIn:"root",factory:()=>sf}),sf="always";function af(e,t){return[...t.path,e]}function ry(e,t,n=sf){cf(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),cT(e,t),lT(e,t),uT(e,t),aT(e,t)}function oy(e,t,n=!0){let r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),Ja(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function Ka(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function aT(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function cf(e,t){let n=Dy(e);t.validator!==null?e.setValidators(ey(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=Cy(e);t.asyncValidator!==null?e.setAsyncValidators(ey(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();Ka(t._rawValidators,o),Ka(t._rawAsyncValidators,o)}function Ja(e,t){let n=!1;if(e!==null){if(t.validator!==null){let o=Dy(e);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==t.validator);i.length!==o.length&&(n=!0,e.setValidators(i))}}if(t.asyncValidator!==null){let o=Cy(e);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==t.asyncValidator);i.length!==o.length&&(n=!0,e.setAsyncValidators(i))}}}let r=()=>{};return Ka(t._rawValidators,r),Ka(t._rawAsyncValidators,r),n}function cT(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&My(e,t)})}function uT(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&My(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function My(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function lT(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function dT(e,t){e==null,cf(e,t)}function fT(e,t){return Ja(e,t)}function hT(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function pT(e){return Object.getPrototypeOf(e.constructor)===zS}function gT(e,t){e._syncPendingControls(),t.forEach(n=>{let r=n.control;r.updateOn==="submit"&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function mT(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===ec?n=i:pT(i)?r=i:o=i}),o||r||n||null}function vT(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function iy(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function sy(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var xt=class extends oi{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(rf(n),of(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),rc(n)&&(n.nonNullable||n.initialValueIsDefault)&&(sy(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){iy(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){iy(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){sy(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var yT=e=>e instanceof xt,DT=(()=>{class e extends st{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return af(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let n;return function(o){return(n||(n=_r(e)))(o||e)}})();static \u0275dir=ce({type:e,standalone:!1,features:[ft]})}return e})();var Sy=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275dir=ce({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return e})();var Ty=new v("");var CT={provide:st,useExisting:It(()=>Jr)},Jr=(()=>{class e extends st{callSetDisabledState;get submitted(){return pt(this._submittedReactive)}set submitted(n){this._submittedReactive.set(n)}_submitted=Mo(()=>this._submittedReactive());_submittedReactive=wo(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new ae;constructor(n,r,o){super(),this.callSetDisabledState=o,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ja(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 r=this.form.get(n.path);return ry(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){oy(n.control||null,n,!1),vT(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,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this._submittedReactive.set(!0),gT(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new tf(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this._submittedReactive.set(!1),this.form._events.next(new nf(this.form))}_updateDomValue(){this.directives.forEach(n=>{let r=n.control,o=this.form.get(n.path);r!==o&&(oy(r||null,n),yT(o)&&(ry(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let r=this.form.get(n.path);dT(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let r=this.form.get(n.path);r&&fT(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){cf(this.form,this),this._oldForm&&Ja(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(r){return new(r||e)(y(tc,10),y(nc,10),y(_y,8))};static \u0275dir=ce({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&se("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[vn([CT]),ft,_t]})}return e})(),wT={provide:st,useExisting:It(()=>Ny)},Ny=(()=>{class e extends DT{name=null;constructor(n,r,o){super(),this._parent=n,this._setValidators(r),this._setAsyncValidators(o)}_checkParentType(){Ay(this._parent)}static \u0275fac=function(r){return new(r||e)(y(st,13),y(tc,10),y(nc,10))};static \u0275dir=ce({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[vn([wT]),ft]})}return e})(),ET={provide:st,useExisting:It(()=>oc)},oc=(()=>{class e extends st{_parent;name=null;constructor(n,r,o){super(),this._parent=n,this._setValidators(r),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 af(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){Ay(this._parent)}static \u0275fac=function(r){return new(r||e)(y(st,13),y(tc,10),y(nc,10))};static \u0275dir=ce({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[vn([ET]),ft]})}return e})();function Ay(e){return!(e instanceof Ny)&&!(e instanceof Jr)&&!(e instanceof oc)}var bT={provide:ri,useExisting:It(()=>uf)},uf=(()=>{class e extends ri{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(n){}model;update=new ae;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(n,r,o,i,s){super(),this._ngModelWarningConfig=s,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=mT(this,i)}ngOnChanges(n){this._added||this._setUpControl(),hT(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 af(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}static \u0275fac=function(r){return new(r||e)(y(st,13),y(tc,10),y(nc,10),y(Xa,10),y(Ty,8))};static \u0275dir=ce({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[vn([bT]),ft,_t]})}return e})();var IT=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=ee({type:e});static \u0275inj=X({})}return e})(),ii=class extends oi{constructor(t,n,r){super(rf(n),of(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(t){return this.controls[this._adjustIndex(t)]}push(t,n={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(t,n,r={}){this.controls.splice(t,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(t,n={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(t,n,r={}){let o=this._adjustIndex(t);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),n&&(this.controls.splice(o,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,n={}){Iy(this,!1,t),t.forEach((r,o)=>{by(this,!1,o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){t!=null&&(t.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t=[],n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((n,r)=>r._syncPendingControls()?!0:n,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((n,r)=>{t(n,r)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(n=>n.enabled&&t(n))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};var xy=e=>e instanceof ii;var Ry=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Ty,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:_y,useValue:n.callSetDisabledState??sf}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=ee({type:e});static \u0275inj=X({imports:[IT]})}return e})();var ic=class e{constructor(t){this.service=t}isbnExists(){return t=>this.service.check(t.value).pipe(T(n=>n?{isbnexists:!0}:null))}static \u0275fac=function(n){return new(n||e)(I(je))};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})};var ky=function(e){if(!e.value||typeof e.value!="string")return null;let n=e.value.replace(/-/g,"").length;return n===10||n===13?null:{isbnformat:!0}},Fy=function(e){return!xy(e)||e.controls.some(t=>!!t.value)?null:{atleastonevalue:!0}};var Py=(()=>{class e{constructor(n,r){this.renderer=n,this.elementRef=r,this.onInput=o=>{let i=o?new Date(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()):null,s=i?i.toISOString():null;this.onChange(s)},this.onChange=()=>{},this.onTouched=()=>{}}writeValue(n){let r=n?new Date(n):null,o=r?new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate())):null;this.renderer.setProperty(this.elementRef.nativeElement,"valueAsDate",o)}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}setDisabledState(n){this.renderer.setProperty(this.elementRef.nativeElement,"disabled",n)}}return e.\u0275fac=function(n){return new(n||e)(y(Mt),y(Le))},e.\u0275dir=ce({type:e,selectors:[["","useValueAsLocalIso",""]],hostBindings:function(n,r){n&1&&se("input",function(i){return r.onInput(i.target.valueAsDate)})("blur",function(){return r.onTouched()})},features:[vn([{provide:Xa,useExisting:It(()=>e),multi:!0}])]}),e})();function MT(e,t){if(e&1&&(w(0,"p",1),S(1),E()),e&2){let n=t.$implicit;A(),He(" ",n,` +`)}}var sc=class e{constructor(t){this.form=t}controlName;messages={};get errors(){if(!this.controlName)return[];let t=this.form.control.get(this.controlName);return!t||!t.errors||!t.touched?[]:Object.keys(t.errors).map(n=>this.messages[n])}static \u0275fac=function(n){return new(n||e)(y(Jr))};static \u0275cmp=oe({type:e,selectors:[["bm-form-errors"]],inputs:{controlName:"controlName",messages:"messages"},standalone:!1,decls:1,vars:1,consts:[["class","error",4,"ngFor","ngForOf"],[1,"error"]],template:function(n,r){n&1&&K(0,MT,2,1,"p",0),n&2&&R("ngForOf",r.errors)},dependencies:[nt],encapsulation:2})};var TT=()=>({required:"Title is required"}),NT=()=>({required:"ISBN is required",isbnformat:"ISBN must have 10 or 13 chars",isbnexists:"ISBN already exists"}),AT=()=>({atleastonevalue:"At least one author required"});function xT(e,t){if(e&1&&ie(0,"input",20),e&2){let n=t.index;R("formControlName",n),Nr("aria-label","Author "+n)}}var Xr=class e{book;submitBook=new ae;form=new Qa({title:new xt("",{nonNullable:!0,validators:ni.required}),subtitle:new xt("",{nonNullable:!0}),isbn:new xt("",{nonNullable:!0,validators:[ni.required,ky],asyncValidators:p(ic).isbnExists()}),description:new xt("",{nonNullable:!0}),published:new xt("",{nonNullable:!0}),authors:this.buildAuthorsArray([""]),thumbnailUrl:new xt("",{nonNullable:!0})});ngOnChanges(){this.book?(this.setFormValues(this.book),this.setEditMode(!0)):this.setEditMode(!1)}setFormValues(t){this.form.patchValue(t),this.form.setControl("authors",this.buildAuthorsArray(t.authors))}setEditMode(t){let n=this.form.controls.isbn;t?n.disable():n.enable()}buildAuthorsArray(t){return new ii(t.map(n=>new xt(n,{nonNullable:!0})),Fy)}get authors(){return this.form.controls.authors}addAuthorControl(){this.authors.push(new xt("",{nonNullable:!0}))}submitForm(){let t=this.form.getRawValue(),n=t.authors.filter(o=>!!o),r=j(g({},t),{authors:n});this.submitBook.emit(r)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=oe({type:e,selectors:[["bm-book-form"]],inputs:{book:"book"},outputs:{submitBook:"submitBook"},standalone:!1,features:[_t],decls:30,vars:9,consts:[[3,"ngSubmit","formGroup"],["for","title"],["id","title","formControlName","title"],["controlName","title",3,"messages"],["for","subtitle"],["id","subtitle","formControlName","subtitle"],["for","isbn"],["id","isbn","formControlName","isbn"],["controlName","isbn",3,"messages"],["type","button",1,"add",3,"click"],["formArrayName","authors"],[3,"formControlName",4,"ngFor","ngForOf"],["controlName","authors",3,"messages"],["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(n,r){n&1&&(w(0,"form",0),se("ngSubmit",function(){return r.submitForm()}),w(1,"label",1),S(2,"Title"),E(),ie(3,"input",2)(4,"bm-form-errors",3),w(5,"label",4),S(6,"Subtitle"),E(),ie(7,"input",5),w(8,"label",6),S(9,"ISBN"),E(),ie(10,"input",7)(11,"bm-form-errors",8),w(12,"label"),S(13,"Authors"),E(),w(14,"button",9),se("click",function(){return r.addAuthorControl()}),S(15," + Author "),E(),w(16,"fieldset",10),K(17,xT,1,2,"input",11),E(),ie(18,"bm-form-errors",12),w(19,"label",13),S(20,"Description"),E(),ie(21,"textarea",14),w(22,"label",15),S(23,"Published"),E(),ie(24,"input",16),w(25,"label",17),S(26,"Thumbnail URL"),E(),ie(27,"input",18),w(28,"button",19),S(29," Save "),E()()),n&2&&(R("formGroup",r.form),A(4),R("messages",Gs(6,TT)),A(7),R("messages",Gs(7,NT)),A(6),R("ngForOf",r.authors.controls),A(),R("messages",Gs(8,AT)),A(10),R("disabled",r.form.invalid))},dependencies:[nt,Sy,ec,wy,Ey,Jr,uf,oc,Py,sc],encapsulation:2})};var ac=class e{constructor(t,n){this.service=t;this.router=n}create(t){this.service.create(t).subscribe(n=>{this.router.navigate(["/books",n.isbn])})}static \u0275fac=function(n){return new(n||e)(y(je),y(Re))};static \u0275cmp=oe({type:e,selectors:[["bm-book-create"]],standalone:!1,decls:3,vars:0,consts:[[3,"submitBook"]],template:function(n,r){n&1&&(w(0,"h1"),S(1,"Create Book"),E(),w(2,"bm-book-form",0),se("submitBook",function(i){return r.create(i)}),E())},dependencies:[Xr],encapsulation:2})};function RT(e,t){if(e&1){let n=Gt();w(0,"bm-book-form",1),se("submitBook",function(o){$t(n);let i=Ve();return Ht(i.update(o))}),E()}if(e&2){let n=t.ngIf;R("book",n)}}var cc=class e{constructor(t,n,r){this.service=t;this.route=n;this.router=r;this.book$=this.route.paramMap.pipe(T(o=>o.get("isbn")),ge(o=>this.service.getSingle(o)))}book$;update(t){this.service.update(t).subscribe(n=>{this.router.navigate(["/books",n.isbn])})}static \u0275fac=function(n){return new(n||e)(y(je),y(yt),y(Re))};static \u0275cmp=oe({type:e,selectors:[["bm-book-edit"]],standalone:!1,decls:4,vars:3,consts:[[3,"book","submitBook",4,"ngIf"],[3,"submitBook","book"]],template:function(n,r){n&1&&(w(0,"h1"),S(1,"Edit Book"),E(),K(2,RT,1,1,"bm-book-form",0),et(3,"async")),n&2&&(A(2),R("ngIf",ht(3,1,r.book$)))},dependencies:[rt,Xr,Cn],encapsulation:2})};var OT=[{path:"admin",redirectTo:"admin/create"},{path:"admin/create",component:ac},{path:"admin/edit/:isbn",component:cc}],uc=class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=ee({type:e});static \u0275inj=X({imports:[Kt.forChild(OT),Kt]})};var lc=class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=ee({type:e});static \u0275inj=X({imports:[kr,uc,Ry]})};var dc=class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=ee({type:e,bootstrap:[Va]});static \u0275inj=X({providers:[Gm(qm()),{provide:ad,useClass:za,multi:!0}],imports:[rv,La,Ha,lc]})};nv().bootstrapModule(dc,{ngZoneEventCoalescing:!0}).catch(e=>console.error(e)); diff --git a/main-OHRLTPFZ.js b/main-OHRLTPFZ.js deleted file mode 100644 index efcaafc..0000000 --- a/main-OHRLTPFZ.js +++ /dev/null @@ -1,10 +0,0 @@ -var Gy=Object.defineProperty,qy=Object.defineProperties;var Wy=Object.getOwnPropertyDescriptors;var Cf=Object.getOwnPropertySymbols;var Zy=Object.prototype.hasOwnProperty,Yy=Object.prototype.propertyIsEnumerable;var wf=(e,t,n)=>t in e?Gy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||={})Zy.call(t,n)&&wf(e,n,t[n]);if(Cf)for(var n of Cf(t))Yy.call(t,n)&&wf(e,n,t[n]);return e},j=(e,t)=>qy(e,Wy(t));var ro=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(u){o(u)}},s=c=>{try{a(n.throw(c))}catch(u){o(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});function Ic(e,t){return Object.is(e,t)}var ve=null,di=!1,_c=1,Qe=Symbol("SIGNAL");function $(e){let t=ve;return ve=e,t}function Ef(){return ve}var io={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 hi(e){if(di)throw new Error("");if(ve===null)return;ve.consumerOnSignalRead(e);let t=ve.nextProducerIndex++;if(mi(ve),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Tc(e){mi(e);for(let t=0;t0}function mi(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Mf(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Sf(e){return e.producerNode!==void 0}function Tf(e){let t=Object.create(Jy);t.computation=e;let n=()=>{if(Mc(t),hi(t),t.value===fi)throw t.error;return t.value};return n[Qe]=t,n}var wc=Symbol("UNSET"),Ec=Symbol("COMPUTING"),fi=Symbol("ERRORED"),Jy=j(m({},io),{value:wc,dirty:!0,error:null,equal:Ic,producerMustRecompute(e){return e.value===wc||e.value===Ec},producerRecomputeValue(e){if(e.value===Ec)throw new Error("Detected cycle in computations.");let t=e.value;e.value=Ec;let n=pi(e),r;try{r=e.computation()}catch(o){r=fi,e.error=o}finally{Sc(e,n)}if(t!==wc&&t!==fi&&r!==fi&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function Xy(){throw new Error}var Af=Xy;function Nf(){Af()}function xf(e){Af=e}var eD=null;function Rf(e){let t=Object.create(Nc);t.value=e;let n=()=>(hi(t),t.value);return n[Qe]=t,n}function vi(e,t){If()||Nf(),e.equal(e.value,t)||(e.value=t,tD(e))}function Of(e,t){If()||Nf(),vi(e,t(e.value))}var Nc=j(m({},io),{equal:Ic,value:void 0});function tD(e){e.version++,Qy(),bf(e),eD?.()}function x(e){return typeof e=="function"}function tr(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var yi=tr(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: -${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=n});function On(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var re=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(x(r))try{r()}catch(i){t=i instanceof yi?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{kf(i)}catch(s){t=t??[],s instanceof yi?t=[...t,...s.errors]:t.push(s)}}if(t)throw new yi(t)}}add(t){var n;if(t&&t!==this)if(this.closed)kf(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&On(n,t)}remove(t){let{_finalizers:n}=this;n&&On(n,t),t instanceof e&&t._removeParent(this)}};re.EMPTY=(()=>{let e=new re;return e.closed=!0,e})();var xc=re.EMPTY;function Di(e){return e instanceof re||e&&"closed"in e&&x(e.remove)&&x(e.add)&&x(e.unsubscribe)}function kf(e){x(e)?e():e.unsubscribe()}var ut={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var nr={setTimeout(e,t,...n){let{delegate:r}=nr;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=nr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Ci(e){nr.setTimeout(()=>{let{onUnhandledError:t}=ut;if(t)t(e);else throw e})}function so(){}var Ff=Rc("C",void 0,void 0);function Pf(e){return Rc("E",void 0,e)}function Lf(e){return Rc("N",e,void 0)}function Rc(e,t,n){return{kind:e,value:t,error:n}}var kn=null;function rr(e){if(ut.useDeprecatedSynchronousErrorHandling){let t=!kn;if(t&&(kn={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=kn;if(kn=null,n)throw r}}else e()}function Vf(e){ut.useDeprecatedSynchronousErrorHandling&&kn&&(kn.errorThrown=!0,kn.error=e)}var Fn=class extends re{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Di(t)&&t.add(this)):this.destination=oD}static create(t,n,r){return new or(t,n,r)}next(t){this.isStopped?kc(Lf(t),this):this._next(t)}error(t){this.isStopped?kc(Pf(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?kc(Ff,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},nD=Function.prototype.bind;function Oc(e,t){return nD.call(e,t)}var Fc=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){wi(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){wi(r)}else wi(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){wi(n)}}},or=class extends Fn{constructor(t,n,r){super();let o;if(x(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ut.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Oc(t.next,i),error:t.error&&Oc(t.error,i),complete:t.complete&&Oc(t.complete,i)}):o=t}this.destination=new Fc(o)}};function wi(e){ut.useDeprecatedSynchronousErrorHandling?Vf(e):Ci(e)}function rD(e){throw e}function kc(e,t){let{onStoppedNotification:n}=ut;n&&nr.setTimeout(()=>n(e,t))}var oD={closed:!0,next:so,error:rD,complete:so};var ir=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Me(e){return e}function Pc(...e){return Lc(e)}function Lc(e){return e.length===0?Me:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var U=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=sD(n)?n:new or(n,r,o);return rr(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=jf(r),new r((o,i)=>{let s=new or({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[ir](){return this}pipe(...n){return Lc(n)(this)}toPromise(n){return n=jf(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function jf(e){var t;return(t=e??ut.Promise)!==null&&t!==void 0?t:Promise}function iD(e){return e&&x(e.next)&&x(e.error)&&x(e.complete)}function sD(e){return e&&e instanceof Fn||iD(e)&&Di(e)}function Vc(e){return x(e?.lift)}function B(e){return t=>{if(Vc(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function P(e,t,n,r,o){return new jc(e,t,n,r,o)}var jc=class extends Fn{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function sr(){return B((e,t)=>{let n=null;e._refCount++;let r=P(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var ar=class extends U{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Vc(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new re;let n=this.getSubject();t.add(this.source.subscribe(P(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=re.EMPTY)}return t}refCount(){return sr()(this)}};var Bf=tr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var oe=(()=>{class e extends U{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Ei(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Bf}next(n){rr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){rr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){rr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?xc:(this.currentObservers=null,i.push(n),new re(()=>{this.currentObservers=null,On(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new U;return n.source=this,n}}return e.create=(t,n)=>new Ei(t,n),e})(),Ei=class extends oe{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:xc}};var ye=class extends oe{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Bc={now(){return(Bc.delegate||Date).now()},delegate:void 0};var bi=class extends re{constructor(t,n){super()}schedule(t,n=0){return this}};var ao={setInterval(e,t,...n){let{delegate:r}=ao;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=ao;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var Ii=class extends bi{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return ao.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&ao.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,On(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var cr=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};cr.now=Bc.now;var _i=class extends cr{constructor(t,n=cr.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var Uf=new _i(Ii);var $e=new U(e=>e.complete());function $f(e){return e&&x(e.schedule)}function Hf(e){return e[e.length-1]}function Mi(e){return x(Hf(e))?e.pop():void 0}function an(e){return $f(Hf(e))?e.pop():void 0}function Gf(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function zf(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Pn(e){return this instanceof Pn?(this.v=e,this):new Pn(e)}function qf(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(g){return Promise.resolve(g).then(f,d)}}function a(f,g){r[f]&&(o[f]=function(C){return new Promise(function(_,F){i.push([f,C,_,F])>1||c(f,C)})},g&&(o[f]=g(o[f])))}function c(f,g){try{u(r[f](g))}catch(C){h(i[0][3],C)}}function u(f){f.value instanceof Pn?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function h(f,g){f(g),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Wf(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof zf=="function"?zf(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var Si=e=>e&&typeof e.length=="number"&&typeof e!="function";function Ti(e){return x(e?.then)}function Ai(e){return x(e[ir])}function Ni(e){return Symbol.asyncIterator&&x(e?.[Symbol.asyncIterator])}function xi(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function aD(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ri=aD();function Oi(e){return x(e?.[Ri])}function ki(e){return qf(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Pn(n.read());if(o)return yield Pn(void 0);yield yield Pn(r)}}finally{n.releaseLock()}})}function Fi(e){return x(e?.getReader)}function he(e){if(e instanceof U)return e;if(e!=null){if(Ai(e))return cD(e);if(Si(e))return uD(e);if(Ti(e))return lD(e);if(Ni(e))return Zf(e);if(Oi(e))return dD(e);if(Fi(e))return fD(e)}throw xi(e)}function cD(e){return new U(t=>{let n=e[ir]();if(x(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function uD(e){return new U(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Ci)})}function dD(e){return new U(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Zf(e){return new U(t=>{hD(e,t).catch(n=>t.error(n))})}function fD(e){return Zf(ki(e))}function hD(e,t){var n,r,o,i;return Gf(this,void 0,void 0,function*(){try{for(n=Wf(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function Fe(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Pi(e,t=0){return B((n,r)=>{n.subscribe(P(r,o=>Fe(r,e,()=>r.next(o),t),()=>Fe(r,e,()=>r.complete(),t),o=>Fe(r,e,()=>r.error(o),t)))})}function Li(e,t=0){return B((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Yf(e,t){return he(e).pipe(Li(t),Pi(t))}function Qf(e,t){return he(e).pipe(Li(t),Pi(t))}function Kf(e,t){return new U(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Jf(e,t){return new U(n=>{let r;return Fe(n,t,()=>{r=e[Ri](),Fe(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>x(r?.return)&&r.return()})}function Vi(e,t){if(!e)throw new Error("Iterable cannot be null");return new U(n=>{Fe(n,t,()=>{let r=e[Symbol.asyncIterator]();Fe(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Xf(e,t){return Vi(ki(e),t)}function eh(e,t){if(e!=null){if(Ai(e))return Yf(e,t);if(Si(e))return Kf(e,t);if(Ti(e))return Qf(e,t);if(Ni(e))return Vi(e,t);if(Oi(e))return Jf(e,t);if(Fi(e))return Xf(e,t)}throw xi(e)}function J(e,t){return t?eh(e,t):he(e)}function M(...e){let t=an(e);return J(e,t)}function ur(e,t){let n=x(e)?e:()=>e,r=o=>o.error(n());return new U(t?o=>t.schedule(r,0,o):r)}function Uc(e){return!!e&&(e instanceof U||x(e.lift)&&x(e.subscribe))}var Pt=tr(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function A(e,t){return B((n,r)=>{let o=0;n.subscribe(P(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:pD}=Array;function gD(e,t){return pD(t)?e(...t):e(t)}function ji(e){return A(t=>gD(e,t))}var{isArray:mD}=Array,{getPrototypeOf:vD,prototype:yD,keys:DD}=Object;function Bi(e){if(e.length===1){let t=e[0];if(mD(t))return{args:t,keys:null};if(CD(t)){let n=DD(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function CD(e){return e&&typeof e=="object"&&vD(e)===yD}function Ui(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function co(...e){let t=an(e),n=Mi(e),{args:r,keys:o}=Bi(e);if(r.length===0)return J([],t);let i=new U(wD(r,t,o?s=>Ui(o,s):Me));return n?i.pipe(ji(n)):i}function wD(e,t,n=Me){return r=>{th(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c{let u=J(e[c],t),l=!1;u.subscribe(P(r,d=>{i[c]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function th(e,t,n){e?Fe(n,e,t):t()}function nh(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&t.complete()},f=C=>u{i&&t.next(C),u++;let _=!1;he(n(C,l++)).subscribe(P(t,F=>{o?.(F),i?f(F):t.next(F)},()=>{_=!0},void 0,()=>{if(_)try{for(u--;c.length&&ug(F)):g(F)}h()}catch(F){t.error(F)}}))};return e.subscribe(P(t,f,()=>{d=!0,h()})),()=>{a?.()}}function pe(e,t,n=1/0){return x(t)?pe((r,o)=>A((i,s)=>t(r,i,o,s))(he(e(r,o))),n):(typeof t=="number"&&(n=t),B((r,o)=>nh(r,o,e,n)))}function cn(e=1/0){return pe(Me,e)}function rh(){return cn(1)}function lr(...e){return rh()(J(e,an(e)))}function $i(e){return new U(t=>{he(e()).subscribe(t)})}function $c(...e){let t=Mi(e),{args:n,keys:r}=Bi(e),o=new U(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l{d||(d=!0,u--),a[l]=h},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?Ui(r,a):a),i.complete())}))}});return t?o.pipe(ji(t)):o}function Ee(e,t){return B((n,r)=>{let o=0;n.subscribe(P(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Ke(e){return B((t,n)=>{let r=null,o=!1,i;r=t.subscribe(P(n,void 0,void 0,s=>{i=he(e(s,Ke(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function oh(e,t,n,r,o){return(i,s)=>{let a=n,c=t,u=0;i.subscribe(P(s,l=>{let d=u++;c=a?e(c,l,d):(a=!0,l),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function Lt(e,t){return x(t)?pe(e,t,1):pe(e,1)}function Hc(e,t=Uf){return B((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,r.next(u)}};function c(){let u=s+e,l=t.now();if(l{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function un(e){return B((t,n)=>{let r=!1;t.subscribe(P(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function Vt(e){return e<=0?()=>$e:B((t,n)=>{let r=0;t.subscribe(P(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function zc(e){return A(()=>e)}function Gc(e,t=Me){return e=e??ED,B((n,r)=>{let o,i=!0;n.subscribe(P(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function ED(e,t){return e===t}function Hi(e=bD){return B((t,n)=>{let r=!1;t.subscribe(P(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function bD(){return new Pt}function ln(e){return B((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function jt(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ee((o,i)=>e(o,i,r)):Me,Vt(1),n?un(t):Hi(()=>new Pt))}function dr(e){return e<=0?()=>$e:B((t,n)=>{let r=[];t.subscribe(P(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function qc(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ee((o,i)=>e(o,i,r)):Me,dr(1),n?un(t):Hi(()=>new Pt))}function Wc(e,t){return B(oh(e,t,arguments.length>=2,!0))}function Zc(...e){let t=an(e);return B((n,r)=>{(t?lr(e,n,t):lr(e,n)).subscribe(r)})}function De(e,t){return B((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(P(r,c=>{o?.unsubscribe();let u=0,l=i++;he(e(c,l)).subscribe(o=P(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Yc(e){return B((t,n)=>{he(e).subscribe(P(n,()=>n.complete(),so)),!n.closed&&t.subscribe(n)})}function ie(e,t,n){let r=x(e)||t||n?{next:e,error:t,complete:n}:e;return r?B((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(P(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c)},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):Me}var Wh="https://g.co/ng/security#xss",b=class extends Error{code;constructor(t,n){super(As(t,n)),this.code=t}};function As(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var Zh=Symbol("InputSignalNode#UNSET"),ID=j(m({},Nc),{transformFn:void 0,applyValueToInputSignal(e,t){vi(e,t)}});function Yh(e,t){let n=Object.create(ID);n.value=e,n.transformFn=t?.transform;function r(){if(hi(n),n.value===Zh)throw new b(-950,!1);return n.value}return r[Qe]=n,r}function wo(e){return{toString:e}.toString()}var zi="__parameters__";function _D(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Qh(e,t,n){return wo(()=>{let r=_D(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(zi)?c[zi]:Object.defineProperty(c,zi,{value:[]})[zi];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var Se=globalThis;function Y(e){for(let t in e)if(e[t]===Y)return t;throw Error("Could not find renamed property on target object.")}function MD(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Ae(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(Ae).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` -`);return n===-1?t:t.substring(0,n)}function ih(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var SD=Y({__forward_ref__:Y});function St(e){return e.__forward_ref__=St,e.toString=function(){return Ae(this())},e}function Te(e){return Kh(e)?e():e}function Kh(e){return typeof e=="function"&&e.hasOwnProperty(SD)&&e.__forward_ref__===St}function D(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function te(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ns(e){return sh(e,Xh)||sh(e,ep)}function Jh(e){return Ns(e)!==null}function sh(e,t){return e.hasOwnProperty(t)?e[t]:null}function TD(e){let t=e&&(e[Xh]||e[ep]);return t||null}function ah(e){return e&&(e.hasOwnProperty(ch)||e.hasOwnProperty(AD))?e[ch]:null}var Xh=Y({\u0275prov:Y}),ch=Y({\u0275inj:Y}),ep=Y({ngInjectableDef:Y}),AD=Y({ngInjectorDef:Y}),v=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=D({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function tp(e){return e&&!!e.\u0275providers}var ND=Y({\u0275cmp:Y}),xD=Y({\u0275dir:Y}),RD=Y({\u0275pipe:Y}),OD=Y({\u0275mod:Y}),es=Y({\u0275fac:Y}),ho=Y({__NG_ELEMENT_ID__:Y}),uh=Y({__NG_ENV_ID__:Y});function xs(e){return typeof e=="string"?e:e==null?"":String(e)}function kD(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():xs(e)}function FD(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new b(-200,e)}function ol(e,t){throw new b(-201,!1)}var L=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(L||{}),uu;function np(){return uu}function Pe(e){let t=uu;return uu=e,t}function rp(e,t,n){let r=Ns(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&L.Optional)return null;if(t!==void 0)return t;ol(e,"Injector")}var PD={},go=PD,lu="__NG_DI_FLAG__",ts="ngTempTokenPath",LD="ngTokenPath",VD=/\n/gm,jD="\u0275",lh="__source",mr;function BD(){return mr}function dn(e){let t=mr;return mr=e,t}function UD(e,t=L.Default){if(mr===void 0)throw new b(-203,!1);return mr===null?rp(e,void 0,t):mr.get(e,t&L.Optional?null:void 0,t)}function I(e,t=L.Default){return(np()||UD)(Te(e),t)}function p(e,t=L.Default){return I(e,Rs(t))}function Rs(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function du(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):Ae(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(VD,` - `)}`}var Os=op(Qh("Optional"),8);var il=op(Qh("SkipSelf"),4);function jn(e,t){let n=e.hasOwnProperty(es);return n?e[es]:null}function GD(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?sl(n,t):t(n))}function ip(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ns(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function WD(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function ZD(e,t,n){let r=Eo(e,t);return r>=0?e[r|1]=n:(r=~r,WD(e,r,t,n)),r}function Qc(e,t){let n=Eo(e,t);if(n>=0)return e[n|1]}function Eo(e,t){return YD(e,t,1)}function YD(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<{n.push(s)};return sl(t,s=>{let a=s;fu(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&hp(o,i),n}function hp(e,t){for(let n=0;n{t(i,r)})}}function fu(e,t,n,r){if(e=Te(e),!e)return!1;let o=null,i=ah(e),s=!i&&pn(e);if(!i&&!s){let c=e.ngModule;if(i=ah(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)fu(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{sl(i.imports,l=>{fu(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&hp(u,t)}if(!a){let u=jn(o)||(()=>new o);t({provide:o,useFactory:u,deps:Je},o),t({provide:ap,useValue:o,multi:!0},o),t({provide:Dr,useValue:()=>I(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;al(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function al(e,t){for(let n of e)tp(n)&&(n=n.\u0275providers),Array.isArray(n)?al(n,t):t(n)}var KD=Y({provide:String,useValue:Y});function pp(e){return e!==null&&typeof e=="object"&&KD in e}function JD(e){return!!(e&&e.useExisting)}function XD(e){return!!(e&&e.useFactory)}function Cr(e){return typeof e=="function"}function eC(e){return!!e.useClass}var Fs=new v(""),Yi={},tC={},Kc;function cl(){return Kc===void 0&&(Kc=new rs),Kc}var Ne=class{},mo=class extends Ne{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,pu(t,s=>this.processProvider(s)),this.records.set(sp,fr(void 0,this)),o.has("environment")&&this.records.set(Ne,fr(void 0,this));let i=this.records.get(Fs);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(ap,Je,L.Self))}destroy(){lo(this),this._destroyed=!0;let t=$(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),$(t)}}onDestroy(t){return lo(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){lo(this);let n=dn(this),r=Pe(void 0),o;try{return t()}finally{dn(n),Pe(r)}}get(t,n=go,r=L.Default){if(lo(this),t.hasOwnProperty(uh))return t[uh](this);r=Rs(r);let o,i=dn(this),s=Pe(void 0);try{if(!(r&L.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=sC(t)&&Ns(t);u&&this.injectableDefInScope(u)?c=fr(hu(t),Yi):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&L.Self?cl():this.parent;return n=r&L.Optional&&n===go?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[ts]=a[ts]||[]).unshift(Ae(t)),i)throw a;return HD(a,t,"R3InjectorError",this.source)}else throw a}finally{Pe(s),dn(i)}}resolveInjectorInitializers(){let t=$(null),n=dn(this),r=Pe(void 0),o;try{let i=this.get(Dr,Je,L.Self);for(let s of i)s()}finally{dn(n),Pe(r),$(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(Ae(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=Te(t);let n=Cr(t)?t:Te(t&&t.provide),r=rC(t);if(!Cr(t)&&t.multi===!0){let o=this.records.get(n);o||(o=fr(void 0,Yi,!0),o.factory=()=>du(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=$(null);try{return n.value===Yi&&(n.value=tC,n.value=n.factory()),typeof n.value=="object"&&n.value&&iC(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{$(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Te(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function hu(e){let t=Ns(e),n=t!==null?t.factory:jn(e);if(n!==null)return n;if(e instanceof v)throw new b(204,!1);if(e instanceof Function)return nC(e);throw new b(204,!1)}function nC(e){if(e.length>0)throw new b(204,!1);let n=TD(e);return n!==null?()=>n.factory(e):()=>new e}function rC(e){if(pp(e))return fr(void 0,e.useValue);{let t=gp(e);return fr(t,Yi)}}function gp(e,t,n){let r;if(Cr(e)){let o=Te(e);return jn(o)||hu(o)}else if(pp(e))r=()=>Te(e.useValue);else if(XD(e))r=()=>e.useFactory(...du(e.deps||[]));else if(JD(e))r=()=>I(Te(e.useExisting));else{let o=Te(e&&(e.useClass||e.provide));if(oC(e))r=()=>new o(...du(e.deps));else return jn(o)||hu(o)}return r}function lo(e){if(e.destroyed)throw new b(205,!1)}function fr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function oC(e){return!!e.deps}function iC(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function sC(e){return typeof e=="function"||typeof e=="object"&&e instanceof v}function pu(e,t){for(let n of e)Array.isArray(n)?pu(n,t):n&&tp(n)?pu(n.\u0275providers,t):t(n)}function Le(e,t){e instanceof mo&&lo(e);let n,r=dn(e),o=Pe(void 0);try{return t()}finally{dn(r),Pe(o)}}function mp(){return np()!==void 0||BD()!=null}function aC(e){if(!mp())throw new b(-203,!1)}function cC(e){let t=Se.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function uC(e){return typeof e=="function"}var zt=0,O=1,T=2,Ie=3,dt=4,ht=5,os=6,is=7,ft=8,wr=9,Bt=10,be=11,vo=12,dh=13,Tr=14,bt=15,Bn=16,hr=17,Ut=18,Ps=19,vp=20,fn=21,Jc=22,ss=23,He=24,Xe=25,yp=1;var Un=7,as=8,Er=9,ze=10,cs=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(cs||{});function hn(e){return Array.isArray(e)&&typeof e[yp]=="object"}function Gt(e){return Array.isArray(e)&&e[yp]===!0}function Dp(e){return(e.flags&4)!==0}function Ls(e){return e.componentOffset>-1}function ul(e){return(e.flags&1)===1}function gn(e){return!!e.template}function gu(e){return(e[T]&512)!==0}var mu=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Cp(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var Tt=(()=>{let e=()=>wp;return e.ngInherit=!0,e})();function wp(e){return e.type.prototype.ngOnChanges&&(e.setInput=dC),lC}function lC(){let e=bp(this),t=e?.current;if(t){let n=e.previous;if(n===yr)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function dC(e,t,n,r,o){let i=this.declaredInputs[r],s=bp(e)||fC(e,{previous:yr,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new mu(u&&u.currentValue,n,c===yr),Cp(e,t,o,n)}var Ep="__ngSimpleChanges__";function bp(e){return e[Ep]||null}function fC(e,t){return e[Ep]=t}var fh=null;var wt=function(e,t,n){fh?.(e,t,n)},hC="svg",pC="math";function It(e){for(;Array.isArray(e);)e=e[zt];return e}function Ip(e,t){return It(t[e])}function et(e,t){return It(t[e.index])}function _p(e,t){return e.data[t]}function ll(e,t){return e[t]}function yn(e,t){let n=t[e];return hn(n)?n:n[zt]}function gC(e){return(e[T]&4)===4}function dl(e){return(e[T]&128)===128}function mC(e){return Gt(e[Ie])}function us(e,t){return t==null?null:e[t]}function Mp(e){e[hr]=0}function fl(e){e[T]&1024||(e[T]|=1024,dl(e)&&js(e))}function vC(e,t){for(;e>0;)t=t[Tr],e--;return t}function Vs(e){return!!(e[T]&9216||e[He]?.dirty)}function vu(e){e[Bt].changeDetectionScheduler?.notify(9),e[T]&64&&(e[T]|=1024),Vs(e)&&js(e)}function js(e){e[Bt].changeDetectionScheduler?.notify(0);let t=$n(e);for(;t!==null&&!(t[T]&8192||(t[T]|=8192,!dl(t)));)t=$n(t)}function Sp(e,t){if((e[T]&256)===256)throw new b(911,!1);e[fn]===null&&(e[fn]=[]),e[fn].push(t)}function yC(e,t){if(e[fn]===null)return;let n=e[fn].indexOf(t);n!==-1&&e[fn].splice(n,1)}function $n(e){let t=e[Ie];return Gt(t)?t[Ie]:t}var V={lFrame:Fp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var yu=!1;function DC(){return V.lFrame.elementDepthCount}function CC(){V.lFrame.elementDepthCount++}function wC(){V.lFrame.elementDepthCount--}function Tp(){return V.bindingsEnabled}function EC(){return V.skipHydrationRootTNode!==null}function bC(e){return V.skipHydrationRootTNode===e}function IC(){V.skipHydrationRootTNode=null}function z(){return V.lFrame.lView}function Ve(){return V.lFrame.tView}function qt(e){return V.lFrame.contextLView=e,e[ft]}function Wt(e){return V.lFrame.contextLView=null,e}function xe(){let e=Ap();for(;e!==null&&e.type===64;)e=e.parent;return e}function Ap(){return V.lFrame.currentTNode}function _C(){let e=V.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function bo(e,t){let n=V.lFrame;n.currentTNode=e,n.isParent=t}function Np(){return V.lFrame.isParent}function MC(){V.lFrame.isParent=!1}function SC(){return V.lFrame.contextLView}function xp(){return yu}function hh(e){let t=yu;return yu=e,t}function Bs(){let e=V.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function TC(e){return V.lFrame.bindingIndex=e}function hl(){return V.lFrame.bindingIndex++}function AC(e){let t=V.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function NC(){return V.lFrame.inI18n}function xC(e,t){let n=V.lFrame;n.bindingIndex=n.bindingRootIndex=e,Du(t)}function RC(){return V.lFrame.currentDirectiveIndex}function Du(e){V.lFrame.currentDirectiveIndex=e}function OC(e){let t=V.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Rp(){return V.lFrame.currentQueryIndex}function pl(e){V.lFrame.currentQueryIndex=e}function kC(e){let t=e[O];return t.type===2?t.declTNode:t.type===1?e[ht]:null}function Op(e,t,n){if(n&L.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&L.Host);)if(o=kC(i),o===null||(i=i[Tr],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=V.lFrame=kp();return r.currentTNode=t,r.lView=e,!0}function gl(e){let t=kp(),n=e[O];V.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function kp(){let e=V.lFrame,t=e===null?null:e.child;return t===null?Fp(e):t}function Fp(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Pp(){let e=V.lFrame;return V.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Lp=Pp;function ml(){let e=Pp();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function FC(e){return(V.lFrame.contextLView=vC(e,V.lFrame.contextLView))[ft]}function Ar(){return V.lFrame.selectedIndex}function Hn(e){V.lFrame.selectedIndex=e}function Vp(){let e=V.lFrame;return _p(e.tView,e.selectedIndex)}function PC(){return V.lFrame.currentNamespace}var jp=!0;function vl(){return jp}function yl(e){jp=e}function LC(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=wp(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Dl(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[hr]+=65536),(a>14>16&&(e[T]&3)===t&&(e[T]+=16384,ph(a,i)):ph(a,i)}var vr=-1,zn=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function jC(e){return e instanceof zn}function BC(e){return(e.flags&8)!==0}function UC(e){return(e.flags&16)!==0}function Cu(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i>16}function ds(e,t){let n=HC(e),r=t;for(;n>0;)r=r[Tr],n--;return r}var Eu=!0;function fs(e){let t=Eu;return Eu=e,t}var zC=256,Hp=zC-1,zp=5,GC=0,Et={};function qC(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(ho)&&(r=n[ho]),r==null&&(r=n[ho]=GC++);let o=r&Hp,i=1<>zp)]|=i}function hs(e,t){let n=Gp(e,t);if(n!==-1)return n;let r=t[O];r.firstCreatePass&&(e.injectorIndex=t.length,tu(r.data,e),tu(t,null),tu(r.blueprint,null));let o=Cl(e,t),i=e.injectorIndex;if($p(o)){let s=ls(o),a=ds(o,t),c=a[O].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function tu(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Gp(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Cl(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Qp(o),r===null)return vr;if(n++,o=o[Tr],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return vr}function bu(e,t,n){qC(e,t,n)}function WC(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o>20,d=r?a:a+l,h=o?a+l:u;for(let f=d;f=c&&g.type===n)return f}if(o){let f=s[c];if(f&&gn(f)&&f.type===n)return c}return null}function Gn(e,t,n,r){let o=e[n],i=t.data;if(jC(o)){let s=o;s.resolving&&FD(kD(i[n]));let a=fs(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?Pe(s.injectImpl):null,l=Op(e,r,L.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&LC(n,i[n],t)}finally{u!==null&&Pe(u),fs(a),s.resolving=!1,Lp()}}return o}function YC(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(ho)?e[ho]:void 0;return typeof t=="number"?t>=0?t&Hp:QC:t}function mh(e,t,n){let r=1<>zp)]&r)}function vh(e,t){return!(e&L.Self)&&!(e&L.Host&&t)}var Vn=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Zp(this._tNode,this._lView,t,Rs(r),n)}};function QC(){return new Vn(xe(),z())}function Nr(e){return wo(()=>{let t=e.prototype.constructor,n=t[es]||Iu(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[es]||Iu(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Iu(e){return Kh(e)?()=>{let t=Iu(Te(e));return t&&t()}:jn(e)}function KC(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[T]&2048&&!(s[T]&512);){let a=Yp(i,s,n,r|L.Self,Et);if(a!==Et)return a;let c=i.parent;if(!c){let u=s[vp];if(u){let l=u.get(n,Et,r);if(l!==Et)return l}c=Qp(s),s=s[Tr]}i=c}return o}function Qp(e){let t=e[O],n=t.type;return n===2?t.declTNode:n===1?e[ht]:null}function wl(e){return WC(xe(),e)}function yh(e,t=null,n=null,r){let o=Kp(e,t,n,r);return o.resolveInjectorInitializers(),o}function Kp(e,t=null,n=null,r,o=new Set){let i=[n||Je,QD(e)];return r=r||(typeof e=="object"?void 0:Ae(e)),new mo(i,t||cl(),r||null,o)}var Ge=class e{static THROW_IF_NOT_FOUND=go;static NULL=new rs;static create(t,n){if(Array.isArray(t))return yh({name:""},n,t,"");{let r=t.name??"";return yh({name:r},t.parent,t.providers,r)}}static \u0275prov=D({token:e,providedIn:"any",factory:()=>I(sp)});static __NG_ELEMENT_ID__=-1};var JC=new v("");JC.__NG_ELEMENT_ID__=e=>{let t=xe();if(t===null)throw new b(204,!1);if(t.type&2)return t.value;if(e&L.Optional)return null;throw new b(204,!1)};var Jp=!1,El=(()=>{class e{static __NG_ELEMENT_ID__=XC;static __NG_ENV_ID__=n=>n}return e})(),_u=class extends El{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return Sp(this._lView,t),()=>yC(this._lView,t)}};function XC(){return new _u(z())}var br=class{},bl=new v("",{providedIn:"root",factory:()=>!1});var Xp=new v(""),eg=new v(""),Zt=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new ye(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=D({token:e,providedIn:"root",factory:()=>new e})}return e})();var Mu=class extends oe{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,mp()&&(this.destroyRef=p(El,{optional:!0})??void 0,this.pendingTasks=p(Zt,{optional:!0})??void 0)}emit(t){let n=$(null);try{super.next(t)}finally{$(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof re&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},le=Mu;function ps(...e){}function tg(e){let t,n;function r(){e=ps;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Dh(e){return queueMicrotask(()=>e()),()=>{e=ps}}var Il="isAngularZone",gs=Il+"_ID",ew=0,Z=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new le(!1);onMicrotaskEmpty=new le(!1);onStable=new le(!1);onError=new le(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Jp}=t;if(typeof Zone>"u")throw new b(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,rw(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Il)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new b(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new b(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,tw,ps,ps);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},tw={};function _l(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function nw(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){tg(()=>{e.callbackScheduled=!1,Su(e),e.isCheckStableRunning=!0,_l(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Su(e)}function rw(e){let t=()=>{nw(e)},n=ew++;e._inner=e._inner.fork({name:"angular",properties:{[Il]:!0,[gs]:n,[gs+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(ow(c))return r.invokeTask(i,s,a,c);try{return Ch(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),wh(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Ch(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!iw(c)&&t(),wh(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Su(e),_l(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Su(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Ch(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function wh(e){e._nesting--,_l(e)}var ms=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new le;onMicrotaskEmpty=new le;onStable=new le;onError=new le;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function ow(e){return ng(e,"__ignore_ng_zone__")}function iw(e){return ng(e,"__scheduler_tick__")}function ng(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}function sw(e="zone.js",t){return e==="noop"?new ms:e==="zone.js"?new Z(t):e}var $t=class{_console=console;handleError(t){this._console.error("ERROR",t)}},aw=new v("",{providedIn:"root",factory:()=>{let e=p(Z),t=p($t);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Eh(e,t){return Yh(e,t)}function cw(e){return Yh(Zh,e)}var rg=(Eh.required=cw,Eh);function uw(){return xr(xe(),z())}function xr(e,t){return new je(et(e,t))}var je=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=uw}return e})();function lw(e){return e instanceof je?e.nativeElement:e}function dw(){return this._results[Symbol.iterator]()}var Tu=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new oe}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=qD(t);(this._changesDetected=!GD(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=dw};function og(e){return(e.flags&128)===128}var ig=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(ig||{}),sg=new Map,fw=0;function hw(){return fw++}function pw(e){sg.set(e[Ps],e)}function Au(e){sg.delete(e[Ps])}var bh="__ngContext__";function qn(e,t){hn(t)?(e[bh]=t[Ps],pw(t)):e[bh]=t}function ag(e){return ug(e[vo])}function cg(e){return ug(e[dt])}function ug(e){for(;e!==null&&!Gt(e);)e=e[dt];return e}var Nu;function lg(e){Nu=e}function gw(){if(Nu!==void 0)return Nu;if(typeof document<"u")return document;throw new b(210,!1)}var Ml=new v("",{providedIn:"root",factory:()=>mw}),mw="ng",Sl=new v(""),Yt=new v("",{providedIn:"platform",factory:()=>"unknown"});var Tl=new v("",{providedIn:"root",factory:()=>gw().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var vw="h",yw="b";var dg=!1,Dw=new v("",{providedIn:"root",factory:()=>dg});var Al=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Al||{}),Us=new v(""),Ih=new Set;function Rr(e){Ih.has(e)||(Ih.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var pr=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(pr||{}),fg=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=D({token:e,providedIn:"root",factory:()=>new e})}return e})(),Cw=[pr.EarlyRead,pr.Write,pr.MixedReadWrite,pr.Read],ww=(()=>{class e{ngZone=p(Z);scheduler=p(br);errorHandler=p($t,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){p(Us,{optional:!0})}execute(){this.executing=!0;for(let n of Cw)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[n]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>r.hooks[n](r.pipelinedValue),r.snapshot))}catch(o){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(let n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(8),this.deferredRegistrations.clear()}register(n){this.executing?this.deferredRegistrations.add(n):(this.sequences.add(n),this.scheduler.notify(7))}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(Al.AFTER_NEXT_RENDER,n):n()}static \u0275prov=D({token:e,providedIn:"root",factory:()=>new e})}return e})(),xu=class{impl;hooks;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i=null){this.impl=t,this.hooks=n,this.once=r,this.snapshot=i,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function Nl(e,t){!t?.injector&&aC(Nl);let n=t?.injector??p(Ge);return Rr("NgAfterNextRender"),bw(e,n,t,!0)}function Ew(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function bw(e,t,n,r){let o=t.get(fg);o.impl??=t.get(ww);let i=t.get(Us,null,{optional:!0}),s=n?.phase??pr.MixedReadWrite,a=n?.manualCleanup!==!0?t.get(El):null,c=new xu(o.impl,Ew(e,s),r,a,i?.snapshot(null));return o.impl.register(c),c}var Iw=()=>null;function xl(e,t,n=!1){return Iw(e,t,n)}var _t=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(_t||{});var Gi;function _w(){if(Gi===void 0&&(Gi=null,Se.trustedTypes))try{Gi=Se.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Gi}function _h(e){return _w()?.createScriptURL(e)||e}var vs=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Wh})`}};function Io(e){return e instanceof vs?e.changingThisBreaksApplicationSecurity:e}function Rl(e,t){let n=Mw(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Wh})`)}return n===t}function Mw(e){return e instanceof vs&&e.getTypeName()||null}var Sw=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function hg(e){return e=String(e),e.match(Sw)?e:"unsafe:"+e}var $s=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}($s||{});function _o(e){let t=gg();return t?t.sanitize($s.URL,e)||"":Rl(e,"URL")?Io(e):hg(xs(e))}function Tw(e){let t=gg();if(t)return _h(t.sanitize($s.RESOURCE_URL,e)||"");if(Rl(e,"ResourceURL"))return _h(Io(e));throw new b(904,!1)}function Aw(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?Tw:_o}function pg(e,t,n){return Aw(t,n)(e)}function gg(){let e=z();return e&&e[Bt].sanitizer}function mg(e){return e instanceof Function?e():e}var mn=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(mn||{}),Ht=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Ht||{}),Nw;function Ol(e,t){return Nw(e,t)}function gr(e,t,n,r,o){if(r!=null){let i,s=!1;Gt(r)?i=r:hn(r)&&(s=!0,r=r[zt]);let a=It(r);e===0&&n!==null?o==null?wg(t,n,a):ys(t,n,a,o||null,!0):e===1&&n!==null?ys(t,n,a,o||null,!0):e===2?Gw(t,a,s):e===3&&t.destroyNode(a),i!=null&&Ww(t,e,i,n,o)}}function xw(e,t){return e.createText(t)}function Rw(e,t,n){e.setValue(t,n)}function vg(e,t,n){return e.createElement(t,n)}function Ow(e,t){yg(e,t),t[zt]=null,t[ht]=null}function kw(e,t,n,r,o,i){r[zt]=o,r[ht]=t,Hs(e,r,n,1,o,i)}function yg(e,t){t[Bt].changeDetectionScheduler?.notify(10),Hs(e,t,t[be],2,null,null)}function Fw(e){let t=e[vo];if(!t)return nu(e[O],e);for(;t;){let n=null;if(hn(t))n=t[vo];else{let r=t[ze];r&&(n=r)}if(!n){for(;t&&!t[dt]&&t!==e;)hn(t)&&nu(t[O],t),t=t[Ie];t===null&&(t=e),hn(t)&&nu(t[O],t),n=t&&t[dt]}t=n}}function Pw(e,t,n,r){let o=ze+r,i=n.length;r>0&&(n[o-1][dt]=t),r0&&(e[n-1][dt]=r[dt]);let i=ns(e,ze+t);Ow(r[O],r);let s=i[Ut];s!==null&&s.detachView(i[O]),r[Ie]=null,r[dt]=null,r[T]&=-129}return r}function Cg(e,t){if(!(t[T]&256)){let n=t[be];n.destroyNode&&Hs(e,t,n,3,null,null),Fw(t)}}function nu(e,t){if(t[T]&256)return;let n=$(null);try{t[T]&=-129,t[T]|=256,t[He]&&Ac(t[He]),Vw(e,t),Lw(e,t),t[O].type===1&&t[be].destroy();let r=t[Bn];if(r!==null&&Gt(t[Ie])){r!==t[Ie]&&kl(r,t);let o=t[Ut];o!==null&&o.detachView(e)}Au(t)}finally{$(n)}}function Lw(e,t){let n=e.cleanup,r=t[is];if(n!==null)for(let s=0;s=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[is]=null);let o=t[fn];if(o!==null){t[fn]=null;for(let s=0;s-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===_t.None||i===_t.Emulated)return null}return et(r,n)}}function ys(e,t,n,r,o){e.insertBefore(t,n,r,o)}function wg(e,t,n){e.appendChild(t,n)}function Mh(e,t,n,r,o){r!==null?ys(e,t,n,r,o):wg(e,t,n)}function Eg(e,t){return e.parentNode(t)}function Uw(e,t){return e.nextSibling(t)}function $w(e,t,n){return zw(e,t,n)}function Hw(e,t,n){return e.type&40?et(e,n):null}var zw=Hw,Sh;function Fl(e,t,n,r){let o=jw(e,r,t),i=t[be],s=r.parent||t[ht],a=$w(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(lt(r))return!1;s=!0}}}}return lt(r)||s}function lt(e){return(e&1)===0}function eE(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!lt(s)&&(t+=Th(i,o),o=""),r=s,i=i||!lt(r);n++}return o!==""&&(t+=Th(i,o)),t}function iE(e){return e.map(oE).join(",")}function sE(e){let t=[],n=[],r=1,o=2;for(;rXe&&Sg(e,t,Xe,!1),wt(s?2:0,o),n(r,o)}finally{Hn(i),wt(s?3:1,o)}}function Rg(e,t,n){if(Dp(t)){let r=$(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function hE(e,t,n,r){let o=$g(t);o.push(n),e.firstCreatePass&&Hg(e).push(r,o.length-1)}function pE(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return EC()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Ah(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,c=mn.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=i;if(o!==null){if(!o.hasOwnProperty(i))continue;u=o[i]}e===0?Nh(r,n,u,a,c):Nh(r,n,u,a)}return r}function Nh(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function gE(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],c=null,u=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function wE(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;Ls(n)&&TE(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||hs(n,t),qn(r,t);let s=n.initialInputs;for(let a=o;a{js(e.lView)},consumerOnSignalRead(){this.lView[He]=this}});function zE(e){let t=e[He]??Object.create(GE);return t.lView=e,t}var GE=j(m({},io),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=$n(e.lView);for(;t&&!qg(t[O]);)t=$n(t);t&&fl(t)},consumerOnSignalRead(){this.lView[He]=this}});function qg(e){return e.type!==2}function Wg(e){if(e[ss]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[ss])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[T]&8192)}}var qE=100;function Zg(e,t=!0,n=0){let o=e[Bt].rendererFactory,i=!1;i||o.begin?.();try{WE(e,n)}catch(s){throw t&&zg(e,s),s}finally{i||o.end?.()}}function WE(e,t){let n=xp();try{hh(!0),Pu(e,t);let r=0;for(;Vs(e);){if(r===qE)throw new b(103,!1);r++,Pu(e,1)}}finally{hh(n)}}function ZE(e,t,n,r){let o=t[T];if((o&256)===256)return;let i=!1,s=!1;gl(t);let a=!0,c=null,u=null;i||(qg(e)?(u=BE(t),c=pi(u)):Ef()===null?(a=!1,u=zE(t),c=pi(u)):t[He]&&(Ac(t[He]),t[He]=null));try{Mp(t),TC(e.bindingStartIndex),n!==null&&xg(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Qi(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Ki(t,f,0,null),Xc(t,0)}if(s||YE(t),Wg(t),Yg(t,0),e.contentQueries!==null&&Ug(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Qi(t,f)}else{let f=e.contentHooks;f!==null&&Ki(t,f,1),Xc(t,1)}aE(e,t);let d=e.components;d!==null&&Kg(t,d,0);let h=e.viewQuery;if(h!==null&&Fu(2,h,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Qi(t,f)}else{let f=e.viewHooks;f!==null&&Ki(t,f,2),Xc(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Jc]){for(let f of t[Jc])f();t[Jc]=null}i||(t[T]&=-73)}catch(l){throw i||js(t),l}finally{u!==null&&(Sc(u,c),a&&$E(u)),ml()}}function Yg(e,t){for(let n=ag(e);n!==null;n=cg(n))for(let r=ze;r-1&&(Ru(t,r),ns(n,r))}this._attachedToViewContainer=!1}Cg(this._lView[O],this._lView)}onDestroy(t){Sp(this._lView,t)}markForCheck(){Ul(this._cdRefInjectingView||this._lView,4)}markForRefresh(){fl(this._cdRefInjectingView||this._lView)}detach(){this._lView[T]&=-129}reattach(){vu(this._lView),this._lView[T]|=128}detectChanges(){this._lView[T]|=1024,Zg(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=gu(this._lView),n=this._lView[Bn];n!==null&&!t&&kl(n,this._lView),yg(this._lView[O],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new b(902,!1);this._appRef=t;let n=gu(this._lView),r=this._lView[Bn];r!==null&&!n&&Dg(r,this._lView),vu(this._lView)}},Zn=(()=>{class e{static __NG_ELEMENT_ID__=XE}return e})(),KE=Zn,JE=class extends KE{_declarationLView;_declarationTContainer;elementRef;constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=LE(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Wn(o)}};function XE(){return $l(xe(),z())}function $l(e,t){return e.type&4?new JE(t,e,xr(e,t)):null}var uF=new RegExp(`^(\\d+)*(${yw}|${vw})*(.*)`);var eb=()=>null;function Rh(e,t){return eb(e,t)}var Lu=class{},Cs=class{},Vu=class{resolveComponentFactory(t){throw Error(`No component factory found for ${Ae(t)}.`)}},Ir=class{static NULL=new Vu},_r=class{},At=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>tb()}return e})();function tb(){let e=z(),t=xe(),n=yn(t.index,e);return(hn(n)?n:e)[be]}var nb=(()=>{class e{static \u0275prov=D({token:e,providedIn:"root",factory:()=>null})}return e})();function ju(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Ig(e,n,i.join(" "))}}function ub(e,t,n){let r=e.projection=[];for(let o=0;o{class e{static __NG_ELEMENT_ID__=db}return e})();function db(){let e=xe();return Xg(e,z())}var fb=Cn,Jg=class extends fb{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return xr(this._hostTNode,this._hostLView)}get injector(){return new Vn(this._hostTNode,this._hostLView)}get parentInjector(){let t=Cl(this._hostTNode,this._hostLView);if($p(t)){let n=ds(t,this._hostLView),r=ls(t),o=n[O].data[r+8];return new Vn(o,n)}else return new Vn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=kh(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-ze}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Rh(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,xh(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!uC(t),a;if(s)a=n;else{let g=n||{};a=g.index,r=g.injector,o=g.projectableNodes,i=g.environmentInjector||g.ngModuleRef}let c=s?t:new Mr(pn(t)),u=r||this.parentInjector;if(!i&&c.ngModule==null){let C=(s?u:this.parentInjector).get(Ne,null);C&&(i=C)}let l=pn(c.componentType??{}),d=Rh(this._lContainer,l?.id??null),h=d?.firstChild??null,f=c.create(u,o,h,i);return this.insertImpl(f.hostView,a,xh(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(mC(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[Ie],u=new Jg(c,c[ht],c[Ie]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return VE(s,o,i,r),t.attachToViewContainerRef(),ip(ru(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=kh(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Ru(this._lContainer,n);r&&(ns(ru(this._lContainer),n),Cg(r[O],r))}detach(t){let n=this._adjustIndex(t,-1),r=Ru(this._lContainer,n);return r&&ns(ru(this._lContainer),n)!=null?new Wn(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function kh(e){return e[as]}function ru(e){return e[as]||(e[as]=[])}function Xg(e,t){let n,r=t[e.index];return Gt(r)?n=r:(n=Bg(r,t,null,e),t[e.index]=n,qs(t,n)),pb(n,t,e,r),new Jg(n,e,t)}function hb(e,t){let n=e[be],r=n.createComment(""),o=et(t,e),i=Eg(n,o);return ys(n,i,r,Uw(n,o),!1),r}var pb=vb,gb=()=>!1;function mb(e,t,n){return gb(e,t,n)}function vb(e,t,n,r){if(e[Un])return;let o;n.type&8?o=It(r):o=hb(t,n),e[Un]=o}var Uu=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},$u=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let u=i[a+1],l=t[-c];for(let d=ze;dt.trim())}function Mb(e,t,n){e.queries===null&&(e.queries=new zu),e.queries.track(new Gu(t,n))}function Sb(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function Hl(e,t){return e.queries.getByIndex(t)}function Tb(e,t){let n=e[O],r=Hl(n,t);return r.crossesNgTemplate?qu(n,e,t,[]):em(n,e,r,t)}function Mo(e,t){Rr("NgSignals");let n=Rf(e),r=n[Qe];return t?.equal&&(r.equal=t.equal),n.set=o=>vi(r,o),n.update=o=>Of(r,o),n.asReadonly=Ab.bind(n),n}function Ab(){let e=this[Qe];if(e.readonlyFn===void 0){let t=()=>this();t[Qe]=e,e.readonlyFn=t}return e.readonlyFn}function Nb(e){let t=[],n=new Map;function r(o){let i=n.get(o);if(!i){let s=e(o);n.set(o,i=s.then(kb))}return i}return Es.forEach((o,i)=>{let s=[];o.templateUrl&&s.push(r(o.templateUrl).then(u=>{o.template=u}));let a=typeof o.styles=="string"?[o.styles]:o.styles||[];if(o.styles=a,o.styleUrl&&o.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(o.styleUrls?.length){let u=o.styles.length,l=o.styleUrls;o.styleUrls.forEach((d,h)=>{a.push(""),s.push(r(d).then(f=>{a[u+h]=f,l.splice(l.indexOf(d),1),l.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&s.push(r(o.styleUrl).then(u=>{a.push(u),o.styleUrl=void 0}));let c=Promise.all(s).then(()=>Fb(i));t.push(c)}),Rb(),Promise.all(t).then(()=>{})}var Es=new Map,xb=new Set;function Rb(){let e=Es;return Es=new Map,e}function Ob(){return Es.size===0}function kb(e){return typeof e=="string"?e:e.text()}function Fb(e){xb.delete(e)}var vn=class{},Do=class{};var bs=class extends vn{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new ws(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=cp(t);this._bootstrapComponents=mg(i.bootstrap),this._r3Injector=Kp(t,n,[{provide:vn,useValue:this},{provide:Ir,useValue:this.componentFactoryResolver},...r],Ae(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Is=class extends Do{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new bs(this.moduleType,t,[])}};function Pb(e,t,n){return new bs(e,t,n,!1)}var Wu=class extends vn{injector;componentFactoryResolver=new ws(this);instance=null;constructor(t){super();let n=new mo([...t.providers,{provide:vn,useValue:this},{provide:Ir,useValue:this.componentFactoryResolver}],t.parent||cl(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Ws(e,t,n=null){return new Wu({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Lb=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=fp(!1,n.type),o=r.length>0?Ws([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=D({token:e,providedIn:"environment",factory:()=>new e(I(Ne))})}return e})();function se(e){return wo(()=>{let t=tm(e),n=j(m({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===ig.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(Lb).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||_t.Emulated,styles:e.styles||Je,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Rr("NgStandalone"),nm(n);let r=e.dependencies;return n.directiveDefs=Ph(r,!1),n.pipeDefs=Ph(r,!0),n.id=Bb(n),n})}function Vb(e){return pn(e)||up(e)}function jb(e){return e!==null}function ne(e){return wo(()=>({type:e.type,bootstrap:e.bootstrap||Je,declarations:e.declarations||Je,imports:e.imports||Je,exports:e.exports||Je,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Fh(e,t){if(e==null)return yr;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=mn.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==mn.None?[r,a]:r,t[i]=s):n[i]=r}return n}function de(e){return wo(()=>{let t=tm(e);return nm(t),t})}function So(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function tm(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||yr,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Je,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Fh(e.inputs,t),outputs:Fh(e.outputs),debugInfo:null}}function nm(e){e.features?.forEach(t=>t(e))}function Ph(e,t){if(!e)return null;let n=t?lp:Vb;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(jb)}function Bb(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Ub(e){return Object.getPrototypeOf(e.prototype).constructor}function pt(e){let t=Ub(e.type),n=!0,r=[e];for(;t;){let o;if(gn(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new b(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=qi(e.inputs),s.inputTransforms=qi(e.inputTransforms),s.declaredInputs=qi(e.declaredInputs),s.outputs=qi(e.outputs);let a=o.hostBindings;a&&qb(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&zb(e,c),u&&Gb(e,u),$b(e,o),MD(e.outputs,o.outputs),gn(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=yo(o.hostAttrs,n=yo(n,o.hostAttrs))}}function qi(e){return e===yr?{}:e===Je?[]:e}function zb(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function Gb(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function qb(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function zl(e){let t=e.inputConfig,n={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)&&o[3]&&(n[r]=o[3])}e.inputTransforms=n}function rm(e){return Zb(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function Wb(e,t){if(Array.isArray(e))for(let n=0;n{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var ql=new v(""),To=new v(""),Ys=(()=>{class e{_ngZone;registry;_isZoneStable=!0;_callbacks=[];taskTrackingZone=null;constructor(n,r,o){this._ngZone=n,this.registry=r,Wl||(nI(o),o.addToWindow(r)),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:()=>{Z.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!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(r=>r.updateCb&&r.updateCb(n)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n()},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,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,r,o),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}static \u0275fac=function(r){return new(r||e)(I(Z),I(Qs),I(To))};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})(),Qs=(()=>{class e{_applications=new Map;registerApplication(n,r){this._applications.set(n,r)}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,r=!0){return Wl?.findTestabilityInTree(this,n,r)??null}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function nI(e){Wl=e}var Wl;function wn(e){return!!e&&typeof e.then=="function"}function Zl(e){return!!e&&typeof e.subscribe=="function"}var Ks=new v("");var om=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=p(Ks,{optional:!0})??[];injector=p(Ge);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Le(this.injector,o);if(wn(i))n.push(i);else if(Zl(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),rI=(()=>{class e{static \u0275prov=D({token:e,providedIn:"root",factory:()=>new Zu})}return e})(),Zu=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},Js=new v("");function oI(){xf(()=>{throw new b(600,!1)})}function iI(e){return e.isBoundToModule}var sI=10;function aI(e,t,n){try{let r=n();return wn(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}function im(e,t){return Array.isArray(t)?t.reduce(im,e):m(m({},e),t)}var Mt=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=p(aw);afterRenderManager=p(fg);zonelessEnabled=p(bl);rootEffectScheduler=p(rI);dirtyFlags=0;deferredDirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new oe;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=p(Zt).hasPendingTasks.pipe(A(n=>!n));constructor(){p(Us,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=p(Ne);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){let o=n instanceof Cs;if(!this._injector.get(om).done){let h=!o&&dp(n),f=!1;throw new b(405,f)}let s;o?s=n:s=this._injector.get(Ir).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=iI(s)?void 0:this._injector.get(vn),c=r||s.selector,u=s.create(Ge.NULL,[],c,a),l=u.location.nativeElement,d=u.injector.get(ql,null);return d?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),Xi(this.components,u),d?.unregisterApplication(l)}),this._loadComponent(u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick=()=>{if(this.tracingSnapshot!==null){let r=this.tracingSnapshot;this.tracingSnapshot=null,r.run(Al.CHANGE_DETECTION,this._tick),r.dispose();return}if(this._runningTick)throw new b(101,!1);let n=$(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,$(n),this.afterTick.next()}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(_r,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let n=0;for(;this.dirtyFlags!==0&&n++Vs(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Xi(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Js,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Xi(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new b(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Xi(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function cI(e,t,n,r){if(!n&&!Vs(e))return;Zg(e,t,n&&!r?0:1)}function Or(e,t,n,r){let o=z(),i=hl();if(Yn(o,i,t)){let s=Ve(),a=Vp();AE(a,o,e,t,n,r)}return Or}function uI(e,t,n,r){return Yn(e,hl(),n)?t+xs(n)+r:Dn}function Wi(e,t){return e<<17|t<<2}function Qn(e){return e>>17&32767}function lI(e){return(e&2)==2}function dI(e,t){return e&131071|t<<17}function Yu(e){return e|2}function Sr(e){return(e&131068)>>2}function ou(e,t){return e&-131069|t<<2}function fI(e){return(e&1)===1}function Qu(e){return e|1}function hI(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Qn(s),c=Sr(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Eo(d,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let h=Qn(e[a+1]);e[r+1]=Wi(h,a),h!==0&&(e[h+1]=ou(e[h+1],r)),e[a+1]=dI(e[a+1],r)}else e[r+1]=Wi(a,0),a!==0&&(e[a+1]=ou(e[a+1],r)),a=r;else e[r+1]=Wi(c,0),a===0?a=r:e[c+1]=ou(e[c+1],r),c=r;u&&(e[r+1]=Yu(e[r+1])),Lh(e,l,r,!0),Lh(e,l,r,!1),pI(t,l,e,r,i),s=Wi(a,c),i?t.classBindings=s:t.styleBindings=s}function pI(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Eo(i,t)>=0&&(n[r+1]=Qu(n[r+1]))}function Lh(e,t,n,r){let o=e[n+1],i=t===null,s=r?Qn(o):Sr(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];gI(c,t)&&(a=!0,e[s+1]=r?Qu(u):Yu(u)),s=r?Qn(u):Sr(u)}a&&(e[n+1]=r?Yu(o):Qu(o))}function gI(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Eo(e,t)>=0:!1}function R(e,t,n){let r=z(),o=hl();if(Yn(r,o,t)){let i=Ve(),s=Vp();vE(i,s,r,e,t,r[be],n,!1)}return R}function Vh(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";jl(e,n,i[s],s,r)}function kr(e,t){return mI(e,t,null,!0),kr}function mI(e,t,n,r){let o=z(),i=Ve(),s=AC(2);if(i.firstUpdatePass&&yI(i,e,s,r),t!==Dn&&Yn(o,s,t)){let a=i.data[Ar()];bI(i,a,o,o[be],e,o[s+1]=II(t,n),r,s)}}function vI(e,t){return t>=e.expandoStartIndex}function yI(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Ar()],s=vI(e,n);_I(i,r)&&t===null&&!s&&(t=!1),t=DI(o,i,t,r),hI(o,i,t,n,s,r)}}function DI(e,t,n,r){let o=OC(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=iu(null,e,t,n,r),n=Co(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=iu(o,e,t,n,r),i===null){let c=CI(e,t,r);c!==void 0&&Array.isArray(c)&&(c=iu(null,e,t,c[1],r),c=Co(c,t.attrs,r),wI(e,t,r,c))}else i=EI(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function CI(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Sr(r)!==0)return e[Qn(r)]}function wI(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Qn(o)]=r}function EI(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,h=n[o+1];h===Dn&&(h=d?Je:void 0);let f=d?Qc(h,r):l===r?h:void 0;if(u&&!_s(f)&&(f=Qc(c,r)),_s(f)&&(a=f,s))return a;let g=e[o+1];o=s?Qn(g):Sr(g)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Qc(c,r))}return a}function _s(e){return e!==void 0}function II(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Ae(Io(e)))),e}function _I(e,t){return(e.flags&(t?8:16))!==0}function MI(e,t,n,r,o,i){let s=t.consts,a=us(s,o),c=Gs(t,e,2,r,a);return Pg(t,n,c,us(s,i)),c.attrs!==null&&ju(c,c.attrs,!1),c.mergedAttrs!==null&&ju(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function w(e,t,n,r){let o=z(),i=Ve(),s=Xe+e,a=o[be],c=i.firstCreatePass?MI(s,i,o,t,n,r):i.data[s],u=SI(i,o,c,a,t,e);o[s]=u;let l=ul(c);return bo(c,!0),_g(a,u,c),!Kb(c)&&vl()&&Fl(i,o,u,c),DC()===0&&qn(u,o),CC(),l&&(Og(i,o,c),Rg(i,c,o)),r!==null&&kg(o,c),w}function E(){let e=xe();Np()?MC():(e=e.parent,bo(e,!1));let t=e;bC(t)&&IC(),wC();let n=Ve();return n.firstCreatePass&&(Dl(n,e),Dp(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&BC(t)&&Vh(n,t,z(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&UC(t)&&Vh(n,t,z(),t.stylesWithoutHost,!1),E}function ae(e,t,n,r){return w(e,t,n,r),E(),ae}var SI=(e,t,n,r,o,i)=>(yl(!0),vg(r,o,PC()));function Qt(){return z()}var Ln=void 0;function TI(e){let t=e,n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return n===1&&r===0?1:5}var AI=["en",[["a","p"],["AM","PM"],Ln],[["AM","PM"],Ln,Ln],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ln,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Ln,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Ln,"{1} 'at' {0}",Ln],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",TI],su={};function tt(e){let t=NI(e),n=Bh(t);if(n)return n;let r=t.split("-")[0];if(n=Bh(r),n)return n;if(r==="en")return AI;throw new b(701,!1)}function Bh(e){return e in su||(su[e]=Se.ng&&Se.ng.common&&Se.ng.common.locales&&Se.ng.common.locales[e]),su[e]}var fe=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(fe||{});function NI(e){return e.toLowerCase().replace(/_/g,"-")}var Ms="en-US";var xI=Ms;function RI(e){typeof e=="string"&&(xI=e.toLowerCase().replace(/_/g,"-"))}var OI=(e,t,n)=>{};function ce(e,t,n,r){let o=z(),i=Ve(),s=xe();return FI(i,o,o[be],s,e,t,r),ce}function kI(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function FI(e,t,n,r,o,i,s){let a=ul(r),u=e.firstCreatePass&&Hg(e),l=t[ft],d=$g(t),h=!0;if(r.type&3||s){let C=et(r,t),_=s?s(C):C,F=d.length,ue=s?we=>s(It(we[r.index])):r.index,H=null;if(!s&&a&&(H=kI(e,t,o,r.index)),H!==null){let we=H.__ngLastListenerFn__||H;we.__ngNextListenerFn__=i,H.__ngLastListenerFn__=i,h=!1}else{i=$h(r,t,l,i),OI(C,o,i);let we=n.listen(_,o,i);d.push(i,we),u&&u.push(o,ue,F,F+1)}}else i=$h(r,t,l,i);let f=r.outputs,g;if(h&&f!==null&&(g=f[o])){let C=g.length;if(C)for(let _=0;_-1?yn(e.index,t):t;Ul(s,5);let a=Uh(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=Uh(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function Be(e=1){return FC(e)}function sm(e,t,n,r){Ib(e,t,n,r)}function am(e){let t=z(),n=Ve(),r=Rp();pl(r+1);let o=Hl(n,r);if(e.dirty&&gC(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=Tb(t,r);e.reset(i,lw),e.notifyOnChanges()}return!0}return!1}function cm(){return Eb(z(),Rp())}function PI(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function um(e){let t=SC();return ll(t,Xe+e)}function S(e,t=""){let n=z(),r=Ve(),o=e+Xe,i=r.firstCreatePass?Gs(r,o,1,t,null):r.data[o],s=LI(r,n,i,t,e);n[o]=s,vl()&&Fl(r,n,s,i),bo(i,!1)}var LI=(e,t,n,r,o)=>(yl(!0),xw(t[be],r));function Nt(e){return qe("",e,""),Nt}function qe(e,t,n){let r=z(),o=uI(r,e,t,n);return o!==Dn&&OE(r,Ar(),o),qe}function VI(e,t,n){let r=Ve();if(r.firstCreatePass){let o=gn(e);Ku(n,r.data,r.blueprint,o,!0),Ku(t,r.data,r.blueprint,o,!1)}}function Ku(e,t,n,r,o){if(e=Te(e),Array.isArray(e))for(let i=0;i>20;if(Cr(e)||!e.multi){let f=new zn(u,o,y),g=cu(c,t,o?l:l+h,d);g===-1?(bu(hs(a,s),i,c),au(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[g]=f,s[g]=f)}else{let f=cu(c,t,l+h,d),g=cu(c,t,l,l+h),C=f>=0&&n[f],_=g>=0&&n[g];if(o&&!_||!o&&!C){bu(hs(a,s),i,c);let F=UI(o?BI:jI,n.length,o,r,u);!o&&_&&(n[g].providerFactory=F),au(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(F),s.push(F)}else{let F=lm(n[o?g:f],u,!o&&r);au(i,e,f>-1?f:g,F)}!o&&r&&_&&n[g].componentProviders++}}}function au(e,t,n,r){let o=Cr(t),i=eC(t);if(o||i){let c=(i?Te(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c)}else u.push(n,c)}}}function lm(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function cu(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>VI(r,o?o(e):e,t)}}function Xs(e,t,n){let r=Bs()+e,o=z();return o[r]===Dn?Gl(o,r,n?t.call(n):t()):Yb(o,r)}function ea(e,t,n,r){return fm(z(),Bs(),e,t,n,r)}function dm(e,t){let n=e[t];return n===Dn?void 0:n}function fm(e,t,n,r,o,i){let s=t+n;return Yn(e,s,o)?Gl(e,s+1,i?r.call(i,o):r(o)):dm(e,s+1)}function $I(e,t,n,r,o,i,s){let a=t+n;return Qb(e,a,o,i)?Gl(e,a+2,s?r.call(s,o,i):r(o,i)):dm(e,a+2)}function nt(e,t){let n=Ve(),r,o=e+Xe;n.firstCreatePass?(r=HI(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=jn(r.type,!0)),s,a=Pe(y);try{let c=fs(!1),u=i();return fs(c),PI(n,z(),o,u),u}finally{Pe(a)}}function HI(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function gt(e,t,n){let r=e+Xe,o=z(),i=ll(o,r);return pm(o,r)?fm(o,Bs(),t,i.transform,n,i):i.transform(n)}function hm(e,t,n,r){let o=e+Xe,i=z(),s=ll(i,o);return pm(i,o)?$I(i,Bs(),t,s.transform,n,r,s):s.transform(n,r)}function pm(e,t){return e[O].data[t].pure}var Zi=null;function zI(e){Zi!==null&&(e.defaultEncapsulation!==Zi.defaultEncapsulation||e.preserveWhitespaces!==Zi.preserveWhitespaces)||(Zi=e)}var Xu=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},ta=(()=>{class e{compileModuleSync(n){return new Is(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=cp(n),i=mg(o.declarations).reduce((s,a)=>{let c=pn(a);return c&&s.push(new Mr(c)),s},[]);return new Xu(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),GI=new v("");function qI(e,t,n){let r=new Is(n);return Promise.resolve(r)}function Hh(e){for(let t=e.length-1;t>=0;t--)if(e[t]!==void 0)return e[t]}var WI=(()=>{class e{zone=p(Z);changeDetectionScheduler=p(br);applicationRef=p(Mt);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ZI({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new Z(j(m({},gm()),{scheduleInRootZone:n})),[{provide:Z,useFactory:e},{provide:Dr,multi:!0,useFactory:()=>{let r=p(WI,{optional:!0});return()=>r.initialize()}},{provide:Dr,multi:!0,useFactory:()=>{let r=p(YI);return()=>{r.initialize()}}},t===!0?{provide:Xp,useValue:!0}:[],{provide:eg,useValue:n??Jp}]}function gm(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var YI=(()=>{class e{subscription=new re;initialized=!1;zone=p(Z);pendingTasks=p(Zt);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(()=>{Z.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Z.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var QI=(()=>{class e{appRef=p(Mt);taskService=p(Zt);ngZone=p(Z);zonelessEnabled=p(bl);tracing=p(Us,{optional:!0});disableScheduling=p(Xp,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new re;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(gs):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(eg,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof ms||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 8:{this.appRef.deferredDirtyFlags|=8;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 13:{this.appRef.dirtyFlags|=16,r=!0;break}case 14:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{r=!0;break}case 10:case 9:case 7:case 11:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?Dh:tg;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(gs+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Dh(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function KI(){return typeof $localize<"u"&&$localize.locale||Ms}var na=new v("",{providedIn:"root",factory:()=>p(na,L.Optional|L.SkipSelf)||KI()});var Ss=new v(""),JI=new v("");function uo(e){return!e.moduleRef}function XI(e){let t=uo(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Z);return n.run(()=>{uo(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get($t,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),uo(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Ss);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Ss);s.add(i),e.moduleRef.onDestroy(()=>{Xi(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return aI(r,n,()=>{let i=t.get(om);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(na,Ms);if(RI(s||Ms),!t.get(JI,!0))return uo(e)?t.get(Mt):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(uo(e)){let c=t.get(Mt);return e.rootComponent!==void 0&&c.bootstrap(e.rootComponent),c}else return e_(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function e_(e,t){let n=e.injector.get(Mt);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new b(-403,!1);t.push(e)}var mm=(()=>{class e{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(n){this._injector=n}bootstrapModuleFactory(n,r){let o=r?.scheduleInRootZone,i=()=>sw(r?.ngZone,j(m({},gm({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing})),{scheduleInRootZone:o})),s=r?.ignoreChangesOutsideZone,a=[ZI({ngZoneFactory:i,ignoreChangesOutsideZone:s}),{provide:br,useExisting:QI}],c=Pb(n.moduleType,this.injector,a);return XI({moduleRef:c,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(n,r=[]){let o=im({},r);return qI(this.injector,o,n).then(i=>this.bootstrapModuleFactory(i,o))}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new b(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());let n=this._injector.get(Ss,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(r){return new(r||e)(I(Ge))};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),po=null,vm=new v("");function t_(e){if(po&&!po.get(vm,!1))throw new b(400,!1);oI(),po=e;let t=e.get(mm);return o_(e),t}function Yl(e,t,n=[]){let r=`Platform: ${t}`,o=new v(r);return(i=[])=>{let s=ym();if(!s||s.injector.get(vm,!1)){let a=[...n,...i,{provide:o,useValue:!0}];e?e(a):t_(n_(a,r))}return r_(o)}}function n_(e=[],t){return Ge.create({name:t,providers:[{provide:Fs,useValue:"platform"},{provide:Ss,useValue:new Set([()=>po=null])},...e]})}function r_(e){let t=ym();if(!t)throw new b(401,!1);return t}function ym(){return po?.get(mm)??null}function o_(e){let t=e.get(Sl,null);Le(e,()=>{t?.forEach(n=>n())})}var bn=(()=>{class e{static __NG_ELEMENT_ID__=i_}return e})();function i_(e){return s_(xe(),z(),(e&16)===16)}function s_(e,t,n){if(Ls(e)&&!n){let r=yn(e.index,t);return new Wn(r,r)}else if(e.type&175){let r=t[bt];return new Wn(r,t)}return null}var el=class{constructor(){}supports(t){return rm(t)}create(t){return new tl(t)}},a_=(e,t)=>t,tl=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||a_}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new nl(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}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(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new Ts),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Ts),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},nl=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,n){this.item=t,this.trackById=n}},rl=class{_head=null;_tail=null;add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Ts=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new rl,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function zh(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r{class e{factories;static \u0275prov=D({token:e,providedIn:"root",factory:Gh});constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Gh()),deps:[[e,new il,new Os]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new b(901,!1)}}return e})();var Dm=Yl(null,"core",[]),Cm=(()=>{class e{constructor(n){}static \u0275fac=function(r){return new(r||e)(I(Mt))};static \u0275mod=ne({type:e});static \u0275inj=te({})}return e})();function Fr(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function Ao(e,t){Rr("NgSignals");let n=Tf(e);return t?.equal&&(n[Qe].equal=t.equal),n}function mt(e){let t=$(null);try{return e()}finally{$(t)}}var qh=class{[Qe];constructor(t){this[Qe]=t}destroy(){this[Qe].destroy()}};function wm(e){let t=pn(e);if(!t)return null;let n=new Mr(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var Sm=null;function xt(){return Sm}function Tm(e){Sm??=e}var da=class{};var _e=new v(""),ad=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:()=>p(c_),providedIn:"platform"})}return e})(),Am=new v(""),c_=(()=>{class e extends ad{_location;_history;_doc=p(_e);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return xt().getBaseHref(this._doc)}onPopState(n){let r=xt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=xt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function cd(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function Em(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function Jt(e){return e&&e[0]!=="?"?"?"+e:e}var en=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:()=>p(ud),providedIn:"root"})}return e})(),Nm=new v(""),ud=(()=>{class e extends en{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??p(_e).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 cd(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Jt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Jt(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Jt(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(r){return new(r||e)(I(ad),I(Nm,8))};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),xm=(()=>{class e extends en{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,r!=null&&(this._baseHref=r)}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 r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=cd(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Jt(i));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Jt(i));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(r){return new(r||e)(I(ad),I(Nm,8))};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})(),Lr=(()=>{class e{_subject=new oe;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=d_(Em(bm(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Jt(r))}normalize(n){return e.stripTrailingSlash(l_(this._basePath,bm(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Jt(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Jt(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=Jt;static joinWithSlash=cd;static stripTrailingSlash=Em;static \u0275fac=function(r){return new(r||e)(I(en))};static \u0275prov=D({token:e,factory:()=>u_(),providedIn:"root"})}return e})();function u_(){return new Lr(I(en))}function l_(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function bm(e){return e.replace(/\/index.html$/,"")}function d_(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var Re=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(Re||{}),K=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(K||{}),We=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(We||{}),In={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function f_(e){return tt(e)[fe.LocaleId]}function h_(e,t,n){let r=tt(e),o=[r[fe.DayPeriodsFormat],r[fe.DayPeriodsStandalone]],i=rt(o,t);return rt(i,n)}function p_(e,t,n){let r=tt(e),o=[r[fe.DaysFormat],r[fe.DaysStandalone]],i=rt(o,t);return rt(i,n)}function g_(e,t,n){let r=tt(e),o=[r[fe.MonthsFormat],r[fe.MonthsStandalone]],i=rt(o,t);return rt(i,n)}function m_(e,t){let r=tt(e)[fe.Eras];return rt(r,t)}function ra(e,t){let n=tt(e);return rt(n[fe.DateFormat],t)}function oa(e,t){let n=tt(e);return rt(n[fe.TimeFormat],t)}function ia(e,t){let r=tt(e)[fe.DateTimeFormat];return rt(r,t)}function ha(e,t){let n=tt(e),r=n[fe.NumberSymbols][t];if(typeof r>"u"){if(t===In.CurrencyDecimal)return n[fe.NumberSymbols][In.Decimal];if(t===In.CurrencyGroup)return n[fe.NumberSymbols][In.Group]}return r}function Rm(e){if(!e[fe.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[fe.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function v_(e){let t=tt(e);return Rm(t),(t[fe.ExtraData][2]||[]).map(r=>typeof r=="string"?Kl(r):[Kl(r[0]),Kl(r[1])])}function y_(e,t,n){let r=tt(e);Rm(r);let o=[r[fe.ExtraData][0],r[fe.ExtraData][1]],i=rt(o,t)||[];return rt(i,n)||[]}function rt(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function Kl(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var D_=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,sa={},C_=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Xt=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(Xt||{}),q=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(q||{}),G=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(G||{});function w_(e,t,n,r){let o=N_(e);t=Kt(n,t)||t;let s=[],a;for(;t;)if(a=C_.exec(t),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;t=l}else{s.push(t);break}let c=o.getTimezoneOffset();r&&(c=km(r,c),o=A_(o,r,!0));let u="";return s.forEach(l=>{let d=S_(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function fa(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Kt(e,t){let n=f_(e);if(sa[n]??={},sa[n][t])return sa[n][t];let r="";switch(t){case"shortDate":r=ra(e,We.Short);break;case"mediumDate":r=ra(e,We.Medium);break;case"longDate":r=ra(e,We.Long);break;case"fullDate":r=ra(e,We.Full);break;case"shortTime":r=oa(e,We.Short);break;case"mediumTime":r=oa(e,We.Medium);break;case"longTime":r=oa(e,We.Long);break;case"fullTime":r=oa(e,We.Full);break;case"short":let o=Kt(e,"shortTime"),i=Kt(e,"shortDate");r=aa(ia(e,We.Short),[o,i]);break;case"medium":let s=Kt(e,"mediumTime"),a=Kt(e,"mediumDate");r=aa(ia(e,We.Medium),[s,a]);break;case"long":let c=Kt(e,"longTime"),u=Kt(e,"longDate");r=aa(ia(e,We.Long),[c,u]);break;case"full":let l=Kt(e,"fullTime"),d=Kt(e,"fullDate");r=aa(ia(e,We.Full),[l,d]);break}return r&&(sa[n][t]=r),r}function aa(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function vt(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length0||a>-n)&&(a+=n),e===q.Hours)a===0&&n===-12&&(a=12);else if(e===q.FractionalSeconds)return E_(a,t);let c=ha(s,In.MinusSign);return vt(a,t,c,r,o)}}function b_(e,t){switch(e){case q.FullYear:return t.getFullYear();case q.Month:return t.getMonth();case q.Date:return t.getDate();case q.Hours:return t.getHours();case q.Minutes:return t.getMinutes();case q.Seconds:return t.getSeconds();case q.FractionalSeconds:return t.getMilliseconds();case q.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function ee(e,t,n=Re.Format,r=!1){return function(o,i){return I_(o,i,e,t,n,r)}}function I_(e,t,n,r,o,i){switch(n){case G.Months:return g_(t,o,r)[e.getMonth()];case G.Days:return p_(t,o,r)[e.getDay()];case G.DayPeriods:let s=e.getHours(),a=e.getMinutes();if(i){let u=v_(t),l=y_(t,o,r),d=u.findIndex(h=>{if(Array.isArray(h)){let[f,g]=h,C=s>=f.hours&&a>=f.minutes,_=s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case Xt.Short:return(o>=0?"+":"")+vt(s,2,i)+vt(Math.abs(o%60),2,i);case Xt.ShortGMT:return"GMT"+(o>=0?"+":"")+vt(s,1,i);case Xt.Long:return"GMT"+(o>=0?"+":"")+vt(s,2,i)+":"+vt(Math.abs(o%60),2,i);case Xt.Extended:return r===0?"Z":(o>=0?"+":"")+vt(s,2,i)+":"+vt(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}var __=0,la=4;function M_(e){let t=fa(e,__,1).getDay();return fa(e,0,1+(t<=la?la:la+7)-t)}function Om(e){let t=e.getDay(),n=t===0?-3:la-t;return fa(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Jl(e,t=!1){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=Om(n),s=M_(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return vt(o,e,ha(r,In.MinusSign))}}function ua(e,t=!1){return function(n,r){let i=Om(n).getFullYear();return vt(i,e,ha(r,In.MinusSign),t)}}var Xl={};function S_(e){if(Xl[e])return Xl[e];let t;switch(e){case"G":case"GG":case"GGG":t=ee(G.Eras,K.Abbreviated);break;case"GGGG":t=ee(G.Eras,K.Wide);break;case"GGGGG":t=ee(G.Eras,K.Narrow);break;case"y":t=ge(q.FullYear,1,0,!1,!0);break;case"yy":t=ge(q.FullYear,2,0,!0,!0);break;case"yyy":t=ge(q.FullYear,3,0,!1,!0);break;case"yyyy":t=ge(q.FullYear,4,0,!1,!0);break;case"Y":t=ua(1);break;case"YY":t=ua(2,!0);break;case"YYY":t=ua(3);break;case"YYYY":t=ua(4);break;case"M":case"L":t=ge(q.Month,1,1);break;case"MM":case"LL":t=ge(q.Month,2,1);break;case"MMM":t=ee(G.Months,K.Abbreviated);break;case"MMMM":t=ee(G.Months,K.Wide);break;case"MMMMM":t=ee(G.Months,K.Narrow);break;case"LLL":t=ee(G.Months,K.Abbreviated,Re.Standalone);break;case"LLLL":t=ee(G.Months,K.Wide,Re.Standalone);break;case"LLLLL":t=ee(G.Months,K.Narrow,Re.Standalone);break;case"w":t=Jl(1);break;case"ww":t=Jl(2);break;case"W":t=Jl(1,!0);break;case"d":t=ge(q.Date,1);break;case"dd":t=ge(q.Date,2);break;case"c":case"cc":t=ge(q.Day,1);break;case"ccc":t=ee(G.Days,K.Abbreviated,Re.Standalone);break;case"cccc":t=ee(G.Days,K.Wide,Re.Standalone);break;case"ccccc":t=ee(G.Days,K.Narrow,Re.Standalone);break;case"cccccc":t=ee(G.Days,K.Short,Re.Standalone);break;case"E":case"EE":case"EEE":t=ee(G.Days,K.Abbreviated);break;case"EEEE":t=ee(G.Days,K.Wide);break;case"EEEEE":t=ee(G.Days,K.Narrow);break;case"EEEEEE":t=ee(G.Days,K.Short);break;case"a":case"aa":case"aaa":t=ee(G.DayPeriods,K.Abbreviated);break;case"aaaa":t=ee(G.DayPeriods,K.Wide);break;case"aaaaa":t=ee(G.DayPeriods,K.Narrow);break;case"b":case"bb":case"bbb":t=ee(G.DayPeriods,K.Abbreviated,Re.Standalone,!0);break;case"bbbb":t=ee(G.DayPeriods,K.Wide,Re.Standalone,!0);break;case"bbbbb":t=ee(G.DayPeriods,K.Narrow,Re.Standalone,!0);break;case"B":case"BB":case"BBB":t=ee(G.DayPeriods,K.Abbreviated,Re.Format,!0);break;case"BBBB":t=ee(G.DayPeriods,K.Wide,Re.Format,!0);break;case"BBBBB":t=ee(G.DayPeriods,K.Narrow,Re.Format,!0);break;case"h":t=ge(q.Hours,1,-12);break;case"hh":t=ge(q.Hours,2,-12);break;case"H":t=ge(q.Hours,1);break;case"HH":t=ge(q.Hours,2);break;case"m":t=ge(q.Minutes,1);break;case"mm":t=ge(q.Minutes,2);break;case"s":t=ge(q.Seconds,1);break;case"ss":t=ge(q.Seconds,2);break;case"S":t=ge(q.FractionalSeconds,1);break;case"SS":t=ge(q.FractionalSeconds,2);break;case"SSS":t=ge(q.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=ca(Xt.Short);break;case"ZZZZZ":t=ca(Xt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=ca(Xt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=ca(Xt.Long);break;default:return null}return Xl[e]=t,t}function km(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function T_(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function A_(e,t,n){let r=n?-1:1,o=e.getTimezoneOffset(),i=km(t,o);return T_(e,r*(i-o))}function N_(e){if(Im(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return fa(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(D_))return x_(r)}let t=new Date(e);if(!Im(t))throw new Error(`Unable to convert "${e}" into a date`);return t}function x_(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,u),t}function Im(e){return e instanceof Date&&!isNaN(e.valueOf())}function pa(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var ed=class{$implicit;ngForOf;index;count;constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}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}},ot=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o}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 r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new ed(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),_m(a,o)}});for(let o=0,i=r.length;o{let i=r.get(o.currentIndex);_m(i,o)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(y(Cn),y(Zn),y(Ql))};static \u0275dir=de({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function _m(e,t){e.context.$implicit=t.item}var it=(()=>{class e{_viewContainer;_context=new td;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(n,r){this._viewContainer=n,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Mm("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Mm("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 ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(y(Cn),y(Zn))};static \u0275dir=de({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),td=class{$implicit=null;ngIf=null};function Mm(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${Ae(t)}'.`)}function Fm(e,t){return new b(2100,!1)}var nd=class{createSubscription(t,n){return mt(()=>t.subscribe({next:n,error:r=>{throw r}}))}dispose(t){mt(()=>t.unsubscribe())}},rd=class{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}},R_=new rd,O_=new nd,_n=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(n){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,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(wn(n))return R_;if(Zl(n))return O_;throw Fm(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(r){return new(r||e)(y(bn,16))};static \u0275pipe=So({name:"async",type:e,pure:!1})}return e})();var k_="mediumDate",F_=new v(""),P_=new v(""),Pm=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??k_,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return w_(n,s,i||this.locale,a)}catch(s){throw Fm(e,s.message)}}static \u0275fac=function(r){return new(r||e)(y(na,16),y(F_,24),y(P_,24))};static \u0275pipe=So({name:"date",type:e,pure:!0})}return e})();var Vr=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=ne({type:e});static \u0275inj=te({})}return e})(),ld="browser",L_="server";function V_(e){return e===ld}function ga(e){return e===L_}var Lm=(()=>{class e{static \u0275prov=D({token:e,providedIn:"root",factory:()=>V_(p(Yt))?new od(p(_e),window):new id})}return e})(),od=class{document;window;offset=()=>[0,0];constructor(t,n){this.document=t,this.window=n}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(t){this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){let n=j_(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){this.window.history.scrollRestoration=t}scrollToElement(t){let n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}};function j_(e,t){let n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),o=r.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}var id=class{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}},Pr=class{};var xo=class{},va=class{},tn=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` -`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var fd=class{encodeKey(t){return Vm(t)}encodeValue(t){return Vm(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function B_(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var U_=/%(\d[a-f0-9])/gi,$_={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Vm(e){return encodeURIComponent(e).replace(U_,(t,n)=>$_[n]??t)}function ma(e){return`${e}`}var Sn=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new fd,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=B_(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(ma):[ma(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(ma(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(ma(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var hd=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function H_(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function jm(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Bm(e){return typeof Blob<"u"&&e instanceof Blob}function Um(e){return typeof FormData<"u"&&e instanceof FormData}function z_(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var No=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(H_(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new tn,this.context??=new hd,!this.params)this.params=new Sn,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":ah.set(f,t.setHeaders[f]),u)),t.setParams&&(l=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),l)),new e(n,r,s,{params:l,headers:u,context:d,reportProgress:c,responseType:o,withCredentials:a,transferCache:i})}},Tn=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Tn||{}),Ro=class{headers;status;statusText;url;ok;type;constructor(t,n=200,r="OK"){this.headers=t.headers||new tn,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},ya=class e extends Ro{constructor(t={}){super(t)}type=Tn.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Oo=class e extends Ro{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Tn.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Mn=class extends Ro{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},qm=200,G_=204;function dd(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var md=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof No)i=n;else{let c;o.headers instanceof tn?c=o.headers:c=new tn(o.headers);let u;o.params&&(o.params instanceof Sn?u=o.params:u=new Sn({fromObject:o.params})),i=new No(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let s=M(i).pipe(Lt(c=>this.handler.handle(c)));if(n instanceof No||o.observe==="events")return s;let a=s.pipe(Ee(c=>c instanceof Oo));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.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 a.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 a.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 a.pipe(A(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new Sn().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,dd(o,r))}post(n,r,o={}){return this.request("POST",n,dd(o,r))}put(n,r,o={}){return this.request("PUT",n,dd(o,r))}static \u0275fac=function(r){return new(r||e)(I(xo))};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})(),q_=/^\)\]\}',?\n/,W_="X-Request-URL";function $m(e){if(e.url)return e.url;let t=W_.toLocaleLowerCase();return e.headers.get(t)}var Z_=(()=>{class e{fetchImpl=p(pd,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=p(Z);handle(n){return new U(r=>{let o=new AbortController;return this.doRequest(n,o.signal,r).then(gd,i=>r.error(new Mn({error:i}))),()=>o.abort()})}doRequest(n,r,o){return ro(this,null,function*(){let i=this.createRequestInit(n),s;try{let f=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,m({signal:r},i)));Y_(f),o.next({type:Tn.Sent}),s=yield f}catch(f){o.error(new Mn({error:f,status:f.status??0,statusText:f.statusText,url:n.urlWithParams,headers:f.headers}));return}let a=new tn(s.headers),c=s.statusText,u=$m(s)??n.urlWithParams,l=s.status,d=null;if(n.reportProgress&&o.next(new ya({headers:a,status:l,statusText:c,url:u})),s.body){let f=s.headers.get("content-length"),g=[],C=s.body.getReader(),_=0,F,ue,H=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>ro(this,null,function*(){for(;;){let{done:ke,value:me}=yield C.read();if(ke)break;if(g.push(me),_+=me.length,n.reportProgress){ue=n.responseType==="text"?(ue??"")+(F??=new TextDecoder).decode(me,{stream:!0}):void 0;let Ft=()=>o.next({type:Tn.DownloadProgress,total:f?+f:void 0,loaded:_,partialText:ue});H?H.run(Ft):Ft()}}}));let we=this.concatChunks(g,_);try{let ke=s.headers.get("Content-Type")??"";d=this.parseBody(n,we,ke)}catch(ke){o.error(new Mn({error:ke,headers:new tn(s.headers),status:s.status,statusText:s.statusText,url:$m(s)??n.urlWithParams}));return}}l===0&&(l=d?qm:0),l>=200&&l<300?(o.next(new Oo({body:d,headers:a,status:l,statusText:c,url:u})),o.complete()):o.error(new Mn({error:d,headers:a,status:l,statusText:c,url:u}))})}parseBody(n,r,o){switch(n.responseType){case"json":let i=new TextDecoder().decode(r).replace(q_,"");return i===""?null:JSON.parse(i);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let i=n.detectContentTypeHeader();i!==null&&(r["Content-Type"]=i)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o}}concatChunks(n,r){let o=new Uint8Array(r),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})(),pd=class{};function gd(){}function Y_(e){e.then(gd,gd)}function Wm(e,t){return t(e)}function Q_(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}function K_(e,t,n){return(r,o)=>Le(n,()=>t(r,i=>e(i,o)))}var vd=new v(""),yd=new v(""),J_=new v(""),Zm=new v("",{providedIn:"root",factory:()=>!0});function X_(){let e=null;return(t,n)=>{e===null&&(e=(p(vd,{optional:!0})??[]).reduceRight(Q_,Wm));let r=p(Zt);if(p(Zm)){let i=r.add();return e(t,n).pipe(ln(()=>r.remove(i)))}else return e(t,n)}}var Hm=(()=>{class e extends xo{backend;injector;chain=null;pendingTasks=p(Zt);contributeToStability=p(Zm);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(yd),...this.injector.get(J_,[])]));this.chain=r.reduceRight((o,i)=>K_(o,i,this.injector),Wm)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(ln(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(I(va),I(Ne))};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})();var e0=/^\)\]\}',?\n/;function t0(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var zm=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new b(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?J(r.\u0275loadImpl()):M(null)).pipe(De(()=>new U(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((C,_)=>s.setRequestHeader(C,_.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let C=n.detectContentTypeHeader();C!==null&&s.setRequestHeader("Content-Type",C)}if(n.responseType){let C=n.responseType.toLowerCase();s.responseType=C!=="json"?C:"text"}let a=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let C=s.statusText||"OK",_=new tn(s.getAllResponseHeaders()),F=t0(s)||n.url;return c=new ya({headers:_,status:s.status,statusText:C,url:F}),c},l=()=>{let{headers:C,status:_,statusText:F,url:ue}=u(),H=null;_!==G_&&(H=typeof s.response>"u"?s.responseText:s.response),_===0&&(_=H?qm:0);let we=_>=200&&_<300;if(n.responseType==="json"&&typeof H=="string"){let ke=H;H=H.replace(e0,"");try{H=H!==""?JSON.parse(H):null}catch(me){H=ke,we&&(we=!1,H={error:me,text:H})}}we?(i.next(new Oo({body:H,headers:C,status:_,statusText:F,url:ue||void 0})),i.complete()):i.error(new Mn({error:H,headers:C,status:_,statusText:F,url:ue||void 0}))},d=C=>{let{url:_}=u(),F=new Mn({error:C,status:s.status||0,statusText:s.statusText||"Unknown Error",url:_||void 0});i.error(F)},h=!1,f=C=>{h||(i.next(u()),h=!0);let _={type:Tn.DownloadProgress,loaded:C.loaded};C.lengthComputable&&(_.total=C.total),n.responseType==="text"&&s.responseText&&(_.partialText=s.responseText),i.next(_)},g=C=>{let _={type:Tn.UploadProgress,loaded:C.loaded};C.lengthComputable&&(_.total=C.total),i.next(_)};return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",f),a!==null&&s.upload&&s.upload.addEventListener("progress",g)),s.send(a),i.next({type:Tn.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",f),a!==null&&s.upload&&s.upload.removeEventListener("progress",g)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(I(Pr))};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})(),Ym=new v(""),n0="XSRF-TOKEN",r0=new v("",{providedIn:"root",factory:()=>n0}),o0="X-XSRF-TOKEN",i0=new v("",{providedIn:"root",factory:()=>o0}),Da=class{},s0=(()=>{class e{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=pa(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)(I(_e),I(Yt),I(r0))};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})();function a0(e,t){let n=e.url.toLowerCase();if(!p(Ym)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=p(Da).getToken(),o=p(i0);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var Qm=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(Qm||{});function c0(e,t){return{\u0275kind:e,\u0275providers:t}}function Km(...e){let t=[md,zm,Hm,{provide:xo,useExisting:Hm},{provide:va,useFactory:()=>p(Z_,{optional:!0})??p(zm)},{provide:yd,useValue:a0,multi:!0},{provide:Ym,useValue:!0},{provide:Da,useClass:s0}];for(let n of e)t.push(...n.\u0275providers);return ks(t)}var Gm=new v("");function Jm(){return c0(Qm.LegacyInterceptors,[{provide:Gm,useFactory:X_},{provide:yd,useExisting:Gm,multi:!0}])}var Cd=class extends da{supportsDOMEvents=!0},wd=class e extends Cd{static makeCurrent(){Tm(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=l0();return n==null?null:d0(n)}resetBaseElement(){ko=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return pa(document.cookie,t)}},ko=null;function l0(){return ko=ko||document.querySelector("base"),ko?ko.getAttribute("href"):null}function d0(e){return new URL(e,document.baseURI).pathname}var Ed=class{addToWindow(t){Se.getAngularTestability=(r,o=!0)=>{let i=t.findTestabilityInTree(r,o);if(i==null)throw new b(5103,!1);return i},Se.getAllAngularTestabilities=()=>t.getAllTestabilities(),Se.getAllAngularRootElements=()=>t.getAllRootElements();let n=r=>{let o=Se.getAllAngularTestabilities(),i=o.length,s=function(){i--,i==0&&r()};o.forEach(a=>{a.whenStable(s)})};Se.frameworkStabilizers||(Se.frameworkStabilizers=[]),Se.frameworkStabilizers.push(n)}findTestabilityInTree(t,n,r){if(n==null)return null;let o=t.getTestability(n);return o??(r?xt().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},f0=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})(),bd=new v(""),ov=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new b(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(I(bd),I(Z))};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})(),wa=class{_doc;constructor(t){this._doc=t}manager},Ca="ng-app-id";function Xm(e){for(let t of e)t.remove()}function ev(e,t){let n=t.createElement("style");return n.textContent=e,n}function h0(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Ca}="${t}"],link[${Ca}="${t}"]`);if(o)for(let i of o)i.removeAttribute(Ca),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function Id(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var iv=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.isServer=ga(i),h0(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,ev);r?.forEach(o=>this.addUsage(o,this.external,Id))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(Xm(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Xm(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,ev(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Id(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(Ca,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(I(_e),I(Ml),I(Tl,8),I(Yt))};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})(),Dd={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Md=/%COMP%/g,sv="%COMP%",p0=`_nghost-${sv}`,g0=`_ngcontent-${sv}`,m0=!0,v0=new v("",{providedIn:"root",factory:()=>m0});function y0(e){return g0.replace(Md,e)}function D0(e){return p0.replace(Md,e)}function av(e,t){return t.map(n=>n.replace(Md,e))}var tv=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,c,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.platformIsServer=ga(a),this.defaultRenderer=new Fo(n,s,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===_t.ShadowDom&&(r=j(m({},r),{encapsulation:_t.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof Ea?o.applyToHost(n):o instanceof Po&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case _t.Emulated:i=new Ea(c,u,r,this.appId,l,s,a,d);break;case _t.ShadowDom:return new _d(c,u,n,r,s,a,this.nonce,d);default:i=new Po(c,u,r,l,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(r){return new(r||e)(I(ov),I(iv),I(Ml),I(v0),I(_e),I(Yt),I(Z),I(Tl))};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})(),Fo=class{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(Dd[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(nv(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(nv(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new b(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=Dd[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Dd[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(Ht.DashCase|Ht.Important)?t.style.setProperty(n,r,o&Ht.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Ht.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=xt().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function nv(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var _d=class extends Fo{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,c){super(t,i,s,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=av(o.id,o.styles);for(let d of u){let h=document.createElement("style");a&&h.setAttribute("nonce",a),h.textContent=d,this.shadowRoot.appendChild(h)}let l=o.getExternalStyles?.();if(l)for(let d of l){let h=Id(d,i);a&&h.setAttribute("nonce",a),this.shadowRoot.appendChild(h)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Po=class extends Fo{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=c?av(c,r.styles):r.styles,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Ea=class extends Po{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=y0(u),this.hostAttr=D0(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},C0=(()=>{class e extends wa{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}static \u0275fac=function(r){return new(r||e)(I(_e))};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})(),rv=["alt","control","meta","shift"],w0={"\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"},E0={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},b0=(()=>{class e extends wa{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o){let i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>xt().onAndCancel(n,i.domEventName,s))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),rv.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=w0[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),rv.forEach(s=>{if(s!==o){let a=E0[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(I(_e))};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})();function I0(){wd.makeCurrent()}function _0(){return new $t}function M0(){return lg(document),document}var S0=[{provide:Yt,useValue:ld},{provide:Sl,useValue:I0,multi:!0},{provide:_e,useFactory:M0,deps:[]}],cv=Yl(Dm,"browser",S0),T0=new v(""),A0=[{provide:To,useClass:Ed,deps:[]},{provide:ql,useClass:Ys,deps:[Z,Qs,To]},{provide:Ys,useClass:Ys,deps:[Z,Qs,To]}],N0=[{provide:Fs,useValue:"root"},{provide:$t,useFactory:_0,deps:[]},{provide:bd,useClass:C0,multi:!0,deps:[_e,Z,Yt]},{provide:bd,useClass:b0,multi:!0,deps:[_e]},tv,iv,ov,{provide:_r,useExisting:tv},{provide:Pr,useClass:f0,deps:[]},[]],uv=(()=>{class e{constructor(n){}static \u0275fac=function(r){return new(r||e)(I(T0,12))};static \u0275mod=ne({type:e});static \u0275inj=te({providers:[...N0,...A0],imports:[Vr,Cm]})}return e})();var lv=(()=>{class e{_doc;constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static \u0275fac=function(r){return new(r||e)(I(_e))};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var k="primary",Qo=Symbol("RouteTitle"),xd=class{params;constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function zr(e){return new xd(e)}function x0(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.lengthr[i]===o)}else return e===t}function bv(e){return e.length>0?e[e.length-1]:null}function Nn(e){return Uc(e)?e:wn(e)?J(Promise.resolve(e)):M(e)}var O0={exact:_v,subset:Mv},Iv={exact:k0,subset:F0,ignored:()=>!0};function fv(e,t,n){return O0[n.paths](e.root,t.root,n.matrixParams)&&Iv[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function k0(e,t){return Ot(e,t)}function _v(e,t,n){if(!Jn(e.segments,t.segments)||!_a(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!_v(e.children[r],t.children[r],n))return!1;return!0}function F0(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Ev(e[n],t[n]))}function Mv(e,t,n){return Sv(e,t,t.segments,n)}function Sv(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!Jn(o,n)||t.hasChildren()||!_a(o,n,r))}else if(e.segments.length===n.length){if(!Jn(e.segments,n)||!_a(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!Mv(e.children[o],t.children[o],r))return!1;return!0}else{let o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!Jn(e.segments,o)||!_a(e.segments,o,r)||!e.children[k]?!1:Sv(e.children[k],t,i,r)}}function _a(e,t,n){return t.every((r,o)=>Iv[n](e[o].parameters,r.parameters))}var rn=class{root;queryParams;fragment;_queryParamMap;constructor(t=new W([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=zr(this.queryParams),this._queryParamMap}toString(){return V0.serialize(this)}},W=class{segments;children;parent=null;constructor(t,n){this.segments=t,this.children=n,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ma(this)}},Kn=class{path;parameters;_parameterMap;constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=zr(this.parameters),this._parameterMap}toString(){return Av(this)}};function P0(e,t){return Jn(e,t)&&e.every((n,r)=>Ot(n.parameters,t[r].parameters))}function Jn(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function L0(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===k&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==k&&(n=n.concat(t(o,r)))}),n}var Ko=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:()=>new Gr,providedIn:"root"})}return e})(),Gr=class{parse(t){let n=new kd(t);return new rn(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Lo(t.root,!0)}`,r=U0(t.queryParams),o=typeof t.fragment=="string"?`#${j0(t.fragment)}`:"";return`${n}${r}${o}`}},V0=new Gr;function Ma(e){return e.segments.map(t=>Av(t)).join("/")}function Lo(e,t){if(!e.hasChildren())return Ma(e);if(t){let n=e.children[k]?Lo(e.children[k],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==k&&r.push(`${o}:${Lo(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=L0(e,(r,o)=>o===k?[Lo(e.children[k],!1)]:[`${o}:${Lo(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[k]!=null?`${Ma(e)}/${n[0]}`:`${Ma(e)}/(${n.join("//")})`}}function Tv(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ba(e){return Tv(e).replace(/%3B/gi,";")}function j0(e){return encodeURI(e)}function Od(e){return Tv(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Sa(e){return decodeURIComponent(e)}function hv(e){return Sa(e.replace(/\+/g,"%20"))}function Av(e){return`${Od(e.path)}${B0(e.parameters)}`}function B0(e){return Object.entries(e).map(([t,n])=>`;${Od(t)}=${Od(n)}`).join("")}function U0(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${ba(n)}=${ba(o)}`).join("&"):`${ba(n)}=${ba(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var $0=/^[^\/()?;#]+/;function Sd(e){let t=e.match($0);return t?t[0]:""}var H0=/^[^\/()?;=#]+/;function z0(e){let t=e.match(H0);return t?t[0]:""}var G0=/^[^=?&#]+/;function q0(e){let t=e.match(G0);return t?t[0]:""}var W0=/^[^&#]+/;function Z0(e){let t=e.match(W0);return t?t[0]:""}var kd=class{url;remaining;constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new W([],{}):new W([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[k]=new W(t,n)),r}parseSegment(){let t=Sd(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(t),new Kn(Sa(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=z0(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=Sd(this.remaining);o&&(r=o,this.capture(r))}t[Sa(n)]=Sa(r)}parseQueryParam(t){let n=q0(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=Z0(this.remaining);s&&(r=s,this.capture(r))}let o=hv(n),i=hv(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Sd(this.remaining),o=this.remaining[r.length];if(o!=="/"&&o!==")"&&o!==";")throw new b(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=k);let s=this.parseChildren();n[i]=Object.keys(s).length===1?s[k]:new W([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new b(4011,!1)}};function Nv(e){return e.segments.length>0?new W([],{[k]:e}):e}function xv(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=xv(o);if(r===k&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}let n=new W(e.segments,t);return Y0(n)}function Y0(e){if(e.numberOfChildren===1&&e.children[k]){let t=e.children[k];return new W(e.segments.concat(t.segments),t.children)}return e}function Xn(e){return e instanceof rn}function Q0(e,t,n=null,r=null){let o=Rv(e);return Ov(o,t,n,r)}function Rv(e){let t;function n(i){let s={};for(let c of i.children){let u=n(c);s[c.outlet]=u}let a=new W(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=Nv(r);return t??o}function Ov(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(t.length===0)return Td(o,o,o,n,r);let i=K0(t);if(i.toRoot())return Td(o,o,new W([],{}),n,r);let s=J0(i,o,e),a=s.processChildren?Bo(s.segmentGroup,s.index,i.commands):Fv(s.segmentGroup,s.index,i.commands);return Td(o,s.segmentGroup,a,n,r)}function Ta(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Ho(e){return typeof e=="object"&&e!=null&&e.outlets}function Td(e,t,n,r,o){let i={};r&&Object.entries(r).forEach(([c,u])=>{i[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;e===t?s=n:s=kv(e,t,n);let a=Nv(xv(s));return new rn(a,i,o)}function kv(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=kv(i,t,n)}),new W(e.segments,r)}var Aa=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Ta(r[0]))throw new b(4003,!1);let o=r.find(Ho);if(o&&o!==bv(r))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function K0(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Aa(!0,0,e);let t=0,n=!1,r=e.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?t++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new Aa(n,t,r)}var Ur=class{segmentGroup;processChildren;index;constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function J0(e,t,n){if(e.isAbsolute)return new Ur(t,!0,0);if(!n)return new Ur(t,!1,NaN);if(n.parent===null)return new Ur(n,!0,0);let r=Ta(e.commands[0])?0:1,o=n.segments.length-1+r;return X0(n,o,e.numberOfDoubleDots)}function X0(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new b(4005,!1);o=r.segments.length}return new Ur(r,!1,o-i)}function eM(e){return Ho(e[0])?e[0].outlets:{[k]:e}}function Fv(e,t,n){if(e??=new W([],{}),e.segments.length===0&&e.hasChildren())return Bo(e,t,n);let r=tM(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndexi!==k)&&e.children[k]&&e.numberOfChildren===1&&e.children[k].segments.length===0){let i=Bo(e.children[k],t,n);return new W(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=Fv(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new W(e.segments,o)}}function tM(e,t,n){let r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;let s=e.segments[o],a=n[r];if(Ho(a))break;let c=`${a}`,u=r0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!gv(c,u,s))return i;r+=2}else{if(!gv(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function Fd(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Fd(new W([],{}),0,r))}),t}function pv(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function gv(e,t,n){return e==n.path&&Ot(t,n.parameters)}var Uo="imperative",Ce=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(Ce||{}),st=class{id;url;constructor(t,n){this.id=t,this.url=n}},qr=class extends st{type=Ce.NavigationStart;navigationTrigger;restoredState;constructor(t,n,r="imperative",o=null){super(t,n),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Dt=class extends st{urlAfterRedirects;type=Ce.NavigationEnd;constructor(t,n,r){super(t,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Ye=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(Ye||{}),Na=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(Na||{}),nn=class extends st{reason;code;type=Ce.NavigationCancel;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},An=class extends st{reason;code;type=Ce.NavigationSkipped;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}},zo=class extends st{error;target;type=Ce.NavigationError;constructor(t,n,r,o){super(t,n),this.error=r,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},xa=class extends st{urlAfterRedirects;state;type=Ce.RoutesRecognized;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Pd=class extends st{urlAfterRedirects;state;type=Ce.GuardsCheckStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ld=class extends st{urlAfterRedirects;state;shouldActivate;type=Ce.GuardsCheckEnd;constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Vd=class extends st{urlAfterRedirects;state;type=Ce.ResolveStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},jd=class extends st{urlAfterRedirects;state;type=Ce.ResolveEnd;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Bd=class{route;type=Ce.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ud=class{route;type=Ce.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},$d=class{snapshot;type=Ce.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Hd=class{snapshot;type=Ce.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},zd=class{snapshot;type=Ce.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Gd=class{snapshot;type=Ce.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ra=class{routerEvent;position;anchor;type=Ce.Scroll;constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},Go=class{},Wr=class{url;navigationBehaviorOptions;constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function rM(e,t){return e.providers&&!e._injector&&(e._injector=Ws(e.providers,t,`Route: ${e.path}`)),e._injector??t}function yt(e){return e.outlet||k}function oM(e,t){let n=e.filter(r=>yt(r)===t);return n.push(...e.filter(r=>yt(r)!==t)),n}function Jo(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var qd=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Jo(this.route?.snapshot)??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new Xo(this.rootInjector)}},Xo=(()=>{class e{rootInjector;contexts=new Map;constructor(n){this.rootInjector=n}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new qd(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static \u0275fac=function(r){return new(r||e)(I(Ne))};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Oa=class{_root;constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=Wd(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Wd(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=Zd(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Zd(t,this._root).map(n=>n.value)}};function Wd(e,t){if(e===t.value)return t;for(let n of t.children){let r=Wd(e,n);if(r)return r}return null}function Zd(e,t){if(e===t.value)return[t];for(let n of t.children){let r=Zd(e,n);if(r.length)return r.unshift(t),r}return[]}var Ze=class{value;children;constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function Br(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var ka=class extends Oa{snapshot;constructor(t,n){super(t),this.snapshot=n,rf(this,t)}toString(){return this.snapshot.toString()}};function Pv(e){let t=iM(e),n=new ye([new Kn("",{})]),r=new ye({}),o=new ye({}),i=new ye({}),s=new ye(""),a=new Ct(n,r,i,s,o,k,e,t.root);return a.snapshot=t.root,new ka(new Ze(a,[]),t)}function iM(e){let t={},n={},r={},o="",i=new $r([],t,r,o,n,k,e,null,{});return new Pa("",new Ze(i,[]))}var Ct=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(t,n,r,o,i,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(A(u=>u[Qo]))??M(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(A(t=>zr(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(A(t=>zr(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Fa(e,t,n="emptyOnly"){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:m(m({},t.params),e.params),data:m(m({},t.data),e.data),resolve:m(m(m(m({},e.data),t.data),o?.data),e._resolvedData)}:r={params:m({},e.params),data:m({},e.data),resolve:m(m({},e.data),e._resolvedData??{})},o&&Vv(o)&&(r.resolve[Qo]=o.title),r}var $r=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Qo]}constructor(t,n,r,o,i,s,a,c,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=zr(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=zr(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},Pa=class extends Oa{url;constructor(t,n){super(n),this.url=t,rf(this,n)}toString(){return Lv(this._root)}};function rf(e,t){t.value._routerState=e,t.children.forEach(n=>rf(e,n))}function Lv(e){let t=e.children.length>0?` { ${e.children.map(Lv).join(", ")} } `:"";return`${e.value}${t}`}function Ad(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Ot(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Ot(t.params,n.params)||e.paramsSubject.next(n.params),R0(t.url,n.url)||e.urlSubject.next(n.url),Ot(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Yd(e,t){let n=Ot(e.params,t.params)&&P0(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||Yd(e.parent,t.parent))}function Vv(e){return typeof e.title=="string"||e.title===null}var sM=new v(""),of=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=k;activateEvents=new le;deactivateEvents=new le;attachEvents=new le;detachEvents=new le;routerOutletData=rg(void 0);parentContexts=p(Xo);location=p(Cn);changeDetector=p(bn);inputBinder=p(Ua,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new b(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new b(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new b(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new b(4013,!1);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Qd(n,a,o.injector,this.routerOutletData);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=de({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Tt]})}return e})(),Qd=class e{route;childContexts;parent;outletData;__ngOutletInjector(t){return new e(this.route,this.childContexts,t,this.outletData)}constructor(t,n,r,o){this.route=t,this.childContexts=n,this.parent=r,this.outletData=o}get(t,n){return t===Ct?this.route:t===Xo?this.childContexts:t===sM?this.outletData:this.parent.get(t,n)}},Ua=new v(""),mv=(()=>{class e{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:r}=n,o=co([r.queryParams,r.params,r.data]).pipe(De(([i,s,a],c)=>(a=m(m(m({},i),s),a),c===0?M(a):Promise.resolve(a)))).subscribe(i=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(n);return}let s=wm(r.component);if(!s){this.unsubscribeFromRouteData(n);return}for(let{templateName:a}of s.inputs)n.activatedComponentRef.setInput(a,i[a])});this.outletDataSubscriptions.set(n,o)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})();function aM(e,t,n){let r=qo(e,t._root,n?n._root:void 0);return new ka(r,t)}function qo(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=cM(e,t,n);return new Ze(r,o)}else{if(e.shouldAttach(t.value)){let i=e.retrieve(t.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>qo(e,a)),s}}let r=uM(t.value),o=t.children.map(i=>qo(e,i));return new Ze(r,o)}}function cM(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return qo(e,r,o);return qo(e,r)})}function uM(e){return new Ct(new ye(e.url),new ye(e.params),new ye(e.queryParams),new ye(e.fragment),new ye(e.data),e.outlet,e.component,e)}var Wo=class{redirectTo;navigationBehaviorOptions;constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},jv="ngNavigationCancelingError";function La(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Xn(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=Bv(!1,Ye.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function Bv(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[jv]=!0,n.cancellationCode=t,n}function lM(e){return Uv(e)&&Xn(e.url)}function Uv(e){return!!e&&e[jv]}var dM=(e,t,n,r)=>A(o=>(new Kd(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)),Kd=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Ad(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=Br(n);t.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(o===i)if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Br(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Br(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let o=Br(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Gd(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Hd(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(Ad(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Ad(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},Va=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Hr=class{component;route;constructor(t,n){this.component=t,this.route=n}};function fM(e,t,n){let r=e._root,o=t?t._root:null;return Vo(r,o,n,[r.value])}function hM(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Yr(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!Jh(e)?e:t.get(e):r}function Vo(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=Br(t);return e.children.forEach(s=>{pM(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>$o(a,n.getContext(s),o)),o}function pM(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=gM(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new Va(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?Vo(e,t,a?a.children:null,r,o):Vo(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Hr(a.outlet.component,s))}else s&&$o(t,a,o),o.canActivateChecks.push(new Va(r)),i.component?Vo(e,null,a?a.children:null,r,o):Vo(e,null,n,r,o);return o}function gM(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!Jn(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Jn(e.url,t.url)||!Ot(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Yd(e,t)||!Ot(e.queryParams,t.queryParams);case"paramsChange":default:return!Yd(e,t)}}function $o(e,t,n){let r=Br(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?$o(s,t.children.getContext(i),n):$o(s,null,n):$o(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new Hr(t.outlet.component,o)):n.canDeactivateChecks.push(new Hr(null,o)):n.canDeactivateChecks.push(new Hr(null,o))}function ei(e){return typeof e=="function"}function mM(e){return typeof e=="boolean"}function vM(e){return e&&ei(e.canLoad)}function yM(e){return e&&ei(e.canActivate)}function DM(e){return e&&ei(e.canActivateChild)}function CM(e){return e&&ei(e.canDeactivate)}function wM(e){return e&&ei(e.canMatch)}function $v(e){return e instanceof Pt||e?.name==="EmptyError"}var Ia=Symbol("INITIAL_VALUE");function Zr(){return De(e=>co(e.map(t=>t.pipe(Vt(1),Zc(Ia)))).pipe(A(t=>{for(let n of t)if(n!==!0){if(n===Ia)return Ia;if(n===!1||EM(n))return n}return!0}),Ee(t=>t!==Ia),Vt(1)))}function EM(e){return Xn(e)||e instanceof Wo}function bM(e,t){return pe(n=>{let{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return s.length===0&&i.length===0?M(j(m({},n),{guardsResult:!0})):IM(s,r,o,e).pipe(pe(a=>a&&mM(a)?_M(r,i,e,t):M(a)),A(a=>j(m({},n),{guardsResult:a})))})}function IM(e,t,n,r){return J(e).pipe(pe(o=>NM(o.component,o.route,n,t,r)),jt(o=>o!==!0,!0))}function _M(e,t,n,r){return J(t).pipe(Lt(o=>lr(SM(o.route.parent,r),MM(o.route,r),AM(e,o.path,n),TM(e,o.route,n))),jt(o=>o!==!0,!0))}function MM(e,t){return e!==null&&t&&t(new zd(e)),M(!0)}function SM(e,t){return e!==null&&t&&t(new $d(e)),M(!0)}function TM(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return M(!0);let o=r.map(i=>$i(()=>{let s=Jo(t)??n,a=Yr(i,s),c=yM(a)?a.canActivate(t,e):Le(s,()=>a(t,e));return Nn(c).pipe(jt())}));return M(o).pipe(Zr())}function AM(e,t,n){let r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>hM(s)).filter(s=>s!==null).map(s=>$i(()=>{let a=s.guards.map(c=>{let u=Jo(s.node)??n,l=Yr(c,u),d=DM(l)?l.canActivateChild(r,e):Le(u,()=>l(r,e));return Nn(d).pipe(jt())});return M(a).pipe(Zr())}));return M(i).pipe(Zr())}function NM(e,t,n,r,o){let i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!i||i.length===0)return M(!0);let s=i.map(a=>{let c=Jo(t)??o,u=Yr(a,c),l=CM(u)?u.canDeactivate(e,t,n,r):Le(c,()=>u(e,t,n,r));return Nn(l).pipe(jt())});return M(s).pipe(Zr())}function xM(e,t,n,r){let o=t.canLoad;if(o===void 0||o.length===0)return M(!0);let i=o.map(s=>{let a=Yr(s,e),c=vM(a)?a.canLoad(t,n):Le(e,()=>a(t,n));return Nn(c)});return M(i).pipe(Zr(),Hv(r))}function Hv(e){return Pc(ie(t=>{if(typeof t!="boolean")throw La(e,t)}),A(t=>t===!0))}function RM(e,t,n,r){let o=t.canMatch;if(!o||o.length===0)return M(!0);let i=o.map(s=>{let a=Yr(s,e),c=wM(a)?a.canMatch(t,n):Le(e,()=>a(t,n));return Nn(c)});return M(i).pipe(Zr(),Hv(r))}var Zo=class{segmentGroup;constructor(t){this.segmentGroup=t||null}},Yo=class extends Error{urlTree;constructor(t){super(),this.urlTree=t}};function jr(e){return ur(new Zo(e))}function OM(e){return ur(new b(4e3,!1))}function kM(e){return ur(Bv(!1,Ye.GuardRejected))}var Jd=class{urlSerializer;urlTree;constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return M(r);if(o.numberOfChildren>1||!o.children[k])return OM(`${t.redirectTo}`);o=o.children[k]}}applyRedirectCommands(t,n,r,o,i){if(typeof n!="string"){let a=n,{queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,params:f,data:g,title:C}=o,_=Le(i,()=>a({params:f,data:g,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,title:C}));if(_ instanceof rn)throw new Yo(_);n=_}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new Yo(s);return s}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new rn(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){let i=this.createSegments(t,n.segments,r,o),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,o)}),new W(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new b(4001,!1);return o}findOrReturn(t,n){let r=0;for(let o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}},Xd={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function FM(e,t,n,r,o){let i=zv(e,t,n);return i.matched?(r=rM(t,r),RM(r,t,n,o).pipe(A(s=>s===!0?i:m({},Xd)))):M(i)}function zv(e,t,n){if(t.path==="**")return PM(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?m({},Xd):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||x0)(n,e,t);if(!o)return m({},Xd);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?m(m({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function PM(e){return{matched:!0,parameters:e.length>0?bv(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function vv(e,t,n,r){return n.length>0&&jM(e,n,r)?{segmentGroup:new W(t,VM(r,new W(n,e.children))),slicedSegments:[]}:n.length===0&&BM(e,n,r)?{segmentGroup:new W(e.segments,LM(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new W(e.segments,e.children),slicedSegments:n}}function LM(e,t,n,r){let o={};for(let i of n)if($a(e,t,i)&&!r[yt(i)]){let s=new W([],{});o[yt(i)]=s}return m(m({},r),o)}function VM(e,t){let n={};n[k]=t;for(let r of e)if(r.path===""&&yt(r)!==k){let o=new W([],{});n[yt(r)]=o}return n}function jM(e,t,n){return n.some(r=>$a(e,t,r)&&yt(r)!==k)}function BM(e,t,n){return n.some(r=>$a(e,t,r))}function $a(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function UM(e,t,n){return t.length===0&&!e.children[n]}var ef=class{};function $M(e,t,n,r,o,i,s="emptyOnly"){return new tf(e,t,n,r,o,s,i).recognize()}var HM=31,tf=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Jd(this.urlSerializer,this.urlTree)}noMatchError(t){return new b(4002,`'${t.segmentGroup}'`)}recognize(){let t=vv(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(A(({children:n,rootSnapshot:r})=>{let o=new Ze(r,n),i=new Pa("",o),s=Q0(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(t){let n=new $r([],Object.freeze({}),Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),k,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,k,n).pipe(A(r=>({children:r,rootSnapshot:n})),Ke(r=>{if(r instanceof Yo)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Zo?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,o,i){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,i):this.processSegment(t,n,r,r.segments,o,!0,i).pipe(A(s=>s instanceof Ze?[s]:[]))}processChildren(t,n,r,o){let i=[];for(let s of Object.keys(r.children))s==="primary"?i.unshift(s):i.push(s);return J(i).pipe(Lt(s=>{let a=r.children[s],c=oM(n,s);return this.processSegmentGroup(t,c,a,s,o)}),Wc((s,a)=>(s.push(...a),s)),un(null),qc(),pe(s=>{if(s===null)return jr(r);let a=Gv(s);return zM(a),M(a)}))}processSegment(t,n,r,o,i,s,a){return J(n).pipe(Lt(c=>this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a).pipe(Ke(u=>{if(u instanceof Zo)return M(null);throw u}))),jt(c=>!!c),Ke(c=>{if($v(c))return UM(r,o,i)?M(new ef):jr(r);throw c}))}processSegmentAgainstRoute(t,n,r,o,i,s,a,c){return yt(r)!==s&&(s===k||!$a(o,i,r))?jr(o):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,o,r,i,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,c):jr(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=zv(n,o,i);if(!c)return jr(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>HM&&(this.allowRedirects=!1));let f=new $r(i,u,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,yv(o),yt(o),o.component??o._loadedComponent??null,o,Dv(o)),g=Fa(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(g.params),f.data=Object.freeze(g.data);let C=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,f,t);return this.applyRedirects.lineralizeSegments(o,C).pipe(pe(_=>this.processSegment(t,r,n,_.concat(h),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a=FM(n,r,o,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(De(c=>c.matched?(t=r._injector??t,this.getChildConfig(t,r,o).pipe(De(({routes:u})=>{let l=r._loadedInjector??t,{parameters:d,consumedSegments:h,remainingSegments:f}=c,g=new $r(h,d,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,yv(r),yt(r),r.component??r._loadedComponent??null,r,Dv(r)),C=Fa(g,s,this.paramsInheritanceStrategy);g.params=Object.freeze(C.params),g.data=Object.freeze(C.data);let{segmentGroup:_,slicedSegments:F}=vv(n,h,f,u);if(F.length===0&&_.hasChildren())return this.processChildren(l,u,_,g).pipe(A(H=>new Ze(g,H)));if(u.length===0&&F.length===0)return M(new Ze(g,[]));let ue=yt(r)===i;return this.processSegment(l,u,_,F,ue?k:i,!0,g).pipe(A(H=>new Ze(g,H instanceof Ze?[H]:[])))}))):jr(n)))}getChildConfig(t,n,r){return n.children?M({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?M({routes:n._loadedRoutes,injector:n._loadedInjector}):xM(t,n,r,this.urlSerializer).pipe(pe(o=>o?this.configLoader.loadChildren(t,n).pipe(ie(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):kM(n))):M({routes:[],injector:t})}};function zM(e){e.sort((t,n)=>t.value.outlet===k?-1:n.value.outlet===k?1:t.value.outlet.localeCompare(n.value.outlet))}function GM(e){let t=e.value.routeConfig;return t&&t.path===""}function Gv(e){let t=[],n=new Set;for(let r of e){if(!GM(r)){t.push(r);continue}let o=t.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),n.add(o)):t.push(r)}for(let r of n){let o=Gv(r.children);t.push(new Ze(r.value,o))}return t.filter(r=>!n.has(r))}function yv(e){return e.data||{}}function Dv(e){return e.resolve||{}}function qM(e,t,n,r,o,i){return pe(s=>$M(e,t,n,r,s.extractedUrl,o,i).pipe(A(({state:a,tree:c})=>j(m({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function WM(e,t){return pe(n=>{let{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return M(n);let i=new Set(o.map(c=>c.route)),s=new Set;for(let c of i)if(!s.has(c))for(let u of qv(c))s.add(u);let a=0;return J(s).pipe(Lt(c=>i.has(c)?ZM(c,r,e,t):(c.data=Fa(c,c.parent,e).resolve,M(void 0))),ie(()=>a++),dr(1),pe(c=>a===s.size?M(n):$e))})}function qv(e){let t=e.children.map(n=>qv(n)).flat();return[e,...t]}function ZM(e,t,n,r){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!Vv(o)&&(i[Qo]=o.title),YM(i,e,t,r).pipe(A(s=>(e._resolvedData=s,e.data=Fa(e,e.parent,n).resolve,null)))}function YM(e,t,n,r){let o=Rd(e);if(o.length===0)return M({});let i={};return J(o).pipe(pe(s=>QM(e[s],t,n,r).pipe(jt(),ie(a=>{if(a instanceof Wo)throw La(new Gr,a);i[s]=a}))),dr(1),zc(i),Ke(s=>$v(s)?$e:ur(s)))}function QM(e,t,n,r){let o=Jo(t)??r,i=Yr(e,o),s=i.resolve?i.resolve(t,n):Le(o,()=>i(t,n));return Nn(s)}function Nd(e){return De(t=>{let n=e(t);return n?J(n).pipe(A(()=>t)):M(t)})}var Wv=(()=>{class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===k);return r}getResolvedTitleForRoute(n){return n.data[Qo]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:()=>p(KM),providedIn:"root"})}return e})(),KM=(()=>{class e extends Wv{title;constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||e)(I(lv))};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ti=new v("",{providedIn:"root",factory:()=>({})}),JM=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=se({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(r,o){r&1&&ae(0,"router-outlet")},dependencies:[of],encapsulation:2})}return e})();function sf(e){let t=e.children&&e.children.map(sf),n=t?j(m({},e),{children:t}):m({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==k&&(n.component=JM),n}var ja=new v(""),af=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(ta);loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return M(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=Nn(n.loadComponent()).pipe(A(Zv),ie(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),ln(()=>{this.componentLoaders.delete(n)})),o=new ar(r,()=>new oe).pipe(sr());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return M({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=XM(r,this.compiler,n,this.onLoadEndListener).pipe(ln(()=>{this.childrenLoaders.delete(r)})),s=new ar(i,()=>new oe).pipe(sr());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function XM(e,t,n,r){return Nn(e.loadChildren()).pipe(A(Zv),pe(o=>o instanceof Do||Array.isArray(o)?M(o):J(t.compileModuleAsync(o))),A(o=>{r&&r(e);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(n).injector,s=i.get(ja,[],{optional:!0,self:!0}).flat()),{routes:s.map(sf),injector:i}}))}function eS(e){return e&&typeof e=="object"&&"default"in e}function Zv(e){return eS(e)?e.default:e}var cf=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:()=>p(tS),providedIn:"root"})}return e})(),tS=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Yv=new v(""),Qv=new v("");function nS(e,t,n){let r=e.get(Qv),o=e.get(_e);return e.get(Z).runOutsideAngular(()=>{if(!o.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(u=>setTimeout(u));let i,s=new Promise(u=>{i=u}),a=o.startViewTransition(()=>(i(),rS(e))),{onViewTransitionCreated:c}=r;return c&&Le(e,()=>c({transition:a,from:t,to:n})),s})}function rS(e){return new Promise(t=>{Nl({read:()=>setTimeout(t)},{injector:e})})}var Kv=new v(""),uf=(()=>{class e{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new oe;transitionAbortSubject=new oe;configLoader=p(af);environmentInjector=p(Ne);urlSerializer=p(Ko);rootContexts=p(Xo);location=p(Lr);inputBindingEnabled=p(Ua,{optional:!0})!==null;titleStrategy=p(Wv);options=p(ti,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(cf);createViewTransition=p(Yv,{optional:!0});navigationErrorHandler=p(Kv,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>M(void 0);rootComponentType=null;constructor(){let n=o=>this.events.next(new Bd(o)),r=o=>this.events.next(new Ud(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(j(m(m({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,o){return this.transitions=new ye({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Uo,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ee(i=>i.id!==0),A(i=>j(m({},i),{extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),De(i=>{let s=!1,a=!1;return M(i).pipe(De(c=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",Ye.SupersededByNewNavigation),$e;this.currentTransition=i,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?j(m({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&l!=="reload"){let d="";return this.events.next(new An(c.id,this.urlSerializer.serialize(c.rawUrl),d,Na.IgnoredSameUrlNavigation)),c.resolve(!1),$e}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return M(c).pipe(De(d=>{let h=this.transitions?.getValue();return this.events.next(new qr(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?$e:Promise.resolve(d)}),qM(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),ie(d=>{i.targetSnapshot=d.targetSnapshot,i.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=j(m({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let h=new xa(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:d,extractedUrl:h,source:f,restoredState:g,extras:C}=c,_=new qr(d,this.urlSerializer.serialize(h),f,g);this.events.next(_);let F=Pv(this.rootComponentType).snapshot;return this.currentTransition=i=j(m({},c),{targetSnapshot:F,urlAfterRedirects:h,extras:j(m({},C),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,M(i)}else{let d="";return this.events.next(new An(c.id,this.urlSerializer.serialize(c.extractedUrl),d,Na.IgnoredByUrlHandlingStrategy)),c.resolve(!1),$e}}),ie(c=>{let u=new Pd(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),A(c=>(this.currentTransition=i=j(m({},c),{guards:fM(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),i)),bM(this.environmentInjector,c=>this.events.next(c)),ie(c=>{if(i.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw La(this.urlSerializer,c.guardsResult);let u=new Ld(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(u)}),Ee(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",Ye.GuardRejected),!1)),Nd(c=>{if(c.guards.canActivateChecks.length)return M(c).pipe(ie(u=>{let l=new Vd(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),De(u=>{let l=!1;return M(u).pipe(WM(this.paramsInheritanceStrategy,this.environmentInjector),ie({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(u,"",Ye.NoDataFromResolver)}}))}),ie(u=>{let l=new jd(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}))}),Nd(c=>{let u=l=>{let d=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(l.routeConfig).pipe(ie(h=>{l.component=h}),A(()=>{})));for(let h of l.children)d.push(...u(h));return d};return co(u(c.targetSnapshot.root)).pipe(un(null),Vt(1))}),Nd(()=>this.afterPreactivation()),De(()=>{let{currentSnapshot:c,targetSnapshot:u}=i,l=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return l?J(l).pipe(A(()=>i)):M(i)}),A(c=>{let u=aM(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=i=j(m({},c),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,i}),ie(()=>{this.events.next(new Go)}),dM(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Vt(1),ie({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Dt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),Yc(this.transitionAbortSubject.pipe(ie(c=>{throw c}))),ln(()=>{!s&&!a&&this.cancelNavigationTransition(i,"",Ye.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null)}),Ke(c=>{if(a=!0,Uv(c))this.events.next(new nn(i.id,this.urlSerializer.serialize(i.extractedUrl),c.message,c.cancellationCode)),lM(c)?this.events.next(new Wr(c.url,c.navigationBehaviorOptions)):i.resolve(!1);else{let u=new zo(i.id,this.urlSerializer.serialize(i.extractedUrl),c,i.targetSnapshot??void 0);try{let l=Le(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof Wo){let{message:d,cancellationCode:h}=La(this.urlSerializer,l);this.events.next(new nn(i.id,this.urlSerializer.serialize(i.extractedUrl),d,h)),this.events.next(new Wr(l.redirectTo,l.navigationBehaviorOptions))}else throw this.events.next(u),c}catch(l){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(l)}}return $e}))}))}cancelNavigationTransition(n,r,o){let i=new nn(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function oS(e){return e!==Uo}var iS=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:()=>p(sS),providedIn:"root"})}return e})(),nf=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},sS=(()=>{class e extends nf{static \u0275fac=(()=>{let n;return function(o){return(n||(n=Nr(e)))(o||e)}})();static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Jv=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:()=>p(aS),providedIn:"root"})}return e})(),aS=(()=>{class e extends Jv{location=p(Lr);urlSerializer=p(Ko);options=p(ti,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=p(cf);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new rn;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=Pv(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof qr)this.stateMemento=this.createStateMemento();else if(n instanceof An)this.rawUrlTree=r.initialUrl;else if(n instanceof xa){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??o,r)}}else n instanceof Go?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):n instanceof nn&&(n.code===Ye.GuardRejected||n.code===Ye.NoDataFromResolver)?this.restoreHistory(r):n instanceof zo?this.restoreHistory(r,!0):n instanceof Dt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let o=n instanceof rn?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let i=this.browserPageId,s=m(m({},r.extras.state),this.generateNgRouterState(r.id,i));this.location.replaceState(o,"",s)}else{let i=m(m({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",i)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.currentUrlTree===n.finalUrl&&i===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Nr(e)))(o||e)}})();static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),jo=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(jo||{});function Xv(e,t){e.events.pipe(Ee(n=>n instanceof Dt||n instanceof nn||n instanceof zo||n instanceof An),A(n=>n instanceof Dt||n instanceof An?jo.COMPLETE:(n instanceof nn?n.code===Ye.Redirect||n.code===Ye.SupersededByNewNavigation:!1)?jo.REDIRECTING:jo.FAILED),Ee(n=>n!==jo.REDIRECTING),Vt(1)).subscribe(()=>{t()})}var cS={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},uS={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Oe=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(Zs);stateManager=p(Jv);options=p(ti,{optional:!0})||{};pendingTasks=p(Zt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(uf);urlSerializer=p(Ko);location=p(Lr);urlHandlingStrategy=p(cf);_events=new oe;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(iS);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=p(ja,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!p(Ua,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}eventsSubscription=new re;subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=this.navigationTransitions.currentNavigation;if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof nn&&r.code!==Ye.Redirect&&r.code!==Ye.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Dt)this.navigated=!0;else if(r instanceof Wr){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=m({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||oS(o.source)},s);this.scheduleNavigation(a,Uo,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}dS(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Uo,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,o){let i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){let c=m({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(i.state=c)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(sf),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,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=m(m({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}l!==null&&(l=this.removeEmptyProps(l));let d;try{let h=o?o.snapshot:this.routerState.snapshot.root;d=Rv(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return Ov(d,n,l,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=Xn(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Uo,null,r)}navigate(n,r={skipLocationChange:!1}){return lS(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=m({},cS):r===!1?o=m({},uS):o=r,Xn(n))return fv(this.currentUrlTree,n,o);let i=this.parseUrl(n);return fv(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((d,h)=>{a=d,c=h});let l=this.pendingTasks.add();return Xv(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function lS(e){for(let t=0;t{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new oe;constructor(n,r,o,i,s,a){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof Dt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(n){n==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Xn(n)?this.routerLinkInput=n:this.routerLinkInput=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,r,o,i,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(n!==0||r||o||i||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let r=this.href===null?null:pg(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){let o=this.renderer,i=this.el.nativeElement;r!==null?o.setAttribute(i,n,r):o.removeAttribute(i,n)}get urlTree(){return this.routerLinkInput===null?null:Xn(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||e)(y(Oe),y(Ct),wl("tabindex"),y(At),y(je),y(en))};static \u0275dir=de({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&ce("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Or("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Fr],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Fr],replaceUrl:[2,"replaceUrl","replaceUrl",Fr],routerLink:"routerLink"},features:[zl,Tt]})}return e})(),ey=(()=>{class e{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new le;constructor(n,r,o,i,s){this.router=n,this.element=r,this.renderer=o,this.cdr=i,this.link=s,this.routerEventsSubscription=n.events.subscribe(a=>{a instanceof Dt&&this.update()})}ngAfterContentInit(){M(this.links.changes,M(null)).pipe(cn()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=J(n).pipe(cn()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){let r=Array.isArray(n)?n:n.split(" ");this.classes=r.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(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),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 r=fS(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let i=o.urlTree;return i?n.isActive(i,r):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}static \u0275fac=function(r){return new(r||e)(y(Oe),y(je),y(At),y(bn),y(at,8))};static \u0275dir=de({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,i){if(r&1&&sm(i,at,5),r&2){let s;am(s=cm())&&(o.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Tt]})}return e})();function fS(e){return!!e.paths}var Ba=class{};var hS=(()=>{class e{router;injector;preloadingStrategy;loader;subscription;constructor(n,r,o,i,s){this.router=n,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Ee(n=>n instanceof Dt),Lt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){let o=[];for(let i of r){i.providers&&!i._injector&&(i._injector=Ws(i.providers,n,`Route: ${i.path}`));let s=i._injector??n,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&i.canLoad===void 0||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return J(o).pipe(cn())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;r.loadChildren&&r.canLoad===void 0?o=this.loader.loadChildren(n,r):o=M(null);let i=o.pipe(pe(s=>s===null?M(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(r);return J([i,s]).pipe(cn())}else return i})}static \u0275fac=function(r){return new(r||e)(I(Oe),I(ta),I(Ne),I(Ba),I(af))};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ty=new v(""),pS=(()=>{class e{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(n,r,o,i,s={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,s.scrollPositionRestoration||="disabled",s.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 qr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Dt?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof An&&n.code===Na.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 Ra&&(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,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Ra(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){Tg()};static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})();function gS(e){return e.routerState.root}function ni(e,t){return{\u0275kind:e,\u0275providers:t}}function mS(){let e=p(Ge);return t=>{let n=e.get(Mt);if(t!==n.components[0])return;let r=e.get(Oe),o=e.get(ny);e.get(lf)===1&&r.initialNavigation(),e.get(ry,null,L.Optional)?.setUpPreloading(),e.get(ty,null,L.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var ny=new v("",{factory:()=>new oe}),lf=new v("",{providedIn:"root",factory:()=>1});function vS(){return ni(2,[{provide:lf,useValue:0},{provide:Ks,multi:!0,deps:[Ge],useFactory:t=>{let n=t.get(Am,Promise.resolve());return()=>n.then(()=>new Promise(r=>{let o=t.get(Oe),i=t.get(ny);Xv(o,()=>{r(!0)}),t.get(uf).afterPreactivation=()=>(r(!0),i.closed?M(void 0):i),o.initialNavigation()}))}}])}function yS(){return ni(3,[{provide:Ks,multi:!0,useFactory:()=>{let t=p(Oe);return()=>{t.setUpLocationChangeListener()}}},{provide:lf,useValue:2}])}var ry=new v("");function DS(e){return ni(0,[{provide:ry,useExisting:hS},{provide:Ba,useExisting:e}])}function CS(){return ni(8,[mv,{provide:Ua,useExisting:mv}])}function wS(e){let t=[{provide:Yv,useValue:nS},{provide:Qv,useValue:m({skipNextTransition:!!e?.skipInitialTransition},e)}];return ni(9,t)}var Cv=new v("ROUTER_FORROOT_GUARD"),ES=[Lr,{provide:Ko,useClass:Gr},Oe,Xo,{provide:Ct,useFactory:gS,deps:[Oe]},af,[]],on=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[ES,[],{provide:ja,multi:!0,useValue:n},{provide:Cv,useFactory:MS,deps:[[Oe,new Os,new il]]},r?.errorHandler?{provide:Kv,useValue:r.errorHandler}:[],{provide:ti,useValue:r||{}},r?.useHash?IS():_S(),bS(),r?.preloadingStrategy?DS(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?SS(r):[],r?.bindToComponentInputs?CS().\u0275providers:[],r?.enableViewTransitions?wS().\u0275providers:[],TS()]}}static forChild(n){return{ngModule:e,providers:[{provide:ja,multi:!0,useValue:n}]}}static \u0275fac=function(r){return new(r||e)(I(Cv,8))};static \u0275mod=ne({type:e});static \u0275inj=te({})}return e})();function bS(){return{provide:ty,useFactory:()=>{let e=p(Lm),t=p(Z),n=p(ti),r=p(uf),o=p(Ko);return n.scrollOffset&&e.setOffset(n.scrollOffset),new pS(o,r,e,t,n)}}}function IS(){return{provide:en,useClass:xm}}function _S(){return{provide:en,useClass:ud}}function MS(e){return"guarded"}function SS(e){return[e.initialNavigation==="disabled"?yS().\u0275providers:[],e.initialNavigation==="enabledBlocking"?vS().\u0275providers:[]]}var wv=new v("");function TS(){return[{provide:wv,useFactory:mS},{provide:Js,multi:!0,useExisting:wv}]}var Ue=class e{constructor(t){this.http=t}apiUrl="https://api5.angular-buch.com";getAll(){return this.http.get(`${this.apiUrl}/books`).pipe(Ke(t=>(console.error(t),M([]))))}getSingle(t){return this.http.get(`${this.apiUrl}/books/${t}`)}remove(t){return this.http.delete(`${this.apiUrl}/books/${t}`)}getAllSearch(t){return this.http.get(`${this.apiUrl}/books/search/${t}`).pipe(Ke(n=>(console.error(n),M([]))))}create(t){return this.http.post(`${this.apiUrl}/books`,t)}update(t){return this.http.put(`${this.apiUrl}/books/${t.isbn}`,t)}check(t){return this.http.get(`${this.apiUrl}/books/${t}/check`)}static \u0275fac=function(n){return new(n||e)(I(md))};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})};var AS=e=>["/books",e];function NS(e,t){if(e&1&&(w(0,"li")(1,"a",6),S(2),w(3,"p",7),S(4),E()()()),e&2){let n=t.$implicit;N(),R("routerLink",ea(3,AS,n.isbn)),N(),qe(" ",n.title," "),N(2),Nt(n.subtitle)}}function xS(e,t){e&1&&(w(0,"li"),S(1,"No results"),E())}function RS(e,t){if(e&1&&(w(0,"ul",3),X(1,NS,5,5,"li",4)(2,xS,2,0,"li",5),E()),e&2){let n=t.ngIf;N(),R("ngForOf",n),N(),R("ngIf",!n.length)}}var Ha=class e{constructor(t){this.service=t;this.results$=this.input$.pipe(Ee(n=>n.length>=3),Hc(500),Gc(),ie(()=>this.isLoading=!0),De(n=>this.service.getAllSearch(n)),ie(()=>this.isLoading=!1))}input$=new oe;isLoading=!1;results$;static \u0275fac=function(n){return new(n||e)(y(Ue))};static \u0275cmp=se({type:e,selectors:[["bm-search"]],standalone:!1,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(n,r){if(n&1){let o=Qt();w(0,"input",1,0),ce("input",function(){qt(o);let s=um(1);return Wt(r.input$.next(s.value))}),E(),X(2,RS,3,2,"ul",2),nt(3,"async")}n&2&&(kr("loading",r.isLoading),N(2),R("ngIf",gt(3,3,r.results$)))},dependencies:[ot,it,at,_n],encapsulation:2})};var za=class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=se({type:e,selectors:[["bm-home"]],standalone:!1,decls:7,vars:0,consts:[["routerLink","/books",1,"button","red"]],template:function(n,r){n&1&&(w(0,"h1"),S(1,"Home"),E(),w(2,"a",0),S(3,` Show book list -`),E(),w(4,"h2"),S(5,"Search"),E(),ae(6,"bm-search"))},dependencies:[at,Ha],encapsulation:2})};var kS=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:za}],Ga=class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=ne({type:e});static \u0275inj=te({imports:[on.forRoot(kS),on]})};var Kr=class e{_isAuthenticated$=new ye(!0);isAuthenticated$=this._isAuthenticated$.asObservable();get isAuthenticated(){return this._isAuthenticated$.value}login(){this._isAuthenticated$.next(!0)}logout(){this._isAuthenticated$.next(!1)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})};function FS(e,t){if(e&1){let n=Qt();w(0,"button",6),ce("click",function(){qt(n);let o=Be();return Wt(o.auth.login())}),S(1,"Login"),E()}}function PS(e,t){if(e&1){let n=Qt();w(0,"button",7),ce("click",function(){qt(n);let o=Be();return Wt(o.auth.logout())}),S(1,"Logout"),E()}}var qa=class e{constructor(t){this.auth=t}static \u0275fac=function(n){return new(n||e)(y(Kr))};static \u0275cmp=se({type:e,selectors:[["bm-root"]],standalone:!1,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(n,r){n&1&&(w(0,"nav")(1,"a",0),S(2,"Home"),E(),w(3,"a",1),S(4,"Books"),E(),w(5,"a",2),S(6,"Administration"),E(),w(7,"div",3),X(8,FS,2,0,"button",4)(9,PS,2,0,"button",5),E()(),w(10,"main"),ae(11,"router-outlet"),E()),n&2&&(N(8),R("ngIf",!r.auth.isAuthenticated),N(),R("ngIf",r.auth.isAuthenticated))},dependencies:[it,of,at,ey],encapsulation:2})};var Jr=class e{transform(t){return t?`${t.substring(0,3)}-${t.substring(3)}`:""}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=So({name:"isbn",type:e,pure:!0,standalone:!1})};var LS=e=>["/admin/edit",e];function VS(e,t){if(e&1&&(w(0,"p",10),S(1),E()),e&2){let n=Be().ngIf;N(),Nt(n.subtitle)}}function jS(e,t){if(e&1&&(w(0,"li"),S(1),E()),e&2){let n=t.$implicit;N(),Nt(n)}}function BS(e,t){if(e&1&&(w(0,"div")(1,"h2"),S(2,"Published"),E(),S(3),nt(4,"date"),E()),e&2){let n=Be().ngIf;N(3),qe(" ",hm(4,1,n.published,"longDate")," ")}}function US(e,t){if(e&1&&ae(0,"img",11),e&2){let n=Be().ngIf;R("src",n.thumbnailUrl,_o)}}function $S(e,t){if(e&1){let n=Qt();w(0,"div",1)(1,"h1"),S(2),E(),X(3,VS,2,1,"p",2),w(4,"div",3)(5,"div")(6,"h2"),S(7,"Authors"),E(),w(8,"ul"),X(9,jS,2,1,"li",4),E()(),w(10,"div")(11,"h2"),S(12,"ISBN"),E(),S(13),nt(14,"isbn"),E(),X(15,BS,5,4,"div",5),E(),w(16,"h2"),S(17,"Description"),E(),w(18,"p"),S(19),E(),X(20,US,1,1,"img",6),w(21,"a",7),S(22,"Back to list"),E(),w(23,"button",8),ce("click",function(){let o=qt(n).ngIf,i=Be();return Wt(i.removeBook(o.isbn))}),S(24," Remove book "),E(),w(25,"a",9),S(26," Edit book "),E()()}if(e&2){let n=t.ngIf;N(2),Nt(n.title),N(),R("ngIf",n.subtitle),N(6),R("ngForOf",n.authors),N(4),qe(" ",gt(14,8,n.isbn)," "),N(2),R("ngIf",n.published),N(4),Nt(n.description),N(),R("ngIf",n.thumbnailUrl),N(5),R("routerLink",ea(10,LS,n.isbn))}}var Wa=class e{constructor(t,n,r){this.service=t;this.route=n;this.router=r;let o=this.route.snapshot.paramMap.get("isbn");this.book$=this.service.getSingle(o)}book$;removeBook(t){window.confirm("Remove book?")&&this.service.remove(t).subscribe(()=>{this.router.navigateByUrl("/books")})}static \u0275fac=function(n){return new(n||e)(y(Ue),y(Ct),y(Oe))};static \u0275cmp=se({type:e,selectors:[["bm-book-details"]],standalone:!1,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(n,r){n&1&&(X(0,$S,27,12,"div",0),nt(1,"async")),n&2&&R("ngIf",gt(1,1,r.book$))},dependencies:[ot,it,at,_n,Pm,Jr],encapsulation:2})};function HS(e,t){if(e&1&&ae(0,"img",6),e&2){let n=Be(2);R("src",n.book.thumbnailUrl,_o)}}function zS(e,t){if(e&1&&(w(0,"p",7),S(1),E()),e&2){let n=Be(2);N(),qe(" ",n.book.subtitle," ")}}function GS(e,t){if(e&1&&(w(0,"li"),S(1),E()),e&2){let n=t.$implicit;N(),qe(" ",n," ")}}function qS(e,t){if(e&1&&(w(0,"a",1),X(1,HS,1,1,"img",2),w(2,"h2"),S(3),E(),X(4,zS,2,1,"p",3),w(5,"ul",4),X(6,GS,2,1,"li",5),E(),w(7,"div"),S(8),nt(9,"isbn"),E()()),e&2){let n=Be();R("routerLink",n.book.isbn),N(),R("ngIf",n.book.thumbnailUrl),N(2),Nt(n.book.title),N(),R("ngIf",n.book.subtitle),N(2),R("ngForOf",n.book.authors),N(2),qe("ISBN ",gt(9,6,n.book.isbn),"")}}var Za=class e{book;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=se({type:e,selectors:[["bm-book-list-item"]],inputs:{book:"book"},standalone:!1,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(n,r){n&1&&X(0,qS,10,8,"a",0),n&2&&R("ngIf",r.book)},dependencies:[ot,it,at,Jr],encapsulation:2})};function ZS(e,t){if(e&1&&(w(0,"li"),ae(1,"bm-book-list-item",4),E()),e&2){let n=t.$implicit;N(),R("book",n)}}function YS(e,t){e&1&&(w(0,"li"),S(1," No books available. "),E())}function QS(e,t){if(e&1&&(w(0,"ul",1),X(1,ZS,2,1,"li",2)(2,YS,2,0,"li",3),E()),e&2){let n=t.ngIf;N(),R("ngForOf",n),N(),R("ngIf",!n.length)}}var Ya=class e{constructor(t){this.service=t;this.books$=this.service.getAll()}books$;static \u0275fac=function(n){return new(n||e)(y(Ue))};static \u0275cmp=se({type:e,selectors:[["bm-book-list"]],standalone:!1,decls:4,vars:3,consts:[["class","book-list",4,"ngIf"],[1,"book-list"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"book"]],template:function(n,r){n&1&&(w(0,"h1"),S(1,"Books"),E(),X(2,QS,3,2,"ul",0),nt(3,"async")),n&2&&(N(2),R("ngIf",gt(3,1,r.books$)))},dependencies:[ot,it,Za,_n],encapsulation:2})};var KS=[{path:"books",component:Ya},{path:"books/:isbn",component:Wa}],Qa=class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=ne({type:e});static \u0275inj=te({imports:[on.forChild(KS),on]})};var Ka=class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=ne({type:e});static \u0275inj=te({imports:[Vr,Qa]})};var Ja=class e{constructor(t){this.authService=t}intercept(t,n){let r="1234567890";if(this.authService.isAuthenticated){let o=t.clone({setHeaders:{Authorization:`Bearer ${r}`}});return n.handle(o)}else return n.handle(t)}static \u0275fac=function(n){return new(n||e)(I(Kr))};static \u0275prov=D({token:e,factory:e.\u0275fac})};var hy=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(r){return new(r||e)(y(At),y(je))};static \u0275dir=de({type:e})}return e})(),JS=(()=>{class e extends hy{static \u0275fac=(()=>{let n;return function(o){return(n||(n=Nr(e)))(o||e)}})();static \u0275dir=de({type:e,features:[pt]})}return e})(),ac=new v("");var XS={provide:ac,useExisting:St(()=>cc),multi:!0};function eT(){let e=xt()?xt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var tT=new v(""),cc=(()=>{class e extends hy{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!eT())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(r){return new(r||e)(y(At),y(je),y(tT,8))};static \u0275dir=de({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&ce("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[En([XS]),pt]})}return e})();function xn(e){return e==null||(typeof e=="string"||Array.isArray(e))&&e.length===0}function py(e){return e!=null&&typeof e.length=="number"}var uc=new v(""),lc=new v(""),nT=/^(?=.{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])?)*$/,ai=class{static min(t){return rT(t)}static max(t){return oT(t)}static required(t){return iT(t)}static requiredTrue(t){return sT(t)}static email(t){return aT(t)}static minLength(t){return cT(t)}static maxLength(t){return uT(t)}static pattern(t){return lT(t)}static nullValidator(t){return gy(t)}static compose(t){return wy(t)}static composeAsync(t){return by(t)}};function rT(e){return t=>{if(xn(t.value)||xn(e))return null;let n=parseFloat(t.value);return!isNaN(n)&&n{if(xn(t.value)||xn(e))return null;let n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}function iT(e){return xn(e.value)?{required:!0}:null}function sT(e){return e.value===!0?null:{required:!0}}function aT(e){return xn(e.value)||nT.test(e.value)?null:{email:!0}}function cT(e){return t=>xn(t.value)||!py(t.value)?null:t.value.lengthpy(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}function lT(e){if(!e)return gy;let t,n;return typeof e=="string"?(n="",e.charAt(0)!=="^"&&(n+="^"),n+=e,e.charAt(e.length-1)!=="$"&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),r=>{if(xn(r.value))return null;let o=r.value;return t.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}function gy(e){return null}function my(e){return e!=null}function vy(e){return wn(e)?J(e):e}function yy(e){let t={};return e.forEach(n=>{t=n!=null?m(m({},t),n):t}),Object.keys(t).length===0?null:t}function Dy(e,t){return t.map(n=>n(e))}function dT(e){return!e.validate}function Cy(e){return e.map(t=>dT(t)?t:n=>t.validate(n))}function wy(e){if(!e)return null;let t=e.filter(my);return t.length==0?null:function(n){return yy(Dy(n,t))}}function Ey(e){return e!=null?wy(Cy(e)):null}function by(e){if(!e)return null;let t=e.filter(my);return t.length==0?null:function(n){let r=Dy(n,t).map(vy);return $c(r).pipe(A(yy))}}function Iy(e){return e!=null?by(Cy(e)):null}function sy(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function _y(e){return e._rawValidators}function My(e){return e._rawAsyncValidators}function df(e){return e?Array.isArray(e)?e:[e]:[]}function ec(e,t){return Array.isArray(e)?e.includes(t):e===t}function ay(e,t){let n=df(t);return df(e).forEach(o=>{ec(n,o)||n.push(o)}),n}function cy(e,t){return df(t).filter(n=>!ec(e,n))}var tc=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Ey(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Iy(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},ct=class extends tc{name;get formDirective(){return null}get path(){return null}},ci=class extends tc{_parent=null;name=null;valueAccessor=null},nc=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},fT={"[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"},g1=j(m({},fT),{"[class.ng-submitted]":"isSubmitted"}),Sy=(()=>{class e extends nc{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(y(ci,2))};static \u0275dir=de({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&kr("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[pt]})}return e})(),Ty=(()=>{class e extends nc{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(y(ct,10))};static \u0275dir=de({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&kr("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)},standalone:!1,features:[pt]})}return e})();var ri="VALID",Xa="INVALID",Xr="PENDING",oi="DISABLED",Rn=class{},rc=class extends Rn{value;source;constructor(t,n){super(),this.value=t,this.source=n}},ii=class extends Rn{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},si=class extends Rn{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},eo=class extends Rn{status;source;constructor(t,n){super(),this.status=t,this.source=n}},ff=class extends Rn{source;constructor(t){super(),this.source=t}},hf=class extends Rn{source;constructor(t){super(),this.source=t}};function pf(e){return(dc(e)?e.validators:e)||null}function hT(e){return Array.isArray(e)?Ey(e):e||null}function gf(e,t){return(dc(t)?t.asyncValidators:e)||null}function pT(e){return Array.isArray(e)?Iy(e):e||null}function dc(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function Ay(e,t,n){let r=e.controls;if(!(t?Object.keys(r):r).length)throw new b(1e3,"");if(!r[n])throw new b(1001,"")}function Ny(e,t,n){e._forEachChild((r,o)=>{if(n[o]===void 0)throw new b(1002,"")})}var ui=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return mt(this.statusReactive)}set status(t){mt(()=>this.statusReactive.set(t))}_status=Ao(()=>this.statusReactive());statusReactive=Mo(void 0);get valid(){return this.status===ri}get invalid(){return this.status===Xa}get pending(){return this.status==Xr}get disabled(){return this.status===oi}get enabled(){return this.status!==oi}errors;get pristine(){return mt(this.pristineReactive)}set pristine(t){mt(()=>this.pristineReactive.set(t))}_pristine=Ao(()=>this.pristineReactive());pristineReactive=Mo(!0);get dirty(){return!this.pristine}get touched(){return mt(this.touchedReactive)}set touched(t){mt(()=>this.touchedReactive.set(t))}_touched=Ao(()=>this.touchedReactive());touchedReactive=Mo(!1);get untouched(){return!this.touched}_events=new oe;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(ay(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(ay(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(cy(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(cy(t,this._rawAsyncValidators))}hasValidator(t){return ec(this._rawValidators,t)}hasAsyncValidator(t){return ec(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(j(m({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new si(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new si(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(j(m({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new ii(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new ii(!0,r))}markAsPending(t={}){this.status=Xr;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new eo(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(j(m({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=oi,this.errors=null,this._forEachChild(o=>{o.disable(j(m({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new rc(this.value,r)),this._events.next(new eo(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(j(m({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=ri,this._forEachChild(r=>{r.enable(j(m({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(j(m({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ri||this.status===Xr)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new rc(this.value,n)),this._events.next(new eo(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(j(m({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?oi:ri}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=Xr,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=vy(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new eo(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new le,this.statusChanges=new le}_calculateStatus(){return this._allControlsDisabled()?oi:this.errors?Xa:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Xr)?Xr:this._anyControlsHaveStatus(Xa)?Xa:ri}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new ii(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new si(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){dc(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=hT(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=pT(this._rawAsyncValidators)}},oc=class extends ui{constructor(t,n,r){super(pf(n),gf(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){Ny(this,!0,t),Object.keys(t).forEach(r=>{Ay(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){t!=null&&(Object.keys(t).forEach(r=>{let o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t?t[o]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>r._syncPendingControls()?!0:n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{let r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var xy=new v("CallSetDisabledState",{providedIn:"root",factory:()=>mf}),mf="always";function vf(e,t){return[...t.path,e]}function uy(e,t,n=mf){yf(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),mT(e,t),yT(e,t),vT(e,t),gT(e,t)}function ly(e,t,n=!0){let r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),sc(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function ic(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function gT(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function yf(e,t){let n=_y(e);t.validator!==null?e.setValidators(sy(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=My(e);t.asyncValidator!==null?e.setAsyncValidators(sy(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();ic(t._rawValidators,o),ic(t._rawAsyncValidators,o)}function sc(e,t){let n=!1;if(e!==null){if(t.validator!==null){let o=_y(e);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==t.validator);i.length!==o.length&&(n=!0,e.setValidators(i))}}if(t.asyncValidator!==null){let o=My(e);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==t.asyncValidator);i.length!==o.length&&(n=!0,e.setAsyncValidators(i))}}}let r=()=>{};return ic(t._rawValidators,r),ic(t._rawAsyncValidators,r),n}function mT(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Ry(e,t)})}function vT(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Ry(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Ry(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function yT(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function DT(e,t){e==null,yf(e,t)}function CT(e,t){return sc(e,t)}function wT(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function ET(e){return Object.getPrototypeOf(e.constructor)===JS}function bT(e,t){e._syncPendingControls(),t.forEach(n=>{let r=n.control;r.updateOn==="submit"&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function IT(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===cc?n=i:ET(i)?r=i:o=i}),o||r||n||null}function _T(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function dy(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function fy(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var kt=class extends ui{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(pf(n),gf(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),dc(n)&&(n.nonNullable||n.initialValueIsDefault)&&(fy(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){dy(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){dy(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){fy(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var MT=e=>e instanceof kt,ST=(()=>{class e extends ct{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return vf(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Nr(e)))(o||e)}})();static \u0275dir=de({type:e,standalone:!1,features:[pt]})}return e})();var Oy=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275dir=de({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return e})();var ky=new v("");var TT={provide:ct,useExisting:St(()=>to)},to=(()=>{class e extends ct{callSetDisabledState;get submitted(){return mt(this._submittedReactive)}set submitted(n){this._submittedReactive.set(n)}_submitted=Ao(()=>this._submittedReactive());_submittedReactive=Mo(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new le;constructor(n,r,o){super(),this.callSetDisabledState=o,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(sc(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 r=this.form.get(n.path);return uy(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){ly(n.control||null,n,!1),_T(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,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this._submittedReactive.set(!0),bT(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new ff(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this._submittedReactive.set(!1),this.form._events.next(new hf(this.form))}_updateDomValue(){this.directives.forEach(n=>{let r=n.control,o=this.form.get(n.path);r!==o&&(ly(r||null,n),MT(o)&&(uy(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let r=this.form.get(n.path);DT(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let r=this.form.get(n.path);r&&CT(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){yf(this.form,this),this._oldForm&&sc(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(r){return new(r||e)(y(uc,10),y(lc,10),y(xy,8))};static \u0275dir=de({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&ce("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[En([TT]),pt,Tt]})}return e})(),AT={provide:ct,useExisting:St(()=>Fy)},Fy=(()=>{class e extends ST{name=null;constructor(n,r,o){super(),this._parent=n,this._setValidators(r),this._setAsyncValidators(o)}_checkParentType(){Py(this._parent)}static \u0275fac=function(r){return new(r||e)(y(ct,13),y(uc,10),y(lc,10))};static \u0275dir=de({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[En([AT]),pt]})}return e})(),NT={provide:ct,useExisting:St(()=>fc)},fc=(()=>{class e extends ct{_parent;name=null;constructor(n,r,o){super(),this._parent=n,this._setValidators(r),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 vf(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){Py(this._parent)}static \u0275fac=function(r){return new(r||e)(y(ct,13),y(uc,10),y(lc,10))};static \u0275dir=de({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[En([NT]),pt]})}return e})();function Py(e){return!(e instanceof Fy)&&!(e instanceof to)&&!(e instanceof fc)}var xT={provide:ci,useExisting:St(()=>Df)},Df=(()=>{class e extends ci{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(n){}model;update=new le;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(n,r,o,i,s){super(),this._ngModelWarningConfig=s,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=IT(this,i)}ngOnChanges(n){this._added||this._setUpControl(),wT(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 vf(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}static \u0275fac=function(r){return new(r||e)(y(ct,13),y(uc,10),y(lc,10),y(ac,10),y(ky,8))};static \u0275dir=de({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[En([xT]),pt,Tt]})}return e})();var RT=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=ne({type:e});static \u0275inj=te({})}return e})(),li=class extends ui{constructor(t,n,r){super(pf(n),gf(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(t){return this.controls[this._adjustIndex(t)]}push(t,n={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(t,n,r={}){this.controls.splice(t,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(t,n={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(t,n,r={}){let o=this._adjustIndex(t);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),n&&(this.controls.splice(o,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,n={}){Ny(this,!1,t),t.forEach((r,o)=>{Ay(this,!1,o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){t!=null&&(t.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t=[],n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((n,r)=>r._syncPendingControls()?!0:n,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((n,r)=>{t(n,r)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(n=>n.enabled&&t(n))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};var Ly=e=>e instanceof li;var Vy=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:ky,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:xy,useValue:n.callSetDisabledState??mf}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=ne({type:e});static \u0275inj=te({imports:[RT]})}return e})();var hc=class e{constructor(t){this.service=t}isbnExists(){return t=>this.service.check(t.value).pipe(A(n=>n?{isbnexists:!0}:null))}static \u0275fac=function(n){return new(n||e)(I(Ue))};static \u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})};var By=function(e){if(!e.value||typeof e.value!="string")return null;let n=e.value.replace(/-/g,"").length;return n===10||n===13?null:{isbnformat:!0}},Uy=function(e){return!Ly(e)||e.controls.some(t=>!!t.value)?null:{atleastonevalue:!0}};var $y=(()=>{class e{constructor(n,r){this.renderer=n,this.elementRef=r,this.onInput=o=>{let i=o?new Date(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()):null,s=i?i.toISOString():null;this.onChange(s)},this.onChange=()=>{},this.onTouched=()=>{}}writeValue(n){let r=n?new Date(n):null,o=r?new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate())):null;this.renderer.setProperty(this.elementRef.nativeElement,"valueAsDate",o)}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}setDisabledState(n){this.renderer.setProperty(this.elementRef.nativeElement,"disabled",n)}}return e.\u0275fac=function(n){return new(n||e)(y(At),y(je))},e.\u0275dir=de({type:e,selectors:[["","useValueAsLocalIso",""]],hostBindings:function(n,r){n&1&&ce("input",function(i){return r.onInput(i.target.valueAsDate)})("blur",function(){return r.onTouched()})},features:[En([{provide:ac,useExisting:St(()=>e),multi:!0}])]}),e})();function kT(e,t){if(e&1&&(w(0,"p",1),S(1),E()),e&2){let n=t.$implicit;N(),qe(" ",n,` -`)}}var pc=class e{constructor(t){this.form=t}controlName;messages={};get errors(){if(!this.controlName)return[];let t=this.form.control.get(this.controlName);return!t||!t.errors||!t.touched?[]:Object.keys(t.errors).map(n=>this.messages[n])}static \u0275fac=function(n){return new(n||e)(y(to))};static \u0275cmp=se({type:e,selectors:[["bm-form-errors"]],inputs:{controlName:"controlName",messages:"messages"},standalone:!1,decls:1,vars:1,consts:[["class","error",4,"ngFor","ngForOf"],[1,"error"]],template:function(n,r){n&1&&X(0,kT,2,1,"p",0),n&2&&R("ngForOf",r.errors)},dependencies:[ot],encapsulation:2})};var PT=()=>({required:"Title is required"}),LT=()=>({required:"ISBN is required",isbnformat:"ISBN must have 10 or 13 chars",isbnexists:"ISBN already exists"}),VT=()=>({atleastonevalue:"At least one author required"});function jT(e,t){if(e&1&&ae(0,"input",20),e&2){let n=t.index;R("formControlName",n),Or("aria-label","Author "+n)}}var no=class e{book;submitBook=new le;form=new oc({title:new kt("",{nonNullable:!0,validators:ai.required}),subtitle:new kt("",{nonNullable:!0}),isbn:new kt("",{nonNullable:!0,validators:[ai.required,By],asyncValidators:p(hc).isbnExists()}),description:new kt("",{nonNullable:!0}),published:new kt("",{nonNullable:!0}),authors:this.buildAuthorsArray([""]),thumbnailUrl:new kt("",{nonNullable:!0})});ngOnChanges(){this.book?(this.setFormValues(this.book),this.setEditMode(!0)):this.setEditMode(!1)}setFormValues(t){this.form.patchValue(t),this.form.setControl("authors",this.buildAuthorsArray(t.authors))}setEditMode(t){let n=this.form.controls.isbn;t?n.disable():n.enable()}buildAuthorsArray(t){return new li(t.map(n=>new kt(n,{nonNullable:!0})),Uy)}get authors(){return this.form.controls.authors}addAuthorControl(){this.authors.push(new kt("",{nonNullable:!0}))}submitForm(){let t=this.form.getRawValue(),n=t.authors.filter(o=>!!o),r=j(m({},t),{authors:n});this.submitBook.emit(r)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=se({type:e,selectors:[["bm-book-form"]],inputs:{book:"book"},outputs:{submitBook:"submitBook"},standalone:!1,features:[Tt],decls:30,vars:9,consts:[[3,"ngSubmit","formGroup"],["for","title"],["id","title","formControlName","title"],["controlName","title",3,"messages"],["for","subtitle"],["id","subtitle","formControlName","subtitle"],["for","isbn"],["id","isbn","formControlName","isbn"],["controlName","isbn",3,"messages"],["type","button",1,"add",3,"click"],["formArrayName","authors"],[3,"formControlName",4,"ngFor","ngForOf"],["controlName","authors",3,"messages"],["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(n,r){n&1&&(w(0,"form",0),ce("ngSubmit",function(){return r.submitForm()}),w(1,"label",1),S(2,"Title"),E(),ae(3,"input",2)(4,"bm-form-errors",3),w(5,"label",4),S(6,"Subtitle"),E(),ae(7,"input",5),w(8,"label",6),S(9,"ISBN"),E(),ae(10,"input",7)(11,"bm-form-errors",8),w(12,"label"),S(13,"Authors"),E(),w(14,"button",9),ce("click",function(){return r.addAuthorControl()}),S(15," + Author "),E(),w(16,"fieldset",10),X(17,jT,1,2,"input",11),E(),ae(18,"bm-form-errors",12),w(19,"label",13),S(20,"Description"),E(),ae(21,"textarea",14),w(22,"label",15),S(23,"Published"),E(),ae(24,"input",16),w(25,"label",17),S(26,"Thumbnail URL"),E(),ae(27,"input",18),w(28,"button",19),S(29," Save "),E()()),n&2&&(R("formGroup",r.form),N(4),R("messages",Xs(6,PT)),N(7),R("messages",Xs(7,LT)),N(6),R("ngForOf",r.authors.controls),N(),R("messages",Xs(8,VT)),N(10),R("disabled",r.form.invalid))},dependencies:[ot,Oy,cc,Sy,Ty,to,Df,fc,$y,pc],encapsulation:2})};var gc=class e{constructor(t,n){this.service=t;this.router=n}create(t){this.service.create(t).subscribe(n=>{this.router.navigate(["/books",n.isbn])})}static \u0275fac=function(n){return new(n||e)(y(Ue),y(Oe))};static \u0275cmp=se({type:e,selectors:[["bm-book-create"]],standalone:!1,decls:3,vars:0,consts:[[3,"submitBook"]],template:function(n,r){n&1&&(w(0,"h1"),S(1,"Create Book"),E(),w(2,"bm-book-form",0),ce("submitBook",function(i){return r.create(i)}),E())},dependencies:[no],encapsulation:2})};function BT(e,t){if(e&1){let n=Qt();w(0,"bm-book-form",1),ce("submitBook",function(o){qt(n);let i=Be();return Wt(i.update(o))}),E()}if(e&2){let n=t.ngIf;R("book",n)}}var mc=class e{constructor(t,n,r){this.service=t;this.route=n;this.router=r;this.book$=this.route.paramMap.pipe(A(o=>o.get("isbn")),De(o=>this.service.getSingle(o)))}book$;update(t){this.service.update(t).subscribe(n=>{this.router.navigate(["/books",n.isbn])})}static \u0275fac=function(n){return new(n||e)(y(Ue),y(Ct),y(Oe))};static \u0275cmp=se({type:e,selectors:[["bm-book-edit"]],standalone:!1,decls:4,vars:3,consts:[[3,"book","submitBook",4,"ngIf"],[3,"submitBook","book"]],template:function(n,r){n&1&&(w(0,"h1"),S(1,"Edit Book"),E(),X(2,BT,1,1,"bm-book-form",0),nt(3,"async")),n&2&&(N(2),R("ngIf",gt(3,1,r.book$)))},dependencies:[it,no,_n],encapsulation:2})};var UT=[{path:"admin",redirectTo:"admin/create"},{path:"admin/create",component:gc},{path:"admin/edit/:isbn",component:mc}],vc=class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=ne({type:e});static \u0275inj=te({imports:[on.forChild(UT),on]})};var yc=class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=ne({type:e});static \u0275inj=te({imports:[Vr,vc,Vy]})};var Dc=class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=ne({type:e,bootstrap:[qa]});static \u0275inj=te({providers:[Km(Jm()),{provide:vd,useClass:Ja,multi:!0}],imports:[uv,Ga,Ka,yc]})};cv().bootstrapModule(Dc,{ngZoneEventCoalescing:!0}).catch(e=>console.error(e));